@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-medium-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-semibold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Alien Edifice";
  src: url("../fonts/alien-edifice-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "Alien Edifice";
  src: url("../fonts/alien-edifice-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Alien Edifice";
  src: url("../fonts/alien-edifice-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "Alien Edifice";
  src: url("../fonts/alien-edifice-bold-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-deep: #030406;
  --surface: #0d0f14;
  --surface-raised: #12151c;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --text: #f4f6f8;
  --text-dim: #a7adb8;
  --text-faint: #7f8794;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #83f4ff;
  --blue: #7a9cff;
  --violet: #b593ff;
  --green: #8dffc3;
  --headline: "Anton", "Impact", "Arial Narrow", sans-serif;
  --display: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --brand: "Alien Edifice", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--display);
  --shell: min(1400px, calc(100vw - 80px));
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 8%, rgba(122, 156, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 18% 44%, rgba(131, 244, 255, 0.045), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

body.home-page {
  isolation: isolate;
  background: var(--bg);
}

.home-page main,
.home-page .site-footer {
  position: relative;
  z-index: 1;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

code, pre, kbd, samp {
  font-family: var(--mono);
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

::selection {
  background: var(--cyan);
  color: #071014;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 11px 16px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  font: 600 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.58), transparent);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(7, 8, 11, 0.87);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark-wrap {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-type {
  display: grid;
  gap: 2px;
}

.brand-type strong {
  font-family: var(--brand);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.brand-type small {
  color: var(--text-faint);
  font: 500 9px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 42px);
  color: var(--text-dim);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.primary-nav > a:not(.nav-contact) {
  position: relative;
  padding-block: 10px;
  transition: color 180ms ease;
}

.primary-nav > a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--cyan);
  transition: transform 240ms var(--ease);
}

.primary-nav > a:hover {
  color: var(--text);
}

.primary-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-contact:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #061013;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 1px;
  margin-block: 5px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 78px;
  display: flex;
  align-items: center;
}

body :is(main, .visit-dialog) :is(h1, h2, h3, h4, h5, h6, .project-identity strong, .private-proof-note strong) {
  font-family: var(--headline);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(56vw, 800px);
}

.eyebrow,
.section-kicker {
  color: var(--text-faint);
  font: 500 11px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 27px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(141, 255, 195, 0.08), 0 0 20px rgba(141, 255, 195, 0.38);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(54px, 6.5vw, 104px);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.057em;
  text-wrap: balance;
}

.hero h1 span,
body .headline-gradient {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 52%, var(--violet));
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
}

.hero-lede {
  max-width: 61ch;
  margin-top: 31px;
  color: var(--text-dim);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 350;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 20px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  border-color: var(--cyan);
  background: var(--cyan);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--cyan);
  background: rgba(131, 244, 255, 0.06);
}

.hero-note {
  display: flex;
  max-width: 560px;
  gap: 16px;
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font: 400 11px/1.65 var(--mono);
  letter-spacing: 0.03em;
}

.hero-note span {
  color: var(--cyan);
}

.video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: var(--hero-visibility, 1);
}

.video-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--hero-visibility, 1);
  background:
    linear-gradient(90deg, var(--bg) 0, rgba(7, 8, 11, 0.97) 31%, rgba(7, 8, 11, 0.38) 58%, transparent 78%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.34), transparent 34%, rgba(7, 8, 11, 0.14));
}

.hero-video {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62.5vw;
  height: 62.5vh;
  object-fit: contain;
  object-position: right bottom;
  filter: contrast(1.07) brightness(0.94);
}

.hero-poster {
  display: block;
}

.hero-motion {
  /* Keep the independent poster visible until JS confirms a rendered frame. */
  opacity: 0;
}

.principles {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(3, 4, 6, 0.74);
}

