@font-face {
  font-family: "DG Archivo";
  src: url("assets/fonts/archivo-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DG Inter Tight";
  src: url("assets/fonts/inter-tight-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DG Instrument";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

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

:root {
  --page: #f3f4f0;
  --page-rgb: 243, 244, 240;
  --surface: #ffffff;
  --ink: #101114;
  --ink-rgb: 16, 17, 20;
  --muted: #5d6269;
  --line: rgba(16, 17, 20, 0.16);
  --line-strong: rgba(16, 17, 20, 0.42);
  --blue: #315cff;
  --blue-deep: #183fd4;
  --coral: #ff7048;
  --lime: #d7ff63;
  --violet: #a78bfa;
  --cyan: #62e6ec;
  --green: #75d3a8;
  --dark: #080b10;
  --dark-soft: #11151d;
  --white: #f7f9ff;
  --edge: clamp(1.25rem, 4.6vw, 5.25rem);
  --max: 1600px;
  --header: 84px;
  --font-display: "DG Archivo", "Arial Narrow", Arial, sans-serif;
  --font-sans: "DG Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "DG Instrument", Georgia, serif;
  --font-mono: "DG Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 220ms;
  --medium: 620ms;
  --slow: 900ms;
}

html[data-theme="dark"] {
  --page: #080a0e;
  --page-rgb: 8, 10, 14;
  --surface: #11151b;
  --ink: #f2f5fa;
  --ink-rgb: 242, 245, 250;
  --muted: #a8afb9;
  --line: rgba(242, 245, 250, 0.16);
  --line-strong: rgba(242, 245, 250, 0.46);
  --blue: #6e8cff;
  --blue-deep: #4b6eff;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1.25rem);
  text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--header) + 2rem);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  transition: background-color var(--medium) var(--ease), color var(--medium) var(--ease);
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
picture,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

ul,
ol {
  padding: 0;
}

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.section-shell,
.container {
  position: relative;
  width: min(calc(100% - (var(--edge) * 2)), var(--max));
  margin-inline: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  background: var(--blue);
  color: #fff;
  padding: 0.8rem 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 72, "wght" 510;
  font-weight: 510;
  letter-spacing: 0;
  line-height: 0.9;
}

h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-variation-settings: normal;
  font-weight: 400;
}

p {
  color: var(--muted);
}

.meta-label,
.hero-meta,
.case-index,
.case-scope,
.case-visual figcaption,
.index-number,
.index-card ul,
.footer-bottom,
.mobile-menu-meta {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: uppercase;
}

.button,
.header-cta,
.text-link,
.contact-email {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0 1.15rem;
  text-transform: uppercase;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.button svg,
.header-cta svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.button:hover,
.header-cta:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button-accent,
.header-cta {
  border-color: var(--coral);
  background: var(--coral);
  color: #111216;
}

.button-accent:hover,
.header-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
}

.button-dark {
  border-color: #111216;
  background: #111216;
  color: #fff;
}

.button-dark:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.text-link {
  min-height: 44px;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
}

.light-link {
  color: #f7f9ff;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header);
  border-bottom: 1px solid transparent;
  transition: min-height var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), backdrop-filter var(--fast) var(--ease);
}

.site-header.is-scrolled,
.nav-open .site-header {
  min-height: 72px;
  border-bottom-color: var(--line);
  background: rgba(var(--page-rgb), 0.9);
  backdrop-filter: blur(18px) saturate(130%);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 130;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0 54%, var(--cyan) 72%, var(--coral) 100%);
  box-shadow: 0 0 14px rgba(49, 92, 255, 0.48);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.header-grid {
  position: relative;
  display: grid;
  width: 100%;
  min-height: inherit;
  grid-template-columns: minmax(170px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  padding-inline: var(--edge);
}

.nav-shell {
  display: flex;
  width: 100%;
  min-height: inherit;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--edge);
}

.brand {
  position: relative;
  z-index: 120;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-variation-settings: "wdth" 76, "wght" 660;
  font-weight: 660;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 2.7vw, 2.8rem);
  font-size: 0.86rem;
  font-weight: 570;
}

.desktop-nav a,
.site-footer nav a,
.footer-social a {
  position: relative;
}

.desktop-nav a::after,
.site-footer nav a::after,
.footer-social a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--fast) var(--ease);
}

.desktop-nav a:hover::after,
.site-footer nav a:hover::after,
.footer-social a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.header-cta {
  min-width: 176px;
  margin-left: 0.3rem;
}

