:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --ink: #242621;
  --body: #62645d;
  --muted: #72756c;
  --rule: #dedfd7;
  --surface: #efefe8;
  --accent: #48624b;
  --card: #fff;
  --blue: #334abb;
  --mono: "IBM Plex Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171b19;
  --ink: #edece4;
  --body: #b6bbb2;
  --muted: #a0a79b;
  --rule: #343c34;
  --surface: #212823;
  --accent: #abc5a5;
  --card: #202722;
  --blue: #b7c0ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
::selection {
  background: #cfdeba;
  color: #19231c;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
p,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}
button {
  color: inherit;
}
a,
button {
  transition:
    color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}
.masthead {
  height: 88px;
  margin: 0 48px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 20px;
}
.wordmark {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
}
.wordmark span {
  color: var(--accent);
}
.masthead-caption {
  font: 10px var(--mono);
  letter-spacing: 1.3px;
  color: var(--muted);
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 23px;
}
.app-link {
  font-size: 12px;
  font-weight: 600;
}
.app-link span {
  margin-left: 12px;
}
.app-link:hover {
  color: var(--accent);
}
.theme-button {
  border: 1px solid var(--rule);
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.theme-button:hover {
  background: var(--surface);
}
.identity-rail {
  position: fixed;
  top: 170px;
  left: 48px;
  display: flex;
  gap: 16px;
}
.rail-dots {
  width: 6px;
  background-image: radial-gradient(var(--muted) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.45;
}
.identity-rail div {
  display: flex;
  flex-direction: column;
  font: 9px/1.9 var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.identity-rail strong {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.section-nav {
  position: fixed;
  right: 48px;
  top: 173px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.section-nav a {
  font: 10px var(--mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-nav a::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule);
}
.section-nav a.is-active {
  color: var(--accent);
}
.section-nav a.is-active::after {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}
.folio {
  width: min(100% - 48px, 740px);
  margin: auto;
}
.hero {
  padding-top: 78px;
}
.hero-kicker {
  font: 10px var(--mono);
  letter-spacing: 1.6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.small-line {
  height: 1px;
  width: 22px;
  background: var(--accent);
}
.introduction {
  margin-top: 32px;
  color: var(--body);
  font-size: 16px;
}
.introduction strong {
  font-weight: 550;
  color: var(--ink);
}
h1 {
  font-size: clamp(46px, 5.7vw, 72px);
  font-weight: 500;
  letter-spacing: -3.9px;
  line-height: 1.08;
  margin-top: 14px;
}
.serif-word {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -2.5px;
}
.hero-description {
  max-width: 505px;
  font-size: 16px;
  color: var(--body);
  margin-top: 25px;
  line-height: 1.8;
}
.hero-links {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 28px;
}
.button {
  font-size: 12px;
  font-weight: 550;
  padding: 11px 17px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 25px;
}
.primary {
  background: var(--ink);
  color: var(--bg);
}
.primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}
.quiet-link {
  font-size: 12px;
  display: flex;
  gap: 14px;
}
.quiet-link:hover {
  color: var(--accent);
}
.wave-study {
  margin-top: 48px;
  padding: 20px 22px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 7px;
  overflow: hidden;
}
.wave-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.mono {
  font: 9px/1.5 var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.wave-label {
  font-size: 10px;
  color: var(--body);
}
#waveGraph {
  display: block;
  width: calc(100% + 44px);
  margin: 15px -22px 9px;
  color: var(--accent);
  height: auto;
}
.wave-bottom {
  display: flex;
  align-items: center;
  gap: 17px;
}
.wave-bottom label {
  font: 9px var(--mono);
  color: var(--body);
  white-space: nowrap;
}
.wave-bottom output {
  display: inline-block;
  margin-left: 10px;
  color: var(--ink);
  min-width: 49px;
}
.wave-bottom input {
  width: 105px;
  accent-color: var(--accent);
  height: 24px;
  margin: 0;
  cursor: ew-resize;
}
.wave-bottom > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 20px;
  gap: 20px;
}
.hero-foot a {
  color: var(--accent);
}
.section {
  padding-top: 70px;
  margin-top: 66px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 15px;
}
.section-index {
  display: block;
  font: 10px var(--mono);
  letter-spacing: 1.1px;
  color: var(--accent);
}
h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -1.1px;
  margin-top: 13px;
}
.section-heading {
  margin-bottom: 28px;
}
.about-copy {
  font-size: 15px;
  line-height: 1.9;
  color: var(--body);
}
.about-copy p + p {
  margin-top: 17px;
}
.about-copy a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}
.focus-list {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.focus-list > div {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.focus-list dt {
  font: 10px var(--mono);
  color: var(--muted);
  margin-bottom: 12px;
}
.focus-list dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.focus-list strong {
  font-size: 12px;
  font-weight: 600;
}
.focus-list dd span {
  font-size: 11px;
  color: var(--body);
  line-height: 1.6;
}
.project-feature {
  display: block;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #293d99;
  color: #fff;
  padding: 28px 30px 0;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.project-feature::after {
  content: "k.";
  position: absolute;
  right: 22px;
  top: 30px;
  font-size: 260px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff07;
  pointer-events: none;
  letter-spacing: -20px;
}
.project-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #15265022;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-category {
  font: 9px var(--mono);
  letter-spacing: 1.4px;
  color: #c5cdfc;
}
.project-arrow {
  height: 30px;
  width: 30px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.project-brand {
  font-size: 48px;
  letter-spacing: -2.5px;
  font-weight: 550;
  line-height: 1.1;
  margin-top: 30px;
}
.project-brand > span {
  color: #b6cb97;
}
.project-feature p {
  font-size: 16px;
  font-weight: 400;
  margin-top: 15px;
  line-height: 1.65;
  color: #eef0ff;
}
.project-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 30px;
}
.project-models span {
  font: 9px var(--mono);
  padding: 5px 9px;
  border: 1px solid #ffffff33;
  border-radius: 4px;
  color: #e5e9ff;
}
.project-bottom {
  padding: 17px 0;
  border-top: 1px solid #ffffff26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.project-bottom > span {
  font-size: 10px;
  color: #cdd5ff;
}
.project-bottom strong {
  font-size: 11px;
  font-weight: 500;
}
.project-bottom strong span {
  margin-left: 10px;
}
.project-note {
  font-size: 12px;
  color: var(--body);
  margin-top: 15px;
  max-width: 610px;
}
.research-row {
  display: flex;
  gap: 19px;
  align-items: center;
  margin-top: 32px;
  padding: 23px 0;
  border-top: 1px solid var(--rule);
}
.research-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 9px;
  font: 17px var(--mono);
  color: var(--accent);
}
.research-row h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 5px 0;
}
.research-row p {
  font-size: 12px;
  color: var(--body);
}
.experience-list {
  border-top: 1px solid var(--rule);
}
.experience {
  border-bottom: 1px solid var(--rule);
}
.experience summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
}
.experience summary::-webkit-details-marker {
  display: none;
}
.experience-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.experience[open] .experience-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.experience-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.experience-main strong {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}
.experience-main > span {
  font-size: 12px;
  color: var(--body);
}
.experience-date {
  font: 10px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.expand-icon {
  font: 18px var(--mono);
  color: var(--muted);
  margin-left: 8px;
  transition: transform 0.2s;
}
.experience[open] .expand-icon {
  transform: rotate(45deg);
}
.experience-detail {
  padding: 0 40px 24px 24px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.85;
}
.skills-block {
  margin-top: 34px;
}
.skills-block h3 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-tags span {
  padding: 5px 9px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: 10px var(--mono);
  color: var(--body);
}
.education-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.edu-mark {
  width: 52px;
  height: 58px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font: 14px var(--mono);
  color: var(--accent);
}
.education-row h3,
.award h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 4px 0;
}
.education-row p,
.award p {
  font-size: 12px;
  color: var(--body);
}
.award {
  display: flex;
  gap: 19px;
  padding: 23px;
  margin-top: 28px;
  background: var(--surface);
  border-radius: 6px;
  align-items: center;
  border: 1px solid var(--rule);
}
.award-number {
  font:
    italic 42px Georgia,
    serif;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
}
.subheading {
  font-size: 13px;
  font-weight: 550;
  margin-top: 36px;
  margin-bottom: 15px;
}
.compact-list {
  border-top: 1px solid var(--rule);
}
.compact-list article {
  display: flex;
  gap: 28px;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}
.year {
  font: 10px var(--mono);
  color: var(--muted);
  padding-top: 4px;
}
.compact-list h4 {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}
.compact-list p {
  font-size: 12px;
  color: var(--body);
  margin-top: 3px;
}
.row-description {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.linkedin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 29px;
  padding: 19px 20px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.linkedin-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.linkedin-row strong {
  font-size: 12px;
  font-weight: 550;
}
.linkedin-row > span > span {
  font-size: 11px;
  color: var(--body);
}
.linkedin-row:hover {
  background: var(--surface);
}
.contact {
  padding-bottom: 68px;
}
.contact h2 {
  font-size: 49px;
  line-height: 1.13;
  letter-spacing: -2px;
  margin: 24px 0;
}
.contact > p {
  max-width: 390px;
  color: var(--body);
  font-size: 14px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 10px;
  font-size: 18px;
  letter-spacing: -0.3px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-bottom {
  display: flex;
  gap: 27px;
  font-size: 11px;
  margin-top: 22px;
  color: var(--body);
}
footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font: 9px var(--mono);
}
footer a {
  color: var(--ink);
  font-size: 17px;
}
.hero {
  animation: arrive 0.65s ease both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .identity-rail {
    left: calc(50% - 650px);
  }
  .section-nav {
    right: calc(50% - 650px);
  }
}
@media (max-width: 1180px) {
  .identity-rail,
  .section-nav {
    display: none;
  }
  .masthead {
    margin: 0 30px;
  }
  .folio {
    width: min(100% - 60px, 740px);
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 24px;
  }
  .masthead {
    height: 73px;
    margin: 0 23px;
  }
  .masthead-caption {
    display: none;
  }
  .header-actions {
    gap: 15px;
  }
  .app-link {
    font-size: 11px;
  }
  .folio {
    width: calc(100% - 46px);
  }
  .hero {
    padding-top: 48px;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .introduction {
    margin-top: 26px;
    font-size: 14px;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2.7px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 22px;
  }
  .wave-study {
    margin-top: 36px;
    padding: 17px 14px 12px;
  }
  #waveGraph {
    width: calc(100% + 28px);
    margin: 13px -14px 6px;
  }
  .wave-label {
    font-size: 8px;
  }
  .wave-top .mono {
    font-size: 8px;
  }
  .wave-bottom {
    gap: 10px;
  }
  .wave-bottom > span {
    display: none;
  }
  .wave-bottom input {
    margin-left: auto;
    width: 110px;
  }
  .hero-foot {
    font-size: 8px;
    line-height: 1.6;
  }
  .hero-foot > span {
    max-width: 170px;
  }
  .hero-foot a {
    white-space: nowrap;
  }
  .section {
    padding-top: 43px;
    margin-top: 45px;
  }
  h2 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .about-copy {
    font-size: 14px;
  }
  .focus-list {
    gap: 13px;
  }
  .focus-list strong {
    font-size: 11px;
  }
  .focus-list dd span {
    font-size: 10px;
  }
  .project-feature {
    padding: 22px 22px 0;
  }
  .project-brand {
    font-size: 42px;
  }
  .project-feature::after {
    font-size: 215px;
    right: 15px;
    top: 60px;
  }
  .project-bottom {
    align-items: flex-start;
  }
  .project-bottom > span {
    max-width: 150px;
    line-height: 1.7;
  }
  .project-bottom strong {
    white-space: nowrap;
    font-size: 10px;
  }
  .experience summary {
    gap: 12px;
  }
  .experience-main strong {
    font-size: 12px;
  }
  .experience-main > span {
    font-size: 11px;
  }
  .experience-date {
    font-size: 9px;
  }
  .expand-icon {
    margin-left: 0;
  }
  .experience-detail {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 12px;
  }
  .research-row .mono {
    font-size: 8px;
  }
  .research-row {
    gap: 14px;
  }
  .research-row h3 {
    font-size: 13px;
  }
  .education-row h3,
  .award h3 {
    font-size: 13px;
  }
  .award {
    padding: 18px;
    gap: 15px;
  }
  .compact-list article {
    gap: 20px;
  }
  .contact h2 {
    font-size: 43px;
  }
  .contact-email {
    font-size: 15px;
    gap: 15px;
  }
  .contact {
    padding-bottom: 46px;
  }
  footer {
    font-size: 8px;
    line-height: 1.7;
  }
  footer > span:nth-child(2) {
    max-width: 120px;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Exploratory physics lab */
.physics-lab {
  margin-top: 48px;
  padding: 20px 22px 17px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.lab-playback {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 9px var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.lab-playback button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 9px var(--mono);
  padding: 4px 0;
}
.lab-playback button:hover {
  color: var(--ink);
}
.lab-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 10px;
}
.lab-modes button {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 4px;
  padding: 6px 9px;
  color: var(--muted);
  font: 9px var(--mono);
  transition: all 0.2s ease;
}
.lab-modes button:hover,
.lab-modes button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--card);
}
.lab-stage {
  height: 275px;
  position: relative;
  background: color-mix(in srgb, var(--bg) 48%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}
.lab-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 20%,
    #000 80%,
    transparent
  );
}
#physicsCanvas {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--accent);
}
.lab-coordinate {
  position: absolute;
  left: 14px;
  bottom: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
  font: 9px var(--mono);
  color: var(--muted);
  pointer-events: none;
}
.lab-coordinate span:first-child {
  font-size: 11px;
  color: var(--accent);
}
.wave-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  opacity: 0.35;
  animation: ringPulse 2.6s ease-in-out infinite;
}
.wave-ring.soft {
  stroke-width: 3;
  opacity: 0.08;
  filter: url(#softGlow);
}
.source-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 3;
}
.source-label {
  font: 9px var(--mono);
  fill: currentColor;
  opacity: 0.65;
}
.lissajous-path {
  fill: none;
  stroke: url(#traceGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.lissajous-shadow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.15;
}
.trace-dot {
  fill: #b3d99a;
  filter: url(#softGlow);
}
.pendulum-line {
  stroke: currentColor;
  stroke-width: 1.5;
}
.pendulum-bob {
  fill: #b3d99a;
  stroke: var(--accent);
  stroke-width: 2;
}
.pendulum-pivot {
  fill: var(--accent);
}
.pendulum-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0.4;
}
@keyframes ringPulse {
  50% {
    opacity: 0.18;
  }
}
.physics-lab figcaption {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 14px;
}
.lab-explanation {
  max-width: 330px;
}
.lab-explanation strong {
  font-size: 12px;
  font-weight: 550;
}
.lab-explanation p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--body);
  margin-top: 5px;
}
.lab-controls {
  min-width: 185px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  align-content: flex-start;
}
.lab-controls label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font: 9px var(--mono);
  color: var(--body);
}
.lab-controls output {
  color: var(--ink);
}
.lab-controls input {
  width: 150px;
  accent-color: var(--accent);
  height: 22px;
  margin: 0;
}
.lab-controls button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: 9px var(--mono);
}
.lab-controls button:hover {
  color: var(--accent);
}
.lab-noscript {
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
}
/* Projects are a small collection rather than a single featured app. */
.project-collection {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-item {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 235px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.project-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 13px 30px #1b281817;
}
.project-art {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}
.project-art > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  color: #d9e5dc;
}
.gaspol-project .project-art {
  background: #1d3730;
}
.complex-project .project-art {
  background: #31364e;
}
.konsepsi-project .project-art {
  background: #293d99;
}
.project-copy {
  padding: 25px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
}
.project-copy h3 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -1px;
  margin-top: 27px;
}
.project-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
  margin-top: 8px;
  max-width: 330px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.project-tags span {
  font: 9px var(--mono);
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 4px 7px;
}
.project-action {
  font-size: 11px;
  color: var(--accent);
  margin-top: auto;
  padding-top: 18px;
}
.project-action span {
  margin-left: 12px;
}
.project-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-art svg {
  position: absolute;
  width: 82%;
  height: 82%;
  left: 9%;
  top: 5%;
  overflow: visible;
}
.orbit-ring {
  fill: none;
  stroke: #b4cea5;
  stroke-width: 1.3;
  opacity: 0.65;
}
.second-ring {
  stroke: #8bc5cd;
  opacity: 0.45;
}
.art-core {
  fill: #b6cf9a;
  fill-opacity: 0.16;
  stroke: #cbe3b5;
  stroke-width: 1.4;
}
.art-check {
  fill: none;
  stroke: #d8edca;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orbit-point {
  fill: #e0f5c2;
}
.cube-scene {
  height: 170px;
  width: 100%;
  perspective: 600px;
  display: grid;
  place-items: center;
}
.cube {
  width: 82px;
  height: 82px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-34deg);
  animation: cubeTurn 9s linear infinite;
}
.cube-face {
  position: absolute;
  width: 82px;
  height: 82px;
  border: 1px solid #bbc5ff66;
  background: #9aa8ff17;
}
.cube-front {
  transform: translateZ(41px);
}
.cube-back {
  transform: rotateY(180deg) translateZ(41px);
}
.cube-left {
  transform: rotateY(-90deg) translateZ(41px);
}
.cube-right {
  transform: rotateY(90deg) translateZ(41px);
}
.cube-top {
  transform: rotateX(90deg) translateZ(41px);
}
.cube-bottom {
  transform: rotateX(-90deg) translateZ(41px);
}
@keyframes cubeTurn {
  to {
    transform: rotateX(-22deg) rotateY(326deg);
  }
}
.concept-visual {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  color: #d9e1ff;
}
.concept-word {
  font: 13px var(--mono);
  letter-spacing: -0.5px;
}
.muted-word {
  opacity: 0.45;
}
.concept-line {
  height: 1px;
  background: #d4dcff66;
  display: block;
  width: 72%;
}
.line-one {
  margin-left: 23%;
  width: 52%;
}
.line-three {
  width: 42%;
}
.milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.milestone {
  border-top: 1px solid var(--rule);
  padding: 18px 0 13px;
  display: flex;
  gap: 17px;
}
.milestone-date {
  font: 9px var(--mono);
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}
.milestone-type {
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: var(--accent);
}
.milestone h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
  margin: 7px 0 3px;
}
.milestone p {
  font-size: 11px;
  color: var(--body);
}
@media (max-width: 600px) {
  .physics-lab {
    margin-top: 36px;
    padding: 17px 14px 13px;
  }
  .lab-top .mono {
    font-size: 8px;
  }
  .lab-modes {
    gap: 5px;
    margin-top: 15px;
  }
  .lab-modes button {
    font-size: 8px;
    padding: 5px 6px;
  }
  .lab-stage {
    height: 210px;
  }
  .physics-lab figcaption {
    display: block;
  }
  .lab-explanation {
    max-width: none;
  }
  .lab-controls {
    margin-top: 14px;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
  }
  .lab-controls label {
    grid-column: 1 / -1;
  }
  .lab-controls input {
    width: 100%;
  }
  .lab-controls button {
    grid-column: 2;
    grid-row: 2;
  }
  .project-item {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .project-art {
    min-height: 165px;
  }
  .project-art svg {
    height: 155px;
    top: 0;
  }
  .project-copy {
    padding: 20px 20px 19px;
    min-height: 210px;
  }
  .project-copy h3 {
    font-size: 23px;
    margin-top: 22px;
  }
  .project-action {
    margin-top: 18px;
  }
  .milestones {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .milestone {
    padding: 15px 0;
  }
  .milestone h3 {
    font-size: 13px;
  }
}
.lab-explanation blockquote {
  margin: 12px 0 0;
  padding: 8px 0 0 11px;
  border-left: 2px solid var(--accent);
  font:
    italic 11px/1.6 Georgia,
    serif;
  color: var(--accent);
  max-width: 330px;
}
.interference-field {
  opacity: 0.85;
}
.interference-fringe {
  shape-rendering: crispEdges;
}
.resultant-wave {
  fill: none;
  stroke: #d5e6bd;
  stroke-width: 2;
  opacity: 0.85;
}
.resultant-label {
  font: 9px var(--mono);
  fill: currentColor;
  opacity: 0.65;
}
.pendulum-trail {
  fill: none;
  stroke: #b3d99a;
  stroke-width: 1.5;
  opacity: 0.42;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pendulum-second-line {
  stroke: #9bc8c3;
  stroke-width: 1.5;
}
.pendulum-second-bob {
  fill: #9bc8c3;
  stroke: #d3efcf;
  stroke-width: 1.6;
}
.pendulum-ghost {
  fill: none;
  stroke: #b8d4ac;
  stroke-width: 1;
  opacity: 0.18;
  stroke-dasharray: 3 5;
}
@media (max-width: 600px) {
  .lab-explanation blockquote {
    max-width: none;
  }
}