.principles-track {
  display: grid;
  width: var(--shell);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.principles-track span {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  color: var(--text-dim);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.principles-track i {
  display: none;
}

.section {
  padding-block: clamp(100px, 11vw, 168px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(44px, 8vw, 128px);
  align-items: end;
  margin-bottom: clamp(52px, 6vw, 84px);
  padding-top: 23px;
  border-top: 1px solid var(--line-strong);
}

.section-intro h2,
.contact-panel h2 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-intro > p {
  max-width: 54ch;
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.62;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: clamp(28px, 3vw, 46px);
  overflow: hidden;
  background: var(--bg);
  transition: background 300ms ease;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 420ms var(--ease);
}

.capability-card:hover::before {
  width: 100%;
}

.card-index {
  color: var(--text-faint);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
}

.capability-icon {
  display: grid;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  margin-top: 68px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font: 400 23px/1 var(--mono);
}

.capability-card h3 {
  margin-top: 28px;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 480;
  letter-spacing: -0.025em;
}

.capability-card > p {
  max-width: 40ch;
  margin-top: 17px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
}

.capability-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding: 28px 0 0;
  list-style: none;
}

.capability-card li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  padding-block: clamp(64px, 7vw, 100px);
  background: transparent;
}

.work-section > .shell { position: relative; }

.matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: 0.34;
  mask-image: radial-gradient(ellipse at 50% 55%, rgb(0 0 0 / 0.28) 12%, #000 85%);
}

.matrix-rain span {
  position: absolute;
  top: 0;
  color: #ededed;
  font: 400 10px/13px var(--mono);
  white-space: pre;
  mask-image: linear-gradient(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.6) 40%, #000 90%);
  animation: matrix-fall var(--rain-duration) linear var(--rain-delay) infinite;
  animation-play-state: paused;
}

.is-ambient-active .matrix-rain span { animation-play-state: running; }
.matrix-rain.is-rain-active span { animation-play-state: running; }
.video-backdrop > .matrix-rain { opacity: 0; transition: opacity 250ms ease; }
.video-backdrop > .matrix-rain.is-rain-visible { opacity: .34; }

@keyframes matrix-fall {
  from { transform: translateY(-100%); }
  to { transform: translateY(var(--matrix-height)); }
}

@media (prefers-reduced-motion: reduce) {
  .matrix-rain { display: none; }
}

.pill-title {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(16px, 3vw, 40px);
  text-align: center;
  font-size: clamp(38px, 6.5vw, 88px);
  font-weight: 430;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.pill-scene {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.pill-scene > picture { display: block; width: 100%; height: 100%; }

.pill-bear {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  /* The artwork carries real alpha; no luminance mask or whitening filter. */
}

.pill-choice {
  position: absolute;
  z-index: 1;
  left: var(--pill-x);
  top: var(--pill-y);
  width: 27%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  cursor: pointer;
}

.pill-choice::before {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--pill-glow), 0.48), rgba(var(--pill-glow), 0.2) 38%, transparent 72%);
  opacity: 0.85;
  transition: opacity 180ms ease-out;
  pointer-events: none;
  content: "";
}

.pill-choice:is(:hover, :focus-visible)::before {
  opacity: 1;
}

.pill-choice-red {
  --pill-glow: 255, 55, 78;
  --pill-x: 26%;
  --pill-y: 69%;
  --pill-cue-delay: 0s;
}

.pill-choice-blue {
  --pill-glow: 45, 145, 255;
  --pill-x: 74%;
  --pill-y: 69%;
  --pill-cue-delay: 1.1s;
}

.pill-choice img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.pill-hologram {
  position: relative;
  display: block;
  transform-origin: 50% 65%;
  filter: drop-shadow(0 0 5px rgba(var(--pill-glow), .45));
  animation: pill-invitation 6s ease-in-out var(--pill-cue-delay) infinite;
  animation-play-state: paused;
}

.pill-hologram::after {
  position: absolute;
  inset: 5% 0;
  --cue-ink: rgba(var(--pill-glow), .9);
  background:
    linear-gradient(var(--cue-ink), var(--cue-ink)) top left / 16% 1px,
    linear-gradient(var(--cue-ink), var(--cue-ink)) top left / 1px 16%,
    linear-gradient(var(--cue-ink), var(--cue-ink)) top right / 16% 1px,
    linear-gradient(var(--cue-ink), var(--cue-ink)) top right / 1px 16%,
    linear-gradient(var(--cue-ink), var(--cue-ink)) bottom left / 16% 1px,
    linear-gradient(var(--cue-ink), var(--cue-ink)) bottom left / 1px 16%,
    linear-gradient(var(--cue-ink), var(--cue-ink)) bottom right / 16% 1px,
    linear-gradient(var(--cue-ink), var(--cue-ink)) bottom right / 1px 16%;
  background-repeat: no-repeat;
  opacity: .65;
  pointer-events: none;
  transition: opacity 160ms ease-out;
  content: "";
}

