/* RJ Web Design: "The Showroom".
   Black floor, graphite panels, brushed aluminium, white type. One family (Archivo, variable
   width + weight): expanded for display, normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0b0b0c;
  --ink-1: #101113;
  --graphite: #16171a;
  --charcoal: #202226;
  --line: #2c2e33;
  --line-2: #3a3d43;
  --grey: #8c9199;      /* metallic grey: secondary text, 6:1 on black */
  --silver: #c3c8ce;
  --silver-hi: #e6e9ec;
  --white: #f4f5f6;

  --metal: linear-gradient(180deg, var(--silver-hi), var(--silver));
  --edge: linear-gradient(90deg, #5d626a 0%, #d9dde1 22%, #8d939b 50%, #e4e7ea 76%, #6a7078 100%);

  --u: 8px;
  --gap: clamp(16px, 2vw, 32px);
  --pad: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --section: clamp(96px, 12vw, 176px);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* expo out */
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--black); color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role=list], ol[role=list] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--silver); color: var(--black); }
:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; border-radius: 2px; }
input, textarea { caret-color: var(--silver-hi); }
html { scrollbar-color: var(--line-2) var(--black); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--black); border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.anchor { position: absolute; top: calc(-1 * var(--nav-h)); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font); font-stretch: 118%; font-weight: 760;
  letter-spacing: -.035em; line-height: .94; text-wrap: balance;
}
.display--hero { font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem); }
.display--xl { font-size: clamp(2.4rem, 1.1rem + 4.6vw, 5rem); }
.display--lg { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); }
.display--md { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -.025em; line-height: 1; }
.label, .placard dt, .foot__h, .track__n {
  font-size: .75rem; font-weight: 600; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
}

/* ---------- Buttons & links ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 2px; cursor: pointer;
  font-size: .9375rem; font-weight: 650; font-stretch: 110%; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s, color .3s;
}
.btn--metal { color: var(--black); background: var(--metal); box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 6px 18px -8px rgb(0 0 0 / .8); }
.btn--metal:hover { background: var(--silver-hi); box-shadow: 0 1px 0 #fff inset, 0 10px 26px -10px rgb(195 200 206 / .3); }
.btn--metal:active { transform: translateY(1px); }
.btn--ghost { color: var(--white); background: transparent; box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--ghost:hover { box-shadow: 0 0 0 1px var(--silver) inset; background: rgb(255 255 255 / .03); }
.btn--block { width: 100%; }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn[disabled] { cursor: progress; opacity: .7; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--white); padding-block: 6px; background: linear-gradient(var(--silver), var(--silver)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease), color .3s; }
.link-arrow:hover { background-size: 100% 1px; color: var(--silver-hi); }
.link-arrow .ico { transition: transform .5s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--back:hover .ico { transform: translateX(-4px); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .5s, box-shadow .5s, transform .5s var(--ease); }
.nav.is-solid { background: rgb(11 11 12 / .97); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav__mono { height: 30px; width: auto; }
.nav__word { height: 12px; width: auto; padding: 6px 0 6px 16px; border-left: 1px solid var(--line-2); box-sizing: content-box; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: .9375rem; font-weight: 550; text-decoration: none; color: var(--silver); padding: 8px 0; position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--silver-hi); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--white); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__cta { --h: 44px; padding: 0 18px; font-size: .875rem; }
.nav__toggle { display: none; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; cursor: pointer; }
.nav__burger { display: grid; gap: 7px; width: 24px; margin: auto; }
.nav__burger i { display: block; height: 1.5px; background: var(--white); transition: transform .5s var(--ease); }
.nav__toggle[aria-expanded=true] .nav__burger i:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded=true] .nav__burger i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--black); padding: calc(var(--nav-h) + 24px) var(--pad) 32px; display: flex; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: 100%; }
.menu nav { display: grid; border-top: 1px solid var(--line); }
.menu nav a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 760; font-stretch: 118%; letter-spacing: -.03em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 12px; }
.menu__mail { color: var(--grey); text-align: center; padding: 8px; }
.menu.is-open nav a { animation: menu-in .7s var(--ease) both; }
.menu.is-open nav a:nth-child(2) { animation-delay: .05s; }
.menu.is-open nav a:nth-child(3) { animation-delay: .1s; }
.menu.is-open nav a:nth-child(4) { animation-delay: .15s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__word { display: none; }
}

/* ---------- Floor rail (the page's axis) ---------- */
/* One silver floor line runs the length of the page; each zone hangs its name on it. */
main { position: relative; }
.floor-mark { display: none; }
@media (min-width: 1280px) {
  .page-home main::before { content: ""; position: absolute; left: calc(clamp(14px, 1.6vw, 28px) + 8px); top: calc(var(--nav-h) + 24px); bottom: 0; width: 1px; background: linear-gradient(rgb(195 200 206 / .55), rgb(195 200 206 / .28) 10%, rgb(195 200 206 / .28) 90%, rgb(195 200 206 / .5)); pointer-events: none; z-index: 1; }
  .floor-mark { display: block; position: absolute; left: calc(clamp(14px, 1.6vw, 28px) + 6px); top: calc(var(--nav-h) + 24px); width: 5px; height: 48px; background: var(--edge); border-radius: 1px; pointer-events: none; z-index: 1; will-change: transform; }
  [data-zone] { position: relative; }
  [data-zone]::before {
    content: attr(data-zone); position: absolute; left: clamp(14px, 1.6vw, 28px); top: var(--zone-top, clamp(96px, 12vw, 176px)); z-index: 2;
    writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; background: var(--black);
    font-size: .6875rem; font-weight: 600; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); transition: color .5s;
  }
  [data-zone].is-current::before { color: var(--silver-hi); }
  .hero[data-zone] { --zone-top: calc(var(--nav-h) + 48px); }
  .concepts-head[data-zone] { --zone-top: clamp(120px, 14vw, 200px); position: relative; }
}

