/* ==========================================================================
   MONROVIA LABS — DESIGN SYSTEM
   ==========================================================================
   Direction: precision instrument. Deep near-black taken from the logo,
   one confident electric blue, generous whitespace, real photography under
   glass. Futuristic through restraint and craft — grain, hairlines, spotlight
   and depth — rather than neon.

   Brand colours are declared here as defaults but overridden at runtime by
   an inline <style> block in base.html fed from SiteConfiguration, so an
   admin changing the accent colour re-themes the entire site.

   Contents
     01 Tokens & themes        08 Cards
     02 Reset & base           09 Marquee & logos
     03 Typography             10 Timeline & process
     04 Layout                 11 Accordion & tabs
     05 Backdrop               12 Forms
     06 Buttons & links        13 Navigation & footer
     07 Section furniture      14 Prose, motion, utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 TOKENS & THEMES
   -------------------------------------------------------------------------- */

:root,
[data-theme="dark"] {
  --ink-0: #000206;
  --ink-1: #05070E;
  --ink-2: #090D18;
  --ink-3: #0E1422;
  --ink-4: #141B2D;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-glow: rgba(var(--brand-rgb), 0.28);

  --text: #EEF2FA;
  --text-2: #A3AEC4;
  --text-3: #6B7794;

  --surface: rgba(255, 255, 255, 0.024);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --highlight: rgba(255, 255, 255, 0.07);
  --scrim: linear-gradient(180deg, rgba(0, 2, 6, 0) 0%, rgba(0, 2, 6, 0.55) 55%, rgba(0, 2, 6, 0.94) 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.85);

  --grain-opacity: 0.032;
  --aurora-opacity: 0.55;
  --grid-opacity: 0.55;
  --img-brightness: 0.92;

  color-scheme: dark;
}

[data-theme="light"] {
  --ink-0: #FBFCFE;
  --ink-1: #FFFFFF;
  --ink-2: #FFFFFF;
  --ink-3: #F5F8FD;
  --ink-4: #E9F0FA;

  --line: rgba(6, 12, 30, 0.09);
  --line-strong: rgba(6, 12, 30, 0.17);
  --line-glow: rgba(var(--brand-rgb), 0.32);

  --text: #060B18;
  --text-2: #4A5875;
  --text-3: #7A8095;

  --surface: rgba(6, 12, 30, 0.018);
  --surface-2: rgba(6, 12, 30, 0.035);
  --surface-hover: rgba(6, 12, 30, 0.05);
  --highlight: rgba(255, 255, 255, 0.9);
  --scrim: linear-gradient(180deg, rgba(6, 10, 22, 0) 0%, rgba(6, 10, 22, 0.4) 55%, rgba(6, 10, 22, 0.86) 100%);

  --shadow-sm: 0 1px 2px rgba(12, 22, 48, 0.06);
  --shadow-md: 0 14px 34px -16px rgba(12, 22, 48, 0.24);
  --shadow-lg: 0 44px 88px -40px rgba(12, 22, 48, 0.3);

  --grain-opacity: 0.02;
  --aurora-opacity: 0.3;
  --grid-opacity: 0.7;
  --img-brightness: 1;

  color-scheme: light;
}

:root {
  /* Brand — overridden inline from the CMS. */
  --brand: #0476FC;
  --brand-soft: #3E96FF;
  --brand-rgb: 4, 118, 252;

  /* Derived, so a CMS colour change propagates everywhere. */
  --brand-deep: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-text: var(--brand-soft);
  --brand-ink: #FFFFFF;
  --brand-wash: color-mix(in srgb, var(--brand) 12%, transparent);
  --glow: rgba(var(--brand-rgb), 0.4);

  --amber: #F5B544;
  --mint: #2FD98A;
  --rose: #FF5B78;

  --font-display: "Sora", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1280px;
  --shell-wide: 1560px;
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;

  --nav-h: 74px;
}