.is-pill-cue-active .pill-hologram { animation-play-state: running; }
.pill-choice:is(:hover, :focus-visible, :active) .pill-hologram::after { opacity: 1; }
.pill-choice:active .pill-hologram { scale: .97; }

@keyframes pill-invitation {
  0%, 3%, 17%, 100% { transform: translateY(0) scale(1); }
  8% { transform: translateY(-5px) scale(1.08); }
  12% { transform: translateY(-2px) scale(1.035); }
}

@media (max-width: 767px) {
  .pill-choice { width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .pill-hologram { animation: none; }
  .pill-hologram::after { transition: none; }
}

.pill-glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(calc(var(--glitch-strength, 0) * -4px) 0 0 #ff255566)
    drop-shadow(calc(var(--glitch-strength, 0) * 4px) 0 0 #22bbff66)
    drop-shadow(0 0 5px rgba(var(--pill-glow), 0.55));
}

.pill-choice:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}

.pill-choice-red:focus-visible {
  color: #ff565e;
}

.pill-choice-blue:focus-visible {
  color: #5ebeff;
}

.pill-stage {
  position: relative;
  margin-inline: auto;
}

.pill-tethers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pill-tether {
  fill: none;
  stroke: var(--dossier-color);
  stroke-width: 1.5;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
  opacity: var(--curtain-progress, 1);
  filter: drop-shadow(0 0 4px var(--dossier-color));
}

.pill-dossier-red,
.pill-tether-red {
  --dossier-color: #ff686e;
  --dossier-rgb: 255, 104, 110;
}

.pill-dossier-blue,
.pill-tether-blue {
  --dossier-color: #72c8ff;
  --dossier-rgb: 114, 200, 255;
}

.pill-dossiers {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.pill-dossier {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(var(--dossier-rgb), 0.38);
  background: radial-gradient(circle, rgba(var(--dossier-rgb), 0.18) 0.7px, transparent 1px) 0 0 / 6px 6px, #08090b;
  box-shadow: inset 0 0 32px rgba(var(--dossier-rgb), 0.035);
}

.pill-dossier::before,
.pill-dossier::after {
  position: absolute;
  right: -1px;
  left: -1px;
  height: 5px;
  border-inline: 2px solid var(--dossier-color);
  content: "";
  pointer-events: none;
}

.pill-dossier::before { top: -1px; }
.pill-dossier::after { bottom: -1px; }

.pill-dossier h3 {
  margin-top: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.pill-dossier-intro {
  margin-top: 7px;
  color: #b8bdc6;
  font-size: 12px;
  line-height: 1.5;
}

.pill-dossier ul {
  display: grid;
  gap: 11px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: #d6dce3;
  font: 400 11px/1.5 var(--mono);
}

.pill-dossier li {
  position: relative;
  padding-left: 13px;
}

.pill-dossier li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--dossier-color);
  box-shadow: 0 0 6px rgba(var(--dossier-rgb), 0.6);
  content: "";
}

.pill-dossier li strong { font-weight: 500; }

.pill-dossier-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px dotted rgba(var(--dossier-rgb), 0.5);
  color: var(--dossier-color);
  font: 500 9px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.pill-dossier-link:hover { color: #fff; }

.is-curtain-ready .pill-dossier {
  clip-path: inset(calc((1 - var(--curtain-progress, 0)) * 100%) -6px -6px);
  opacity: min(1, calc(var(--curtain-progress, 0) * 3));
}

@media (min-width: 600px) and (max-width: 900px) {
  .pill-dossiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px), (max-height: 599px) {
  .pill-tethers { display: none; }
}

@media (min-width: 901px) and (min-height: 600px) {
  .work-section {
    --pill-padding: clamp(12px, 2svh, 24px);
    --pill-title-size: clamp(38px, min(6.5vw, 7svh), 88px);
    --pill-gap: clamp(8px, 1.5svh, 20px);
    --pill-dossier-width: clamp(180px, 20vw, 280px);
    --pill-dossier-gap: clamp(10px, 1.25vw, 20px);
    --pill-scene-size: calc(100svh - 96px - var(--pill-title-size) * 1.1 - var(--pill-gap) - var(--pill-padding) * 2 - 2px);
    padding-block: var(--pill-padding);
  }

  .work-section > .shell {
    width: min(1840px, calc(100% - 80px));
  }

  .pill-title {
    font-size: var(--pill-title-size);
    margin-bottom: var(--pill-gap);
  }

  .pill-stage {
    width: min(100%, calc(var(--pill-scene-size) + var(--pill-dossier-width) * 2 + var(--pill-dossier-gap) * 2));
  }

  .pill-scene {
    /* Fit the complete scene below the header, with room for both projections. */
    width: min(var(--pill-scene-size), calc(100% - var(--pill-dossier-width) * 2 - var(--pill-dossier-gap) * 2));
  }

  .pill-dossiers { display: contents; }

  .pill-dossier {
    position: absolute;
    bottom: calc(31% - 24px);
    z-index: 2;
    width: var(--pill-dossier-width);
  }

  .pill-dossier-red { left: 0; }
  .pill-dossier-blue { right: 0; }
}

@media (min-width: 901px) and (max-width: 1100px) and (min-height: 600px) {
  .work-section > .shell { width: calc(100% - 48px); }
  .pill-dossier { padding: 15px; }
  .pill-dossier ul { font-size: 10px; gap: 8px; margin-block: 16px; }
  .pill-dossier-intro { font-size: 11px; }
}

@media (min-width: 768px) and (max-height: 599px) {
  .work-section { padding-block: 48px; }
  .pill-scene { width: min(100%, 62svh, 480px); }
  .pill-dossiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.work-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.work-path {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-rows: auto 205px minmax(0, 1fr) auto;
  padding: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  background: var(--bg-deep);
}

.work-path::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent 72%);
  content: "";
}

.work-path-private::before {
  background: linear-gradient(90deg, var(--violet), var(--blue), transparent 72%);
}

.work-path-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-faint);
  font: 500 9px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.work-path-head b {
  color: var(--green);
  font-weight: 500;
}