/* ---------- Devices on the plinth ---------- */
.stage { position: relative; display: block; text-decoration: none; color: inherit; }
.stage::before { /* overhead showroom light: a soft pool on the floor under each plinth */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -8%; height: 70%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgb(195 200 206 / .07), transparent 70%);
}
.stage__devices { position: relative; display: grid; align-items: end; }
.device { position: relative; margin: 0; }
.device--browser {
  background: var(--charcoal); border-radius: 8px; padding: 0 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .07) inset, 0 40px 80px -40px rgb(0 0 0 / .9), 0 18px 30px -24px rgb(0 0 0 / .8);
}
.device__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: linear-gradient(#26282c, #1d1f22); border-bottom: 1px solid #0d0e10; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3b3e44; }
.device__url { margin: 0 auto; transform: translateX(-16px); font-size: .6875rem; color: var(--grey); background: #121315; padding: 3px 14px; border-radius: 4px; min-width: 40%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device--phone {
  border-radius: clamp(18px, 2.6vw, 34px); padding: clamp(5px, .6vw, 8px); background: linear-gradient(145deg, #3a3d42, #16171a 40%, #2a2c30);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset, 0 30px 60px -30px rgb(0 0 0 / .95);
}
.device--phone .screen { border-radius: clamp(13px, 2vw, 27px); overflow: hidden; aspect-ratio: 390 / 844; }
.screen { position: relative; overflow: hidden; background: var(--graphite); aspect-ratio: 16 / 10; }
.screen__poster, .screen__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen__video { opacity: 0; transition: opacity .45s ease; }
.screen.is-playing .screen__video { opacity: 1; }
.screen--empty { display: grid; place-items: center; color: var(--grey); font-size: .8125rem; }

/* floor line + reflection */
.stage__base { height: 3px; margin-top: 0; background: var(--edge); position: relative; z-index: 2; box-shadow: 0 1px 0 rgb(0 0 0 / .6), 0 14px 30px -6px rgb(0 0 0 / .9); }
.stage__base::after { content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 70px; background: radial-gradient(60% 100% at 50% 0, rgb(195 200 206 / .07), transparent 70%); pointer-events: none; }
.stage__base::before { /* static floor sheen where a reflection would fall (cheap: no per-frame repaint) */
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, rgb(195 200 206 / .07), transparent);
}

/* hover: "engine on" */
.exhibit .stage__devices { transition: transform .9s var(--ease); }
@media (hover: hover) {
  .exhibit:hover .stage__devices { transform: translateY(-6px); }
}

/* graphite dust cover (the unveil) */
.cover {
  position: absolute; inset: -2px -2px 0; z-index: 3; pointer-events: none;
  display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(180deg, #1b1c1f, #121315); box-shadow: 0 0 0 1px var(--line) inset;
  clip-path: inset(0 0 0 100%);
}
.cover img { width: clamp(56px, 9vw, 120px); height: auto; opacity: .55; }
.motion .exhibit:not(.is-shown) .cover, .motion .hero.is-loading .cover { clip-path: inset(0 0 0 0); }
.motion .exhibit.is-shown .cover, .motion .hero .cover { transition: clip-path 1.1s var(--ease) .1s; }
.motion .hero .cover.is-closing { clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease-in); }
.motion .hero .cover.is-opening { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease); }

