/* Sapphire Creators — white paper, black ink, one stone.
   Fonts self-hosted: Geist (sans + mono) and Instrument Serif italic. */

@font-face { font-family: "Geist"; src: url(../fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geistmono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrumentserif-italic-latin.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --white: #ffffff;
  --black: #0a0a0a;

  --bg: var(--white);
  --fg: var(--black);
  --fg-2: #4b4b4b;
  --mute: #8d8d8d;
  --line: rgba(10, 10, 10, .1);
  --line-2: rgba(10, 10, 10, .24);
  --panel: #f4f4f2;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(20px, 4.4vw, 68px);
  --max: 1440px;
  --nav-h: 72px;
  --radius: 22px;
  --sheet: clamp(24px, 3vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

.dark, .nav.on-dark, .t2, .t3, .card-end {
  --bg: var(--black);
  --fg: #f4f4f4;
  --fg-2: #b4b4b4;
  --mute: #7a7a7a;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .28);
  --panel: #151515;
}
.dark { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--white);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

em, .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--black); color: var(--white);
  transition: top .3s;
}
.skip:focus { top: 12px; }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(20px, 3vh, 34px);
}
.label i {
  font-style: normal;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.label i::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }

.h2 {
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.048em;
  font-weight: 500;
}
.h2 .it, .h2 em { font-size: 1.06em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--fg-2); max-width: 36em; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 500 15.5px/1 var(--sans);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid::before { background: var(--fg-2); }
.btn-line { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line::before { background: var(--fg); }
.btn-line:hover { color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light::before { background: #d9d9d9; }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-xl { height: 64px; padding: 0 34px; font-size: 17px; }

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--white);
  color: var(--black);
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-mark {
  width: 46px; height: 46px;
  fill: none;
  stroke: var(--black);
  stroke-width: .9;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.2s var(--ease-io) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-word { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.loader-word b, .loader-word em { font-weight: inherit; }
.loader-word em { font-weight: 400; font-size: 1.14em; }
.loader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  animation: letter .7s var(--ease-out) forwards;
  animation-delay: calc(.25s + var(--i) * 32ms);
}
@keyframes letter { to { opacity: 1; transform: none; } }
html:not(.js) .loader { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  color: var(--fg);
  transition: transform .6s var(--ease-out), color .4s;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .45s, background-color .45s;
}
.nav.scrolled::before { opacity: 1; }
.nav.on-dark::before { background: rgba(10, 10, 10, .62); }
.nav.hide { transform: translateY(-100%); }
html.menu-open .nav { transform: none; }
html.menu-open .nav::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18.5px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.brand .mark { width: 22px; height: 22px; flex: none; transition: transform .8s var(--ease-out); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.08); }
.wm em { font-weight: 400; font-size: 1.14em; letter-spacing: -.005em; }

.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav-links a { position: relative; font-size: 14.5px; color: var(--fg-2); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current] { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; font: 500 12px/1 var(--mono); letter-spacing: .08em; }
.lang a { padding: 7px 7px; border-radius: 6px; color: var(--mute); transition: color .3s; }
.lang a:hover, .lang a[aria-current] { color: var(--fg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.burger i:nth-of-type(1) { top: 18px; }
.burger i:nth-of-type(2) { top: 24px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 6vh) var(--pad) 36px;
  background: var(--black);
  color: #f4f4f4;
  clip-path: circle(0 at calc(100% - var(--pad) - 22px) 36px);
  transition: clip-path .8s var(--ease-io);
}
.menu.open { clip-path: circle(150% at calc(100% - var(--pad) - 22px) 36px); }
html.menu-open .nav { --bg: var(--black); --fg: #f4f4f4; --fg-2: #b4b4b4; --mute: #7a7a7a; --line-2: rgba(255,255,255,.28); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 0;
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s, transform .8s var(--ease-out);
}
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(2) { transition-delay: .05s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .1s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: .2s; }
.menu.open .menu-links a:nth-child(6) { transition-delay: .25s; }
.menu-links i { font: 500 12px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: #7a7a7a; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--mono); color: #b4b4b4; }
.menu-foot .lang a { color: #7a7a7a; }
.menu-foot .lang a[aria-current] { color: #fff; }

/* ============ HERO ============ */
.hero { position: relative; height: 250vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--white);
  touch-action: pan-y pinch-zoom;
}
.hero-void { position: absolute; inset: 0; z-index: 0; background: var(--black); clip-path: circle(0 at 70% 50%); }
.hero .gem-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero-stage.grab { cursor: grab; }
.hero-stage.grabbing { cursor: grabbing; }
.hero-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-top: var(--nav-h);
  padding-bottom: 56px;
  pointer-events: none;
}
.hero-copy { pointer-events: none; will-change: transform, opacity; }
.hero-copy a { pointer-events: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow .mark { width: 14px; height: 14px; }
.hero-title {
  margin: clamp(18px, 3vh, 30px) 0 clamp(20px, 3.4vh, 34px);
  font-size: clamp(2.7rem, min(7vw, 11.6vh), 8.2rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.056em;
}
.hero-title em { font-size: 1.1em; letter-spacing: -.02em; }
.line { display: block; overflow: hidden; padding: 0 .1em .07em 0; margin-bottom: -.07em; }
.line-in { display: inline-block; }
html.js .line-in { transform: translateY(108%); }
html.js.ready .line-in { transform: none; transition: transform 1.25s var(--ease-out) calc(var(--d) * 1s + .05s); }
.hero-sub { max-width: 31em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--fg-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.6vh, 36px); }
html.js .eyebrow, html.js .hero-sub, html.js .hero-ctas, html.js .gem-slot > *, html.js .hero-meta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out) .5s, transform 1.2s var(--ease-out) .5s;
}
html.js.ready .eyebrow, html.js.ready .hero-sub, html.js.ready .hero-ctas, html.js.ready .gem-slot > *, html.js.ready .hero-meta { opacity: 1; transform: none; }
html.js.ready .eyebrow { transition-delay: .1s; }
html.js.settled .hero-meta, html.js.settled .gem-slot > * { transition: none; }
html.js.ready .hero-ctas { transition-delay: .62s; }

.gem-slot {
  position: relative;
  justify-self: center;
  width: min(100%, 66svh);
  aspect-ratio: 1;
}
.spec {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.spec::before { content: ""; width: 40px; height: 1px; background: var(--line-2); }
.spec-a { left: 2%; top: 14%; flex-direction: row-reverse; }
.spec-b { right: 0; bottom: 16%; }
.drag-hint {
  position: absolute;
  left: 50%; bottom: 2%;
  translate: -50% 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.drag-hint::before, .drag-hint::after { content: "←"; margin-right: 10px; }
.drag-hint::after { content: "→"; margin: 0 0 0 10px; }

.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 26px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--fg); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ============ MANIFEST ============ */
.manifest { position: relative; height: 270vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.manifest .sticky { display: flex; align-items: center; }
.manifest-text {
  max-width: 21em;
  font-size: clamp(1.85rem, 4.1vw, 4.5rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.038em;
}
.manifest-text .it { font-size: 1.08em; }
.w { display: inline; opacity: .16; }

/* ============ STATS ============ */
.stats { padding: 4vh 0 12vh; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 36px clamp(16px, 2.4vw, 40px) 0; border-top: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-size: clamp(4.6rem, 10.5vw, 11rem);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}
.stat-num small { font-size: .38em; font-weight: 300; letter-spacing: -.02em; margin-left: .06em; }
.stat h3 { font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.stat p { color: var(--fg-2); max-width: 22em; font-size: 16px; }

/* ============ BLUEPRINT (the stone as a technical drawing) ============ */
.blueprint svg { width: 100%; height: auto; overflow: visible; }
.blueprint { opacity: 1 !important; transform: none !important; }
.bp-cut path {
  fill: none;
  stroke: #f4f4f4;
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-io);
}
.bp-cut path:nth-child(2) { transition-delay: .25s; }
.bp-cut path:nth-child(3) { transition-delay: .45s; }
.bp-cut path:nth-child(4) { transition-delay: .6s; }
.bp-cut path:nth-child(5) { transition-delay: .75s; }
.bp-cut path:nth-child(6) { transition-delay: .9s; }
.bp-cut path:nth-child(7) { transition-delay: 1.05s; }
.bp-cut path:nth-child(8) { transition-delay: 1.2s; }
.blueprint.in .bp-cut path { stroke-dashoffset: 0; }
.bp-dim path { fill: none; stroke: rgba(255, 255, 255, .36); stroke-width: .8; }
.bp-dim .bp-axis { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 5 6; }
.bp-text text { font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: rgba(255, 255, 255, .78); }
.bp-text .bp-faint { fill: rgba(255, 255, 255, .42); }
.bp-dim, .bp-text { opacity: 0; transition: opacity 1.2s ease 1.4s; }
.blueprint.in .bp-dim, .blueprint.in .bp-text { opacity: 1; }

/* ============ MARQUEE ============ */
.marquee {
  padding: clamp(18px, 3vh, 34px) 0 calc(clamp(18px, 3vh, 34px) + var(--sheet));
  border-top: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}
.mq-row { white-space: nowrap; }
.mq-track {
  display: inline-flex;
  align-items: center;
  font-size: clamp(3rem, 8.4vw, 8.6rem);
  line-height: 1.06;
  will-change: transform;
}
.mq-item { padding: 0 .16em; font-weight: 500; letter-spacing: -.055em; }
.mq-italic .mq-item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
}
.mq-gem {
  display: inline-block;
  width: .34em; height: .34em;
  margin: 0 .22em;
  background: currentColor;
  clip-path: polygon(28% 0, 72% 0, 100% 34%, 50% 100%, 0 34%);
}
.mq-italic .mq-gem { background: rgba(255, 255, 255, .35); }

/* ============ SHEETS (white panes sliding over black) ============ */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  background: var(--white);
}

/* ============ SERVICES ============ */
.services { position: relative; }
.services .sticky {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(14px, 3vh, 40px));
  padding-bottom: clamp(18px, 4.5vh, 52px);
  border-radius: inherit;
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(18px, 3.6vh, 44px);
}
.services-head .label { margin-bottom: clamp(14px, 2vh, 26px); }
.services-head .h2 { font-size: clamp(2rem, 4.4vw, 4.8rem); max-width: 12em; }
.sp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.sp-count b { color: var(--fg); font-weight: 500; }
.sp-bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
.sp-hint { display: inline-flex; align-items: center; gap: 8px; }
.sp-hint .arr { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.track-wrap { position: relative; flex: 1; min-height: 0; }
.track {
  --lead: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  height: 100%;
  padding-inline: var(--lead);
  width: max-content;
  will-change: transform;
}
.card {
  position: relative;
  flex: 0 0 clamp(284px, 29vw, 430px);
  height: 100%;
  max-height: 620px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.7vw, 26px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow .5s var(--ease-out);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--mute);
}
.card-num { color: var(--fg); }
.card-vis {
  position: relative;
  flex: 1;
  min-height: 110px;
  margin: 14px 0 20px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 8px);
  background: var(--panel);
  overflow: hidden;
}
.card h3 { font-size: clamp(1.35rem, 1.85vw, 1.9rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: clamp(14.5px, 1vw, 16px); line-height: 1.5; min-height: 4.5em; }

.card-end { background: var(--bg); color: var(--fg); justify-content: space-between; box-shadow: none; }
.card-end:hover { box-shadow: none; }
.card-end-text {
  margin: auto 0 28px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.card-end .btn { align-self: flex-start; }

/* card visual 1: wireframe cube */
.vis-cube { --cs: clamp(74px, 7.4vw, 112px); perspective: 700px; }
.vis-cube .floor {
  position: absolute;
  left: -30%; right: -30%; bottom: -12%;
  height: 62%;
  background-image:
    linear-gradient(rgba(10, 10, 10, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, .2) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: rotateX(68deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: floorMove 2.4s linear infinite;
}
@keyframes floorMove { to { background-position: 0 26px; } }
.scene3d { position: relative; width: var(--cs); height: var(--cs); perspective: 600px; margin-top: -8%; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cubeSpin 12s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1.4px solid var(--black); background: rgba(244, 244, 242, .55); }
.cube .f1 { transform: translateZ(calc(var(--cs) / 2)); }
.cube .f2 { transform: rotateY(180deg) translateZ(calc(var(--cs) / 2)); }
.cube .f3 { transform: rotateY(90deg) translateZ(calc(var(--cs) / 2)); }
.cube .f4 { transform: rotateY(-90deg) translateZ(calc(var(--cs) / 2)); }
.cube .f5 { transform: rotateX(90deg) translateZ(calc(var(--cs) / 2)); background: rgba(10, 10, 10, .9); }
.cube .f6 { transform: rotateX(-90deg) translateZ(calc(var(--cs) / 2)); }
@keyframes cubeSpin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }

/* card visual 2: film */
.vis-film { align-content: center; gap: 16px; }
.film-screen {
  position: relative;
  width: 86%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(90% 120% at 70% 0%, #3a3a3a, #0a0a0a 62%);
}
.film-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 3.6s var(--ease-io) infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.rec, .tc { position: absolute; top: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .82); }
.rec { left: 12px; display: inline-flex; align-items: center; gap: 6px; }
.rec b { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { right: 12px; font-variant-numeric: tabular-nums; }
.play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.film-wave { display: flex; align-items: center; gap: 3px; width: 86%; height: 34px; }
.film-wave i {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--black);
  transform: scaleY(var(--s));
  animation: bar 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1);
}
.film-wave i:nth-child(3n) { opacity: .45; }
@keyframes bar { from { transform: scaleY(.12); } to { transform: scaleY(var(--s)); } }

/* card visual 3: scrolling phone */
.phone {
  position: relative;
  width: clamp(104px, 9.5vw, 136px);
  height: 92%;
  max-height: 250px;
  border-radius: 22px;
  padding: 10px 9px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--black), 0 30px 50px -28px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.phone-feed { animation: feed 7s linear infinite; }
.pf-block { display: flex; flex-direction: column; gap: 7px; padding-bottom: 7px; }
.pf-block i { display: block; height: 6px; border-radius: 3px; background: rgba(10, 10, 10, .14); }
.pf-block i.s { width: 62%; }
.pf-hero { height: 56px; border-radius: 9px; background: var(--black); }
.pf-hero.pf-2 { background: repeating-linear-gradient(135deg, #0a0a0a 0 6px, #2a2a2a 6px 12px); }
.pf-row { display: flex; gap: 6px; }
.pf-row b { flex: 1; height: 34px; border-radius: 7px; background: rgba(10, 10, 10, .08); }
@keyframes feed { to { transform: translateY(-50%); } }
.phone-bar { position: absolute; right: 3px; top: 16px; bottom: 16px; width: 2px; }
.phone-bar i { display: block; width: 2px; height: 30%; border-radius: 2px; background: var(--black); animation: sbar 7s linear infinite; }
@keyframes sbar { to { transform: translateY(233%); } }

/* card visual 4: AI words */
.vis-ai::before {
  content: "";
  position: absolute;
  width: 66%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(10, 10, 10, .25);
  animation: spin 30s linear infinite;
}
.vis-ai::after {
  content: "";
  position: absolute;
  width: 44%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, .12);
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-slot { position: relative; z-index: 1; height: 1.15em; overflow: hidden; font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 3.8vw, 3.8rem); line-height: 1.15; }
.ai-words { display: flex; flex-direction: column; align-items: center; animation: words 10s var(--ease-io) infinite; }
@keyframes words {
  0%, 15% { transform: translateY(0); }
  20%, 35% { transform: translateY(-1.15em); }
  40%, 55% { transform: translateY(-2.3em); }
  60%, 75% { transform: translateY(-3.45em); }
  80%, 95% { transform: translateY(-4.6em); }
  100% { transform: translateY(-5.75em); }
}
.ai-prompt { position: absolute; left: 14px; bottom: 12px; font: 500 11px/1 var(--mono); color: var(--fg-2); letter-spacing: .04em; }
.ai-prompt b { display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -2px; background: var(--black); animation: blink 1s steps(2, jump-none) infinite; }

/* card visual 5: event radar */
.radar { position: relative; width: clamp(120px, 11vw, 160px); aspect-ratio: 1; margin-top: -18px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.2px solid var(--black); opacity: 0; animation: radar 3s var(--ease-out) infinite; }
.radar i:nth-child(2) { animation-delay: 1s; }
.radar i:nth-child(3) { animation-delay: 2s; }
@keyframes radar { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.radar b { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--black); }
.ticket {
  position: absolute;
  bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--mute);
}
.ticket strong { font-size: 17px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* card visual 6: globe */
.vis-globe { --gs: clamp(110px, 10.5vw, 150px); perspective: 800px; }
.globe { position: relative; width: var(--gs); height: var(--gs); transform-style: preserve-3d; animation: globe 16s linear infinite; }
@keyframes globe { from { transform: rotateX(-16deg) rotateY(0); } to { transform: rotateX(-16deg) rotateY(360deg); } }
.globe i { position: absolute; inset: 0; border-radius: 50%; border: 1.1px solid rgba(10, 10, 10, .75); transform: rotateY(var(--r)); }
.globe b {
  position: absolute;
  width: var(--w); height: var(--w);
  left: calc((100% - var(--w)) / 2);
  top: calc((100% - var(--w)) / 2);
  border-radius: 50%;
  border: 1.1px solid rgba(10, 10, 10, .45);
  transform: translateY(calc(var(--y) * var(--gs) / 2)) rotateX(90deg);
}
.globe-tags { position: absolute; inset: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--fg); }
.globe-tags span { position: absolute; padding: 6px 8px; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); animation: tag 4s ease-in-out infinite alternate; }
.globe-tags span:nth-child(1) { left: 10%; top: 16%; }
.globe-tags span:nth-child(2) { right: 10%; top: 26%; animation-delay: -1s; }
.globe-tags span:nth-child(3) { left: 14%; bottom: 18%; animation-delay: -2s; }
.globe-tags span:nth-child(4) { right: 14%; bottom: 12%; animation-delay: -3s; background: var(--black); color: var(--white); box-shadow: none; }
@keyframes tag { to { transform: translateY(-8px); } }

/* ============ ZOOM ============ */
.zoom { position: relative; height: 280vh; background: var(--white); }
.zoom .sticky { display: grid; place-items: center; }
.zoom-big {
  grid-area: 1 / 1;
  font-size: 12vw;
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--black);
}
.zoom-big span { display: inline-block; transform-origin: 50% 54%; will-change: transform; }
.zoom-disc {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: var(--black);
  color: #f4f4f4;
  clip-path: circle(0 at 50% 50%);
}
.zoom-inner {
  max-width: 17em;
  text-align: center;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
  opacity: 0;
}
.zoom-inner em { font-size: 1.08em; }

/* ============ TEAM ============ */
.team { padding: 12vh 0 16vh; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.team-copy .h2 { margin-bottom: 28px; }
.code {
  border-radius: 18px;
  background: #121212;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.code-bar span { margin-left: auto; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; color: var(--mute); }
.code-body { padding: 22px 0 26px; font: 400 clamp(13px, 1.05vw, 15.5px)/1.75 var(--mono); color: #d0d0d0; overflow-x: auto; counter-reset: ln; }
.code-body .ln { display: block; padding-right: 20px; white-space: pre; }
.code-body .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #4d4d4d; }
.tk-k { color: #fff; font-weight: 600; }
.tk-s { color: #a9a9a9; }
.tk-c { color: #5e5e5e; font-style: italic; }
.tk-n, .tk-b { color: #fff; }
.tk-p { color: #8c8c8c; }
.tk-f { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
html.js .code .ch { opacity: 0; }
html.js .code .ch.on { opacity: 1; }
.caret { display: inline-block; width: .55em; height: 1.1em; margin: 0 1px -.2em; background: #fff; animation: blink 1s steps(2, jump-none) infinite; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 12vh, 140px); }
.role { padding: 30px clamp(14px, 2vw, 32px) 0; border-top: 1px solid var(--line); }
.role + .role { border-left: 1px solid var(--line); }
.role:first-child { padding-left: 0; }
.role-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.role-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.role h3 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 8px; }
.role p { color: var(--fg-2); font-size: 15.5px; margin-bottom: 18px; }
.role-stack { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ============ PROCESS ============ */
.process { padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 12vh, 140px); }
.process-head { margin-bottom: clamp(40px, 8vh, 90px); }
.process-head .h2 { max-width: 12em; }
.stack { position: relative; }
.pcard {
  position: sticky;
  top: calc(var(--nav-h) + 24px + var(--i) * 22px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  min-height: clamp(300px, 54vh, 500px);
  margin-bottom: 14vh;
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
  transform-origin: 50% 0;
  overflow: hidden;
}
.pcard:last-child { margin-bottom: 0; }
.pcard.t0 { box-shadow: inset 0 0 0 1px var(--line-2); }
.pcard.t1 { --bg: #ececea; }
.pcard.t2 { --bg: #1d1d1d; }
.pcard.t3 { --bg: var(--black); }
.pcard-num { font-family: var(--serif); font-style: italic; font-size: clamp(4.6rem, 10vw, 9.5rem); line-height: .8; letter-spacing: -.02em; }
.pcard h3 { font-size: clamp(1.8rem, 3.3vw, 3.3rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin-bottom: 16px; }
.pcard p { color: var(--fg-2); max-width: 30em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.pcard-vis { width: clamp(110px, 15vw, 210px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pcard-vis .faint { opacity: .35; }
.pcard-vis .fill { fill: currentColor; stroke: none; }
.pcard-vis .rough { stroke-dasharray: 4 5; }
.pcard-vis .pulse { animation: pulse 2.4s var(--ease-io) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .5; } }
.pcard-vis .cur { animation: cur 3.2s var(--ease-io) infinite; }
@keyframes cur { 50% { transform: translate(-18px, -10px); } }
.pcard-vis .lay { animation: lay 3s var(--ease-io) infinite; }
.pcard-vis .l2 { animation-delay: .2s; }
.pcard-vis .l3 { animation-delay: .4s; }
@keyframes lay { 50% { transform: translateY(-8px); } }
.pcard-vis .spark { fill: currentColor; stroke: none; animation: twinkle 2.2s var(--ease-io) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.pcard-shade { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }

/* ============ CONTACT ============ */
.contact { position: relative; padding: clamp(90px, 16vh, 180px) 0 calc(clamp(90px, 18vh, 200px) + var(--sheet)); background: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.contact-title { font-size: clamp(2.6rem, 6vw, 6.8rem); font-weight: 500; line-height: .96; letter-spacing: -.055em; margin-bottom: 30px; }
.contact-title .it { font-size: 1.08em; }
.contact .lead { margin-bottom: 40px; }
.contact-gem { position: relative; width: min(100%, 540px); aspect-ratio: 1; justify-self: center; touch-action: pan-y pinch-zoom; cursor: grab; }
.contact-gem:active { cursor: grabbing; }
.contact-gem .gem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 48s linear infinite; pointer-events: none; }
.ring text { font: 500 8px var(--mono); letter-spacing: .16em; text-transform: uppercase; fill: var(--fg); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  padding: clamp(64px, 12vh, 130px) 0 calc(26px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-tag { margin-top: 18px; color: var(--fg-2); max-width: 22em; font-size: 15.5px; }
.footer h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--fg-2); transition: color .3s; }
.footer li a:hover, .footer li a[aria-current] { color: var(--fg); }
.footer-word { padding: clamp(50px, 10vh, 120px) var(--pad) clamp(10px, 2vh, 24px); white-space: nowrap; line-height: .9; }
.footer-word span {
  display: inline-block;
  font-size: 15vw;
  font-weight: 500;
  letter-spacing: -.06em;
  color: transparent;
  background: linear-gradient(100deg, #2b2b2b 0%, #2b2b2b 30%, #ffffff 46%, #2b2b2b 62%, #2b2b2b 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: .08em;
}
.footer-word em { font-size: 1.1em; letter-spacing: -.015em; padding-right: .06em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .08em;
  color: var(--mute);
}
.footer-bottom a:hover { color: var(--fg); }

/* ============ BROWSER FRAME (video of a live site) ============ */
.browser {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #151515;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -40px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.browser-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1b1b1b; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.browser-url {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .02em;
  color: #b4b4b4;
  white-space: nowrap;
}
.browser-url svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.browser-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #ebe4da; }

/* ============ WORK (home page teaser) ============ */
.work { padding: clamp(90px, 15vh, 170px) 0 clamp(30px, 4vh, 60px); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 6vh, 72px); }
.work-head .h2 { max-width: 11em; }
.work-head .btn { flex-shrink: 0; }
.work-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.work-shot { transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.work-shot:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 60px 110px -40px rgba(0, 0, 0, .95); }
.work-kicker { font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.work-name { font-size: clamp(2.2rem, 3.6vw, 3.8rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin-bottom: 18px; }
.work-name em { font-size: 1.08em; }
.work-text { color: var(--fg-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; max-width: 30em; }
.work-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.work-facts, .more-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.work-facts li, .more-facts li { padding: 16px 20px 0; border-left: 1px solid var(--line); }
.work-facts li:first-child, .more-facts li:first-child { padding-left: 0; border-left: 0; }
.work-facts b, .more-facts b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 4px; white-space: nowrap; }
.work-facts span, .more-facts span { display: block; font: 500 10.5px/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ============ PROJECTS PAGE ============ */
.pj-hero { padding: calc(var(--nav-h) + clamp(48px, 13vh, 150px)) 0 clamp(70px, 12vh, 140px); }
html.js .pj-hero .eyebrow, html.js .pj-sub, html.js .pj-index {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out) .35s, transform 1.2s var(--ease-out) .35s;
}
html.js.ready .pj-hero .eyebrow, html.js.ready .pj-sub, html.js.ready .pj-index { opacity: 1; transform: none; }
html.js.ready .pj-hero .eyebrow { transition-delay: 0s; }
html.js.ready .pj-index { transition-delay: .55s; }
.pj-title { margin: clamp(18px, 3vh, 30px) 0 clamp(22px, 3.6vh, 36px); font-size: clamp(3rem, 9.6vw, 10.4rem); font-weight: 500; line-height: .92; letter-spacing: -.058em; }
.pj-title em { font-size: 1.1em; letter-spacing: -.02em; }
.pj-sub { max-width: 34em; font-size: clamp(16px, 1.3vw, 19.5px); line-height: 1.55; color: var(--fg-2); }

.pj-index { margin-top: clamp(52px, 10vh, 120px); border-top: 1px solid var(--line-2); list-style: none; }
.pj-index a {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 90px 22px;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.8vh, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease-out);
}
.pj-index a:hover { padding-left: 14px; padding-right: 6px; }
.pi-num { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.pi-name { font-size: clamp(1.8rem, 3.8vw, 3.8rem); font-weight: 500; letter-spacing: -.048em; line-height: 1.02; }
.pi-name em { font-size: 1.08em; letter-spacing: -.015em; }
.pi-tags, .pi-year { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.pi-year { text-align: right; }
.pj-index .arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.pj-index a:hover .arr { transform: translateY(4px); }
.pi-thumb {
  position: absolute;
  right: 30%;
  top: 50%;
  z-index: 2;
  width: clamp(180px, 17vw, 260px);
  aspect-ratio: 16 / 10;
  translate: 0 -50%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45);
  clip-path: inset(50% 0 50% 0 round 10px);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}
.pi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pj-index a:hover .pi-thumb { clip-path: inset(0 0 0 0 round 10px); }
@media (hover: none) { .pi-thumb { display: none; } }

/* case study */
.case { padding: clamp(90px, 15vh, 170px) 0 clamp(90px, 15vh, 170px); }
.case-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.case-title { font-size: clamp(3rem, 8.2vw, 8.8rem); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.case-title .it { font-size: 1.08em; }
.case-intro .lead { margin-bottom: 30px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.case-meta > div { padding: 20px 20px 0 0; }
.case-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-meta dt { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.case-meta dd { font-size: 16.5px; line-height: 1.45; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.case-stage { margin-top: clamp(48px, 9vh, 110px); }
.browser-xl { border-radius: 18px; transform-origin: 50% 0; will-change: transform; }
.browser-xl .browser-bar { height: 44px; padding: 0 18px; }
.browser-xl .browser-bar > i { width: 11px; height: 11px; }
.browser-xl .browser-url { height: 26px; font-size: 12.5px; }
.case-caption { margin-top: 20px; text-align: center; font: 500 11.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.case-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(80px, 13vh, 150px); }
.case-story h3 { display: flex; align-items: center; gap: 14px; font-size: 23px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 14px; }
.case-story h3 i { font: 500 12px/1 var(--mono); font-style: normal; color: var(--mute); }
.case-story p { color: var(--fg-2); font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.65; }
.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 13vh, 150px); }
.cstat { padding: 30px clamp(14px, 2vw, 32px) 0; border-top: 1px solid var(--line); }
.cstat + .cstat { border-left: 1px solid var(--line); }
.cstat:first-child { padding-left: 0; }
.cstat-num { font-size: clamp(3.2rem, 6.2vw, 6.6rem); font-weight: 200; line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 22px; }
.cstat-num small { font-size: .32em; font-weight: 300; letter-spacing: -.01em; margin-left: .14em; }
.cstat h3 { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.cstat p { color: var(--fg-2); font-size: 15.5px; max-width: 22em; }

/* before / after */
.pj-sheet { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.pj-sec-head { margin-bottom: clamp(36px, 6vh, 72px); }
.pj-sec-head .h2 { max-width: 13em; }
.pj-sec-moments { margin-top: clamp(110px, 18vh, 210px); }
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .35);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.ba:focus-within { outline: 2px solid var(--fg); outline-offset: 4px; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 10, 10, .14); }
.ba-handle b {
  position: absolute;
  top: 50%; left: 0;
  width: 58px; height: 58px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 14px 34px -8px rgba(0, 0, 0, .55);
  transition: transform .45s var(--ease-out);
}
.ba-handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba:hover .ba-handle b { transform: scale(1.06); }
.ba.dragging .ba-handle b { transform: scale(.92); }
.ba-labels { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.ba-labels .ba-drag { color: var(--mute); }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: 38px; }
.ba-notes h3 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.ba-notes li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 16px; line-height: 1.45; }
.ba-notes li::before { content: "–"; position: absolute; left: 2px; top: 13px; color: var(--mute); }
.ba-notes > div:last-child h3 { color: var(--fg); }
.ba-notes > div:last-child li { color: var(--fg); }
.ba-notes > div:last-child li::before { content: ""; top: 20px; width: 9px; height: 9px; background: var(--fg); clip-path: polygon(28% 0, 72% 0, 100% 34%, 50% 100%, 0 34%); }

/* moments */
.moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 7vh, 80px) clamp(20px, 2.4vw, 36px); }
.mo-pair { grid-column: 1 / -1; }
.mo-pair-shots { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.mo-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.mo-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(0, 0, 0, .4); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mo:hover .shot img { transform: scale(1.03); }
.mo figcaption { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.mo figcaption > span { font: 500 12px/1.9 var(--mono); letter-spacing: .08em; color: var(--mute); }
.mo h3 { font-size: clamp(1.25rem, 1.7vw, 1.7rem); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 6px; }
.mo p { color: var(--fg-2); font-size: 15.5px; line-height: 1.55; max-width: 34em; }

/* mobile */
.mobile { padding: clamp(100px, 16vh, 180px) 0 clamp(120px, 18vh, 200px); overflow: hidden; }
.mobile-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.mobile-copy .h2 { margin-bottom: 26px; }
.mobile-cta { margin-top: 34px; }
.handsets { display: flex; justify-content: center; align-items: center; }
.handset {
  position: relative;
  flex: none;
  width: clamp(150px, 14.5vw, 220px);
  aspect-ratio: 390 / 844;
  padding: 2.6%;
  border-radius: 16% / 7.4%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 4px #1d1d1d, 0 50px 90px -30px rgba(0, 0, 0, .95);
  will-change: transform;
}
.handset::before { content: ""; position: absolute; z-index: 1; top: 3.6%; left: 50%; width: 30%; height: 3.4%; translate: -50% 0; border-radius: 99px; background: #000; }
.handset img, .handset video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13.6% / 6.3%; background: #ebe4da; }
.hs-main { z-index: 2; width: clamp(190px, 18.5vw, 280px); }
.hs-side { z-index: 1; margin: 0 -2.4vw; filter: brightness(.82); }
.hs-side:first-child { margin-left: 0; }
.hs-side:last-child { margin-right: 0; }

/* 02 + 03 */
.pj-more { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.more-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.more-card { position: relative; border-radius: 28px; padding: clamp(28px, 3.6vw, 56px); min-height: clamp(480px, 68vh, 660px); overflow: hidden; }
.more-self { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2vw, 32px); box-shadow: inset 0 0 0 1px var(--line-2); }
.more-gem { position: relative; aspect-ratio: 1; touch-action: pan-y pinch-zoom; cursor: grab; }
.more-gem:active { cursor: grabbing; }
.more-gem .gem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.more-gem .drag-hint { bottom: 0; }
.more-title { font-size: clamp(2.2rem, 3.8vw, 4.1rem); font-weight: 500; line-height: 1; letter-spacing: -.048em; margin-bottom: 18px; }
.more-title em { font-size: 1.08em; letter-spacing: -.015em; }
.more-text { color: var(--fg-2); font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.6; max-width: 30em; }
.more-self .more-facts { margin: 24px 0 30px; }
.more-next { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.more-next-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.more-q { font-family: var(--serif); font-style: italic; font-size: clamp(7rem, 13vw, 12rem); line-height: .72; margin-top: -.06em; }
.more-next .more-text { margin-bottom: 32px; }

/* ============ REVEALS ============ */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.sw > span { display: inline-block; }
html.js [data-split] .sw > span { transform: translateY(112%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 38ms); }
html.js [data-split].in .sw > span { transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
  .roles { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .role:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1023px) {
  .hero { height: 230vh; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0;
    padding-bottom: 64px;
  }
  .gem-slot { order: -1; align-self: center; width: min(78vw, 37svh); }
  .hero-title { font-size: clamp(2.6rem, min(9vw, 8.4svh), 6.4rem); }
  .spec-a { left: -6%; top: 10%; }
  .spec-b { right: -6%; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-gem { order: -1; width: min(70vw, 420px); margin-bottom: 12px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav .btn-small { display: none; }
  .brand { font-size: 17px; }
  .hero-grid { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .gem-slot { width: min(68vw, 31svh); }
  .spec, .hero-meta { display: none; }
  .drag-hint { bottom: 0; font-size: 10px; }
  .hero-title { font-size: clamp(2.2rem, min(10.6vw, 6.2svh), 4rem); margin: 12px 0 14px; }
  .hero-sub { font-size: 15px; line-height: 1.5; }
  .hero-ctas { margin-top: 18px; }
  .hero-ctas .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 28px 0 32px; }
  .stat + .stat { border-left: 0; }
  .services-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sp { flex-direction: row; align-items: center; gap: 14px; }
  .sp-bar { width: 90px; }
  .sp-hint { display: none; }
  .card { flex-basis: min(82vw, 340px); }
  .card-vis { min-height: 70px; }
  .roles { grid-template-columns: 1fr; row-gap: 0; }
  .role, .role:first-child { padding: 26px 0 30px; border-left: 0 !important; }
  .pcard { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: start; gap: 22px 16px; min-height: 0; padding: 28px 24px 30px; margin-bottom: 9vh; border-radius: 22px; }
  .pcard-num { grid-column: 1; }
  .pcard-vis { grid-column: 2; grid-row: 1; width: 92px; justify-self: end; }
  .pcard-body { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .hero-ctas .btn-line { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .gem-slot { width: min(60vw, 27svh); }
  .eyebrow { display: none; }
}

/* projects + work teaser */
@media (max-width: 1023px) {
  .work-card { grid-template-columns: minmax(0, 1fr); }
  .case-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .case-meta > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .case-story { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 40em; }
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .cstat:nth-child(3) { border-left: 0; padding-left: 0; }
  .mobile-grid { grid-template-columns: minmax(0, 1fr); }
  .handsets { margin-top: 24px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .pj-index a { grid-template-columns: 48px minmax(0, 1fr) auto 22px; }
  .pi-year { display: none; }
}
@media (max-width: 760px) {
  .work-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .browser { border-radius: 10px; }
  .browser-bar { height: 30px; padding: 0 11px; gap: 5px; }
  .browser-bar > i { width: 7px; height: 7px; }
  .browser-url { height: 19px; padding: 0 9px; font-size: 10px; gap: 5px; }
  .browser-url svg { width: 9px; height: 9px; }
  .browser-xl { border-radius: 12px; }
  .browser-xl .browser-bar { height: 32px; padding: 0 12px; }
  .browser-xl .browser-url { height: 20px; font-size: 10.5px; }
  .pj-index a { grid-template-columns: 34px minmax(0, 1fr) 20px; row-gap: 8px; gap: 8px 12px; }
  .pi-num { grid-row: 1; align-self: start; padding-top: .9em; }
  .pi-tags { grid-column: 2; grid-row: 2; font-size: 11px; }
  .pj-index .arr { grid-column: 3; grid-row: 1; }
  .case-meta > div, .case-meta > div + div { padding: 16px 12px 0 0; }
  .case-meta > div:nth-child(2n) { padding-left: 14px; }
  .case-meta dd { font-size: 15px; }
  .case-stats { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cstat, .cstat:first-child { padding: 26px 0 30px; border-left: 0 !important; }
  .ba { aspect-ratio: 4 / 3.4; border-radius: 14px; }
  .ba-img { object-position: 50% 50%; }
  .ba-handle b { width: 46px; height: 46px; }
  .ba-notes { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .mo-pair-shots { grid-template-columns: minmax(0, 1fr); }
  .mo-arrow { justify-self: center; rotate: 90deg; width: 38px; height: 38px; }
  .shot { border-radius: 11px; }
  .handset { width: 30vw; }
  .hs-main { width: 44vw; }
  .hs-side { margin: 0 -7vw; }
  .work-facts li, .more-facts li { padding: 14px 12px 0; }
  .work-facts b, .more-facts b { font-size: 20px; }
  .more-card { min-height: 0; border-radius: 22px; padding: 26px 22px 30px; }
  .more-self { grid-template-columns: minmax(0, 1fr); }
  .more-gem { width: min(74vw, 340px); justify-self: center; }
  .more-q { font-size: 6.4rem; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .line-in, html.js [data-split] .sw > span { transform: none; }
}

/* =====================================================================
   2026-10-13 — two sides: marketing outside, AI efficiency inside
   ===================================================================== */

.sheet.dark { background: var(--black); }

/* ============ TWO SIDES (sticky, four steps) ============ */
.facets { position: relative; height: 340vh; }
.facets .sticky { display: flex; align-items: center; }
.facets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
  padding-top: var(--nav-h);
}
.fc-steps { display: grid; }
.fc-step { grid-area: 1 / 1; }
html.js .fc-step {
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity .5s, transform .8s var(--ease-out), visibility 0s linear .5s;
}
html.js .fc-step.on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s .12s, transform 1s var(--ease-out) .12s, visibility 0s; }
.fc-title { font-size: clamp(2.3rem, 4.6vw, 5rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; margin-bottom: 26px; }
.fc-title em { font-size: 1.08em; }
.fc-text { color: var(--fg-2); font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.65; max-width: 31em; }
.fc-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .3s, gap .4s var(--ease-out);
}
.fc-link:hover { border-color: var(--fg); gap: 14px; }
.fc-link .arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-dots { display: flex; gap: 10px; margin-top: clamp(28px, 5vh, 56px); }
.fc-dots i { width: 26px; height: 2px; background: var(--line-2); transition: background .4s, width .7s var(--ease-out); }
.fc-dots i.on { width: 58px; background: var(--fg); }

.bp-fill { fill: #fff; opacity: 0; transition: opacity .9s var(--ease-out); }
.bp-c, .bp-p { transition: opacity .8s var(--ease-out); }
.facets[data-s="1"] .bp-crown, .facets[data-s="2"] .bp-pav { opacity: .12; }
.facets[data-s="3"] .bp-fill { opacity: .06; }
.facets[data-s="1"] .bp-p, .facets[data-s="2"] .bp-c { opacity: .26; }
.bp-tag { opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .8s var(--ease-out); }
.bp-tag rect { fill: var(--black); stroke: rgba(255, 255, 255, .75); stroke-width: .9; }
.bp-tag text { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: #fff; }
.facets[data-s="1"] .bp-tag-c, .facets[data-s="2"] .bp-tag-p,
.facets[data-s="3"] .bp-tag { opacity: 1; transform: none; }
.ray, .ray-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .5s var(--ease-io), opacity .4s; }
.ray { stroke: #fff; stroke-width: 1.5; }
.ray-glow { stroke: rgba(255, 255, 255, .16); stroke-width: 7; }
.ray-spark { fill: #fff; opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .3s; }
.facets[data-s="3"] .ray, .facets[data-s="3"] .ray-glow { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .25s, opacity .3s .25s; }
.facets[data-s="3"] .ray-spark { opacity: 1; transform: scale(1); transition: opacity .4s 2.6s, transform .9s cubic-bezier(.3, 1.6, .5, 1) 2.6s; animation: twinkle 2.4s var(--ease-io) 3.5s infinite; }
html:not(.js) .facets { height: auto; padding: 10vh 0; }
html:not(.js) .facets .sticky { position: static; height: auto; }
html:not(.js) .fc-step { grid-area: auto; margin-bottom: 48px; }

/* ============ PAVILION: AI that takes work off the team ============ */
.pav { position: relative; height: 470vh; }
.pav .sticky { display: flex; align-items: center; }
.pav-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4.4vw, 80px);
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 16px;
}
.pav-title { font-size: clamp(2rem, 3.6vw, 3.9rem); line-height: 1; letter-spacing: -.048em; font-weight: 500; margin-bottom: clamp(16px, 3.4vh, 36px); max-width: 12em; }
.pav-title em { font-size: 1.08em; }
.pav-list { border-top: 1px solid var(--line); }
.pav-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px;
  padding: clamp(9px, 1.5vh, 15px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  transition: color .5s;
}
.pav-item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; }
.pav-item.on { color: var(--fg); }
.pav-item.on::before { transform: scaleX(1); transition: transform 1.1s var(--ease-out); }
.pav-num { font: 500 11.5px/1.9 var(--mono); letter-spacing: .1em; }
.pav-item h3 { font-size: clamp(16.5px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.pav-item p { max-height: 0; opacity: 0; overflow: hidden; color: var(--fg-2); font-size: clamp(14.5px, 1.05vw, 16px); line-height: 1.5; transition: max-height .5s var(--ease-out), opacity .4s, margin .5s var(--ease-out); }
.pav-item.on p { max-height: 7em; opacity: 1; margin-top: 6px; transition: max-height .8s var(--ease-out), opacity .6s .15s, margin .8s var(--ease-out); }
.pav-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(16px, 3vh, 30px); }
.pav-count { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--mute); }
.pav-count b { color: var(--fg); font-weight: 500; }
.pav-foot .btn .arr { width: 14px; height: 14px; }
html:not(.js) .pav { height: auto; padding: 10vh 0; }
html:not(.js) .pav .sticky { position: static; height: auto; }
html:not(.js) .pav-item p { max-height: none; opacity: 1; margin-top: 6px; }

/* the machine: input → AI → checked result */
.pm {
  position: relative;
  border-radius: 22px;
  background: #101010;
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0, 0, 0, .9);
  overflow: hidden;
  isolation: isolate;
}
.pm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 100%);
}
.pm-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pm-bar > i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pm-name { margin-left: 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--mute); }
.pm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.pm-live b { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
.pm-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 8.4vw, 124px) minmax(0, 1.12fr);
  align-items: center;
  padding: clamp(18px, 2.6vw, 34px) clamp(16px, 2vw, 28px);
  min-height: clamp(270px, 44vh, 410px);
}
.pm-h { display: block; margin-bottom: 14px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pm-layers { display: grid; }
.pm-layer { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.pm-layer.on { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.pm-in .pm-layer { display: flex; flex-direction: column; gap: 10px; }
.fchip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: clamp(13px, 1vw, 15px);
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .3s, transform .3s;
}
.fchip i { flex: none; min-width: 38px; padding: 4px 5px; border-radius: 5px; background: #f4f4f4; color: var(--black); font: 600 9.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-align: center; }
.pm-layer.on .fchip { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--ease-out); }
.pm-layer.on .fchip:nth-child(2) { transition-delay: .09s; }
.pm-layer.on .fchip:nth-child(3) { transition-delay: .18s; }

.pm-core { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 130px; }
.pm-wire {
  position: absolute; top: 50%; height: 1px; width: 50%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 5px, transparent 5px 11px);
  background-size: 22px 1px;
  animation: flow .7s linear infinite;
}
.pm-wire-in { left: -6px; }
.pm-wire-out { right: -6px; }
@keyframes flow { to { background-position: 22px 0; } }
.pm-orbit { position: absolute; width: 94px; height: 94px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .26); animation: spin 16s linear infinite; }
.pm-ring { position: absolute; width: 66px; height: 66px; border-radius: 50%; background: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 0 0 rgba(255, 255, 255, .25); }
.pm.flash .pm-ring { animation: ping .9s var(--ease-out); }
@keyframes ping { from { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 0 rgba(255, 255, 255, .35); } to { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 0 26px rgba(255, 255, 255, 0); } }
.pm-gem { position: relative; width: 26px; height: 26px; color: #fff; --bg: #0a0a0a; animation: gem 3s var(--ease-io) infinite; }
.pm.flash .pm-gem { animation: gemspin .9s var(--ease-out); }
@keyframes gem { 50% { transform: scale(1.1); } }
@keyframes gemspin { from { transform: rotate(-180deg) scale(.6); } to { transform: none; } }
.pm-core-label { position: absolute; top: calc(50% + 54px); font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--mute); }

.doc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(100%, 240px);
  min-height: clamp(190px, 27vh, 270px);
  justify-self: center;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background: #f6f6f4;
  color: var(--black);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .3s, transform .3s;
}
.pm-layer.on .doc { opacity: 1; transform: none; transition: opacity .5s .3s, transform .9s var(--ease-out) .3s; }
.doc-h { font: 600 12.5px/1.2 var(--sans); letter-spacing: -.01em; padding-bottom: 8px; border-bottom: 1px solid rgba(10, 10, 10, .14); }
.doc-foot { margin-top: auto; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: rgba(10, 10, 10, .5); }
.stamp {
  position: absolute; right: 10px; bottom: 10px;
  padding: 5px 8px;
  border: 1.5px solid var(--black); border-radius: 6px;
  background: #f6f6f4;
  font: 600 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: rotate(-8deg) scale(1.6);
  transition: opacity .2s, transform .2s;
}
.pm-layer.on .stamp { opacity: 1; transform: rotate(-8deg) scale(1); transition: opacity .2s 1.5s, transform .5s cubic-bezier(.3, 1.6, .5, 1) 1.5s; }
.doc-dwg { width: 100%; height: auto; fill: none; stroke: var(--black); stroke-width: 1.1; stroke-linecap: round; }
.doc-dwg .f { fill: var(--black); stroke: none; }
.doc-dwg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s; }
.pm-layer.on .doc-dwg [pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-io) .5s; }
.doc-lines { display: flex; flex-direction: column; gap: 6px; }
.doc-lines i, .doc-table i { display: block; height: 5px; border-radius: 3px; background: rgba(10, 10, 10, .14); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.doc-lines .s { width: 62%; }
.doc-lines .m { width: 80%; }
.pm-layer.on .doc-lines i, .pm-layer.on .doc-table i { transform: none; transition: transform .7s var(--ease-out) calc(.45s + var(--n, 0) * 80ms); }
.doc-lines i:nth-child(2), .doc-table i:nth-child(2) { --n: 1; }
.doc-lines i:nth-child(3), .doc-table i:nth-child(3) { --n: 2; }
.doc-lines i:nth-child(4) { --n: 3; }
.doc-table { display: flex; flex-direction: column; gap: 0; margin-top: 4px; border-top: 1px solid rgba(10, 10, 10, .14); }
.doc-table i { height: 18px; border-radius: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .14) 0 46%, transparent 46% 74%, rgba(10, 10, 10, .22) 74% 100%) 0 50% / 100% 5px no-repeat; border-bottom: 1px solid rgba(10, 10, 10, .1); }
.doc-total { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 7px; border-top: 1.5px solid var(--black); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.doc-total b { width: 38%; height: 7px; border-radius: 3px; background: var(--black); margin-right: 64px; }
.doc-qa { gap: 10px; justify-content: center; background: #f6f6f4; }
.qa-q, .qa-a { max-width: 88%; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.qa-q { align-self: flex-end; background: var(--black); color: #fff; border-bottom-right-radius: 4px; }
.qa-a { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14); border-bottom-left-radius: 4px; font-weight: 600; }
.qa-src { align-self: flex-start; font: 500 9.5px/1.3 var(--mono); letter-spacing: .04em; color: rgba(10, 10, 10, .6); padding-left: 2px; opacity: 0; transition: opacity .2s; }
.qa-src::before { content: "↳ "; }
.pm-layer.on .qa-q { opacity: 1; transform: none; transition: opacity .4s .45s, transform .6s var(--ease-out) .45s; }
.pm-layer.on .qa-a { opacity: 1; transform: none; transition: opacity .4s 1.2s, transform .6s var(--ease-out) 1.2s; }
.pm-layer.on .qa-src { opacity: 1; transition: opacity .5s 1.7s; }
.doc-bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-bottom: 6px; border-bottom: 1px solid rgba(10, 10, 10, .2); }
.doc-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; background: var(--black); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .2s; }
.doc-bars i:nth-child(odd) { background: rgba(10, 10, 10, .32); }
.pm-layer.on .doc-bars i { transform: none; transition: transform .8s var(--ease-out); }
.pm-layer.on .doc-bars i:nth-child(1) { transition-delay: .45s; }
.pm-layer.on .doc-bars i:nth-child(2) { transition-delay: .52s; }
.pm-layer.on .doc-bars i:nth-child(3) { transition-delay: .59s; }
.pm-layer.on .doc-bars i:nth-child(4) { transition-delay: .66s; }
.pm-layer.on .doc-bars i:nth-child(5) { transition-delay: .73s; }
.pm-layer.on .doc-bars i:nth-child(6) { transition-delay: .8s; }
.doc-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-langs i { padding: 5px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .22); font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .06em; }
.pm-layer.on .doc-langs i { animation: lang 4s steps(1, end) infinite; }
.doc-langs i:nth-child(2) { animation-delay: .5s !important; }
.doc-langs i:nth-child(3) { animation-delay: 1s !important; }
.doc-langs i:nth-child(4) { animation-delay: 1.5s !important; }
.doc-langs i:nth-child(5) { animation-delay: 2s !important; }
.doc-langs i:nth-child(6) { animation-delay: 2.5s !important; }
.doc-langs i:nth-child(7) { animation-delay: 3s !important; }
.doc-langs i:nth-child(8) { animation-delay: 3.5s !important; }
@keyframes lang { 0% { background: var(--black); color: #fff; } 12.5%, 100% { background: transparent; color: var(--black); } }
.doc-checks { display: flex; flex-direction: column; }
.doc-checks i { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(10, 10, 10, .1); font-size: 11.5px; font-style: normal; line-height: 1.2; opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .2s; }
.doc-checks i::before { content: "✓"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--black); color: #fff; font-size: 9px; }
.pm-layer.on .doc-checks i { opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--ease-out); }
.pm-layer.on .doc-checks i:nth-child(1) { transition-delay: .45s; }
.pm-layer.on .doc-checks i:nth-child(2) { transition-delay: .7s; }
.pm-layer.on .doc-checks i:nth-child(3) { transition-delay: .95s; }
.pm-layer.on .doc-checks i:nth-child(4) { transition-delay: 1.2s; }
.doc-zero { display: flex; align-items: baseline; gap: 10px; margin-top: auto; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.doc-zero b { font: 200 46px/1 var(--sans); letter-spacing: -.06em; }
.pm-log { display: grid; padding: 12px 16px; border-top: 1px solid var(--line); font: 500 11.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--fg-2); }
.pm-log .pm-layer { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; clip-path: inset(0 100% 0 0); }
.pm-log .pm-layer.on { clip-path: inset(0 0 0 0); transition: opacity .3s, clip-path 1.5s steps(48, end) .35s, visibility 0s; }

/* ============ DRAWING SHEET (illustration, draws itself) ============ */
.dwg { display: block; width: 100%; height: auto; }
.dwg .paper { fill: #fdfdfb; }
.dwg path.ink, .dwg path.thin { fill: none; stroke: #111; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.dwg path.thin { stroke-width: .7; }
.dwg .head, .dwg .fill, .dwg .dot { fill: #111; }
.dwg text { font-family: var(--mono); fill: #111; }
.dwg .zone { font-size: 8px; fill: #777; }
.dwg .lbl { font-size: 11px; font-weight: 600; }
.dwg .sm { font-size: 9px; fill: #444; }
.dwg .tb { font-size: 8.5px; fill: #333; }
.dwg .tb-b { font-size: 9px; font-weight: 600; }
html.js [data-draw] .dwg path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js.ready [data-draw].in .dwg path[pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-io) calc(var(--k, 0) * 140ms); }
html.js [data-draw] .dwg text, html.js [data-draw] .dwg .head, html.js [data-draw] .dwg .fill, html.js [data-draw] .dwg .dot { opacity: 0; }
html.js.ready [data-draw].in .dwg text, html.js.ready [data-draw].in .dwg .head, html.js.ready [data-draw].in .dwg .fill, html.js.ready [data-draw].in .dwg .dot { opacity: 1; transition: opacity .6s calc(var(--k, 0) * 140ms + .6s); }

/* document viewer frame */
.viewer {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #1b1b1b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -40px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.viewer-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1b1b1b; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.viewer-bar > i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.viewer-file { min-width: 0; margin-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/1 var(--mono); color: #b4b4b4; }
.viewer-page { flex: none; margin-left: auto; padding-left: 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.viewer-stage { display: block; padding: clamp(12px, 2.2vw, 30px); background: #2b2b2b; }
.viewer-stage .dwg { border-radius: 2px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.viewer-xl { border-radius: 18px; transform-origin: 50% 0; will-change: transform; }
.viewer-xl .viewer-bar { height: 44px; padding: 0 18px; }
.viewer-xl .viewer-bar > i { width: 11px; height: 11px; }

/* home: second case card */
.work-card + .work-card { margin-top: clamp(90px, 15vh, 170px); }
.work-card-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.work-card-rev .viewer { order: 2; }

/* projects index: the drawing as hover thumbnail */
.pi-thumb-dwg { background: #fdfdfb; }
.pi-thumb-dwg .dwg { width: 100%; height: 100%; }

/* ============ AI PAGE ============ */
.ai-hero { padding: calc(var(--nav-h) + clamp(40px, 10vh, 120px)) 0 clamp(80px, 13vh, 150px); overflow: hidden; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(36px, 5vw, 96px); align-items: center; }
.ai-title { font-size: clamp(3rem, 7.2vw, 8.2rem); }
html.js .ai-hero-vis { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out) .4s, transform 1.3s var(--ease-out) .4s; }
html.js.ready .ai-hero-vis { opacity: 1; transform: none; }
.sheets { position: relative; }
.sheet-front { position: relative; z-index: 2; border-radius: 6px; overflow: hidden; background: #fdfdfb; box-shadow: 0 0 0 1px var(--line), 0 50px 90px -46px rgba(0, 0, 0, .5); }
.sheet-back { position: absolute; inset: 0; border-radius: 6px; background: #f2f2ef; box-shadow: 0 0 0 1px var(--line); }
.sb1 { z-index: 1; transform: rotate(-2.4deg) translate(-12px, 10px); }
.sb2 { z-index: 0; transform: rotate(3deg) translate(16px, 16px); background: #e9e9e5; }
.sheet-status { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.ss-left { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ss-dot { width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--fg); animation: blink 1.1s steps(2, jump-none) infinite; }
.ss-right { opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .8s var(--ease-out); }
.done .ss-right { opacity: 1; transform: none; }
.done .ss-dot { animation: none; }
.sheet-note { margin-top: 12px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* calculator */
.calc-sec { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.calc-head, .ai-case-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; margin-bottom: clamp(44px, 7vh, 84px); }
.calc-head .h2, .ai-case-head .h2 { max-width: 12em; }
.calc { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.calc-inputs { display: flex; flex-direction: column; gap: clamp(30px, 4.6vh, 48px); padding: clamp(24px, 3.4vw, 52px); }
.calc-tasks { border: 0; min-width: 0; }
.calc-tasks legend { margin-bottom: 18px; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; color: var(--fg-2);
  transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg); color: var(--fg); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"]::before { background: var(--bg); box-shadow: none; }
.cr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.cr-top label { font-size: 16px; color: var(--fg-2); }
.cr-top output { font-size: clamp(30px, 2.8vw, 42px); font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-range input {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 30px;
  background: transparent; cursor: pointer;
  touch-action: pan-y;
}
.calc-range input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fg) var(--fill), var(--line-2) var(--fill)); }
.calc-range input::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fg) var(--fill), var(--line-2) var(--fill)); }
.calc-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); transition: box-shadow .3s; }
.calc-range input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); }
.calc-range input:hover::-webkit-slider-thumb, .calc-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 255, 255, .16); }
.calc-range input:focus-visible { outline: none; }
.cr-scale { display: flex; justify-content: space-between; margin-top: 4px; font: 500 10.5px/1 var(--mono); color: var(--mute); }
.calc-result {
  --bg: #ffffff; --fg: #0a0a0a; --fg-2: #4b4b4b; --mute: #8d8d8d; --line: rgba(10, 10, 10, .1); --line-2: rgba(10, 10, 10, .24);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 3.4vw, 52px);
  background: var(--bg); color: var(--fg);
}
.calc-k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.calc-num { margin: 18px 0 6px; font-size: clamp(4.2rem, 8.4vw, 8.8rem); font-weight: 200; line-height: .9; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.calc-unit { font-size: 17px; color: var(--fg-2); }
.calc-fte { margin-top: 12px; font-size: 16px; color: var(--fg-2); }
.calc-fte b { color: var(--fg); font-weight: 600; }
.calc-build { align-self: stretch; margin: 28px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-build h3 { margin-bottom: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.calc-build li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; animation: liIn .55s var(--ease-out); }
.calc-build li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; background: var(--fg); clip-path: polygon(28% 0, 72% 0, 100% 34%, 50% 100%, 0 34%); }
@keyframes liIn { from { opacity: 0; transform: translateY(8px); } }
.calc-empty { padding: 12px 0; color: var(--mute); font-size: 15.5px; }
.calc-note { margin-top: 20px; font: 500 10.5px/1.55 var(--mono); letter-spacing: .04em; color: var(--mute); max-width: 44em; }

/* areas */
.areas { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.area {
  display: flex; flex-direction: column;
  min-height: clamp(340px, 46vh, 430px);
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease-out), opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.area:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.area-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: clamp(40px, 7vh, 72px); }
.area-num { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.area-ico { width: 46px; height: 46px; padding: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: background .4s, color .4s, transform .8s var(--ease-out); }
.area:hover .area-ico { background: var(--fg); color: var(--bg); transform: rotate(-10deg); }
.area h3 { margin-bottom: 10px; font-size: clamp(1.4rem, 1.9vw, 1.9rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.area p { flex: 1; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.area-ex { margin-top: 20px; border-top: 1px solid var(--line); }
.area-ex li { padding: 9px 0; border-bottom: 1px solid var(--line); font: 500 12px/1.4 var(--mono); letter-spacing: .03em; }
.area-ex li::before { content: "→ "; color: var(--mute); }

/* proof (short case) */
.ai-case { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.ai-case .case-stats { margin-top: clamp(80px, 13vh, 150px); }
.ai-case-cta { display: flex; justify-content: center; margin-top: clamp(56px, 9vh, 100px); }
.conf-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; max-width: 46em; font: 500 11.5px/1.6 var(--mono); letter-spacing: .04em; color: var(--mute); }
.conf-note svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.conf-wide { max-width: none; margin-top: 26px; padding: 16px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }

/* timeline (real times) */
.tl-k { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 30px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tl-k-r::before { content: "● "; color: var(--fg); }
.tl-list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 30px); padding-top: 40px; }
.tl-list::before, .tl-list::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.tl-list::after { background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tl-item { position: relative; }
.tl-dot { position: absolute; top: -40px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s, box-shadow .5s; }
.tl-when time { display: block; font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 200; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tl-when span { display: block; margin-top: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tl-item h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.tl-item p { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
html.js .tl-item { opacity: .32; transition: opacity .7s var(--ease-out); }
html.js .tl-item.on { opacity: 1; }
.tl-item.on .tl-dot, html:not(.js) .tl-dot { background: var(--fg); box-shadow: 0 0 0 6px var(--line); }
html:not(.js) .tl-list::after { transform: none; }

/* principles + steps */
.principles { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pr { padding: 32px clamp(14px, 2vw, 32px) 0; }
.pr + .pr { border-left: 1px solid var(--line); }
.pr:first-child { padding-left: 0; }
.pr-num { display: block; margin-bottom: 30px; font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .8; }
.pr h3 { margin-bottom: 10px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.pr p { color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.steps-head { margin-top: clamp(110px, 18vh, 200px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); padding-top: 44px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps::after { background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step-dot { position: absolute; top: -44px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s, box-shadow .5s; }
.step.on .step-dot, html:not(.js) .step-dot { background: var(--fg); box-shadow: 0 0 0 6px var(--line); }
html:not(.js) .steps::after { transform: none; }
.step-num { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.step h3 { margin: 16px 0 10px; font-size: clamp(1.5rem, 2.2vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.step p { color: var(--fg-2); font-size: 15.5px; line-height: 1.55; max-width: 22em; }

/* FAQ */
.faq { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 3vh, 30px) 0;
  list-style: none; cursor: pointer;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 12px; right: 12px; top: 18.5px; height: 1.2px; background: currentColor; }
.faq-list summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.faq-list summary:hover i { box-shadow: inset 0 0 0 1px var(--fg); }
.faq-list details[open] summary i { background: var(--fg); color: var(--bg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { max-width: 38em; padding: 0 64px 30px 0; color: var(--fg-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.faq-list details[open] p { animation: faqIn .6s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ============ PROJECTS: case 02 ============ */
.case-light { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.case-light .live-dot { background: var(--black); animation-name: liveDark; }
@keyframes liveDark { 0% { box-shadow: 0 0 0 0 rgba(10, 10, 10, .4); } 70%, 100% { box-shadow: 0 0 0 10px rgba(10, 10, 10, 0); } }
.io, .sot { margin-top: clamp(110px, 18vh, 210px); }
.io-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 15vw, 210px) minmax(0, 1.25fr); align-items: center; }
.io-h { margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.io-list li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-size: clamp(15.5px, 1.25vw, 18.5px); letter-spacing: -.01em; line-height: 1.35; }
.io-list li:last-child { border-bottom: 1px solid var(--line); }
.io-list i { flex: none; min-width: 46px; padding: 6px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-align: center; color: var(--fg-2); }
.io-out i { background: var(--fg); color: var(--bg); box-shadow: none; }
html.js .io-list li { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease-out); }
html.js .io-grid.in li { opacity: 1; transform: none; }
.io-grid.in .io-list li:nth-child(2) { transition-delay: .08s; }
.io-grid.in .io-list li:nth-child(3) { transition-delay: .16s; }
.io-grid.in .io-list li:nth-child(4) { transition-delay: .24s; }
.io-grid.in .io-out li:nth-child(1) { transition-delay: .5s; }
.io-grid.in .io-out li:nth-child(2) { transition-delay: .58s; }
.io-grid.in .io-out li:nth-child(3) { transition-delay: .66s; }
.io-grid.in .io-out li:nth-child(4) { transition-delay: .74s; }
.io-grid.in .io-out li:nth-child(5) { transition-delay: .82s; }
.io-grid.in .io-out li:nth-child(6) { transition-delay: .9s; }
.io-core { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 160px; }
.io-wire { position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--fg) 0 6px, transparent 6px 12px); background-size: 24px 1px; animation: flow .9s linear infinite; }
.io-node { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--black); color: #fff; box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line-2); }
.io-node .mark { width: 28px; height: 28px; --bg: #0a0a0a; }
.io-core-l { position: absolute; top: calc(50% + 56px); left: 0; right: 0; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--mute); }
.sot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.sot-copy .h2 { margin-bottom: 26px; }
.sot-vis svg { display: block; width: 100%; height: auto; overflow: visible; }
.sot-spokes path { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.sot-pulses circle { fill: var(--fg); }
.sot-hub { fill: var(--black); }
.sot-hub-t { fill: #fff; font: 500 19px var(--sans); letter-spacing: -.02em; }
.sot-hub-s { fill: #9a9a9a; font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sot-nodes rect { fill: var(--bg); stroke: var(--line-2); }
.sot-nodes g text { fill: var(--fg); font: 500 12.5px var(--sans); letter-spacing: -.01em; }

.case-proof { padding: clamp(90px, 15vh, 170px) 0 calc(clamp(90px, 15vh, 170px) + var(--sheet)); }
.twin, .audit, .open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin-top: clamp(110px, 18vh, 210px); }
.twin-copy .h2, .audit-copy .h2, .open-copy .h2 { margin-bottom: 26px; }
.open { align-items: start; }
.term { border-radius: 18px; background: #121212; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.term-body { padding: 18px 0 22px; list-style: none; font: 400 clamp(12px, .98vw, 14.5px)/1.9 var(--mono); color: #c8c8c8; }
.term-body li { display: flex; align-items: center; gap: 14px; padding: 0 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body b { flex: none; padding: 0 6px; border-radius: 3px; background: #f4f4f4; color: #0a0a0a; font-size: .82em; font-weight: 600; line-height: 1.7; }
.term-body .t-cmd { color: #fff; margin-bottom: 4px; }
.term-body .t-sum { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: #fff; }
html.js .term-body li { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out); }
html.js .term.in .term-body li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 110ms + .3s); }
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.au { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding: clamp(22px, 2.6vw, 36px); background: var(--black); }
.au-from { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 300; letter-spacing: -.03em; color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.au-eq .au-from { text-decoration: none; }
.au-arr { font-size: 1.3rem; color: var(--mute); }
.au-num { font-size: clamp(3.4rem, 5.6vw, 5.8rem); font-weight: 200; line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.au-word { font-size: clamp(2.4rem, 3.8vw, 3.8rem); font-weight: 300; letter-spacing: -.04em; }
.au p { grid-column: 1 / -1; margin-top: 18px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.open-list { border-top: 1px solid var(--line); }
.open-list li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; }
.open-list li::after { content: ""; flex: none; align-self: center; width: 11px; height: 11px; margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--fg-2); }
.open-list span { flex: none; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.case-proof .case-stats { margin-top: clamp(110px, 18vh, 210px); }

/* ============ RESPONSIVE (new parts) ============ */
@media (max-width: 1180px) {
  .tl-list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
}
@media (max-width: 1023px) {
  .facets { height: 360vh; }
  .facets-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: center; height: 100%; padding-bottom: 20px; }
  .facets-bp { order: -1; width: min(100%, 560px, 52svh); justify-self: center; }
  .fc-title { font-size: clamp(1.9rem, min(6.4vw, 5.4svh), 3.4rem); margin-bottom: 14px; }
  .fc-text { font-size: 15.5px; line-height: 1.55; }
  .fc-link { margin-top: 16px; }
  .fc-dots { margin-top: 18px; }
  .pav { height: 520vh; }
  .pav-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: center; height: 100%; padding-bottom: 14px; }
  .pav-copy { display: contents; }
  .pav-copy > .label { order: 1; margin-bottom: 0; }
  .pav-title { order: 2; margin-bottom: 4px; font-size: clamp(1.7rem, min(5.6vw, 4.4svh), 2.8rem); }
  .pm { order: 3; }
  .pav-list { order: 4; display: grid; border: 0; }
  .pav-foot { order: 5; margin-top: 0; }
  .pav-item { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }
  .pav-item.on { opacity: 1; visibility: visible; transition: opacity .6s .1s, visibility 0s; }
  .pav-item::before { display: none; }
  .pav-item p { max-height: none; opacity: 1; margin-top: 4px; }
  .pm-flow { min-height: clamp(190px, 28svh, 300px); padding: 14px 14px 16px; }
  .doc { min-height: clamp(150px, 22svh, 230px); }
  .work-card-rev { grid-template-columns: minmax(0, 1fr); }
  .work-card-rev .viewer { order: 0; }
  .ai-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-hero-vis { max-width: 720px; }
  .calc-head, .ai-case-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .pr:nth-child(3) { border-left: 0; padding-left: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .io-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .io-core { min-height: 150px; }
  .io-wire { left: 50%; right: auto; top: 8%; bottom: 8%; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--fg) 0 6px, transparent 6px 12px); background-size: 1px 24px; animation: flowY .9s linear infinite; }
  @keyframes flowY { to { background-position: 0 24px; } }
  .io-core-l { top: auto; bottom: 6px; left: calc(50% + 50px); right: auto; text-align: left; }
  .sot, .twin, .audit, .open { grid-template-columns: minmax(0, 1fr); }
  .sot-vis { max-width: 520px; }
}
@media (max-width: 760px) {
  .facets-bp { width: min(100%, 40svh); }
  .bp-text text { font-size: 15px; }
  .pav-title { font-size: clamp(1.6rem, min(7.4vw, 4svh), 2.2rem); }
  .pm { border-radius: 16px; }
  .pm-bar { height: 34px; padding: 0 12px; }
  .pm-bar > i { width: 8px; height: 8px; }
  .pm-name { font-size: 10.5px; }
  .pm-flow { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1.1fr); padding: 12px 10px 14px; }
  .pm-h { margin-bottom: 10px; font-size: 9.5px; }
  .pm-in .pm-layer { gap: 7px; }
  .fchip { gap: 7px; padding: 7px 8px; font-size: 12px; border-radius: 8px; }
  .fchip i { min-width: 30px; font-size: 8px; padding: 3px 4px; }
  .pm-orbit { width: 54px; height: 54px; }
  .pm-ring { width: 40px; height: 40px; }
  .pm-gem { width: 18px; height: 18px; }
  .pm-core-label { top: calc(50% + 34px); font-size: 9px; }
  .pm-core { min-height: 100px; }
  .doc { padding: 10px 10px 9px; gap: 7px; min-height: clamp(140px, 21svh, 200px); border-radius: 8px; }
  .doc-h { font-size: 11px; padding-bottom: 6px; }
  .doc-bars { height: 60px; gap: 5px; }
  .doc-langs i { font-size: 9px; padding: 4px 5px; }
  .doc-checks i { font-size: 10px; padding: 5px 0; gap: 6px; }
  .doc-checks i::before { width: 13px; height: 13px; font-size: 8px; }
  .doc-zero b { font-size: 34px; }
  .qa-q, .qa-a { font-size: 11px; padding: 7px 9px; }
  .stamp { font-size: 8.5px; padding: 4px 6px; right: 8px; bottom: 8px; }
  .doc-total b { margin-right: 52px; }
  .doc-foot { display: none; }
  .pm-log { padding: 9px 12px; font-size: 10.5px; }
  .pav-item h3 { font-size: 17px; }
  .pav-item p { font-size: 14.5px; }
  .pav-foot .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .viewer { border-radius: 10px; }
  .viewer-bar { height: 30px; padding: 0 11px; gap: 5px; }
  .viewer-bar > i { width: 7px; height: 7px; }
  .viewer-file { font-size: 10px; margin-left: 6px; }
  .viewer-page { font-size: 10px; }
  .viewer-xl { border-radius: 12px; }
  .viewer-xl .viewer-bar { height: 32px; padding: 0 12px; }
  .ai-hero { padding-top: calc(var(--nav-h) + 36px); }
  .ai-title { font-size: clamp(2.6rem, 12.4vw, 4.4rem); }
  .ai-ctas .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .sheet-status { flex-direction: column; gap: 10px; margin-top: 24px; }
  .calc { border-radius: 22px; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .area { min-height: 0; }
  .area-top { padding-bottom: 28px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pr, .pr:first-child { padding: 26px 0 30px; border-left: 0 !important; }
  .pr-num { margin-bottom: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 0 0 0 40px; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  html:not(.js) .steps::after { transform: none; }
  .step-dot { top: 4px; left: -40px; }
  .tl-list { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 0 40px; overflow: visible; }
  .tl-list::before, .tl-list::after { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl-list::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  html:not(.js) .tl-list::after { transform: none; }
  .tl-dot { top: 8px; left: -40px; }
  .tl-item h3 { margin-top: 10px; }
  .tl-k { flex-direction: column; gap: 10px; }
  .faq-list details p { padding-right: 0; }
  .faq-list summary { gap: 16px; }
  .audit-grid { grid-template-columns: minmax(0, 1fr); }
  .term-body { font-size: 11.5px; }
  .term-body li { padding: 0 14px; gap: 10px; }
  .sot-nodes g text { font-size: 13.5px; }
  .work-card + .work-card { margin-top: 90px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .pav-copy > .label, .pm-log, .fc-link { display: none; }
  .facets-bp { width: min(100%, 34svh); }
}