[data-theme="light"] {
  /* #0476FC on white is only ~4:1 — darken it for text-sized usage. */
  --brand-text: color-mix(in srgb, var(--brand) 88%, #000);
  --brand-wash: color-mix(in srgb, var(--brand) 8%, transparent);
}

/* --------------------------------------------------------------------------
   02 RESET & BASE
   -------------------------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

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

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* Custom scrollbar — small detail, big perceived-quality payoff. */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--ink-1); }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-3) 45%, transparent);
    border: 3px solid var(--ink-1);
    border-radius: var(--r-pill);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand); }
}

/* --------------------------------------------------------------------------
   03 TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.t-display {
  font-size: clamp(2.75rem, 7.6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.t-h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); letter-spacing: -0.04em; }
.t-h2 { font-size: clamp(1.875rem, 3.8vw, 3.125rem); letter-spacing: -0.035em; }
.t-h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -0.025em; }
.t-h4 { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); letter-spacing: -0.02em; }

.t-lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.62;
  color: var(--text-2);
  text-wrap: pretty;
}

.t-body { color: var(--text-2); text-wrap: pretty; }
.t-sm { font-size: 0.9375rem; }
.t-xs { font-size: 0.8125rem; }

.t-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t-grad {
  background: linear-gradient(104deg, var(--text) 12%, var(--brand-soft) 58%, var(--text) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-accent { color: var(--brand-text); }
.t-dim { color: var(--text-2); }
.t-faint { color: var(--text-3); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* --------------------------------------------------------------------------
   04 LAYOUT
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--flush-top { padding-top: 0; }

/* A hairline that fades out at both ends — reads far more considered than a
   full-width 1px border. */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }

.contact-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.stack { display: grid; gap: 1rem; }
.stack--sm { gap: 0.5rem; }
.stack--lg { gap: 2rem; }

.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.row--end { justify-content: flex-end; }

/* --------------------------------------------------------------------------
   05 BACKDROP
   Three stacked layers: aurora (colour), grid (structure), grain (texture).
   The grain is what stops a dark UI looking flat and cheap.
   -------------------------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden; /* the aurora layer is deliberately larger than the viewport */
  background: var(--ink-0);
}

.backdrop__aurora {
  position: absolute;
  inset: -20%;
  opacity: var(--aurora-opacity);
  background:
    radial-gradient(52% 44% at 18% 8%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 62%),
    radial-gradient(44% 38% at 84% 22%, color-mix(in srgb, #7B4DFF 20%, transparent) 0%, transparent 60%),
    radial-gradient(64% 50% at 50% 104%, color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 70%);
  filter: blur(24px);
  animation: aurora-drift 28s var(--ease-in-out) infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.02); }
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 15%, transparent 78%);
}

.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pointer-tracked spotlight, set from JS via --mx/--my. */
.backdrop__spot {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand) 13%, transparent),
    transparent 68%
  );
  transition: opacity 0.6s var(--ease);
}

@media (hover: none) { .backdrop__spot { display: none; } }

/* --------------------------------------------------------------------------
   06 BUTTONS & LINKS
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.35s var(--ease);
}
.btn:hover .icon--travel { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  --btn-bd: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 30px -12px var(--glow);
}
.btn--primary:hover {
  --btn-bg: color-mix(in srgb, var(--brand) 88%, #fff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 18px 42px -14px var(--glow);
}

/* Sheen that sweeps across on hover. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-bd: var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  --btn-bg: var(--surface-hover);
  --btn-bd: var(--line-glow);
}

.btn--quiet { --btn-bd: transparent; --btn-fg: var(--text-2); padding-inline: 0.75rem; }
.btn--quiet:hover { --btn-fg: var(--text); }

.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.875rem; }
.btn--lg { padding: 1.075rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

/* Text link with an underline that grows from the left. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-text);
  font-weight: 500;
  position: relative;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link .icon { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.link:hover .icon { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   07 SECTION FURNITURE
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before { display: none; }
.eyebrow--center { justify-content: center; }

.section-head {
  display: grid;
  gap: 1.15rem;
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--wide { max-width: 900px; }

.section-head__title { font-size: clamp(1.875rem, 3.8vw, 3.125rem); letter-spacing: -0.035em; }

/* Heading + action on one line, e.g. "Latest work → View all". */
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.badge--brand { border-color: var(--line-glow); background: var(--brand-wash); color: var(--brand-text); }
.badge--live { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 35%, transparent); background: color-mix(in srgb, var(--mint) 10%, transparent); }
.badge--soon { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
a.chip:hover, button.chip:hover { border-color: var(--line-glow); color: var(--text); background: var(--surface-hover); }
.chip.is-active { background: var(--brand); border-color: transparent; color: var(--brand-ink); font-weight: 500; }

.icon { width: 1em; height: 1em; flex: none; }
.icon--lg { width: 1.5em; height: 1.5em; }

/* Icon in a bordered tile — used across service/value/process cards. */
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--brand-text);
  transition: all 0.4s var(--ease);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.icon-tile--sm .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   08 CARDS
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease),
              background-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}