.work-path-private .work-path-head b {
  color: var(--violet);
}

.private-work-mark {
  position: relative;
  display: grid;
  width: 164px;
  height: 164px;
  place-self: center;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(181, 147, 255, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.015);
  color: var(--text);
}

.private-work-mark::before,
.private-work-mark::after {
  position: absolute;
  width: 28px;
  height: 1px;
  background: var(--violet);
  content: "";
}

.private-work-mark::before {
  top: -1px;
  left: 18px;
}

.private-work-mark::after {
  right: 18px;
  bottom: -1px;
}

.private-work-mark span {
  font: 400 54px/1 var(--headline);
  font-synthesis: none;
  letter-spacing: 0;
}

.private-work-mark i {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 1px solid rgba(181, 147, 255, 0.18);
  transform: rotate(45deg);
}

.work-path-copy {
  align-self: end;
}

.work-path-copy h3 {
  margin-top: 14px;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 430;
  line-height: 1;
  letter-spacing: -0.04em;
}

.work-path-copy > p:not(.section-kicker) {
  max-width: 50ch;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
}

.work-path-copy .project-meta {
  margin-top: 24px;
}

.work-path-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font: 500 10px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color 180ms ease, color 180ms ease;
}

.work-path-link:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.project-icon-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  width: min(100%, 520px);
  min-height: 184px;
  place-self: center;
}