.icon-button,
.menu-toggle,
.view-panel-head button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.icon-button {
  border: 1px solid var(--line);
}

.icon-button:hover {
  border-color: var(--ink);
}

.icon-button svg,
.view-panel-head svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.moon-icon,
html[data-theme="dark"] .sun-icon {
  display: none;
}

html[data-theme="dark"] .moon-icon {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-toggle span:not(.sr-only) {
  width: 28px;
  height: 1.5px;
  grid-area: 1 / 1;
  background: currentColor;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.menu-toggle span:nth-of-type(2) { transform: translateY(-7px); }
.menu-toggle span:nth-of-type(4) { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  min-height: 100dvh;
  align-content: space-between;
  background: var(--page);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 28%);
  opacity: 0;
  padding: 7rem var(--edge) 2rem;
  pointer-events: none;
  transition: clip-path var(--slow) var(--ease-strong), opacity var(--fast) var(--ease);
}

.mobile-menu.is-open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: grid;
  min-height: clamp(62px, 10vh, 96px);
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9vw, 4.8rem);
  font-variation-settings: "wdth" 72, "wght" 500;
  line-height: 0.9;
}

.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.mobile-menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.view-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: var(--edge);
  z-index: 140;
  width: min(340px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  background: rgba(var(--page-rgb), 0.96);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(24px) saturate(130%);
  padding: 0.6rem 1rem 0.8rem;
}

.view-panel[hidden] {
  display: none;
}

.view-panel-head,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-panel-head {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.view-panel-head strong {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.view-panel-head button {
  width: 38px;
  height: 38px;
}

.setting-row {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0;
  text-align: left;
}

.setting-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.setting-row[aria-pressed="true"] .switch {
  border-color: var(--blue);
  background: var(--blue);
}

.setting-row[aria-pressed="true"] .switch i {
  background: #fff;
  transform: translateX(16px);
}

/* Hero */
.hero {
  display: grid;
  min-height: max(680px, 100svh);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 4rem);
  padding-top: calc(var(--header) + 2.2rem);
  padding-bottom: 1.35rem;
}

.hero-copy {
  position: relative;
  z-index: 8;
  align-self: center;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(4rem, 6.1vw, 7rem);
  line-height: 0.82;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 span:nth-child(2) {
  margin-left: clamp(0.75rem, 3.6vw, 4rem);
}

.hero h1 span:nth-child(3) {
  margin-left: clamp(2.5rem, 7vw, 8rem);
}

.hero-lead {
  max-width: 33rem;
  margin-top: clamp(1.8rem, 3.2vw, 3.25rem);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.48;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  gap: clamp(2rem, 5vw, 5.2rem);
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
  color: var(--ink);
}

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --back-x: 0px;
  --back-y: 0px;
  --mid-x: 0px;
  --mid-y: 0px;
  --front-x: 0px;
  --front-y: 0px;
  --signal-x: 62%;
  --signal-y: 38%;
  position: relative;
  z-index: 1;
  isolation: isolate;
  height: min(72vh, 690px);
  min-height: 520px;
  perspective: 1600px;
  transform: translate3d(0, 0, 0);
  transition: transform var(--fast) var(--ease);
}

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-stage::before {
  inset: 10% 3% 8% 0;
  border: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 11.111% 11.111%;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero-stage::after {
  right: 8%;
  bottom: 8%;
  left: 2%;
  height: 18%;
  background: linear-gradient(90deg, transparent 2%, rgba(49, 92, 255, 0.14) 40%, rgba(98, 230, 236, 0.26) 58%, transparent 94%);
  filter: blur(16px);
  transform: rotate(-5deg);
}

.orbit {
  --orbit-angle: -17deg;
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(49, 92, 255, 0.4);
  border-radius: 50%;
  animation: orbit-drift 12s var(--ease) infinite;
  transform: rotate(var(--orbit-angle));
}

.orbit-one {
  inset: 13% 1% 16% 7%;
}

.orbit-two {
  --orbit-angle: 27deg;
  inset: 28% 13% 5% -4%;
  border-color: rgba(255, 112, 72, 0.42);
  animation-delay: -4.5s;
}

.product-slab {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  width: min(80%, 560px);
  aspect-ratio: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #05080b;
  box-shadow: 0 2.5rem 5rem rgba(6, 10, 18, 0.26);
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease), opacity var(--medium) var(--ease), box-shadow var(--medium) var(--ease);
  will-change: transform;
}

.product-slab::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(98, 230, 236, 0.28);
  content: "";
  pointer-events: none;
}