/* Top inner highlight — the single most effective "expensive glass" cue. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--highlight), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Pointer-tracked glow, coordinates set by JS. */
.card--spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 50%), color-mix(in srgb, var(--brand) 15%, transparent), transparent 72%);
  transition: opacity 0.45s var(--ease);
}
.card--spot:hover::after { opacity: 1; }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-glow);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.card__title { font-size: 1.1875rem; letter-spacing: -0.025em; }
.card__text { color: var(--text-2); font-size: 0.9375rem; line-height: 1.62; }
.card__foot { margin-top: auto; padding-top: 1.25rem; }

.card--flat { background: transparent; backdrop-filter: none; }
.card--solid { background: var(--ink-2); }

/* -- Service card ---------------------------------------------------------- */

.service-card { gap: 1.15rem; min-height: 268px; }
.service-card__index {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.service-card:hover .icon-tile {
  border-color: var(--line-glow);
  background: var(--brand-wash);
  transform: translateY(-2px);
}
.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-text);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateY(0); }

/* -- Media card (work / product / post) ------------------------------------ */

.media-card {
  padding: 0;
  background: var(--ink-2);
}

.media-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-3);
}
.media-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(var(--img-brightness)) saturate(1.02);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.media-card:hover .media-card__media img { transform: scale(1.055); filter: brightness(1) saturate(1.08); }

.media-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 2, 6, 0.55));
  opacity: 0.85;
}

.media-card__badges {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.media-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.35rem, 2vw, 1.75rem);
  flex: 1;
}

.media-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.media-card__meta span + span::before { content: "·"; margin-right: 0.6rem; }

.media-card--tall .media-card__media { aspect-ratio: 4 / 5; }
.media-card--wide .media-card__media { aspect-ratio: 21 / 9; }

/* Featured work card — image fills, copy overlays. */
.work-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(380px, 46vw, 560px);
  padding: clamp(1.75rem, 3vw, 3rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.work-feature__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.work-feature__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-feature:hover .work-feature__img img { transform: scale(1.05); }
.work-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}
.work-feature__body { display: grid; gap: 0.85rem; max-width: 46ch; color: #F4F7FF; }
.work-feature__body .card__text { color: rgba(244, 247, 255, 0.78); }

/* -- Team card ------------------------------------------------------------- */

.team-card { padding: 0; background: var(--ink-2); }
.team-card__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-3);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}
.team-card:hover .team-card__photo img { filter: grayscale(0); transform: scale(1.04); }

.team-card__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--ink-3);
}