/* ---------- Spec placard ---------- */
.placard { display: grid; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.placard__row { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.placard dd { font-size: .9375rem; color: var(--white); min-width: 0; }
.placard dd a { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.placard dd a:hover { border-color: var(--silver); }
.placard dd .ico { width: .9em; height: .9em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(20px, 4vh, 48px)); padding-bottom: clamp(56px, 8vw, 120px); min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero::after { /* the floor: a faint horizon */
  content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / .022));
}
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 4vw, 56px); align-items: end; }
.hero__title { grid-column: 1 / -1; grid-row: 1; font-size: clamp(2.6rem, .9rem + 5.2vw, 5rem); font-stretch: 116%; letter-spacing: -.04em; }
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { padding-left: 1.6em; }
.line--metal { color: var(--silver); }
.hero__copy { grid-column: 1 / span 5; grid-row: 2; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; align-self: start; padding-top: 4px; }
.hero__lede { font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); color: var(--silver); max-width: 34em; }
.hero__lede em { font-style: normal; color: var(--white); font-weight: 600; }
.quick { width: 100%; max-width: 520px; }
.quick__label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.quick__row { display: flex; gap: 0; background: var(--graphite); box-shadow: 0 0 0 1px var(--line-2) inset; border-radius: 3px; padding: 4px; transition: box-shadow .3s; }
.quick__row:focus-within { box-shadow: 0 0 0 1px var(--silver) inset; }
.quick__row input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 14px; font-size: 1rem; outline: none; }
.quick__row input::placeholder { color: #80858d; }
.quick__row .btn { --h: 46px; padding: 0 18px; }
.hero__explore { margin-top: -10px; }
.hero__stage { grid-column: 6 / -1; grid-row: 2; align-self: start; }
.stage--hero .stage__devices { grid-template-columns: 1fr; }
.stage--hero .device--browser { grid-area: 1 / 1; width: 84%; justify-self: end; }
.stage--hero .device--phone { grid-area: 1 / 1; width: 22%; justify-self: start; margin-left: 2%; z-index: 2; }
.hero__placard { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 22px; }
.hero__placard .placard { grid-template-columns: 1.1fr 1fr 1fr .8fr; column-gap: 20px; border-top: 0; }
.hero__placard .placard__row { grid-template-columns: 1fr; gap: 1px; padding: 0; border: 0; }
.hero__placard dt { font-size: .6875rem; }
.hero__placard dd { font-size: .875rem; line-height: 1.35; }
.hero__placard dd { font-weight: 600; }
.hero__placard dd a { border: 0; display: inline-flex; min-height: 24px; align-items: center; }
.tt-controls { display: flex; align-items: center; gap: 4px; }
.tt-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; box-shadow: 0 0 0 1px var(--line-2) inset; cursor: pointer; color: var(--white); transition: box-shadow .3s, background-color .3s; }
.tt-btn:hover { box-shadow: 0 0 0 1px var(--silver) inset; background: rgb(255 255 255 / .04); }
.tt-btn .ico { width: 16px; height: 16px; }
.tt-btn--play .ico:last-child, .tt-btn--play[aria-pressed=true] .ico:first-child { display: none; }
.tt-btn--play[aria-pressed=true] .ico:last-child { display: block; }
.tt-count { min-width: 48px; text-align: center; font-size: .8125rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.no-reel .tt-controls { display: none; }

/* hero load choreography: title lines rise as the cover lifts (one moment) */
.motion .hero .line { animation: rise 1.1s var(--ease) both; }
.motion .hero .line:nth-child(2) { animation-delay: .08s; }
.motion .hero .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }

@media (max-width: 1100px) {
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__copy { grid-column: 1 / span 6; }
  .hero__stage { grid-column: 7 / -1; }
  .hero__placard { grid-template-columns: 1fr; }
  .hero__placard .placard { grid-template-columns: 1fr 1fr; row-gap: 12px; }
}
@media (max-width: 820px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 20px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy, .hero__stage, .hero__title { grid-column: 1; grid-row: auto; }
  .quick { max-width: none; }
  .hero__stage { margin-top: 8px; }
  .stage--hero .device--browser { width: 86%; }
  .stage--hero .device--phone { width: 30%; margin-left: 0; }
  .quick__row { flex-direction: column; padding: 4px; gap: 4px; }
  .quick__row input { min-height: 48px; }
  .quick__row .btn { width: 100%; }
  .hero__placard { margin-top: 26px; }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(56px, 8vw, 112px); }
.section-head h2 { grid-column: 1 / span 7; }
.section-head__lede { grid-column: 9 / -1; color: var(--silver); max-width: 30em; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; row-gap: 20px; } .section-head h2, .section-head__lede { grid-column: 1; } }
.touch-hint { display: none; }
@media (hover: none) { .hover-hint { display: none; } .touch-hint { display: inline; } }

/* ---------- Work: the floor ---------- */
.work { padding-block: var(--section) 0; border-top: 1px solid var(--line); }
.floor { display: grid; gap: clamp(96px, 12vw, 180px); }
.exhibit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; }
.exhibit .stage__devices { grid-template-columns: 1fr; }
.exhibit .device--browser { grid-area: 1 / 1; }
.exhibit .device--phone { grid-area: 1 / 1; z-index: 2; }
.exhibit__info { display: grid; gap: 20px; align-content: start; }
.exhibit__name { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem); font-weight: 760; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.exhibit__name a { text-decoration: none; }
.exhibit__name a:hover { color: var(--silver-hi); }
.exhibit__tag { color: var(--silver); font-size: 1.0625rem; max-width: 26em; }
.exhibit .link-arrow { justify-self: start; }

/* featured client project: biggest plinth */
.exhibit--feature .stage { grid-column: 1 / span 8; }
.exhibit--feature .exhibit__info { grid-column: 10 / -1; }
.exhibit--feature .device--browser { width: 88%; justify-self: end; }
.exhibit--feature .device--phone { width: 23%; justify-self: start; }
.exhibit--feature .exhibit__name { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.75rem); }
.exhibit--client .placard__row:last-child dd a { color: var(--silver-hi); }

.concepts-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-block: clamp(120px, 14vw, 200px) clamp(56px, 7vw, 96px); }
.concepts-head h3 { grid-column: 1 / span 6; }
.concepts-head p { grid-column: 7 / span 5; color: var(--silver); max-width: 34em; }

/* concept layouts: no two the same */
.exhibit--right .stage { grid-column: 5 / -1; grid-row: 1; }
.exhibit--right .exhibit__info { grid-column: 1 / span 3; grid-row: 1; }
.exhibit--right .device--browser { width: 86%; justify-self: end; }
.exhibit--right .device--phone { width: 22%; justify-self: start; }