.product-slab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slab-back {
  top: 7%;
  right: -2%;
  z-index: 1;
  opacity: 0.54;
  transform: translate3d(var(--back-x), var(--back-y), -80px) rotateY(-18deg) rotateZ(7deg) scale(0.8);
}

.slab-mid {
  top: 33%;
  right: 8%;
  z-index: 2;
  opacity: 0.76;
  transform: translate3d(var(--mid-x), var(--mid-y), -35px) rotateY(-17deg) rotateZ(-8deg) scale(0.87);
}

.slab-front {
  top: 18%;
  left: 2%;
  z-index: 3;
  transform: translate3d(var(--front-x), var(--front-y), 40px) rotateX(var(--tilt-x)) rotateY(calc(-11deg + var(--tilt-y))) rotateZ(2.5deg);
}

.stage-signal-layer {
  position: absolute;
  inset: 10% 3% 8% 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.stage-sweep {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-right: 1px solid rgba(98, 230, 236, 0.76);
  background: linear-gradient(90deg, transparent, rgba(98, 230, 236, 0.1));
  animation: stage-sweep 7.5s var(--ease-strong) infinite;
  opacity: 0;
  will-change: transform, opacity;
}

.signal-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  background: rgba(var(--page-rgb), 0.82);
  box-shadow: 0 0 0 4px rgba(49, 92, 255, 0.1);
  animation: signal-node 2.8s ease-in-out infinite;
}

.signal-node.node-a { top: 18%; left: 13%; }
.signal-node.node-b { top: 44%; right: 9%; animation-delay: -0.9s; border-color: var(--coral); }
.signal-node.node-c { bottom: 13%; left: 47%; animation-delay: -1.7s; border-color: var(--cyan); }

.stage-cursor {
  position: absolute;
  top: var(--signal-y);
  left: var(--signal-x);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 249, 255, 0.72);
  box-shadow: inset 0 0 0 5px rgba(8, 11, 16, 0.18);
  transform: translate(-50%, -50%);
  transition: top 180ms var(--ease), left 180ms var(--ease);
}

.stage-cursor::before,
.stage-cursor::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(247, 249, 255, 0.74);
  content: "";
  transform: translate(-50%, -50%);
}

.stage-cursor::before { width: 58px; height: 1px; }
.stage-cursor::after { width: 1px; height: 58px; }

.stage-signal-layer b {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  padding: 0.35rem 0.45rem;
  background: rgba(8, 11, 16, 0.78);
  color: #f7f9ff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1;
}

@keyframes orbit-drift {
  0%, 100% { transform: rotate(var(--orbit-angle)) scale(1); }
  50% { transform: rotate(calc(var(--orbit-angle) + 4deg)) scale(1.018); }
}

@keyframes stage-sweep {
  0%, 10% { opacity: 0; transform: translateX(-120%); }
  20% { opacity: 0.78; }
  74% { opacity: 0.42; }
  86%, 100% { opacity: 0; transform: translateX(565%); }
}

@keyframes signal-node {
  0%, 100% { box-shadow: 0 0 0 3px rgba(49, 92, 255, 0.08); opacity: 0.58; }
  50% { box-shadow: 0 0 0 7px rgba(49, 92, 255, 0.16); opacity: 1; }
}