.team-card__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: 0.35rem; }
.team-card__role { font-size: 0.875rem; color: var(--brand-text); font-weight: 500; }
.team-card__bio { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

.team-card__socials {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.team-card__socials a {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text-3);
  transition: all 0.3s var(--ease);
}
.team-card__socials a:hover { color: var(--brand-text); border-color: var(--line-glow); background: var(--brand-wash); }

/* -- Stat ------------------------------------------------------------------ */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--ink-1);
  transition: background-color 0.4s var(--ease);
}
.stat:hover { background: var(--ink-2); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__value sup { font-size: 0.44em; color: var(--brand-text); vertical-align: super; margin-left: 0.08em; }
.stat__label { font-size: 0.9375rem; font-weight: 500; }
.stat__caption { font-size: 0.8125rem; color: var(--text-3); }

/* -- Testimonial ----------------------------------------------------------- */

.quote-card { gap: 1.35rem; }
.quote-card__mark { color: var(--brand-text); opacity: 0.45; }
.quote-card__mark .icon { width: 26px; height: 26px; }
.quote-card__text { font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.quote-card__who { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; padding-top: 0.5rem; }
.quote-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: var(--ink-3);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  flex: none;
}
.quote-card__stars { display: flex; gap: 2px; color: var(--amber); }
.quote-card__stars .icon { width: 13px; height: 13px; fill: currentColor; }

/* -- Value / feature list -------------------------------------------------- */

.value-card { gap: 1rem; }
.value-card__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
}

.feature-list { display: grid; gap: 0.85rem; }
.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.feature-list .icon { width: 18px; height: 18px; color: var(--brand-text); margin-top: 3px; }

/* Metric pills on case studies. */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.metric { padding: 1.25rem; background: var(--ink-1); display: grid; gap: 0.25rem; }
.metric__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--brand-text); }
.metric__label { font-size: 0.8125rem; color: var(--text-2); line-height: 1.45; }

/* --------------------------------------------------------------------------
   09 MARQUEE & LOGOS
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.25rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee__item:hover { color: var(--text); }
.marquee__item .icon { width: 18px; height: 18px; opacity: 0.7; }
.marquee__item img { max-height: 26px; width: auto; opacity: 0.65; filter: grayscale(1); transition: all 0.3s var(--ease); }
.marquee__item:hover img { opacity: 1; filter: grayscale(0); }

/* Thin status ticker under the header. */
.ticker {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-1) 80%, transparent);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding-block: 0.55rem;
  animation: marquee 46s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ticker__item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.ticker__item .icon { width: 13px; height: 13px; color: var(--brand-text); }
.ticker__item b { color: var(--text-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   10 TIMELINE & PROCESS
   -------------------------------------------------------------------------- */

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-glow), var(--line) 50%, transparent);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink-1);
  color: var(--text-3);
}
.timeline__dot .icon { width: 15px; height: 15px; }
.timeline__item.is-done .timeline__dot {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
  box-shadow: 0 0 0 4px var(--brand-wash);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--brand-text);
  text-transform: uppercase;
}
.timeline__body { display: grid; gap: 0.4rem; padding-top: 0.25rem; }

/* Numbered process steps. */
.process { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.process--row { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.process__step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--ink-1);
  transition: background-color 0.4s var(--ease);
}
.process__step:hover { background: var(--ink-2); }
.process__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--brand-text);
}
.process__duration { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   11 ACCORDION
   -------------------------------------------------------------------------- */

.accordion { display: grid; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:first-child { border-top: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.accordion__trigger:hover { color: var(--brand-text); }
.accordion__trigger .icon {
  width: 18px; height: 18px;
  color: var(--text-3);
  flex: none;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--brand-text); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__body { padding-bottom: 1.5rem; color: var(--text-2); max-width: 68ch; }

/* --------------------------------------------------------------------------
   12 FORMS
   -------------------------------------------------------------------------- */

.field { display: grid; gap: 0.5rem; }

.field__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.select option { background: var(--ink-2); color: var(--text); }

.field__error { font-size: 0.8125rem; color: var(--rose); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--rose); }

.form-note { font-size: 0.8125rem; color: var(--text-3); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.form-status.is-visible { display: flex; }
.form-status--ok { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 30%, transparent); background: color-mix(in srgb, var(--mint) 9%, transparent); }
.form-status--err { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 30%, transparent); background: color-mix(in srgb, var(--rose) 9%, transparent); }
.form-status .icon { width: 18px; height: 18px; margin-top: 3px; flex: none; }

/* Honeypot — off-screen, never shown to a real user. */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.inline-form { display: flex; gap: 0.5rem; }
.inline-form .input { flex: 1; }

/* --------------------------------------------------------------------------
   13 NAVIGATION & FOOTER
   -------------------------------------------------------------------------- */

.announce {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  color: #fff;
  font-size: 0.875rem;
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.6rem var(--gutter); text-align: center; flex-wrap: wrap; }
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce__close { margin-left: auto; opacity: 0.8; display: grid; place-items: center; padding: 0.25rem; }
.announce__close:hover { opacity: 1; }
.announce .icon { width: 16px; height: 16px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink-0) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: var(--shell-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.logo__accent { color: var(--brand-text); }
.logo__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-left: 1px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--brand);
}
.nav__link .icon--chev { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.nav__item:hover .icon--chev { transform: rotate(180deg); }

.nav__item { position: relative; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  min-width: 300px;
  padding: 0.5rem;
  background: color-mix(in srgb, var(--ink-2) 96%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.3s var(--ease);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__drop-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--r-sm);
  transition: background-color 0.25s var(--ease);
}
.nav__drop-link:hover { background: var(--surface-2); }
.nav__drop-link strong { font-size: 0.9375rem; font-weight: 500; display: block; }
.nav__drop-link span { font-size: 0.8125rem; color: var(--text-3); line-height: 1.45; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-hover); }
.icon-btn .icon { width: 17px; height: 17px; }