.exhibit--phone { align-items: end; }
.exhibit--phone .stage { grid-column: 2 / span 5; }
.exhibit--phone .exhibit__info { grid-column: 8 / span 4; align-self: center; }
.exhibit--phone .device--browser { width: 76%; justify-self: end; }
.exhibit--phone .device--phone { width: 42%; justify-self: start; }

.exhibit--wide .stage { grid-column: 1 / -1; }
.exhibit--wide .device--browser { width: 66%; justify-self: center; }
.exhibit--wide .device--phone { width: 15%; justify-self: end; margin-right: 6%; }
.exhibit--wide .exhibit__info { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-top: 16px; }
.exhibit--wide .exhibit__name { grid-column: 1 / span 4; }
.exhibit--wide .exhibit__tag { grid-column: 1 / span 4; grid-row: 2; }
.exhibit--wide .placard { grid-column: 6 / span 4; grid-row: 1 / span 3; }
.exhibit--wide .link-arrow { grid-column: 11 / -1; grid-row: 1; justify-self: end; }

.exhibit--left .stage { grid-column: 1 / span 7; }
.exhibit--left .exhibit__info { grid-column: 9 / span 4; }
.exhibit--left .device--browser { width: 90%; justify-self: start; }
.exhibit--left .device--phone { width: 22%; justify-self: end; }