.stage-coordinate {
  position: absolute;
  z-index: 4;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.coordinate-a { right: 5%; bottom: 5%; }
.coordinate-b { top: 7%; left: 2%; writing-mode: vertical-rl; }

.hero-next {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.69rem;
}

.hero-next svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

/* Positioning */
.positioning {
  padding-block: clamp(6rem, 11vw, 11rem) clamp(4rem, 8vw, 7.5rem);
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-top: 2.3rem;
}

.positioning h2,
.work-heading h2,
.index-heading h2,
.services-heading h2,
.process-heading h2,
.proof-heading h2,
.contact-intro h2,
.faq-heading h2 {
  font-size: clamp(3.25rem, 6vw, 7.35rem);
}

.positioning-grid > p {
  max-width: 30rem;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.signal-object {
  position: absolute;
  right: 0;
  bottom: -2rem;
  width: clamp(120px, 13vw, 220px);
  aspect-ratio: 1;
  transform: rotate(12deg);
}

.signal-object span {
  position: absolute;
  inset: calc(var(--i, 0) * 14%);
  border: 1px solid var(--line-strong);
  transform: skew(-12deg) rotate(calc(var(--i, 0) * 9deg));
}

.signal-object span:nth-child(1) { --i: 0; background: rgba(49, 92, 255, 0.08); }
.signal-object span:nth-child(2) { --i: 1; border-color: var(--blue); }
.signal-object span:nth-child(3) { --i: 2; border-color: var(--coral); }
.signal-object i {
  position: absolute;
  inset: 42%;
  background: var(--lime);
}

.discipline-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(5rem, 10vw, 10rem);
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.discipline-rail li {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 0.8rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.discipline-rail li:last-child { border-right: 0; }
.discipline-rail li span { color: var(--blue); }

/* Selected work */
.selected-work {
  border-top: 1px solid var(--line);
}

.work-heading {
  padding-block: clamp(6rem, 10vw, 10rem);
}

.work-heading h2 {
  max-width: 76rem;
  margin-top: 1.5rem;
}

.case {
  color: #101114;
}

.case-cyan { background: #b7f3ef; }
.case-violet { background: #c7b7ff; }
.case-green { background: #b9e6c8; }

.case-grid {
  display: grid;
  min-height: min(900px, 100svh);
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-block: clamp(5rem, 8vw, 8rem);
}

.case-reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
}

.case-reverse .case-copy {
  grid-column: 2;
}

.case-reverse .case-visual {
  grid-column: 1;
  grid-row: 1;
}

.case-copy {
  position: relative;
  z-index: 4;
}

.case-index {
  margin-bottom: clamp(2.2rem, 6vw, 5rem);
  color: #101114;
  font-size: 1rem;
}

.case-index i {
  margin-inline: 0.45rem;
  color: var(--coral);
  font-style: normal;
}

.case h3 {
  width: auto;
  max-width: 100%;
  font-size: clamp(4rem, 6.8vw, 8rem);
  line-height: 0.82;
  white-space: normal;
}

.case h3 em {
  display: block;
  margin-left: 0.42em;
}

.case .meta-label {
  margin-top: 2.5rem;
}

.case-statement {
  max-width: 29rem;
  margin-top: 2rem;
  color: rgba(16, 17, 20, 0.75);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.case-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 2rem;
  color: #101114;
  list-style: none;
}

.case-scope li:not(:last-child)::after {
  margin-left: 0.7rem;
  content: "/";
}

.case-copy .button {
  margin-top: 2rem;
}

.case-visual {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --focus-x: 72%;
  --focus-y: 32%;
  position: relative;
  z-index: 2;
  perspective: 1400px;
  transform: rotateX(var(--card-rx)) rotateY(var(--card-ry));
  transform-style: preserve-3d;
  transition: transform var(--fast) var(--ease);
}

.case-visual::before {
  position: absolute;
  inset: 7% -5% -7% 5%;
  z-index: -1;
  border: 1px solid rgba(16, 17, 20, 0.28);
  content: "";
}

.case-visual img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  box-shadow: 0 2.2rem 5.5rem rgba(10, 15, 25, 0.27);
}

.case-tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(247, 249, 255, 0.14);
  aspect-ratio: 1.6;
  pointer-events: none;
  transform: translateZ(20px);
}

.case-scan {
  position: absolute;
  top: 8%;
  right: 4%;
  left: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 230, 236, 0.95) 42%, #fff 50%, rgba(98, 230, 236, 0.95) 58%, transparent);
  box-shadow: 0 0 16px rgba(98, 230, 236, 0.62);
  animation: case-scan 6.2s var(--ease-strong) infinite;
  opacity: 0;
}

.case-crosshair {
  position: absolute;
  top: var(--focus-y);
  left: var(--focus-x);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(247, 249, 255, 0.68);
  transform: translate(-50%, -50%);
  transition: top 180ms var(--ease), left 180ms var(--ease);
}

.case-crosshair::before,
.case-crosshair::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(247, 249, 255, 0.72);
  content: "";
  transform: translate(-50%, -50%);
}

.case-crosshair::before { width: 46px; height: 1px; }
.case-crosshair::after { width: 1px; height: 46px; }

.case-tech-overlay b {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.45rem;
  background: rgba(8, 11, 16, 0.78);
  color: #f7f9ff;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 400;
  line-height: 1;
}

@keyframes case-scan {
  0%, 12% { top: 8%; opacity: 0; }
  20% { opacity: 0.86; }
  72% { opacity: 0.52; }
  84%, 100% { top: 91%; opacity: 0; }
}

.case-visual figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  color: #101114;
}

/* Project index */
.app-index {
  padding-block: clamp(7rem, 12vw, 12rem);
}

.index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.index-heading .meta-label {
  grid-column: 1 / -1;
}