.theme-toggle .icon--sun { display: none; }
[data-theme="light"] .theme-toggle .icon--sun { display: block; }
[data-theme="light"] .theme-toggle .icon--moon { display: none; }

.nav__burger { display: none; }

/* -- Mobile drawer --------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ink-0);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0.55s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__body { padding: 2rem var(--gutter); overflow-y: auto; display: grid; align-content: start; gap: 0.25rem; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.drawer__link .icon { width: 18px; height: 18px; color: var(--text-3); }
.drawer__sub { padding: 0.5rem 0 0.75rem 1rem; display: grid; gap: 0.5rem; }
.drawer__sub a { font-size: 0.9375rem; color: var(--text-2); }
.drawer__foot { margin-top: 2rem; display: grid; gap: 1rem; }

/* -- Footer ---------------------------------------------------------------- */

.footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-1) 70%, transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer__brand { display: grid; gap: 1.15rem; align-content: start; max-width: 38ch; }
.footer__col { display: grid; gap: 0.85rem; align-content: start; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer__col a { font-size: 0.9375rem; color: var(--text-2); transition: color 0.25s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--brand-text); }

.footer__socials { display: flex; gap: 0.5rem; }

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer__legal a { transition: color 0.25s var(--ease); }
.footer__legal a:hover { color: var(--text-2); }
.footer__legal nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Oversized wordmark bleeding off the bottom of the footer. */
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 15vw, 13rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-align: center;
  user-select: none;
  padding-top: 1rem;
  margin-bottom: -0.14em;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   14 HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(600px, 92vh, 940px);
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero--compact { min-height: auto; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.85) contrast(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, transparent 0%, var(--ink-0) 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink-0) 55%, transparent), var(--ink-0) 92%);
}

[data-theme="light"] .hero__bg img { opacity: 0.16; }

.hero__inner { display: grid; gap: clamp(1.5rem, 2.6vw, 2.25rem); max-width: 900px; position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.048em;
  font-weight: 600;
}
.hero__title span { display: block; }
.hero__title .is-accent { color: var(--brand-text); }

.hero__sub { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--text-2); max-width: 60ch; line-height: 1.6; }

.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.5rem; }

.hero__meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.hero__meta-item { display: grid; gap: 0.15rem; }
.hero__meta-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hero__meta-value sup { font-size: 0.45em; color: var(--brand-text); vertical-align: super; }
.hero__meta-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }

/* Scroll hint. */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero__scroll .icon { width: 15px; height: 15px; animation: bob 2.4s var(--ease-in-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(5px); opacity: 1; } }