@media (max-width: 900px) {
  .exhibit, .exhibit--wide .exhibit__info { grid-template-columns: 1fr; }
  .exhibit > .stage, .exhibit > .exhibit__info, .exhibit--wide .exhibit__info > * { grid-column: 1 !important; grid-row: auto !important; }
  .exhibit--wide .link-arrow { justify-self: start; }
  .exhibit .device--browser { width: 86% !important; justify-self: end !important; margin: 0 !important; opacity: 1 !important; }
  .exhibit .device--phone { width: 29% !important; justify-self: start !important; margin: 0 !important; }
  .exhibit--phone .device--browser { width: 74% !important; }
  .exhibit--phone .device--phone { width: 40% !important; }
  .concepts-head { grid-template-columns: 1fr; row-gap: 16px; }
  .exhibit .placard { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .exhibit .placard__row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .concepts-head h3, .concepts-head p { grid-column: 1; }
}

/* ---------- Services: spec sheet ---------- */
.services { padding-block: var(--section); margin-top: var(--section); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-1), var(--black) 60%); }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.services__intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 24px; justify-items: start; }
.services__intro p { color: var(--silver); max-width: 24em; }
.spec { grid-column: 6 / -1; border-top: 1px solid var(--line-2); counter-reset: spec; }
.spec__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); row-gap: 10px;
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.spec__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--edge); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.spec__row:hover::after { transform: scaleX(1); }
.spec__name { grid-column: 1 / -1; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 740; font-stretch: 120%; letter-spacing: -.03em; line-height: 1.02; transition: color .4s; }
.spec__row:hover .spec__name { color: var(--silver-hi); }
.spec__promise { grid-column: 1; font-weight: 600; color: var(--white); }
.spec__body { grid-column: 1; color: var(--silver); font-size: 1rem; }
.spec__outcomes { grid-column: 2; grid-row: 2 / span 2; display: grid; align-content: start; border-top: 1px solid var(--line); }
.spec__outcomes li { font-size: .9375rem; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--white); }
.spec__outcomes li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--silver); }
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .services__intro, .spec { grid-column: 1; position: static; }
  .spec__row { grid-template-columns: 1fr; }
  .spec__outcomes { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

/* ---------- Process: the track ---------- */
.process { padding-block: var(--section); border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.track.wrap { padding-inline: var(--pad); }
.track::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 34px; height: 1px; background: var(--line-2); }
.track__stop { position: relative; padding: 0 clamp(10px, 1.4vw, 22px) 0 0; display: grid; gap: 10px; align-content: start; }
.track__n { display: block; height: 24px; }
.track__stop::before { content: ""; position: relative; display: block; order: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 1px var(--grey) inset; margin: 0 0 14px; }
.track__n { order: 0; }
.track__title, .track__stop p, .track__flag { order: 2; }
.track__title { font-size: 1.125rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.track__stop p { font-size: .9375rem; color: var(--silver); }
.track__stop--you::before { background: var(--metal); box-shadow: 0 0 0 4px rgb(195 200 206 / .14); }
.track__stop--you .track__title { color: var(--silver-hi); }
.track__flag { justify-self: start; font-size: .75rem !important; font-weight: 600; letter-spacing: .04em; color: var(--black) !important; background: var(--metal); padding: 4px 10px; border-radius: 2px; }
@media (max-width: 1100px) {
  .track { grid-template-columns: 1fr; gap: 0; }
  .track::before { left: calc(var(--pad) + 5px); right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .track__stop { grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 6px; padding: 0 0 36px; }
  .track__stop::before { grid-column: 1; grid-row: 1; margin: 6px 0 0; }
  .track__n { grid-column: 2; grid-row: 1; height: auto; }
  .track__title, .track__stop p, .track__flag { grid-column: 2; }
}

/* ---------- About ---------- */
.about { padding-block: var(--section); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px; align-items: start; }
.about__copy { grid-column: 1 / span 6; display: grid; gap: 32px; }
.about__lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); color: var(--silver); max-width: 32em; }
.beliefs { border-top: 1px solid var(--line-2); }
.beliefs li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.beliefs h3 { font-size: 1.0625rem; font-weight: 700; font-stretch: 112%; }
.beliefs p { color: var(--silver); font-size: .9875rem; }
.founders { grid-column: 8 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 12px; }
.founder:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.founder__photo { aspect-ratio: 4 / 5; background: linear-gradient(170deg, var(--charcoal), var(--graphite)); border-radius: 3px; overflow: hidden; position: relative; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line) inset; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__photo--empty { background: radial-gradient(120% 80% at 30% 10%, #24262a, #121315 70%); }
.founder__photo .founder__mark { width: 46%; height: auto; opacity: .22; object-fit: contain; }
.founder__soon { position: absolute; left: 12px; bottom: 12px; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--grey); }
.founder figcaption { display: grid; gap: 12px; margin-top: 16px; }
.founder .placard__row { grid-template-columns: 64px 1fr; }
.founder__bio { font-size: .9375rem; color: var(--silver); }
.founder__bio--empty { color: var(--grey); font-style: normal; border: 1px dashed var(--line-2); padding: 10px 12px; border-radius: 2px; font-size: .8125rem; }
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__copy, .founders { grid-column: 1; }
  .beliefs li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) { .founder:nth-child(2) { margin-top: 32px; } }

/* ---------- Feedback: the reserved plinth ---------- */
.feedback { padding-block: var(--section); border-top: 1px solid var(--line); }
.feedback__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.reserved { grid-column: 1 / span 5; }
.reserved__plinth {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / .015) 0 14px, transparent 14px 28px), var(--ink-1);
  box-shadow: 0 0 0 1px var(--line) inset; border-radius: 4px 4px 0 0;
}
.reserved__sign {
  font-size: clamp(1.1rem, .8rem + 1vw, 1.5rem); font-weight: 760; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase;
  color: var(--black); background: var(--metal); padding: 14px 26px 14px calc(26px + .24em); border-radius: 2px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 18px 30px -16px rgb(0 0 0 / .9);
}
.feedback__copy { grid-column: 7 / -1; display: grid; gap: 20px; justify-items: start; }
.feedback__copy p { color: var(--silver); max-width: 34em; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); margin: 48px 0; }
.quote { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.quote blockquote p { font-size: 1.25rem; line-height: 1.45; }
.quote__rating { display: flex; gap: 2px; color: var(--silver); }
.quote__by { display: flex; align-items: center; gap: 12px; color: var(--silver); }
.quote__by img { border-radius: 50%; }
@media (max-width: 900px) { .feedback__grid { grid-template-columns: 1fr; } .reserved, .feedback__copy { grid-column: 1; } .feedback__copy { grid-row: 1; } }

/* ---------- Demo request ---------- */
.demo { position: relative; padding-block: var(--section); border-top: 1px solid var(--line); background: radial-gradient(80% 60% at 75% 30%, rgb(195 200 206 / .045), transparent 70%), var(--black); }
.demo__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.demo__copy { grid-column: 1 / span 5; display: grid; gap: 32px; }
.demo__lede { color: var(--silver); font-size: 1.125rem; max-width: 30em; }
.steps { border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps__n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2) inset; font-size: .8125rem; font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1rem; font-weight: 700; font-stretch: 110%; }
.steps p { color: var(--silver); font-size: .9375rem; }
.direct { display: grid; gap: 10px; justify-items: start; }
.direct__h { font-size: 1rem; font-weight: 700; font-stretch: 110%; }
.direct__line { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); text-decoration: none; }
a.direct__line:hover { color: var(--white); text-decoration: underline; }
.demo__panel {
  grid-column: 7 / -1; position: relative; background: var(--graphite); border-radius: 4px; padding: clamp(24px, 3.4vw, 48px);
  box-shadow: 0 0 0 1px var(--line) inset, 0 40px 90px -50px rgb(0 0 0 / .95);
}
.demo__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--edge); border-radius: 4px 4px 0 0; }
.lead__set { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.lead__legend { font-size: 1.375rem; font-weight: 740; font-stretch: 116%; letter-spacing: -.02em; margin-bottom: 24px; padding: 0; }
.field { grid-column: 1 / -1; display: grid; gap: 7px; align-content: start; min-width: 0; }
.field--half { grid-column: span 1; }
.field label, .field legend { font-size: .875rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--grey); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; background: var(--black); border: 1px solid var(--line-2); border-radius: 3px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #7d828a; }
.field input:hover, .field textarea:hover { border-color: #4a4e55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 3px rgb(195 200 206 / .14); }
.field [aria-invalid=true] { border-color: #e58a7a; }
.field__err { color: #f0a597; font-size: .8125rem; }
.chips { border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 9px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 40px; box-shadow: 0 0 0 1px var(--line-2) inset; font-size: .875rem; color: var(--silver); transition: background-color .25s, color .25s, box-shadow .25s; user-select: none; }
.chip:hover span { box-shadow: 0 0 0 1px var(--silver) inset; color: var(--white); }
.chip input:checked + span { background: var(--metal); color: var(--black); box-shadow: none; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--silver-hi); outline-offset: 2px; }
.lead__submit { display: grid; gap: 12px; margin-top: 28px; }
.lead__note { font-size: .8125rem; color: var(--grey); }
.lead__note a { color: var(--silver); }
.lead__status:empty { display: none; }
.lead__status { font-size: .9375rem; padding: 12px 14px; border-radius: 3px; background: rgb(229 138 122 / .1); color: #f6c1b7; box-shadow: 0 0 0 1px rgb(229 138 122 / .35) inset; }
.lead__status a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-done { display: grid; gap: 16px; padding: 24px 0; }
.lead-done[hidden] { display: none; }
.lead-done p { color: var(--silver); }
.lead-done a { color: var(--white); }
.lead-done:focus { outline: none; }
@media (max-width: 960px) {
  .demo__grid { grid-template-columns: 1fr; }
  .demo__copy, .demo__panel { grid-column: 1; }
}
@media (max-width: 560px) { .lead__set { grid-template-columns: 1fr; } .field--half { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--ink-1); padding-top: clamp(64px, 8vw, 112px); }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.foot__brand { grid-column: 1 / span 7; }
.foot__brand img { width: min(100%, 620px); height: auto; }
.foot__cta { grid-column: 9 / -1; display: grid; gap: 16px; justify-items: start; }
.foot__cta p { font-size: 1.25rem; font-weight: 600; font-stretch: 110%; line-height: 1.3; }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-block: 48px; }
.foot__grid > * { display: grid; align-content: start; gap: 4px; }
.foot__h { margin-bottom: 10px; }
.foot__grid a, .foot__place { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); text-decoration: none; padding: 5px 0; font-size: .9375rem; justify-self: start; }
.foot__grid a:hover { color: var(--white); text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--grey); }
.foot__base a { color: var(--grey); display: inline-block; padding-block: 4px; }
.foot__base a:hover { color: var(--white); }
@media (max-width: 800px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__brand, .foot__cta { grid-column: 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :last-child { grid-column: 1 / -1; }
}

/* ---------- Case study pages ---------- */
.page-case main, .page-text main { padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 72px)); }
.case__head { display: grid; gap: 20px; justify-items: start; }
.case__tag { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); color: var(--silver); max-width: 30em; }
.case__stage { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.stage--case .stage__devices { grid-template-columns: 1fr; }
.stage--case .device--browser { grid-area: 1 / 1; width: 82%; justify-self: end; }
.stage--case .device--phone { grid-area: 1 / 1; width: 20%; justify-self: start; z-index: 2; margin-left: 2%; }
.case__toggle { position: absolute; right: var(--pad); bottom: -60px; }
.case__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; padding-block: clamp(120px, 12vw, 176px) 0; align-items: start; }
.case__facts { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 24px; justify-items: start; }
.case__facts .placard { width: 100%; }
.case__story { grid-column: 6 / -1; display: grid; gap: clamp(48px, 5vw, 72px); }
.case__block { display: grid; gap: 16px; max-width: 42em; }
.case__block h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 740; font-stretch: 118%; letter-spacing: -.025em; line-height: 1.05; }
.case__block > p { color: var(--silver); font-size: 1.125rem; }
.note { font-size: .9375rem; color: var(--silver); border: 1px solid var(--line-2); border-radius: 3px; padding: 16px 18px; max-width: 42em; background: var(--ink-1); }
.decisions { display: grid; border-top: 1px solid var(--line-2); }
.decisions > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.decisions dt { font-weight: 700; font-stretch: 112%; }
.decisions dd { color: var(--silver); }
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line-2); }
.features li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: .9875rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--silver); }
.case__gallery { padding-top: var(--section); display: grid; gap: 12px; }
.case__gallery-note { color: var(--grey); font-size: .9375rem; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin-top: 40px; align-items: start; }
.shot:nth-child(2) { margin-top: clamp(32px, 6vw, 96px); }
.shot:nth-child(3) { margin-top: clamp(64px, 12vw, 192px); }
.shot figcaption { margin-top: 18px; font-size: .9375rem; color: var(--silver); border-top: 1px solid var(--line); padding-top: 10px; }
.device--still { max-width: 340px; }
.device--still img { width: 100%; height: auto; border-radius: clamp(13px, 2vw, 27px); }
.case__outcome { padding-top: var(--section); display: grid; gap: 24px; }
.case__outcome > p:not(.note) { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--silver); max-width: 38em; }
.case__next { padding-top: var(--section); }
.next { display: grid; gap: 10px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-decoration: none; position: relative; }
.next::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--edge); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.next:hover::after { transform: scaleX(1); }
.next__name { transition: color .4s; }
.next__name span { color: var(--grey); }
.next:hover .next__name { color: var(--silver-hi); }
.next__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); }
.case__cta { padding-block: var(--section); display: grid; gap: 28px; justify-items: start; }
@media (max-width: 900px) {
  .case__body { grid-template-columns: 1fr; }
  .case__facts, .case__story { grid-column: 1; position: static; }
  .decisions > div, .features { grid-template-columns: 1fr; gap: 6px; }
  .shots { grid-template-columns: 1fr; justify-items: center; }
  .shot:nth-child(n) { margin-top: 0; }
  .stage--case .device--browser { width: 86%; }
  .stage--case .device--phone { width: 30%; margin-left: 0; }
  .case__toggle { bottom: -56px; }
}

/* ---------- Text pages ---------- */
.prose { max-width: 820px; display: grid; gap: 16px; padding-bottom: var(--section); }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; font-stretch: 112%; margin-top: 24px; }
.prose p { color: var(--silver); }
.prose a:not(.btn) { color: var(--white); }
.prose__date { color: var(--grey) !important; font-size: .9375rem; }
.notfound { min-height: 50vh; align-content: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