.index-heading p:last-child {
  max-width: 29rem;
  font-size: 1.1rem;
}

.project-index {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.index-card {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform var(--medium) var(--ease), box-shadow var(--medium) var(--ease);
}

.index-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 68%, var(--coral));
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--medium) var(--ease);
}

.index-card:hover {
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12);
  transform: translateY(-0.5rem);
}

.index-card:hover::before {
  transform: scaleX(1);
}

.index-large {
  grid-column: span 7;
}

.index-large + .index-card {
  grid-column: span 5;
  margin-top: clamp(4rem, 9vw, 9rem);
}

.index-wide {
  grid-column: 6 / span 7;
  margin-top: clamp(2rem, 6vw, 6rem);
}

.index-card img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  background: #05080b;
  transition: filter var(--medium) var(--ease), transform var(--slow) var(--ease);
}

.index-card:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.index-card > div {
  padding: 1.4rem;
}

.index-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--blue);
}

.index-card h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.3vw, 2.5rem);
  font-variation-settings: normal;
  font-weight: 630;
  line-height: 1;
}

.index-card p {
  max-width: 36rem;
  margin-top: 1rem;
}

.index-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.5rem;
  color: var(--ink);
  list-style: none;
}

/* Services */
.services {
  padding-block: clamp(5rem, 9vw, 9rem) clamp(7rem, 12vw, 12rem);
}

.services-heading {
  max-width: 74rem;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.services-heading h2 {
  margin-top: 1.4rem;
}

.service-list {
  border-top: 1px solid var(--line-strong);
}

.service-item {
  border-bottom: 1px solid var(--line-strong);
}

.service-item summary {
  display: grid;
  min-height: clamp(82px, 8vw, 126px);
  grid-template-columns: clamp(3rem, 7vw, 7rem) 1fr 38px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.service-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.service-item summary > span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.service-item summary strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-variation-settings: "wdth" 74, "wght" 500;
  font-weight: 500;
  line-height: 0.9;
}

.service-item summary > i,
.faq-item summary > i {
  position: relative;
  width: 30px;
  height: 30px;
}

.service-item summary > i::before,
.service-item summary > i::after,
.faq-item summary > i::before,
.faq-item summary > i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform var(--fast) var(--ease);
}

.service-item summary > i::after,
.faq-item summary > i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-item[open] summary > i::after,
.faq-item[open] summary > i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(250px, 0.55fr) minmax(260px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: 1rem 0 clamp(3rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem);
}

.service-detail > p {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
}

.service-detail ul {
  list-style: none;
}

.service-detail li {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.service-art {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-art span {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 7rem;
  transform: translate(-50%, -50%);
}

.service-art i {
  position: absolute;
  inset: 22% 8%;
  border: 1px solid var(--line-strong);
  transform: skew(-18deg) rotate(-8deg);
}

.service-art i:last-child {
  inset: 10% 25%;
  border-color: var(--coral);
  transform: skew(14deg) rotate(26deg);
}

/* Engagement */
.engagement {
  background: var(--dark);
  color: #f7f9ff;
}

.engagement-grid {
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(6rem, 10vw, 10rem);
}

.engagement .meta-label,
.engagement p {
  color: #aab1bc;
}

.engagement h2 {
  margin-top: 1.4rem;
  font-size: clamp(3.5rem, 6.3vw, 7.4rem);
}

.engagement-copy > p:last-child {
  max-width: 31rem;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.engagement-control {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.engagement-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.engagement-tabs button {
  min-height: 66px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #aab1bc;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.engagement-tabs button:last-child { border-right: 0; }
.engagement-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }

.engagement-panel {
  min-height: 490px;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.engagement-panel > p:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.engagement-panel h3 {
  max-width: 36rem;
  margin-top: 2.2rem;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
}

.engagement-panel h3 + p {
  max-width: 35rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.engagement-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2.5rem 0;
  list-style: none;
}

.engagement-panel li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #f7f9ff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.85rem 0.5rem 0.85rem 0;
  text-transform: uppercase;
}

/* Process */
.process {
  padding-block: clamp(7rem, 12vw, 12rem);
}

.process-heading {
  max-width: 79rem;
}

.process-heading h2 {
  margin-top: 1.4rem;
}

.process-visual {
  position: relative;
  display: grid;
  min-height: clamp(250px, 34vw, 500px);
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  margin-top: clamp(4rem, 8vw, 8rem);
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), var(--line) 1px);
  background-size: 20% 100%;
  padding: 1.2rem;
}

.process-visual::before,
.process-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.process-visual::before {
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 11px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 2.5%);
  opacity: 0.56;
}

.process-visual::after {
  inset: 0 auto 0 0;
  z-index: 1;
  width: 16%;
  border-right: 1px solid rgba(98, 230, 236, 0.44);
  background: linear-gradient(90deg, transparent, rgba(98, 230, 236, 0.08));
  animation: process-sweep 9s linear infinite;
  opacity: 0;
}

.process-visual span {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.process-beam {
  position: absolute;
  right: -3%;
  bottom: 15%;
  left: -3%;
  height: 30%;
  border: 1px solid var(--blue);
  background: linear-gradient(90deg, rgba(98, 230, 236, 0.08), rgba(49, 92, 255, 0.32), rgba(167, 139, 250, 0.14));
  background-size: 180% 100%;
  clip-path: polygon(0 78%, 22% 40%, 41% 61%, 64% 12%, 79% 48%, 100% 0, 100% 100%, 0 100%);
  animation: beam-flow 8s linear infinite;
}

.process-beam::after {
  position: absolute;
  inset: 30% 0 auto;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: rotate(-3deg);
}

.process-packet {
  position: absolute;
  bottom: 22%;
  left: 0;
  z-index: 4;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan);
  background: var(--page);
  box-shadow: 0 0 15px rgba(98, 230, 236, 0.82);
  animation: process-packet 8s var(--ease-strong) infinite;
  opacity: 0;
}

.process-packet::after {
  position: absolute;
  top: 3px;
  right: 8px;
  width: clamp(28px, 5vw, 76px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 230, 236, 0.8));
  content: "";
}