/* Page hero for interior pages. */
.page-hero { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__inner { display: grid; gap: 1.25rem; max-width: 860px; }
.page-hero__title { font-size: clamp(2.25rem, 5.6vw, 4.25rem); letter-spacing: -0.042em; line-height: 1; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb .icon { width: 12px; height: 12px; opacity: 0.5; }

/* -- CTA band -------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 12% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%),
    var(--ink-2);
  overflow: hidden;
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.cta-band__title { font-size: clamp(1.875rem, 4.4vw, 3.25rem); letter-spacing: -0.04em; max-width: 18ch; }
.cta-band__sub { color: var(--text-2); max-width: 54ch; }
.cta-band .row { justify-content: center; }

/* --------------------------------------------------------------------------
   15 PROSE (rich text from CKEditor)
   -------------------------------------------------------------------------- */

.prose { color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 2em; margin-bottom: 0.65em; }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.15rem; top: 0.68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--brand-text); font-family: var(--font-mono); font-size: 0.875rem; }
.prose blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text);
  font-size: 1.125rem;
}
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); margin-block: 1.75em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--brand-text);
}
.prose pre {
  padding: 1.25rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.875rem;
}
.prose pre code { padding: 0; background: none; border: 0; color: var(--text-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.75rem 1rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   16 MOTION
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
.js [data-reveal="scale"] { transform: scale(0.965); }

/* Stagger children by index, set from JS as --i. */
.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }

.parallax { will-change: transform; }

/* Progress bar for article reading. */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
}

/* --------------------------------------------------------------------------
   17 UTILITIES
   -------------------------------------------------------------------------- */

.u-relative { position: relative; }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }
.u-mt-6 { margin-top: 3rem; }
.u-mb-3 { margin-bottom: 1.5rem; }
.u-fill { flex: 1; }
.u-nowrap { white-space: nowrap; }

.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--pin { aspect-ratio: 4 / 3; }

/* Small floating panel that overlaps an image edge. */
.float-panel {
  position: absolute;
  z-index: 2;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--ink-2) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.2rem;
}
.float-panel--br { right: -12px; bottom: -16px; }
.float-panel--bl { left: -12px; bottom: -16px; }

.split-media { display: grid; gap: 1rem; }
.split-media--stagger { grid-template-columns: 1fr 1fr; align-items: start; }
.split-media--stagger > :nth-child(2) { margin-top: clamp(1.5rem, 5vw, 3.5rem); }

/* --------------------------------------------------------------------------
   18 RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  /* The drawer already carries this call to action; keeping it in the bar too
     overflowed the header at 390px. */
  .nav__actions .btn { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
  .grid--split .frame { order: -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* Horizontal reveal offsets push content past the viewport edge on narrow
     screens, which adds a few pixels of horizontal scroll before the element
     animates in. Reveal vertically instead. */
  .js [data-reveal="left"],
  .js [data-reveal="right"] { transform: translateY(22px); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4, .contact-layout { grid-template-columns: 1fr; }
  .split-media--stagger { grid-template-columns: 1fr; }
  .split-media--stagger > :nth-child(2) { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .hero__meta { gap: 1.5rem 2rem; }
  .hero__ctas .btn { width: 100%; }
  .float-panel { position: static; margin-top: 1rem; }
  .section-bar { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   19 PREFERENCES
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track, .ticker__track { animation: none; }
}

@media print {
  .nav, .footer, .announce, .ticker, .backdrop, .hero__scroll, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .frame { border: 1px solid #ccc; break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   20 SPLIT ROWS (work list, service list)
   Two-column rows that alternate image side on desktop and stack on mobile.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .card[style*="grid-template-columns"] .media-card__media {
    order: -1 !important;
    min-height: 220px !important;
    aspect-ratio: 16 / 9 !important;
  }
}

/* ==========================================================================
   21 MOBILE APP SHELL
   ==========================================================================
   On phones the site presents as an installed app: a compact top bar, an
   app-style bottom tab bar instead of a hamburger, a bottom sheet for the
   full menu, and horizontally snapping card rails. All of it is inert above
   900px, where the normal desktop chrome takes over.
   ========================================================================== */

:root {
  --tabbar-h: 62px;
  /* Home-indicator inset on iOS; 0 everywhere else. */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* Kill the grey flash on tap and the elastic overscroll that gives away a
   web page pretending to be an app. */
@media (max-width: 900px) {
  html { -webkit-tap-highlight-color: transparent; }
  body { overscroll-behavior-y: none; }
  a, button { -webkit-touch-callout: none; }
}

/* -- Bottom tab bar -------------------------------------------------------- */

.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--ink-1) 86%, transparent);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border-top: 1px solid var(--line);
}

.tabbar__inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: var(--tabbar-h);
  max-width: 560px;
  margin-inline: auto;
}

.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
  /* A comfortable 44px+ tap target regardless of label length. */
  min-height: 44px;
}
.tabbar__item .icon { width: 22px; height: 22px; stroke-width: 1.7; transition: transform 0.3s var(--ease); }
.tabbar__item:active { transform: scale(0.94); }
.tabbar__item.is-active { color: var(--brand-text); }
.tabbar__item.is-active .icon { transform: translateY(-1px); }

/* The little pill above the active tab, the way native tab bars mark state. */
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}

