/* Hamdi Bouzidi: Unite & Multiply. Shared static-site design system.
   Layer scale: content 0, navigation 10, native dialogs top layer. */
@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --bg: #f8f8f4;
  --surface: #eeeee7;
  --surface-2: #e4e4dc;
  --text: #242422;
  --text-muted: #62625a;
  --text-faint: #73736a;
  --accent: #b84a22;
  --accent-fill: #ed8355;
  --accent-soft: #f1e2d7;
  --border: #d9d9d0;
  --border-strong: #b4b4a9;
  --sans: Manrope, Arial, sans-serif;
  --serif: var(--sans);
  --mono: "IBM Plex Mono", monospace;
  --navh: 76px;
  --col: 780px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  --radius-pill: 4px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --sp-9: 104px;
  /* Compatibility tokens retain the original research diagrams' semantics. */
  --purple: var(--accent);
  --purple-bright: var(--accent);
  --purple-soft: var(--accent-soft);
  --turquoise: var(--accent);
  --lime: var(--text-muted);
  --lemon: var(--text-faint);
  --brand: var(--accent);
  --brand-dark: var(--accent);
  --green: var(--accent);
  --panel: var(--surface);
  --muted: var(--text-muted);
  --display: var(--sans);
  --body: var(--sans);
  --c-unsorted: var(--text-faint);
  --c-schedule: var(--accent);
  --c-later: var(--text-muted);
  --c-pass: var(--text);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1d1d1b;
  --surface: #282824;
  --surface-2: #33332d;
  --text: #f3f3e9;
  --text-muted: #b8b8ab;
  --text-faint: #a0a092;
  --accent: #ff9b70;
  --accent-fill: #ed8355;
  --accent-soft: #493022;
  --border: #44443b;
  --border-strong: #66665b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1d1b;
    --surface: #282824;
    --surface-2: #33332d;
    --text: #f3f3e9;
    --text-muted: #b8b8ab;
    --text-faint: #a0a092;
    --accent: #ff9b70;
    --accent-fill: #ed8355;
    --accent-soft: #493022;
    --border: #44443b;
    --border-strong: #66665b;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