@keyframes process-sweep {
  0%, 8% { opacity: 0; transform: translateX(-110%); }
  16% { opacity: 0.58; }
  82% { opacity: 0.26; }
  92%, 100% { opacity: 0; transform: translateX(725%); }
}

@keyframes beam-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}

@keyframes process-packet {
  0% { bottom: 22%; left: -1%; opacity: 0; }
  8% { opacity: 1; }
  22% { bottom: 33%; left: 22%; }
  41% { bottom: 27%; left: 41%; }
  64% { bottom: 41%; left: 64%; }
  79% { bottom: 31%; left: 79%; opacity: 1; }
  100% { bottom: 45%; left: 101%; opacity: 0; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.process-steps li {
  min-height: 245px;
  border-right: 1px solid var(--line);
  padding: 1.5rem;
}

.process-steps li:first-child { padding-left: 0; }
.process-steps li:last-child { border-right: 0; }
.process-steps li > span { color: var(--blue); font-family: var(--font-mono); font-size: 0.72rem; }
.process-steps h3 { margin-top: 2.8rem; font-size: clamp(1.55rem, 2.2vw, 2.4rem); }
.process-steps p { margin-top: 1rem; font-size: 0.95rem; }

/* Proof */
.proof {
  background: var(--blue);
  color: #fff;
}

.proof-grid {
  display: grid;
  min-height: 780px;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.75fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: center;
  padding-block: clamp(6rem, 10vw, 10rem);
}

.proof .meta-label,
.proof p,
.proof dd {
  color: rgba(255, 255, 255, 0.72);
}

.proof-heading h2 {
  margin-top: 1.4rem;
}

.proof-list {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.proof-list div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1.5rem 0;
}

.proof-list dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.proof-list dd {
  margin-top: 0.7rem;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.72fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
  padding-block: clamp(7rem, 12vw, 12rem);
}

.contact-intro h2 {
  margin-top: 1.4rem;
}

.contact-intro > p:not(.meta-label) {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.contact-email {
  max-width: 100%;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  margin-top: 3rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.6rem);
  padding: 0.7rem 0;
  text-transform: none;
}

.contact-email svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.contact-form {
  border-top: 1px solid var(--line-strong);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.contact-form label > span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  padding: 0.3rem 0;
  outline: 0;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.contact-form label:focus-within {
  border-bottom-color: var(--blue);
}

.form-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(290px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 9vw, 10rem);
  padding-block: clamp(5rem, 9vw, 9rem) clamp(8rem, 12vw, 12rem);
}

.faq-heading h2 {
  margin-top: 1.4rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: grid;
  min-height: 90px;
  grid-template-columns: 1fr 34px;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  list-style: none;
}

.faq-item > div {
  max-width: 43rem;
  padding: 0 3rem 1.8rem 0;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #f7f9ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 7vw, 7rem);
}

.footer-branding p {
  max-width: 25rem;
  margin-top: 1.25rem;
  color: #9da5b0;
}

.site-footer nav,
.footer-social {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-social span {
  color: #9da5b0;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #9da5b0;
}

.footer-bottom a {
  color: #fff;
}

/* Legal pages */
.legal-main {
  min-height: 70vh;
  padding: calc(var(--header) + clamp(4rem, 8vw, 8rem)) var(--edge) clamp(6rem, 10vw, 10rem);
}

.legal-document {
  width: min(100%, 920px);
  margin-inline: auto;
}

.legal-document > header {
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.legal-document .eyebrow,
.legal-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.legal-document h2 {
  margin: 3.5rem 0 1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-variation-settings: normal;
  font-weight: 650;
  line-height: 1.15;
}

.legal-document p,
.legal-document li {
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-document a {
  border-bottom: 1px solid currentColor;
  color: var(--blue);
}

.legal-callout {
  border-left: 3px solid var(--blue);
  background: var(--surface);
  padding: 1.5rem;
}

.app-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  list-style: none;
}

.app-directory li {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.legal-nav {
  display: flex;
  grid-column: 2 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.legal-nav a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
}

.legal-footer-links {
  display: flex;
  gap: 1.2rem;
}

/* Reveal and interaction preferences */
.reveal-ready {
  opacity: 0;
  translate: 0 30px;
  transition: opacity var(--medium) var(--ease), translate var(--medium) var(--ease);
}

.reveal-ready.is-visible {
  opacity: 1;
  translate: 0 0;
}

body.pref-readable {
  --font-display: "DG Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
}

body.pref-readable h1,
body.pref-readable h2,
body.pref-readable h3 {
  font-variation-settings: normal;
  line-height: 1;
}

body.pref-readable h1 em,
body.pref-readable h2 em,
body.pref-readable h3 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

body.pref-readable .case h3 {
  white-space: normal;
}

body.pref-contrast {
  --line: rgba(var(--ink-rgb), 0.34);
  --line-strong: rgba(var(--ink-rgb), 0.72);
  --muted: var(--ink);
}

body.pref-solid .site-header.is-scrolled,
body.pref-solid .view-panel {
  background: var(--page);
  backdrop-filter: none;
}

body.pref-motion *,
body.pref-motion *::before,
body.pref-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition-duration: 0.01ms !important;
}

body.pref-motion .reveal-ready {
  opacity: 1;
  translate: none;
}

body.pref-motion .hero-stage {
  --tilt-x: 0deg !important;
  --tilt-y: 0deg !important;
  --back-x: 0px !important;
  --back-y: 0px !important;
  --mid-x: 0px !important;
  --mid-y: 0px !important;
  --front-x: 0px !important;
  --front-y: 0px !important;
}

body.pref-motion .case-visual {
  --card-rx: 0deg !important;
  --card-ry: 0deg !important;
}

body.pref-motion .stage-sweep,
body.pref-motion .case-scan,
body.pref-motion .process-packet,
body.pref-motion .process-visual::after {
  display: none;
}

/* Responsive */
@media (max-width: 1120px) {
  .header-grid {
    grid-template-columns: minmax(150px, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .hero h1 {
    font-size: clamp(3.45rem, 6.4vw, 4.65rem);
  }

}

@media (max-width: 900px) {
  :root { --header: 74px; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: calc(var(--header) + 4rem);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 10.7vw, 6.4rem);
  }

  .hero-stage {
    width: min(100%, 700px);
    height: min(72vw, 560px);
    min-height: 420px;
    margin: 2rem auto 1rem;
  }

  .slab-front {
    left: -1%;
  }

  .hero-next {
    grid-column: auto;
  }

  .positioning-grid,
  .index-heading,
  .engagement-grid,
  .proof-grid,
  .contact,
  .faq {
    grid-template-columns: 1fr;
  }

  .signal-object {
    right: 2rem;
    bottom: -7rem;
    opacity: 0.65;
  }

  .case-grid,
  .case-reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 5rem;
  }

  .case-reverse .case-copy,
  .case-reverse .case-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .case h3 {
    max-width: 100%;
  }

  .case-visual {
    margin-top: 1rem;
  }

  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-art {
    grid-column: 1 / -1;
  }

  .engagement-grid {
    min-height: auto;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-left: 1.5rem;
  }

  .process-steps li:nth-child(even) { border-right: 0; }
  .process-steps li:last-child { grid-column: 1 / -1; }

  .proof-grid {
    min-height: auto;
  }

  .contact-form {
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-social {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  :root { --edge: 1.15rem; }

  body { font-size: 16px; }

  .header-grid {
    padding-inline: var(--edge);
  }

  .icon-button,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-meta {
    display: grid;
  }

  .view-panel {
    position: fixed;
    top: calc(var(--header) + 0.5rem);
    right: 1rem;
  }

  .hero {
    padding-top: calc(var(--header) + 3rem);
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13.2vw, 4.8rem);
    line-height: 0.86;
  }

  .hero h1 span,
  .hero h1 span:nth-child(2),
  .hero h1 span:nth-child(3) {
    margin-left: 0;
    white-space: normal;
  }

  .hero h1 span:nth-child(2) {
    margin-left: 0.5em;
  }

  .hero h1 span:nth-child(3) {
    margin-left: 0.5em;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-links .button,
  .hero-links .text-link {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .hero-meta span:last-child {
    text-align: right;
  }

  .hero-stage {
    height: 108vw;
    min-height: 430px;
    max-height: 570px;
    margin-top: 1rem;
  }

  .product-slab {
    width: 87%;
  }

  .slab-back { top: 3%; right: -16%; }
  .slab-mid { top: 47%; right: -3%; }
  .slab-front { top: 24%; left: -4%; }
  .coordinate-b { left: auto; right: 0; }

  .stage-signal-layer b {
    display: none;
  }

  .stage-cursor {
    width: 28px;
    height: 28px;
  }

  .stage-cursor::before { width: 42px; }
  .stage-cursor::after { height: 42px; }

  .case-tech-overlay b {
    right: 0.45rem;
    bottom: 0.45rem;
  }

  .positioning h2,
  .work-heading h2,
  .index-heading h2,
  .services-heading h2,
  .process-heading h2,
  .proof-heading h2,
  .contact-intro h2,
  .faq-heading h2,
  .engagement h2 {
    font-size: clamp(2.9rem, 13vw, 5rem);
  }

  .discipline-rail {
    grid-template-columns: 1fr 1fr;
  }

  .discipline-rail li {
    min-height: 62px;
    border-bottom: 1px solid var(--line);
  }

  .discipline-rail li:nth-child(even) { border-right: 0; }

  .case-grid,
  .case-reverse {
    gap: 2.4rem;
  }

  .case-index {
    margin-bottom: 2.4rem;
  }

  .case h3 {
    width: auto;
    font-size: clamp(3.2rem, 16vw, 5.7rem);
  }

  .case-visual::before {
    inset: 5% -2% -5% 2%;
  }

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

  .index-card,
  .index-large,
  .index-large + .index-card,
  .index-wide {
    grid-column: auto;
    margin-top: 0;
  }

  .index-card > div {
    padding: 1.1rem;
  }

  .index-number {
    margin-bottom: 1.5rem;
  }

  .service-item summary {
    min-height: 78px;
    grid-template-columns: 2.2rem 1fr 28px;
  }

  .service-item summary strong {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 0 0 2.5rem 2.2rem;
  }

  .service-art {
    grid-column: auto;
    min-height: 170px;
  }

  .engagement-panel {
    min-height: 0;
    padding: 1.4rem;
  }

  .engagement-panel ul {
    grid-template-columns: 1fr;
  }

  .process-visual {
    min-height: 260px;
    padding: 0.8rem 0.35rem;
  }

  .process-visual span {
    writing-mode: vertical-rl;
    font-size: 0.57rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps li,
  .process-steps li:nth-child(even),
  .process-steps li:last-child {
    min-height: 190px;
    grid-column: auto;
    border-right: 0;
    padding: 1.2rem 0;
  }

  .process-steps h3 {
    margin-top: 2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .faq {
    gap: 3rem;
  }

  .faq-item summary {
    min-height: 80px;
  }

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

  .footer-branding {
    grid-column: 1 / -1;
  }

  .footer-social {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.4rem;
  }

  .legal-nav {
    gap: 0.75rem;
    font-size: 0.78rem;
  }

  .legal-nav a:first-child { display: none; }
  .app-directory { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready {
    opacity: 1;
    translate: none;
  }

  .stage-sweep,
  .case-scan,
  .process-packet,
  .process-visual::after {
    display: none;
  }

  .hero-stage {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --back-x: 0px !important;
    --back-y: 0px !important;
    --mid-x: 0px !important;
    --mid-y: 0px !important;
    --front-x: 0px !important;
    --front-y: 0px !important;
  }

  .case-visual {
    --card-rx: 0deg !important;
    --card-ry: 0deg !important;
  }
}