/* -- Bottom sheet (the "More" menu) ---------------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
}
.sheet.is-open { display: block; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 2, 6, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.sheet.is-open .sheet__scrim { opacity: 1; }

.sheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem var(--gutter) calc(1.5rem + var(--safe-b));
  background: var(--ink-1);
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 0.42s var(--ease);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }

.sheet__grab {
  width: 38px; height: 4px;
  margin: 0.25rem auto 1rem;
  border-radius: 999px;
  background: var(--line-strong);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sheet__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }

/* App-launcher grid: big icon tiles, four across. */
.sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.applink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.25rem;
  border-radius: var(--r-md);
  text-align: center;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.applink:active { transform: scale(0.95); background: var(--surface-2); }
.applink.is-active { background: var(--brand-wash); }

.applink__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand-text);
}
.applink__icon .icon { width: 21px; height: 21px; }
.applink.is-active .applink__icon { background: var(--brand); border-color: transparent; color: var(--brand-ink); }

.applink span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.25;
}
.applink.is-active span { color: var(--text); }

.sheet__foot { display: grid; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* -- Mobile top bar -------------------------------------------------------- */

.appbar { display: none; }

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

  .appbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: var(--safe-t);
    background: color-mix(in srgb, var(--ink-0) 84%, transparent);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  }
  .appbar.is-stuck { border-bottom-color: var(--line); }

  .appbar__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 56px;
    padding-inline: var(--gutter);
  }
  .appbar__mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
  .appbar__brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
  .appbar__name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .appbar__actions { display: flex; gap: 0.4rem; margin-left: auto; }
  .appbar .icon-btn { width: 36px; height: 36px; }

  /* Clear the fixed tab bar. */
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  .tabbar { display: block; }
  .drawer { display: none; }
  .footer { margin-bottom: 0; }
  html { scroll-padding-top: 72px; }
}

/* -- Mobile density -------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --section-y: clamp(3rem, 9vw, 4.5rem);
    --gutter: 1.125rem;
  }

  /* Sections that add depth on desktop but only add scrolling on a phone. */
  .mobile-hide { display: none !important; }

  /* Trim long-form copy to the first paragraph's worth. */
  .mobile-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero { min-height: auto; padding-block: clamp(2.5rem, 9vw, 4rem) clamp(2rem, 7vw, 3rem); }
  .hero__title { font-size: clamp(2.125rem, 10vw, 3rem); }
  .hero__sub { font-size: 1rem; }
  .hero__scroll { display: none; }
  .hero__meta { gap: 1.25rem 1.75rem; padding-top: 1.25rem; }
  .hero__meta-value { font-size: 1.5rem; }

  .section-head { margin-bottom: 1.75rem; gap: 0.85rem; }
  .section-bar { margin-bottom: 1.5rem; gap: 1rem; }
  .t-lead { font-size: 1rem; }

  .cta-band { padding: 2rem 1.25rem; border-radius: var(--r-lg); }
  .footer__wordmark { display: none; }
  .footer__grid { padding-block: 2.5rem; gap: 2rem; }

  /* Cards get closer to app-card proportions. */
  .card { border-radius: var(--r-md); }
  .service-card { min-height: 0; }
  .work-feature { min-height: 340px; padding: 1.25rem; }
}