html {
  scroll-padding-top: 96px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
::selection {
  background: var(--accent-fill);
  color: #242422;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
button[hidden],
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: var(--navh);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-inline: clamp(20px, 4vw, 64px);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-right: 36px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.identity-mark {
  flex-shrink: 0;
  fill: var(--accent-fill);
  overflow: visible;
}
.mark-center {
  fill: var(--text);
}
.mark-assembly {
  transform-origin: 32px 32px;
}
.desktop-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}
.desktop-nav a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border);
  position: relative;
}
.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 2px;
  background: var(--accent);
}
.desktop-nav a:hover {
  background: var(--surface);
}
.nav-controls {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--border);
}
.theme-toggle {
  font: 11px var(--mono);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding-inline: 20px;
}
.theme-toggle:hover {
  color: var(--text);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--text);
  width: 48px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
}
.mobile-menu::backdrop {
  background: var(--bg);
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 4px 0 24px;
}
.menu-close {
  background: none;
  border: 0;
  padding: 8px;
  color: inherit;
  font-size: 14px;
}
.menu-close span {
  font-size: 24px;
  margin-left: 12px;
}
.mobile-menu nav {
  display: grid;
  gap: 20px;
  padding: 64px 0;
}
.mobile-menu nav a {
  font-size: clamp(28px, 8vw, 48px);
  letter-spacing: -0.06em;
  text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] {
  color: var(--accent);
}
.mobile-contact {
  font-size: 14px;
  color: var(--text-muted);
}
.home-main,
.site-footer {
  max-width: 1600px;
  margin-inline: auto;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  min-height: 640px;
  min-height: calc(100svh - var(--navh));
  max-height: 850px;
  padding: 72px clamp(24px, 5vw, 80px) 64px;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-copy {
  min-width: 0;
  padding-bottom: 16px;
}
.hero-intro {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted);
}
h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}
.home-hero h1 {
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.07em;
  white-space: nowrap;
}
.hero-line {
  display: block;
}
.hero-line-copy {
  display: block;
}
/* Timings reviewed in Figma. Entrance runs once; content is never gated. */
@media (prefers-reduced-motion: no-preference) {
  .home-hero {
    --entrance-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --headline-rise: 36px;
    --headline-duration: 0.72s;
    --portrait-rise: 16px;
  }
  .home-hero .hero-line {
    overflow: clip;
    overflow-clip-margin: 0.12em;
  }
  .home-hero .hero-intro {
    animation: hero-intro-in 0.42s var(--entrance-ease) both;
  }
  .home-hero .hero-line-copy {
    animation: hero-line-in var(--headline-duration) var(--entrance-ease) 0.06s
      both;
  }
  .home-hero .hero-line:nth-child(2) .hero-line-copy {
    animation-delay: 0.18s;
  }
  .home-hero .hero-description {
    animation: hero-description-in 0.5s var(--entrance-ease) 0.24s both;
  }
  .home-hero .hero-actions {
    animation: hero-actions-in 0.4s var(--entrance-ease) 0.36s both;
  }
  .home-hero .portrait-frame {
    animation: hero-portrait-in 0.8s var(--entrance-ease) 0.08s both;
  }
  .home-hero .hero-symbol {
    animation: hero-tile-in 0.75s var(--entrance-ease) 0.22s both;
  }
  @keyframes hero-intro-in {
    from {
      transform: translateY(8px);
      opacity: 0.5;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes hero-line-in {
    from {
      transform: translateY(var(--headline-rise));
      opacity: 0.35;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes hero-description-in {
    from {
      transform: translateY(10px);
      opacity: 0.4;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes hero-actions-in {
    from {
      transform: translateY(6px);
      opacity: 0.65;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes hero-portrait-in {
    from {
      transform: translateY(var(--portrait-rise)) scale(1.025);
    }
    to {
      transform: none;
    }
  }
  @keyframes hero-tile-in {
    from {
      transform: translate(-10px, 8px) rotate(-8deg);
    }
    to {
      transform: none;
    }
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .home-hero {
    --headline-rise: 15px;
    --headline-duration: 0.62s;
    --portrait-rise: 10px;
  }
}
.accent-text {
  color: var(--accent);
}
.hero-description {
  max-width: 460px;
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-decoration: none;
  padding: 16px 22px;
  min-height: 52px;
  border: 1px solid var(--text);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
  white-space: nowrap;
}
.button.primary {
  background: var(--text);
  color: var(--bg);
}
.button.primary:hover {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #242422;
}
.button:active {
  transform: translateY(2px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}
.text-link .pixel-arrow,
.button .pixel-arrow {
  transition: transform 0.25s var(--ease);
}
.text-link:hover .pixel-arrow,
.button:hover .pixel-arrow {
  transform: translate(3px, -3px);
}
.text-link:hover {
  color: var(--accent);
}
.hero-visual {
  --hero-mark-size: 144px;
  --hero-mark-left: 0px;
  --hero-visual-inset: 40px;
  position: relative;
  align-self: center;
  padding: 0 0 48px 40px;
  min-width: 0;
}
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  object-position: center 27%;
}
.hero-symbol {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent-fill);
  width: 144px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-symbol .identity-mark {
  width: 96px;
  height: 96px;
  fill: #242422;
}
.hero-symbol .mark-center {
  fill: var(--bg);
}
.portrait-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin: 16px 0 0;
  padding-left: max(
    0px,
    calc(
      var(--hero-mark-size) + var(--hero-mark-left) + 20px -
        var(--hero-visual-inset)
    )
  );
  line-height: 1.7;
}
.section {
  padding: 104px clamp(24px, 5vw, 80px);
}
.section h2 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.section > p,
.studio-heading > p {
  max-width: 560px;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 24px;
}
.work-intro {
  padding-bottom: 48px;
}
.work-intro > .text-link {
  margin-top: 24px;
}
.work-stage {
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--border);
  scroll-margin-top: 0;
}
.work-track {
  display: block;
}
.project-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 72px;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 620px;
  padding: 88px clamp(24px, 5vw, 80px);
}
.project-category {
  font: 11px var(--mono);
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}
.project-copy h3 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.065em;
  margin-bottom: 24px;
}
.project-copy p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 34ch;
}
.project-copy .text-link {
  margin-top: 24px;
}
.project-image {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  padding: 0;
  border: 0;
}
.project-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}
.showcase-picture {
  display: block;
  width: 100%;
}
.showcase-picture img {
  aspect-ratio: 16 / 9;
}
.proof-gallery.showcase-gallery {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}
.proof-gallery.showcase-gallery figure {
  padding: 0;
  background: transparent;
}
.proof-gallery.showcase-gallery img {
  height: auto;
}
@media (max-width: 1023px) {
  .showcase-picture img {
    aspect-ratio: 5 / 4;
  }
}
.photo-project {
  padding: 0;
}
.photo-project img {
  object-fit: cover;
  object-position: center;
}
.studio-heading {
  max-width: 700px;
  margin-bottom: 48px;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.studio-grid > a {
  display: block;
  min-width: 0;
  text-decoration: none;
  overflow: hidden;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.25s;
}
.studio-grid > a:last-child {
  border-right: 0;
}
.studio-grid > a:hover {
  background: var(--surface);
}
.studio-feature {
  background: var(--surface);
}
.studio-card-copy,
.studio-small {
  padding: 32px;
}
.studio-card-copy h3,
.studio-small h3 {
  display: flex;
  justify-content: space-between;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.studio-grid p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 30ch;
}
.studio-grid h3 > span {
  font-size: 24px;
  color: var(--accent);
}
.studio-link {
  margin-top: 28px;
}
.monowire-art {
  height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}
.wire {
  position: absolute;
  height: 1px;
  background: var(--accent);
  width: 80%;
  left: 10%;
  top: 50%;
  transform-origin: center;
}
.wire-a {
  transform: rotate(-28deg);
}
.wire-b {
  transform: rotate(28deg);
}
.wire-node {
  position: absolute;
  width: 34px;
  height: 34px;
  top: calc(50% - 17px);
  background: var(--accent-fill);
}
.node-a {
  left: 10%;
  transform: rotate(45deg);
}
.node-b {
  left: calc(50% - 17px);
  background: var(--text);
}
.node-c {
  right: 10%;
  border-radius: 50%;
}
.tile-art {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.morphix-art {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  grid-template-rows: repeat(3, 32px);
  gap: 6px;
  align-content: center;
}
.morphix-art i {
  display: block;
  width: 32px;
  height: 32px;
  background: var(--surface-2);
}
.morphix-art i:nth-child(2),
.morphix-art i:nth-child(4),
.morphix-art i:nth-child(6),
.morphix-art i:nth-child(8) {
  background: var(--accent-fill);
}
.morphix-art i:nth-child(5) {
  background: var(--text);
}
.horizon-art {
  flex-direction: column;
  gap: 12px;
}
.horizon-art i {
  display: block;
  width: 150px;
  height: 16px;
  background: var(--accent-fill);
}
.horizon-art i:nth-child(2) {
  width: 110px;
  opacity: 0.7;
}
.horizon-art i:nth-child(3) {
  width: 70px;
  opacity: 0.4;
}
.research-preview {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.research-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 80px;
  margin-top: 56px;
}
.featured-paper {
  text-decoration: none;
}
.featured-paper h3 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.045em;
  max-width: 23ch;
}
.featured-paper > p {
  font-size: 14px;
  margin-top: 24px;
  color: var(--text-muted);
}
.featured-paper > .text-link {
  margin-top: 24px;
}
.research-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.research-side > a:not(.text-link) {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.research-side h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  max-width: 30ch;
}
.research-side > a > span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.research-side a:hover h3,
.featured-paper:hover h3 {
  color: var(--accent);
}
.about-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 88px;
  align-items: end;
}
.about-statement > p {
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.2;
  max-width: 25ch;
}
.about-preview-copy > p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 42ch;
}
.about-preview-copy > .text-link {
  margin-top: 24px;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px clamp(24px, 5vw, 80px) 0;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-main h2 {
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--text-muted);
}
.footer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 12px;
}
.footer-identity .identity-mark {
  width: 24px;
  height: 24px;
}
.footer-bottom > a:last-child {
  text-decoration: none;
}
/* Content pages: reading width, clear hierarchy, and existing article semantics. */
.content-main {
  max-width: 1280px;
  margin: auto;
  padding: 72px clamp(24px, 5vw, 72px) 104px;
}
.content-main .breadcrumb {
  font: 11px var(--mono);
  margin-bottom: 36px;
  color: var(--text-muted);
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.page-head,
.lib-hero {
  padding-bottom: 48px;
  max-width: 1000px;
}
.kicker,
.section-label {
  display: block;
  font: 11px var(--mono);
  color: var(--accent);
  margin-bottom: 20px;
}
.page-head h1,
.lib-hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  font-weight: 500;
  max-width: 18ch;
}
.dek,
.lede {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 65ch;
}
.page-head .dek,
.lib-hero .dek {
  margin-top: 28px;
  font-size: 16px;
  max-width: 60ch;
}
.status-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}
.content-main > article {
  max-width: 800px;
}
.content-main > article p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 75ch;
}
.content-main > article h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 64px 0 24px;
}
.content-main > article h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 40px 0 16px;
}
.content-main > article ul,
.content-main > article ol {
  padding-left: 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.9;
}
.content-main > article li {
  padding: 4px 0;
}
.content-main > article a {
  color: var(--accent);
}
.content-main > article > p:first-child {
  margin-top: 40px;
}
.content-main .lede {
  margin-bottom: 40px;
}
.project-main .lede {
  font-size: 21px;
}
.project-main > article {
  max-width: 850px;
}
.project-main .paper-card {
  margin-top: 32px;
}
.paper-card {
  display: block;
  position: relative;
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.paper-card h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 0 0 20px !important;
}
.paper-card:hover h2 {
  color: var(--accent);
}
.paper-card p.excerpt {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 !important;
}
.tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.tag {
  display: inline-block;
  color: var(--text-muted);
  font: 10px var(--mono);
  border: 1px solid var(--border);
  padding: 5px 8px;
}
.paper-meta {
  display: flex;
  gap: 24px;
  font: 10px var(--mono);
  color: var(--text-muted);
  margin-top: 24px;
  flex-wrap: wrap;
}
.read-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
}
.research-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
}
.research-library .lib-hero {
  grid-column: 1/-1;
  padding-bottom: 64px;
}
.research-library .paper-card:first-of-type {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  background: var(--surface);
  border: 0;
  padding: 40px;
  margin-bottom: 16px;
}
.research-library .paper-card:first-of-type .tags,
.research-library .paper-card:first-of-type h2 {
  grid-column: 1;
}
.research-library .paper-card:first-of-type .excerpt {
  grid-column: 2;
  grid-row: 1/3;
}
.research-library .paper-card:first-of-type .paper-meta {
  grid-column: 2;
}
.research-library .paper-card:first-of-type .read-link {
  grid-column: 1;
}
.research-library .paper-card h2 {
  font-size: 26px;
}
.range-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.range-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.range-item .org {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.range-item .role {
  font-size: 12px;
  color: var(--accent);
  margin: 10px 0 16px;
}
.range-item p {
  font-size: 14px !important;
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
}
.about-main > article {
  max-width: none;
}
.about-main > .lede {
  max-width: 850px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  background: var(--surface);
  padding: 40px;
  margin-block: 32px;
}
.stat .num {
  font-size: 52px;
  letter-spacing: -0.065em;
  line-height: 1.2;
}
.stat .label {
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 12px;
}
.stat .detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.other-strengths {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}
.pill {
  padding: 8px 12px;
  border: 1px solid var(--border);
}
.lang-list {
  display: flex;
  gap: 56px;
  padding: 24px 0;
}
.lang-item .name {
  font-size: 24px;
  margin-bottom: 8px;
}
.current-list,
.under-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.current-item,
.under-item {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.current-item .name,
.under-item .name {
  font-size: 25px;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.current-item p,
.under-item p {
  font-size: 14px !important;
  color: var(--text-muted);
  line-height: 1.8 !important;
}
.under-item {
  display: block;
  text-decoration: none;
}
.placeholder {
  padding: 40px;
  background: var(--surface);
  font-size: 15px;
  color: var(--text-muted);
}
.work-main .page-head {
  padding-bottom: 24px;
}
.proof-card {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.proof-card > h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.proof-card > p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 75ch;
  margin: 0 0 24px;
  line-height: 1.8;
}
.proof-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 8px;
}
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 24px;
}
.proof-gallery.four-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proof-gallery.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proof-gallery figure {
  min-width: 0;
  background: var(--surface);
  padding: 12px;
}
.proof-gallery img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 300px;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}
.proof-gallery figure:hover img {
  transform: scale(1.02);
}
.proof-gallery figcaption {
  font: 11px var(--mono);
  padding: 16px 8px 4px;
  color: var(--text-muted);
}
.proof-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.proof-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.proof-links a.primary {
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border: 0;
}
.proof-links a:hover {
  color: var(--accent);
}
.proof-metrics {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.m-num {
  font-size: 28px;
  letter-spacing: -0.045em;
}
.m-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.project-details {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
}
.project-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.project-details .proof-label {
  margin-top: 20px;
}
.project-details p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 70ch;
  color: var(--text-muted);
}
.terminal {
  margin-top: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 13px var(--mono);
}
.terminal-caption {
  font: 11px var(--mono);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.t-you {
  margin: 20px 0;
}
.t-sql {
  color: var(--accent);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px var(--mono);
  line-height: 1.8;
  margin: 20px 0;
}
.t-answer {
  color: var(--text-muted);
  margin-top: 20px;
}
.image-dialog {
  position: fixed;
  inset: 24px;
  width: calc(100% - 48px);
  max-width: 1200px;
  max-height: calc(100dvh - 48px);
  padding: 56px 20px 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}
.image-dialog::backdrop {
  background: rgba(28, 28, 24, 0.85);
}
.image-dialog img {
  display: block;
  max-height: calc(100dvh - 150px);
  width: 100%;
  object-fit: contain;
}
.image-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  color: var(--text);
  background: var(--surface);
  padding: 8px 16px;
  font-size: 13px;
}
/* Research diagrams, tables, citations and disclosures keep their original data. */
.research-article {
  max-width: 1080px;
}
.research-article > h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.15;
  max-width: 22ch;
}
.research-article > article {
  max-width: 860px;
}
.research-article > .dek {
  font-size: 18px;
  margin-top: 24px;
}
.byline-block {
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}
.byline-block .n {
  font-weight: 600;
  color: var(--text);
}
.byline-block .l {
  display: none;
}
.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font: 10px var(--mono);
  color: var(--text-muted);
  margin: 32px 0;
  overflow-wrap: anywhere;
}
.meta-row span:last-child {
  max-width: 100%;
}
.provenance {
  padding: 28px;
  background: var(--surface);
  margin: 32px 0 40px;
}
.p-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}
.p-row:last-child {
  margin: 0;
}
.p-label {
  font: 11px var(--mono);
  color: var(--accent);
}
.p-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
}
.toc {
  border: 1px solid var(--border);
  padding: 28px;
  margin: 40px 0;
}
.toc-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc a {
  font-size: 12px;
  text-decoration: none;
  color: var(--text-muted);
}
.toc a:hover {
  color: var(--accent);
}
.pull-quote {
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--accent);
  font-size: 22px !important;
  line-height: 1.6;
  letter-spacing: -0.02em;
  margin: 40px 0 !important;
}
.figure {
  margin: 40px 0;
}
.figure svg {
  width: 100%;
  height: auto;
  background: var(--surface);
  padding: 16px;
}
.figure figcaption,
.erosion figcaption {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px;
}
.figure svg text {
  font-family: var(--sans);
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 40px 0;
}
.compare .col {
  background: var(--surface);
  padding: 24px;
}
.col-head {
  font-size: 20px;
  margin-bottom: 24px;
}
.compare .row {
  margin: 20px 0;
}
.compare .k {
  font: 10px var(--mono);
  color: var(--accent);
  margin-bottom: 8px;
}
.compare .v {
  font-size: 13px;
  color: var(--text-muted);
}
.erosion {
  padding: 24px;
  background: var(--surface);
  margin: 40px 0;
}
.erosion-bars {
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 20px;
}
.erosion-bar {
  text-align: center;
}
.erosion-bar .pct {
  font-size: 22px;
}
.erosion-bar .fill {
  width: 28px;
  margin: 16px auto;
}
.erosion-bar .lbl {
  font: 10px var(--mono);
}
.expand {
  margin: 24px 0;
  background: var(--surface);
  padding: 20px 24px;
}
.expand summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.expand-body {
  margin-top: 24px;
}
.expand-body p {
  font-size: 14px !important;
}
.cite-block,
.cite-box {
  background: var(--surface);
  padding: 24px;
  margin: 32px 0;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.field {
  margin-top: 12px;
}
.field:first-child {
  margin: 0;
}
.timeline-track {
  display: grid;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  margin: 32px 0;
}
.t-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
}
.t-date {
  font: 11px var(--mono);
  color: var(--accent);
}
.t-label {
  font-size: 14px;
  font-weight: 600;
}
.t-desc {
  font-size: 12px;
  color: var(--text-muted);
  grid-column: 2;
}
.verdict,
.exp-box {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 40px 0;
}
.v-label,
.exp-label {
  font: 11px var(--mono);
  color: var(--accent);
  margin-bottom: 16px;
}
.verdict p {
  font-size: 15px !important;
}
.exp-step {
  margin: 24px 0;
}
.exp-name {
  font-size: 16px;
}
.exp-conditions {
  font-size: 13px;
  color: var(--text-muted);
}
.exp-n {
  color: var(--accent);
  font: 11px var(--mono);
  margin-bottom: 8px;
}
.status-pipeline {
  margin: 24px 0;
  padding: 24px;
  background: var(--surface);
}
.sp-label {
  font: 11px var(--mono);
  color: var(--text-muted);
}
.sp-chain {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
}
.sp-step {
  padding: 8px;
  border: 1px solid var(--border);
}
.sp-step.current {
  border-color: var(--accent);
  color: var(--accent);
}
.cmp,
.rmap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
  font-size: 12px;
  line-height: 1.7;
}
th {
  text-align: left;
  padding: 16px;
  background: var(--surface);
  font-weight: 600;
  vertical-align: top;
}
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td {
  border: 0;
}
.hl {
  color: var(--accent);
}
.status-chip {
  padding: 5px 8px;
  border: 1px solid var(--border);
  font: 10px var(--mono);
  white-space: nowrap;
}
.status-chip.priority,
.status-chip.complete {
  color: var(--accent);
  border-color: var(--accent);
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font: 10px var(--mono);
  margin: 16px 0;
}
.track-list {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}
.track-item {
  padding: 20px;
  background: var(--surface);
}
.track-status {
  font: 10px var(--mono);
  color: var(--accent);
  margin-bottom: 12px;
}
.track-title {
  font-size: 17px;
}
.refs {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.refs li {
  line-height: 1.8 !important;
  margin-bottom: 16px;
}
.ref-note {
  font-size: 12px;
  color: var(--text-muted);
}
.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.author-card .avatar {
  width: 48px;
  height: 48px;
}
.author-card img {
  border-radius: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.author-card .t {
  font-size: 11px;
  color: var(--text-muted);
}
.next-reading {
  margin-top: 24px;
  font-size: 13px;
}
.back-link {
  display: block;
  font-size: 12px;
  margin-top: 24px;
}
.research-article code {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}
.research-article pre {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  padding: 24px;
  font: 12px var(--mono);
  line-height: 1.8;
}
/* Demo retains its original fixed example, drag/drop and local notes. */
.demo-main {
  max-width: 1600px;
  margin: auto;
  padding: 64px clamp(20px, 4vw, 64px) 80px;
}
.page-demo .demo-main > .wrap {
  max-width: 800px;
  margin: auto;
}
.demo-main .brand h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.demo-main .sub {
  font-size: 16px;
  color: var(--text-muted);
  margin: 24px 0;
}
.demo-badge {
  display: inline-block;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 11px var(--mono);
  margin: 12px 0 32px;
}
.demo-main label {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
}
.job-desc-box,
.job-card {
  padding: 28px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.job-desc-box strong {
  color: var(--text);
  font-size: 16px;
}
.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.glass-slot {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--surface);
}
.glass-slot .icon {
  display: none;
}
.label-text {
  font-size: 14px;
  font-weight: 600;
}
.sub-text {
  font: 11px var(--mono);
  color: var(--text-muted);
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.locked-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 24px 0;
}
#run-btn {
  background: var(--text);
  color: var(--bg);
  padding: 16px 28px;
  min-height: 52px;
  border: 0;
  font-size: 14px;
}
#run-btn:hover {
  background: var(--accent-fill);
  color: #242422;
}
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 11;
}
#loading-overlay.show {
  display: flex;
}
.loading-text {
  font-size: 22px;
  margin-top: 24px;
}
.loading-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-page-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}
.demo-page-heading h1 {
  font-size: 36px;
}
.demo-page-heading .demo-badge {
  margin: 0;
  margin-left: auto;
}
.demo-main .job-card {
  margin: 24px 0;
}
.job-card .role {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.job-card .company {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.job-card p {
  font-size: 13px;
}
.job-card summary {
  font-size: 12px;
  cursor: pointer;
  margin-top: 20px;
}
.hint-bar {
  font-size: 13px;
  color: var(--text-muted);
  margin: 24px 0;
}
.demo-main .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}
.board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  min-width: 0;
  padding-bottom: 24px;
}
.column {
  flex: 0 0 270px;
  min-width: 0;
}
.column h2 {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.column .dot {
  display: none;
}
.count {
  font: 11px var(--mono);
  margin-left: auto;
}
.drop-zone {
  min-height: 180px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  padding: 12px;
}
.drop-zone.drag-over {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-color);
  padding: 16px;
  margin-bottom: 12px;
  cursor: grab;
}
.card.dragging {
  opacity: 0.35;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.card .brief {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.section-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.section-btns button {
  padding: 7px 10px;
  border: 1px solid var(--border);
  font-size: 10px;
  background: var(--surface);
  color: var(--text);
}
.section-btns button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.detail-panel {
  display: none;
  font-size: 12px;
  line-height: 1.8;
  background: var(--surface);
  padding: 12px;
  margin: 12px 0;
}
.detail-panel.open {
  display: block;
}
.detail-panel ul {
  padding-left: 16px;
}
.q-period {
  font: 10px var(--mono);
  color: var(--accent);
  margin: 12px 0;
}
.notes-label {
  font-size: 11px !important;
  display: block;
  margin-top: 20px;
}
.notes-box {
  width: 100%;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  resize: vertical;
  min-height: 72px;
}
.sidebar {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sidebar .badge {
  display: block;
  font: 10px var(--mono);
  color: var(--accent);
  margin-bottom: 16px;
}
.sidebar h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.sidebar p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.g-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  font-size: 12px;
  width: 100%;
}
.flow {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 24px;
}
.flow > div {
  margin: 12px 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100% - 48px);
  padding: 16px 24px;
  z-index: 12;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (min-width: 1024px) {
  .work-stage.is-pinned .work-track {
    display: flex;
  }
  .work-stage.is-pinned .project-slide {
    height: 100svh;
    padding-top: 112px;
    padding-bottom: 48px;
  }
  .work-stage.is-pinned .project-image img {
    max-height: calc(100svh - 210px);
  }
}
@media (min-width: 1600px) {
  .home-hero {
    min-height: 760px;
  }
  .hero-visual {
    --hero-mark-left: 32px;
    padding-right: 32px;
  }
  .portrait-frame {
    max-width: 360px;
  }
  .hero-symbol {
    left: 32px;
  }
}
@media (max-width: 1200px) {
  .identity {
    padding-right: 20px;
    font-size: 15px;
  }
  .desktop-nav a {
    padding-inline: 18px;
  }
  .hero-visual {
    --hero-mark-size: 112px;
    --hero-visual-inset: 16px;
    padding-left: 16px;
  }
  .home-hero {
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .home-hero h1 {
    font-size: 6.25vw;
  }
  .portrait-frame {
    max-width: 290px;
  }
  .hero-symbol {
    width: 112px;
    height: 112px;
  }
  .hero-symbol .identity-mark {
    width: 80px;
    height: 80px;
  }
  .portrait-caption {
    margin-left: 0;
  }
  .project-slide {
    gap: 48px;
  }
  .research-preview-grid {
    gap: 48px;
  }
  .studio-card-copy,
  .studio-small {
    padding: 24px;
  }
  .stats-grid {
    gap: 24px;
    padding: 32px;
  }
  .stat .num {
    font-size: 40px;
  }
}
@media (max-width: 1023px) {
  .work-track {
    display: block;
  }
  .project-slide {
    min-height: 0;
    padding: 64px 40px;
    border-bottom: 1px solid var(--border);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
  }
  .project-slide:last-child {
    border: 0;
  }
  .project-image img {
    height: auto;
  }
  .home-hero {
    min-height: 640px;
    max-height: none;
  }
  .home-hero h1 {
    font-size: 6.2vw;
  }
  .hero-description {
    font-size: 15px;
    max-width: 350px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-visual {
    --hero-visual-inset: 0px;
    padding-left: 0;
  }
  .studio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .studio-feature {
    grid-column: 1/-1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .monowire-art {
    height: 240px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .studio-card-copy {
    align-self: center;
  }
  .studio-grid > a:nth-child(3) {
    border: 0;
  }
  .section {
    padding-block: 80px;
  }
  .about-preview {
    gap: 48px;
  }
  .desktop-nav a {
    font-size: 12px;
    padding-inline: 14px;
  }
  .identity {
    font-size: 14px;
  }
  .theme-toggle {
    padding-inline: 14px;
  }
  .demo-main .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    max-width: 600px;
  }
}
@media (max-width: 767px) {
  :root {
    --navh: 68px;
  }
  .site-header {
    padding-inline: 20px;
    flex-wrap: wrap;
  }
  .identity {
    font-size: 15px;
    flex: 1;
    padding-right: 0;
  }
  .identity-mark {
    width: 32px;
    height: 32px;
  }
  .desktop-nav {
    display: none;
  }
  .nav-controls {
    border: 0;
  }
  .theme-toggle {
    font-size: 10px;
    padding-inline: 12px;
  }
  .menu-toggle:not([hidden]) {
    display: flex;
  }
  .site-header:has(.menu-toggle[hidden]) {
    height: auto;
    min-height: 68px;
  }
  .site-header:has(.menu-toggle[hidden]) .desktop-nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
  }
  .site-header:has(.menu-toggle[hidden]) .desktop-nav a {
    border: 0;
    padding: 12px 0;
  }
  .site-header:has(.menu-toggle[hidden])
    .desktop-nav
    a[aria-current="page"]::after {
    left: 0;
    right: 0;
    bottom: 4px;
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 40px;
    padding: 40px 24px 48px;
    max-height: none;
  }
  .home-hero h1 {
    font-size: clamp(36px, 8.9vw, 64px);
    white-space: nowrap;
    letter-spacing: -0.065em;
  }
  .hero-intro {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .hero-description {
    margin-top: 24px;
    font-size: 14px;
    max-width: 40ch;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 20px;
  }
  .hero-copy {
    padding: 0;
  }
  .button {
    font-size: 12px;
    padding: 14px 18px;
    min-height: 48px;
    gap: 16px;
  }
  .text-link {
    font-size: 12px;
    gap: 16px;
  }
  .hero-visual {
    width: 100%;
    padding: 0 0 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px;
  }
  .portrait-frame {
    width: 100%;
    max-width: 220px;
    grid-column: 2;
    grid-row: 1/3;
    aspect-ratio: 3/4;
  }
  .hero-symbol {
    position: relative;
    width: 100%;
    max-width: 110px;
    height: auto;
    aspect-ratio: 1;
    grid-column: 1;
    grid-row: 1;
    left: auto;
    bottom: auto;
  }
  .hero-symbol .identity-mark {
    width: 64%;
    height: 64%;
  }
  .portrait-caption {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    margin: 0;
    padding-left: 0;
    align-self: start;
  }
  .section {
    padding: 64px 24px;
  }
  .section h2 {
    font-size: 40px;
  }
  .section > p,
  .studio-heading > p {
    font-size: 14px;
    max-width: 38ch;
  }
  .work-intro {
    padding-bottom: 32px;
  }
  .project-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 24px;
  }
  .project-copy h3 {
    font-size: 36px;
    margin-bottom: 16px;
  }
  .project-copy p {
    max-width: 40ch;
    font-size: 13px;
  }
  .project-copy .text-link {
    margin-top: 16px;
  }
  .project-category {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .project-image {
    padding: 0;
  }
  .project-image img {
    height: auto;
  }
  .photo-project {
    padding: 0;
  }
  .studio-heading {
    margin-bottom: 32px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-feature {
    display: block !important;
    grid-template-columns: 1fr;
  }
  .monowire-art {
    height: 190px;
    border: 0;
    border-bottom: 1px solid var(--border);
  }
  .studio-grid > a {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .studio-grid > a:nth-child(3) {
    border: 0;
  }
  .tile-art {
    height: 150px;
    margin-bottom: 24px;
  }
  .studio-card-copy,
  .studio-small {
    padding: 24px;
  }
  .research-preview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    margin-top: 32px;
  }
  .featured-paper h3 {
    font-size: 28px;
  }
  .research-side h3 {
    font-size: 20px;
  }
  .about-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .about-statement > p {
    font-size: 32px;
  }
  .about-preview-copy > p {
    font-size: 14px;
  }
  .site-footer {
    padding: 48px 24px 0;
  }
  .footer-main {
    display: block;
    padding-bottom: 40px;
  }
  .footer-main h2 {
    font-size: 40px;
  }
  .footer-contact {
    margin-top: 32px;
    gap: 8px;
  }
  .footer-contact a {
    font-size: 13px;
  }
  .footer-bottom {
    gap: 20px;
    padding: 24px 0;
    align-items: center;
  }
  .footer-bottom > span {
    order: 3;
    flex: 0 0 100%;
  }
  .content-main {
    padding: 40px 24px 64px;
  }
  .page-head,
  .lib-hero {
    padding-bottom: 32px;
  }
  .page-head h1,
  .lib-hero h1 {
    font-size: 42px;
  }
  .dek,
  .lede {
    font-size: 16px !important;
    line-height: 1.8;
  }
  .content-main > article p {
    font-size: 14px;
  }
  .content-main > article h2 {
    font-size: 27px;
    margin-top: 48px;
  }
  .research-library {
    grid-template-columns: minmax(0, 1fr);
  }
  .research-library .paper-card:first-of-type {
    display: block;
    padding: 24px;
  }
  .research-library .paper-card:first-of-type .excerpt {
    margin-top: 20px !important;
  }
  .research-library .lib-hero {
    padding-bottom: 40px;
  }
  .paper-card {
    padding: 32px 0;
  }
  .paper-card h2 {
    font-size: 23px !important;
  }
  .range-list,
  .current-list,
  .under-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .range-item {
    padding: 20px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 24px;
  }
  .stat .num {
    font-size: 36px;
  }
  .stat .label {
    font-size: 12px;
  }
  .stat .detail {
    font-size: 11px;
  }
  .lang-list {
    gap: 24px;
    flex-wrap: wrap;
  }
  .lang-item .name {
    font-size: 20px;
  }
  .proof-card {
    padding: 40px 0;
    margin-top: 24px;
  }
  .proof-gallery,
  .proof-gallery.four-up,
  .proof-gallery.two-up {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 32px;
  }
  .proof-gallery img {
    height: 250px;
  }
  .proof-card > p {
    font-size: 14px;
  }
  .proof-metrics {
    gap: 24px;
  }
  .m-num {
    font-size: 22px;
  }
  .project-details {
    padding: 16px;
  }
  .research-article > h1 {
    font-size: 36px;
  }
  .byline-block {
    gap: 12px;
  }
  .meta-row {
    font-size: 9px;
  }
  .provenance {
    padding: 20px;
  }
  .p-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  .toc {
    padding: 20px;
  }
  .toc ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .pull-quote {
    font-size: 19px !important;
    padding-left: 20px;
  }
  .timeline-track {
    padding: 16px;
  }
  .t-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .t-desc {
    grid-column: 1;
  }
  .author-card {
    align-items: start;
  }
  .demo-main {
    padding: 40px 20px;
  }
  .demo-main .brand h1 {
    font-size: 36px;
  }
  .candidates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .job-desc-box,
  .job-card {
    padding: 20px;
  }
  .demo-page-heading h1 {
    font-size: 28px;
  }
  .demo-page-heading .demo-badge {
    margin-left: 0;
  }
  .demo-main .layout {
    gap: 24px;
  }
  .column {
    flex-basis: 270px;
  }
  .image-dialog {
    inset: 12px;
    width: calc(100% - 24px);
    padding: 56px 12px 12px;
    max-height: calc(100dvh - 24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .spinner {
    border-style: dashed;
  }
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--border-strong) var(--surface);
}
.table-scroll table {
  margin: 0;
  border: 0;
  overflow: visible;
}