.project-icon-showcase figure {
  display: grid;
  grid-template-rows: auto 34px;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.project-icon-showcase figcaption {
  color: var(--text-dim);
  font: 500 12px/1.4 var(--mono);
  text-align: center;
}

.project-icon-token {
  display: grid;
  width: min(100%, 126px);
  aspect-ratio: 1;
  padding: 9px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 29px;
  background: rgba(9, 12, 16, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.project-icon-token img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.project-workbench {
  display: grid;
  scroll-margin-top: 96px;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
  min-height: 760px;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24);
}

.project-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.project-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-count span {
  color: var(--text);
}

.project-select {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: #090b0f;
  text-align: left;
  cursor: pointer;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.project-select::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  transform: scaleY(0);
  background: var(--cyan);
  transition: transform 240ms var(--ease);
}

.project-select:hover,
.project-select.is-active {
  background: #0d1116;
  box-shadow: none;
}

.project-select:hover::before,
.project-select.is-active::before {
  transform: scaleY(1);
}

.project-select-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  color: var(--text-faint);
  font: 500 10px/1 var(--mono);
}

.live-chip {
  padding: 5px 7px;
  border: 1px solid rgba(141, 255, 195, 0.3);
  color: var(--green);
  font: 600 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-identity {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 23px;
}

.project-identity > img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.project-identity > span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-identity strong {
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 480;
  letter-spacing: -0.035em;
}

.project-identity small {
  overflow: hidden;
  color: var(--text-faint);
  font: 500 8px/1.2 var(--mono);
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.project-summary {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.58;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.project-meta span {
  padding: 6px 7px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  font: 500 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-open {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--text);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.project-proof {
  margin-top: auto;
  padding: 27px 26px 30px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.55;
}

.project-proof p {
  margin-bottom: 11px;
  color: var(--text);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-proof > span {
  display: block;
}

.project-proof a {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-dim);
  font: 500 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 180ms ease, border-color 180ms ease;
}

.project-proof a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.browser-frame {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.browser-tabline {
  display: grid;
  min-height: 38px;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #08090c;
  color: var(--text-faint);
  font: 500 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.browser-session,
.browser-state {
  padding-inline: 14px;
}

.browser-session {
  border-right: 1px solid var(--line);
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 15px;
  color: var(--text-dim);
}

.browser-tab i {
  width: 5px;
  height: 5px;
  background: var(--text-faint);
}

.browser-state {
  transition: color 180ms ease;
}

.browser-frame.is-live .browser-state {
  color: var(--green);
}

.browser-bar {
  display: grid;
  min-width: 0;
  min-height: 52px;
  grid-template-columns: 36px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #0d0f13;
}

.browser-backmark {
  color: var(--text-faint);
  font: 500 13px/1 var(--mono);
  text-align: center;
}

.browser-address {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.27);
  color: var(--text-faint);
  font: 400 10px/1 var(--mono);
}

.browser-address span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-mark {
  color: var(--green);
}

.browser-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.browser-actions button,
.browser-actions a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: transparent;
  color: var(--text-faint);
  font: 500 15px/1 var(--mono);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.browser-actions button:hover:not(:disabled),
.browser-actions a:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.browser-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.browser-viewport {
  position: relative;
  min-height: 705px;
  overflow: hidden;
  background: #080a0e;
}

.browser-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    #080a0e;
  background-size: 40px 40px;
}

.project-seal {
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 34px;
  padding: 10px;
  place-items: center;
  border: 1px solid rgba(131, 244, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
}

.project-seal::before,
.project-seal::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.project-seal img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

.browser-frame.is-booting .browser-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-top: 1px solid var(--cyan);
  background: linear-gradient(180deg, rgba(131, 244, 255, 0.09), transparent 16%);
  animation: lab-scan 780ms var(--ease) both;
}

.browser-placeholder h3 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 430;
  letter-spacing: -0.04em;
}

.browser-placeholder > p:not(.section-kicker) {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
}

.browser-placeholder .button {
  margin-top: 30px;
}

.browser-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #080a0e;
  color: var(--text-dim);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.browser-loading[hidden] {
  display: none;
}

.browser-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation: status-pulse 1.2s ease-in-out infinite;
}

.browser-viewport iframe {
  width: 100%;
  height: 100%;
  min-height: 705px;
  border: 0;
  background: #fff;
}

.noscript-preview {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  font-size: 13px;
}

.noscript-preview a {
  text-decoration: underline;
}

.method-list {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 140px;
  gap: 30px;
  align-items: start;
  padding: 36px 4px 38px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease, padding-inline 280ms var(--ease);
}

.method-list li:hover {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.method-list li > span {
  color: var(--cyan);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
}

.method-list h3 {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 450;
  letter-spacing: -0.025em;
}

.method-list p {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
}

.method-list b {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-section {
  padding-top: 0;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(50px, 9vw, 140px);
  padding: clamp(40px, 6vw, 86px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 85% 50%, rgba(131, 244, 255, 0.1), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}

.contact-panel::after {
  content: "01000010 01000010";
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.04);
  font: 600 clamp(26px, 4vw, 60px)/1 var(--mono);
  letter-spacing: 0.08em;
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.contact-copy > p:first-child {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.62;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 30px;
  padding: 18px 0;
  border-block: 1px solid var(--line-strong);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 450;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-email:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.contact-privacy {
  margin-top: 13px;
  color: var(--text-faint);
  font: 400 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr) auto;
  gap: 60px;
  align-items: start;
  padding-block: 55px;
}

.footer-wordmark {
  display: grid;
  gap: 5px;
  width: max-content;
}

.footer-wordmark strong {
  font-family: var(--brand);
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.footer-wordmark span {
  color: var(--text-faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-main > p {
  max-width: 42ch;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-dim);
  font: 500 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font: 400 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Open-source project lab */
.project-page {
  background: #06070a;
}

.projects-hero {
  min-height: 680px;
  padding-top: 176px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.58fr);
  gap: clamp(60px, 10vw, 160px);
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
}

.projects-hero .eyebrow {
  margin-bottom: 34px;
}

.projects-hero h1 {
  max-width: 900px;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 410;
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.projects-hero h1 span {
  color: #aebfff;
}

.projects-hero-copy > p {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.62;
}

.projects-hero-copy dl {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.projects-hero-copy dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.projects-hero-copy dt {
  color: var(--text-faint);
}

.projects-hero-copy dd {
  margin: 0;
  color: var(--text);
}

.lab-section {
  padding-block: clamp(100px, 10vw, 150px);
}

.lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
  margin-bottom: 58px;
}

.lab-heading h2,
.anatomy-title h2 {
  max-width: 800px;
  margin-top: 17px;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lab-heading > p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
}

.project-lab {
  min-height: 820px;
  box-shadow: none;
}

.project-lab .browser-viewport,
.project-lab .browser-viewport iframe {
  min-height: 729px;
}

.project-anatomy {
  padding-bottom: clamp(110px, 12vw, 180px);
}

.anatomy-title {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 48px;
  padding-top: 27px;
  border-top: 1px solid var(--line-strong);
}

.anatomy-title h2 {
  margin-top: 0;
}

.project-anatomy ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.project-anatomy li {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.project-anatomy li:last-child {
  border-right: 0;
}

.project-anatomy li > span {
  color: var(--cyan);
  font: 500 10px/1 var(--mono);
}

.project-anatomy li div {
  margin-top: 76px;
}

.project-anatomy h3 {
  font-size: 24px;
  font-weight: 470;
  letter-spacing: -0.025em;
}

.project-anatomy li p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.62;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}

.project-seal {
  position: relative;
}

.project-seal::before {
  top: -1px;
  left: -10px;
}

.project-seal::after {
  right: -10px;
  bottom: -1px;
}

/* Private work */
.private-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(181, 147, 255, 0.08), transparent 32rem),
    #06070a;
}

.private-hero h1 span {
  background: linear-gradient(100deg, var(--violet), var(--blue), var(--cyan));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.private-scope {
  padding-block: clamp(100px, 10vw, 150px);
}

.private-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.private-capability {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  background: var(--bg-deep);
}

.private-capability::before {
  position: absolute;
  inset: 0 0 auto;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  content: "";
  transition: width 420ms var(--ease);
}

.private-capability:hover::before {
  width: 100%;
}

.private-capability-index {
  color: var(--violet);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.private-capability h3 {
  margin-top: 82px;
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 440;
  letter-spacing: -0.035em;
}

.private-capability > p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.64;
}

.private-capability ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding: 42px 0 0;
  list-style: none;
}

.private-capability li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  font: 500 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.private-boundary {
  padding-top: 0;
}

.confidentiality-list li > span {
  color: var(--violet);
}

.private-proof-note {
  display: grid;
  grid-template-columns: 180px minmax(260px, 0.65fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  margin-top: 58px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(181, 147, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.private-proof-note strong {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 450;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.private-proof-note > p:last-child {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* Not found */
.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background: var(--bg);
}

.not-found-main {
  width: min(900px, calc(100vw - 48px));
  padding-block: 150px 90px;
}

.not-found-main h1 {
  max-width: 780px;
  margin-top: 20px;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 420;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.not-found-main > p:not(.section-kicker) {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.62;
}

/* Legal pages */
.legal-page {
  background: var(--bg);
}

.legal-header {
  position: sticky;
}

.legal-header .nav-shell {
  min-height: 78px;
}

.legal-back {
  color: var(--text-dim);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-back:hover {
  color: var(--cyan);
}

.legal-main {
  width: min(880px, calc(100vw - 48px));
  margin: 0 auto;
  padding-block: 90px 130px;
}

.legal-hero {
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero h1 {
  margin-top: 18px;
  font-size: clamp(52px, 8vw, 90px);
  font-weight: 420;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.legal-hero > p:not(.section-kicker):not(.legal-updated) {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
}

.legal-updated {
  margin-top: 26px;
  color: var(--text-faint);
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-content {
  display: grid;
  gap: 54px;
  padding-top: 60px;
}

.legal-content section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 34px;
}

.legal-content .legal-number {
  color: var(--text-faint);
  font: 500 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-content h2 {
  font-size: 27px;
  font-weight: 470;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content p + p,
.legal-content ul {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.legal-content a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
}

.legal-content a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.no-cookie-panel {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid rgba(141, 255, 195, 0.26);
  background: rgba(141, 255, 195, 0.035);
}

.no-cookie-panel strong {
  display: block;
  color: var(--green);
  font: 600 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.no-cookie-panel p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes signal {
  from { transform: scaleY(0.4); opacity: 0.42; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes lab-scan {
  from { transform: translateY(-100%); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 48px, 1400px);
  }

  .hero h1 {
    font-size: clamp(54px, 7.5vw, 84px);
  }

  .hero-copy {
    width: min(58vw, 720px);
  }

  .hero-video {
    width: 68vw;
    height: 68vh;
  }

  .capability-card {
    min-height: 520px;
  }

  .project-workbench {
    grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(100svh - 84px);
    align-content: start;
    gap: 0;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: #07080b;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a:not(.nav-contact) {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-contact {
    margin-top: 14px;
    justify-content: space-between;
  }

  .hero {
    min-height: 100svh;
    padding-top: 154px;
    padding-bottom: 96px;
  }

  .hero-copy {
    width: min(72vw, 620px);
  }

  .hero-video {
    width: 82vw;
    height: 62vh;
    opacity: 0.82;
  }

  .hero-motion {
    display: none;
  }

  .hero-poster {
    display: block;
  }

  .projects-hero {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .projects-hero-copy {
    max-width: 620px;
  }

  .lab-heading,
  .anatomy-title {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-anatomy ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-anatomy li:nth-child(2) {
    border-right: 0;
  }

  .project-anatomy li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-intro,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 30px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 390px;
  }

  .capability-icon {
    margin-top: 44px;
  }

  .work-path-grid,
  .private-capability-grid {
    grid-template-columns: 1fr;
  }

  .work-path {
    min-height: 600px;
  }

  .private-capability {
    min-height: 390px;
  }

  .private-proof-note {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-workbench {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-proof {
    margin-top: 0;
  }

  .browser-viewport,
  .browser-viewport iframe {
    min-height: 640px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 36px);
  }

  .nav-shell {
    min-height: 74px;
  }

  .brand-mark-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-type small {
    display: none;
  }

  .primary-nav {
    top: 74px;
    height: calc(100svh - 74px);
  }

  .hero {
    padding-top: 132px;
    padding-bottom: 76px;
  }

  .projects-hero {
    padding-top: 126px;
    padding-bottom: 70px;
  }

  .projects-hero h1 {
    font-size: clamp(48px, 14vw, 68px);
    line-height: 0.96;
  }

  .projects-hero-copy > p {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 11.5vw, 64px);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-note {
    margin-top: 38px;
  }

  .hero-copy {
    width: 100%;
  }

  .video-backdrop::before {
    background:
      linear-gradient(180deg, var(--bg) 0, rgba(7, 8, 11, 0.93) 33%, rgba(7, 8, 11, 0.18) 66%, rgba(7, 8, 11, 0.56) 100%),
      linear-gradient(90deg, rgba(7, 8, 11, 0.44), transparent 80%);
  }

  .hero-video {
    width: 100vw;
    height: 24vh;
    opacity: 0.78;
  }

  .principles-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-track span {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 8px;
  }

  .work-path {
    min-height: 570px;
    grid-template-rows: auto 160px minmax(0, 1fr) auto;
    padding: 28px 24px;
  }

  .private-work-mark {
    width: 132px;
    height: 132px;
  }

  .private-work-mark span {
    font-size: 44px;
  }

  .project-icon-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 142px;
  }

  .work-path-public {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    row-gap: 28px;
  }

  .project-icon-token {
    width: min(100%, 92px);
    padding: 7px;
    border-radius: 22px;
  }

  .project-icon-token img {
    border-radius: 16px;
  }

  .work-path-copy h3 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .private-capability {
    min-height: 410px;
    padding: 28px 24px;
  }

  .private-capability h3 {
    margin-top: 54px;
  }

  .private-proof-note {
    padding: 28px 24px;
  }

  .section {
    padding-block: 88px;
  }

  .section-intro h2,
  .contact-panel h2 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .section-intro > p {
    font-size: 16px;
  }

  .capability-card {
    min-height: 440px;
    padding: 28px 24px;
  }

  .project-select {
    padding: 27px 22px;
  }

  .project-proof {
    padding: 24px 22px 28px;
  }

  .browser-bar {
    grid-template-columns: 30px minmax(0, 1fr) 66px;
    gap: 7px;
    padding-inline: 8px;
  }

  .browser-tabline {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .browser-session,
  .browser-tab {
    padding-inline: 9px;
    font-size: 7px;
  }

  .browser-state {
    display: none;
  }

  .browser-lights {
    gap: 4px;
  }

  .browser-lights span {
    width: 7px;
    height: 7px;
  }

  .browser-address {
    padding-inline: 8px;
    font-size: 8px;
  }

  .browser-viewport,
  .browser-viewport iframe {
    min-height: 560px;
  }

  .browser-placeholder {
    padding: 30px 22px;
  }

  .browser-placeholder .button {
    width: auto;
    min-width: 210px;
  }

  .project-lab .browser-viewport,
  .project-lab .browser-viewport iframe {
    min-height: 600px;
  }

  .project-anatomy ol {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .project-anatomy li,
  .project-anatomy li:nth-child(2) {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-anatomy li:last-child {
    border-bottom: 0;
  }

  .project-anatomy li div {
    margin-top: 54px;
  }

  .project-links {
    display: grid;
  }

  .method-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px 30px;
  }

  .method-list b {
    display: none;
  }

  .method-list li:hover {
    padding-inline: 8px;
  }

  .contact-panel {
    gap: 38px;
    padding: 34px 24px 70px;
  }

  .contact-email {
    font-size: 17px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .legal-main {
    width: calc(100vw - 36px);
    padding-block: 66px 96px;
  }

  .legal-content section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

}

/* Project website confirmation */
.visit-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--cyan);
  background: radial-gradient(circle at 100% 10%, rgba(131,244,255,.06), transparent 65%), var(--surface);
  color: var(--text);
  box-shadow: 0 32px 100px #0009;
}
.visit-dialog::backdrop { background: #030406bf; backdrop-filter: blur(7px); }
body:has(.visit-dialog[open]) { overflow: hidden; }
.visit-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px 12px 28px; border-bottom: 1px solid var(--line); }
.visit-top > span { color: var(--text-faint); font: 400 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.visit-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-dim); font: 24px var(--display); cursor: pointer; }
.visit-content { padding: 28px 32px 32px; }
.visit-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border: 1px solid #83f4ff40; background: #83f4ff08; color: var(--cyan); font-size: 28px; }
.visit-dialog h2 { margin-top: 12px; font-size: clamp(29px, 5vw, 40px); font-weight: 450; letter-spacing: -.035em; line-height: 1.08; }
#visit-copy { margin-top: 18px; color: var(--text-dim); font-size: 17px; line-height: 1.6; }
.visit-destination { display: grid; gap: 7px; margin-top: 24px; padding: 16px; border: 1px solid var(--line); background: #03040680; }
.visit-destination span:first-child { font-size: 15px; }
.visit-destination span:last-child { color: var(--text-dim); font: 400 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.visit-note { margin-top: 16px; color: var(--text-faint); font-size: 13px; line-height: 1.6; }
.visit-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.visit-actions .button { min-height: 48px; font-size: 10px; padding-inline: 18px; }
@media (max-width: 480px) {
  .visit-content { padding: 24px 20px; }
  .visit-top { padding-left: 20px; }
  .visit-actions { flex-direction: column-reverse; }
  .visit-actions .button { width: 100%; justify-content: center; }
}

.browser-loading { flex-direction: column; padding: 28px; text-align: center; line-height: 1.6; }

@media (max-width: 900px), (pointer: coarse) {
  .nav-contact { min-height: 44px; }
  .legal-back { min-height: 44px; display: inline-flex; align-items: center; }
  .browser-bar { grid-template-columns: 24px minmax(0, 1fr) 96px; }
  .browser-actions button, .browser-actions a { width: 44px; height: 44px; }
  .pill-dossier-link { min-height: 44px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