/* -- Snap rails -----------------------------------------------------------
   A grid of cards becomes a horizontally swipeable rail on a phone, which is
   how a native app would present the same list. Add `data-rail` to opt in.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  [data-rail] {
    display: grid !important;
    /* The single-column mobile rule sets grid-template-columns; clear it so
       every card is sized by grid-auto-columns instead of just the first. */
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Bleed to the screen edges so the rail reads as a rail. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { scroll-snap-align: start; }
  [data-rail].grid--4 > *:nth-child(n + 7) { display: none; }
}

@media (min-width: 901px) {
  .desktop-hide { display: none !important; }
}

/* -- Installed-app mode ---------------------------------------------------
   When launched from the home screen there is no browser chrome, so the top
   bar takes over the status-bar area and links stop opening new tabs.
   -------------------------------------------------------------------------- */

@media (display-mode: standalone) {
  .appbar { padding-top: max(var(--safe-t), 8px); }
  .pwa-only { display: initial; }
  .browser-only { display: none !important; }
}
.pwa-only { display: none; }

/* -- Install prompt -------------------------------------------------------- */

.install-banner {
  display: none;
  position: fixed;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 0.75rem);
  z-index: 85;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--ink-3) 96%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.install-banner.is-visible { display: flex; }
.install-banner img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.install-banner__text { flex: 1; min-width: 0; }
.install-banner__text strong { display: block; font-size: 0.875rem; }
.install-banner__text span { font-size: 0.75rem; color: var(--text-3); }

@media (min-width: 901px) { .install-banner { display: none !important; } }

/* -- Mobile height budget -------------------------------------------------
   Measured on a 390x844 viewport, the homepage ran to 12.8 screens. These
   rules target the four sections that accounted for most of it.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /* 1. Process steps stacked to 1.6 screens. Make them a swipeable rail. */
  .process--row {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 1px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--r-md);
  }
  .process--row::-webkit-scrollbar { display: none; }
  .process__step { scroll-snap-align: start; }

  /* 2. The footer was two full screens on its own. */
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    padding-block: 2rem;
  }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .footer__brand .t-sm { display: none; }          /* blurb duplicates the about page */
  .footer__col:last-child { grid-column: 1 / -1; } /* address block spans */
  .footer__col h4 { font-size: 0.625rem; }
  .footer__col a { font-size: 0.875rem; }

  /* 3. Overlapping info panels stack below their image and add ~120px each. */
  .float-panel { display: none; }

  /* 4. Section headings carry a lead paragraph that repeats the section below. */
  .section-bar .t-lead { display: none; }
}

/* Rails need their reveal transform cleared, or the horizontal offset fights
   the scroll container and clips the first card. */
@media (max-width: 900px) {
  .js [data-rail][data-reveal-stagger] > * { transform: translateY(16px); }
}

/* -- Logo lockup ----------------------------------------------------------
   Mark plus wordmark, matching the mobile app bar so the two never disagree.
   -------------------------------------------------------------------------- */

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  /* The artwork carries its own rounded-square plate, so give it a hairline
     rather than a background. */
  box-shadow: 0 0 0 1px var(--line);
}
.logo__word { white-space: nowrap; }

.footer .logo__mark { width: 40px; height: 40px; border-radius: 11px; }

/* Staff sign-in sits in the footer legal bar rather than the marketing nav —
   discoverable for the team, out of the way for everyone else. */
.footer__staff {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer__staff .icon { width: 13px; height: 13px; opacity: 0.7; }
.footer__staff:hover .icon { opacity: 1; }
