/* ==========================================================================
   Double Dare Media — design system
   Tokens and components from board D "UI component system".
   Red is light, not paint: ~3% of any screen.
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------- */
/*
   The brand's two typefaces, served from assets/fonts — no third-party
   origin to resolve before a glyph arrives. Clash Display for headlines,
   numbers and site names; Poppins for body, UI and labels. Converted from
   the client's master files and subset to Latin; licences sit beside them.
   The family names match --display and --body below, so nothing else
   needed to change.
*/
@font-face { font-family: "Clash Display"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/ClashDisplay-Light.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"); }

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); }

/* --- Tokens -------------------------------------------------------------- */
/*
   One palette, two grounds.

   The site is black at heart — "the canvas: the city at night". But a page
   that is black from top to bottom flattens out, so the scroll alternates:
   long dark stretches for the photography and the map, bright stretches for
   the reading. Board A calls it pacing it like a night drive, with landmarks
   you approach and pass.

   A section declares which ground it is on with .on-dark or .on-light.
   Those classes re-bind the same token names, so every component inside —
   buttons, hairlines, cards, the map, the chat — follows without a single
   component-level rule.

   Naming: --canvas / --surface / --wash are backgrounds, --text* is type,
   --line* is structure. --on-media / --scrim-* never change: they sit on a
   photograph, which is dark wherever it appears.
*/
:root {
  color-scheme: dark;

  /* Colour — from the brand guidelines, no additions */
  --canvas:      #000000;  /* the canvas: the city at night */
  --surface:     #0E0E0E;  /* digital tint of black, cards and panels */
  --wash:        #050505;  /* section washes */
  --line-strong: #383838;  /* hairlines, map roads, dim states */
  --line:        #262626;
  --line-soft:   #1F1F1F;
  --text-mute:   #8A8A8A;
  --text-dim:    #A3A3A3;
  --text-soft:   #D4D4D4;
  --text:        #FFFFFF;
  --red:         #FF0000;  /* used as light: trails, pins, one word */
  --btn-fill:    #FFFFFF;  /* the main button: white on the night canvas */
  --btn-ink:     #000000;
  --deep-red:    #8B0000;  /* glows and gradients only */

  /* Red split in two: --red is the mark (fills, pins, sparks, the trail),
     --red-ink is the same red made safe as TEXT on the ground it sits on.
     On black, bright red is 5.25:1 and needs no help. */
  --red-ink:     #FF0000;
  --on-red:      #000000;  /* label on a red fill — white on red is only 4.0:1 */

  /* Structure drawn with translucent ink, so it sits on any background */
  --hair:        rgba(255,255,255,.35);   /* .btn--line border */
  --hair-soft:   rgba(255,255,255,.55);   /* .outline text stroke */
  --dot:         rgba(255,255,255,.07);   /* the map's dot grid */
  --hatch:       rgba(255,255,255,.015);  /* placeholder blocks */
  --row-wash:    rgba(255,0,0,.06);       /* the red wash on row hover */
  --ignite-off:  #3A3A3A;                 /* manifesto words before they light */
  --glow:        rgba(255,0,0,.8);        /* red reads as light on black */
  --ignite-glow: 0 0 12px rgba(255,0,0,.55);

  /* The corridor map */
  --map-faint:   #2A2A2A;  /* coastline */
  --map-minor:   #262626;  /* Palm Jumeirah */
  --map-major:   #383838;  /* the roads themselves */
  --map-label:   #8F8F8F;  /* 6.5:1 on black */
  --map-sea:     #7A7A7A;

  /* The navigation is always dark chrome, whatever it is floating over */
  --nav-bg:      rgba(0,0,0,.92);

  /* Over photography — never changes */
  --media-bg:    #000000;
  --on-media:    #FFFFFF;
  --scrim-media: rgba(0,0,0,.6);
  --hair-media:  rgba(255,255,255,.22);

  /* Type */
  --display: "Clash Display", "Poppins", system-ui, sans-serif;
  --body:    "Poppins", system-ui, -apple-system, sans-serif;

  /* Spacing — 8pt with a 4 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Layout — 12 columns, 64px margins, 24px gutters at 1440 */
  --maxw: 1312px;
  --gutter: 64px;
  --section-y: 120px;

  /* Motion */
  --dare-out: cubic-bezier(.2, .7, 0, 1);  /* fast launch, long glide */
  --brake:    cubic-bezier(.6, 0, .2, 1);  /* page wipes, pinned hand-offs */
  --t-micro:  180ms;
  --t-ui:     420ms;
  --t-reveal: 900ms;
  --t-cine:   1400ms;

  /* Stacking — one scale, so a new layer never needs a guessed number.
     Anything positioned picks the nearest step up from what it must clear. */
  --z-base:    1;    /* content lifted above a section's own background */
  --z-overlay: 2;    /* gradients and scrims inside a card or figure */
  --z-float:   60;   /* the cursor-following row thumbnail */
  --z-drawer:  90;   /* the mobile menu */
  --z-nav:     100;  /* the fixed bar, above the drawer it opens */
  --z-chat:    120;  /* the concierge, above the nav when full screen */
  --z-modal:   150;  /* the plan-a-campaign dialog, above the concierge */
  --z-skip:    200;  /* the skip link, reachable from anywhere */
  --z-cursor:  300;  /* the custom cursor, always on top */

  /* Shape — soft curves throughout.
     Surfaces (cards, panels, images) clip to a rounded rectangle: an element
     sets its own --cut-size, which is the corner radius, and clips with
     var(--cut-poly). Because --cut-size is read where the shape is *used*,
     one definition here covers every size on the site.
     The site is square and sharp: frames, cards and photos have no rounding,
     and controls (buttons, chips, choices, icon tiles) only the 2px the
     buttons have. Small dots and the numbered rings stay round. */
  --r-sm:   0px;
  --r:      0px;
  --r-lg:   0px;
  --r-pill: 2px;
  --cut-size: var(--r);
  --cut-poly: inset(0 round var(--cut-size));
  --cut-poly-lg: inset(0 round var(--cut-size));
}

/* --- The two grounds -----------------------------------------------------
   .on-light is plain white, not an off-white: the brand is absolute black
   and absolute white with one red. Its surfaces are white too, and every
   grey on it is a neutral grey with no warm tint, so nothing reads beige;
   cards and panels separate from the page by a hairline, not a tone.

   The only real adjustment is red-as-text. Bright red on white is 4.0:1,
   which fails AA, so --red-ink drops to #D10000 (5.25:1) while the mark
   stays #FF0000 for pins, sparks and trails, where contrast is not the
   test. The main button flips with the ground: white on black, black on white.
   ------------------------------------------------------------------------ */
.on-dark {
  color-scheme: dark;
  --canvas:      #000000;
  --btn-fill:    #FFFFFF;
  --btn-ink:     #000000;
  --surface:     #0E0E0E;
  --wash:        #050505;
  --line-strong: #383838;
  --line:        #262626;
  --line-soft:   #1F1F1F;
  --text-mute:   #8A8A8A;
  --text-dim:    #A3A3A3;
  --text-soft:   #D4D4D4;
  --text:        #FFFFFF;
  --red-ink:     #FF0000;
  --hair:        rgba(255,255,255,.35);
  --hair-soft:   rgba(255,255,255,.55);
  --dot:         rgba(255,255,255,.07);
  --hatch:       rgba(255,255,255,.015);
  --ignite-off:  #3A3A3A;
  --glow:        rgba(255,0,0,.8);
  --ignite-glow: 0 0 12px rgba(255,0,0,.55);
  --map-faint:   #2A2A2A;
  --map-minor:   #262626;
  --map-major:   #383838;
  --map-label:   #8F8F8F;
  --map-sea:     #7A7A7A;

  background: var(--canvas);
  color: var(--text);
}

.on-light {
  color-scheme: light;
  --canvas:      #FFFFFF;
  --btn-fill:    #0A0A0A;  /* the main button turns black on white */
  --btn-ink:     #FFFFFF;
  --surface:     #FFFFFF;
  --wash:        #FFFFFF;
  --line-strong: #C4C4C4;
  --line:        #E3E3E3;
  --line-soft:   #EFEFEF;
  --text-mute:   #6B6B6B;
  --text-dim:    #4F4F4F;
  --text-soft:   #2E2E2E;
  --text:        #0A0A0A;
  --red-ink:     #D10000;  /* 5.25:1 on white */
  --hair:        rgba(10,10,10,.28);
  --hair-soft:   rgba(10,10,10,.50);
  --dot:         rgba(10,10,10,.10);
  --hatch:       rgba(10,10,10,.035);
  --ignite-off:  #CFCFCF;
  /* Glow is a night-time effect. On paper it just blurs the type. */
  --glow:        rgba(255,0,0,.3);
  --ignite-glow: none;
  --map-faint:   #DCDCDC;
  --map-minor:   #D3D3D3;
  --map-major:   #B0B0B0;
  --map-label:   #6B6B6B;
  --map-sea:     #6A6A6A;

  background: var(--canvas);
  color: var(--text);
}

/* The spark — the four-point star from the monogram. A mark, not text, so it
   holds the bright brand red on either ground. */
.spark-mark path { fill: var(--red); }

/* --- Over photography ----------------------------------------------------
   A photograph is dark wherever it sits, so its caption keeps the dark
   palette even inside a white section.
   ------------------------------------------------------------------------ */
.hero__inner,
.shero__inner,
.beyond__inner,
.cta__inner,
.card,
.flagship__cap,
.mapcard__no,
.tag {
  --text:        #FFFFFF;
  --text-soft:   #D4D4D4;
  --text-dim:    #A3A3A3;
  --text-mute:   #8A8A8A;
  --red-ink:     #FF0000;   /* bright red reads fine on a dark photograph */
  --btn-fill:    #FFFFFF;
  --btn-ink:     #000000;
  --hair:        rgba(255,255,255,.35);
  --hair-soft:   rgba(255,255,255,.55);
  --line:        rgba(255,255,255,.22);
  color: var(--text);
}

@media (max-width: 1100px) { :root { --gutter: 40px; --section-y: 110px; } }
@media (max-width: 768px)  { :root { --gutter: 20px; --section-y: 88px; } }

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
/* <picture> only wraps; the <img> inside keeps every layout rule that
   targeted it before. Safe here — picture carries no semantics of its own. */
picture { display: contents; }

/* Components below set display: flex/grid, which would otherwise beat the
   UA rule for [hidden]. Every JS toggle in this project uses .hidden. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--on-red); }

/* Keyboard focus only — the design has no visible outlines on mouse use */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--wash { background: var(--wash); }
.section--surface { background: var(--surface); }

/* --- Typography ---------------------------------------------------------- */
.cd {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
}

/* Fluid display scale, set calm after the Dopamine reference the client
   chose: hero 72 · display 64 · figure 56 · h2 52 · h3 26 (px, at 1440 and
   up). Headings keep room between their lines (1.04 to 1.15) and only a
   light negative tracking, so they read rather than shout. Phone sizes are
   in mobile.css. */
.t-xxl {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.t-display {
  font-family: var(--display);
  font-size: clamp(38px, 4.45vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-fig {
  font-family: var(--display);
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: .9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
/* Headings break into even lines; paragraphs avoid a lone last word */
h1, h2, h3, .t-xxl, .t-display, .t-h2, .t-h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.t-body-l { font-size: 17px; line-height: 1.55; font-weight: 300; }
.t-body   { font-size: 16px; line-height: 1.6; font-weight: 400; }
.t-label  { font-size: 15px; font-weight: 500; line-height: 1.4; }

.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.mute   { color: var(--text-mute); }
.mute-2 { color: var(--text-dim); }
.soft   { color: var(--text-soft); }
.red    { color: var(--red-ink); }

.outline     { color: transparent; -webkit-text-stroke: 1px var(--hair-soft); }
.outline-red { color: var(--red-ink); }

/* --- Rounded surfaces ----------------------------------------------------
   The radius is set twice on purpose: clip-path rounds what is painted,
   border-radius makes an inset hairline (box-shadow) follow the same curve
   instead of being cut off at the corners. */
.cut    { --cut-size: var(--r);    clip-path: var(--cut-poly); border-radius: var(--cut-size); }
.cut-sm { --cut-size: var(--r-sm); clip-path: var(--cut-poly); border-radius: var(--cut-size); }
.cut-lg {
  --cut-size: var(--r-lg); clip-path: var(--cut-poly-lg); border-radius: var(--cut-size);
}
@media (max-width: 768px) {
  .cut-lg { --cut-size: var(--r); clip-path: var(--cut-poly-lg); }
}

/* --- Buttons ------------------------------------------------------------- */
/* A road sign: a square panel, and where there is an arrow it sits in a cell
   of its own behind a hairline, like the arrow on a highway direction sign.
   On hover the label rolls up to a copy of itself, the arrow's cell turns red
   and the arrow drives out and back in. main.js wraps each label in
   .btn__roll; a button without the wrapper still works, it just doesn't roll. */
.btn {
  --btn-ease: cubic-bezier(.65, 0, .35, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 24px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 2px;
  transition: background-color 360ms var(--btn-ease),
              color 360ms var(--btn-ease),
              box-shadow 360ms var(--btn-ease),
              scale 140ms ease-out;
}
/* Press: a small give under the finger */
.btn:active, .radios label:active { scale: .97; }
/* The arrow's cell: square, the button's full height, behind a hairline.
   (The arrow's markup carries a 20px inline size for its other uses.) */
.btn:has(> svg) { padding-inline-end: 0; }
.btn > svg {
  flex: none;
  box-sizing: content-box;
  width: 16px !important; height: 16px !important;
  padding: 16px;
  margin-inline-start: 10px;
  border-inline-start: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: background-color 360ms cubic-bezier(.65, 0, .35, 1), color 360ms cubic-bezier(.65, 0, .35, 1),
              border-color 360ms cubic-bezier(.65, 0, .35, 1);
}

/* The label and its copy, one line apart (the copy is a text-shadow) */
.btn__roll { display: block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.btn__roll > span {
  display: block;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 560ms var(--btn-ease);
}
@media (hover: hover) {
  .btn:hover .btn__roll > span { transform: translateY(-1.3em); }
  .btn:hover > svg { background: var(--red); color: #fff; border-inline-start-color: transparent; }
  .btn:hover > svg path { animation: btn-arrow 620ms var(--btn-ease); }
}
@keyframes btn-arrow {
  0%     { transform: translateX(0); }
  49.9%  { transform: translateX(26px); }
  50%    { transform: translateX(-26px); }
  100%   { transform: translateX(0); }
}

/* The main button (still named --red in the markup): a white panel with a
   black label on dark ground, the reverse on white ground so it never
   vanishes. --btn-fill and --btn-ink follow the ground (see .on-light). */
.btn--red { background: var(--btn-fill); color: var(--btn-ink); }
.btn--red:hover { background: color-mix(in srgb, var(--btn-fill) 86%, var(--btn-ink)); }

.btn--line {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.btn--line:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn--sm { height: 40px; padding-inline: 18px; gap: 8px; font-size: 13px; }
.btn--sm > svg { width: 14px !important; height: 14px !important; padding: 13px; margin-inline-start: 8px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .btn__roll > span { transition: none; }
  .btn:hover .btn__roll > span { transform: none; }
  .btn:hover > svg path { animation: none; }
}

/* Text link — red rule wipes in from the left */
.link-u {
  display: inline-block;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 450ms var(--dare-out), color var(--t-ui);
}
.link-u:hover { background-size: 100% 1px; }

/* --- Chips --------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-soft);
  background: transparent;
  border: 0;                       /* chips are buttons: drop the browser's 2px outset border */
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: color var(--t-ui) var(--dare-out),
              background var(--t-ui) var(--dare-out),
              box-shadow var(--t-ui) var(--dare-out);
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-mute); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--red);
  color: var(--on-red);
  box-shadow: none;
}
.chip__n { font-variant-numeric: tabular-nums; opacity: .7; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--on-media);
  font-family: var(--body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  background: var(--scrim-media);
}

/* --- Hairlines, trails, texture ----------------------------------------- */
.rule { height: 1px; background: var(--line); border: 0; }

.trail {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,0,0,.9) 70%, var(--text) 100%);
  box-shadow: 0 0 12px var(--glow);
}
.trail-v {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,0,0,.9) 80%, var(--text) 100%);
  box-shadow: 0 0 12px var(--glow);
}

/* The guideline's scan-line texture — never behind body text */
.scan {
  background-image: repeating-linear-gradient(
    0deg, rgba(0,0,0,.28) 0 1px, rgba(0,0,0,0) 1px 3px
  );
}

.dotgrid {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* The blinking cursor — live, typing, now */
/* Sized in em so it stays a cursor at 14px and at 196px */
.cursor-bar {
  display: inline-block;
  width: .18em;
  height: .055em;
  min-height: 2px;
  background: var(--red);
  margin-inline-start: .06em;
  vertical-align: baseline;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 80px;
  padding-inline: var(--gutter);

  /* No bar of its own: the mark at the left, and at the right the pages in
     a frosted glass strip beside the brief's button. It stays put while the
     page scrolls, and takes its colour from the section under it (main.js
     navTone): white over a dark section, black over a white one. */
  background: transparent;
  --text:      #FFFFFF;
  --text-soft: #E6E6E6;
  --line:      rgba(255,255,255,.22);
  --btn-fill:  #FFFFFF;
  --btn-ink:   #000000;
  color: var(--text);
  transition: color 400ms cubic-bezier(.4, 0, .2, 1);
}
.nav.is-light {
  --text:      #0A0A0A;
  --text-soft: #1E1E1E;
  --line:      rgba(10,10,10,.18);
  --btn-fill:  #0A0A0A;
  --btn-ink:   #FFFFFF;
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
/* The logo: white over dark sections, black over white ones (.is-light) */
.nav__logo { display: block; flex: none; }
.nav__logo img { display: block; width: auto; height: 40px; transition: filter 400ms cubic-bezier(.4, 0, .2, 1); }
.nav.is-light .nav__logo img { filter: brightness(0); }
.nav__brand svg { width: 30px; height: 33px; color: var(--text); flex: none; }
.nav__wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* The pages, in a frosted glass strip that reads over any section */
.nav__links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
  height: 42px; padding-inline: 24px;
  background: rgba(74, 74, 74, .15);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-radius: var(--r-pill);
}
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 400ms cubic-bezier(.4, 0, .2, 1);
}
.nav__link:hover { color: var(--text); opacity: .72; }
/* On hover the word rolls up and its copy (a text-shadow) takes its place,
   the same move as the buttons' labels */
.nav__roll { display: block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.nav__roll > span {
  display: block;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 560ms cubic-bezier(.65, 0, .35, 1);   /* the buttons' easing */
}
@media (hover: hover) {
  .nav__link:hover .nav__roll > span { transform: translateY(-1.3em); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__roll > span { transition: none; }
  .nav__link:hover .nav__roll > span { transform: none; }
}
/* Active page is marked by the spark */
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  background: var(--red);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.nav__right { display: flex; align-items: center; gap: var(--s-5); }
/* The brief's button stands as tall as the glass strip beside it */
.nav .btn--sm { height: 42px; }
.nav .btn--sm > svg { padding: 14px; }
.nav__brand svg, .nav__burger span { transition: color 400ms cubic-bezier(.4, 0, .2, 1), background-color 400ms cubic-bezier(.4, 0, .2, 1), transform var(--t-ui) var(--dare-out), opacity var(--t-micro); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform var(--t-ui) var(--dare-out), opacity var(--t-micro);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile drawer */
/* The drawer (below 1025px): the pages as large rows that rise in one
   after another, the brief as the one red button, and the ways to reach
   the team at the foot. Each part carries its place in the order as --i. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: 104px var(--gutter) 28px;
  overflow-y: auto;
  background: var(--canvas);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 640ms var(--dare-out), visibility 640ms;
}
.nav-drawer.is-open { clip-path: inset(0); visibility: visible; }
.nav-drawer__links { display: flex; flex-direction: column; }
.nav-drawer__links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(30px, 8.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.nav-drawer__links a svg { width: 22px !important; height: 22px !important; flex: none; color: var(--text-mute); transition: transform var(--t-ui) var(--dare-out), color var(--t-ui); }
.nav-drawer__links a:hover svg, .nav-drawer__links a:focus-visible svg { color: var(--red-ink); transform: translateX(4px); }
.nav-drawer__links a[aria-current="page"] { color: var(--red-ink); }
.nav-drawer__links a[aria-current="page"] svg { color: var(--red-ink); }
/* The menu's button keeps its own size, at the left under the links, like every other button */
.nav-drawer__cta { align-self: flex-start; }
/* While the drawer is open its own button leads: the bar's copy and the chat step aside */
.is-menu .nav .btn, .is-menu .chat-fab { opacity: 0; pointer-events: none; transition: opacity var(--t-ui); }
.nav-drawer__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin-top: auto;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-drawer__foot > a:hover { color: var(--text); }
.nav-drawer__foot .footer__social { display: flex; gap: 10px; list-style: none; width: 100%; }
.nav-drawer__foot .footer__social-link {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 2px;
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.nav-drawer__foot .footer__social-link svg { width: 18px; height: 18px; }
/* Rows rise in one after another as the drawer opens */
.nav-drawer__links a, .nav-drawer__cta, .nav-drawer__foot {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms var(--dare-out), transform 520ms var(--dare-out);
}
.nav-drawer.is-open .nav-drawer__links a,
.nav-drawer.is-open .nav-drawer__cta,
.nav-drawer.is-open .nav-drawer__foot {
  opacity: 1; transform: none;
  transition-delay: calc(140ms + var(--i) * 45ms);
}

@media (max-width: 1024px) {
  .nav { height: 72px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav .btn { display: none; }
}

/* --- Site card ----------------------------------------------------------- */
.card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  --cut-size: var(--r); clip-path: var(--cut-poly); border-radius: var(--cut-size);
}
/* Point at a site and a red line draws along the foot of its frame: the
   same rule the capabilities and the rail use, no light running round it */
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
@media (hover: hover) { .card:hover::before { transform: scaleX(1); } }
.card:focus-visible::before { transform: scaleX(1); }
.card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1100ms var(--dare-out), filter 600ms;
}
.card:hover .card__img { transform: scale(1.06); filter: saturate(1.1); }

/* --- Framed photo — a wide 16:9 picture with its caption on a dark fade.
   Shared by the home flagship, the vision page and every site page.
   `height: auto` lets the 16:9 ratio win over the width/height attributes,
   which otherwise kept desktop height on phones and stretched the photo. */
.flagship__frame { position: relative; margin: 0; overflow: hidden; }
.flagship__frame img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.4s var(--dare-out);
}
.flagship__frame:hover img { transform: scale(1.04); }
.flagship__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.flagship__cap {
  position: absolute;
  inset: auto 40px 36px;
  z-index: var(--z-base);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.flagship__loc { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.flagship__tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1000px) { .flagship__cap { inset: auto 20px 20px; } }

/* --- Closing call — the last section on most pages ------------------------
   Lives here, not in home.css: portfolio and the roads page do not load
   home.css, and without these rules their call lost its layout. */
.cta { position: relative; padding-block: 160px; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0;
  /* Black at the top edge, so the photograph rises out of the black section
     above it; light over the middle; black again at the foot so it runs
     straight into the footer. Eased stops, so neither fade shows a line. */
  background: linear-gradient(180deg,
    var(--canvas) 0%,
    rgba(0,0,0,.86) 6%,
    rgba(0,0,0,.6) 12%,
    rgba(0,0,0,.33) 19%,
    rgba(0,0,0,.15) 27%,
    rgba(0,0,0,.12) 45%,
    rgba(0,0,0,.55) 78%,
    var(--canvas) 100%);
}
.cta__inner { position: relative; z-index: var(--z-base); text-align: center; }
.cta__lede { max-width: 54ch; margin: var(--s-5) auto 0; color: var(--text-soft); }
/* Over the red photograph the line is white, lifted off the metal by a soft shadow */
.cta:has(.cta__bg) .cta__lede { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.cta__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center;
  margin-top: 128px;                   /* clear of the title, sitting low in the frame */
}
/* Inner pages close a little shorter than home, which carries three points */
.cta--page { padding-block: 128px; }
/* No picture behind it: hairlines keep it from running into the black around it */
.cta--plain { padding-block: var(--s-9); border-block: 1px solid var(--line-soft); }
@media (max-width: 860px) { .cta { padding-block: 110px; } }

/* Two gradients protect the number and the title */
.card__media::before,
.card__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.card__media::before {
  top: 0; height: 40%;
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.card__media::after {
  bottom: 0; height: 62%;
  background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,0));
}

.card__no {
  position: absolute;
  top: 20px; inset-inline-start: 20px;
  z-index: var(--z-overlay);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text);
}
.card__body {
  position: absolute;
  inset: auto 20px 20px;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card__meta { display: block; font-size: 13px; color: var(--text-soft); }
.card__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t-ui), gap var(--t-ui) var(--dare-out);
}
.card:hover .card__cta { color: var(--red-ink); gap: 14px; }

/* --- Rows (expertise, portfolio list) ------------------------------------ */
.row {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
  transition: background var(--t-ui) var(--dare-out);
}
.row:hover { background: var(--row-wash); }
.row__no {
  font-family: var(--display);
  font-size: 15px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-ui);
}
.row:hover .row__no { color: var(--red-ink); }
.row__arrow { transition: transform var(--t-ui) var(--dare-out), color var(--t-ui); }
.row:hover .row__arrow { transform: translateX(8px); color: var(--red-ink); }

/* --- Figures ------------------------------------------------------------- */
.figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
/* A figure sits in its own frame, as the reference's result cards do */
.fig {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line);
}
.fig__label { font-size: 15px; font-weight: 500; }
.fig__note  { font-size: 13px; color: var(--text-mute); }
@media (max-width: 900px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Form fields — underline only, labels always visible ----------------- */
/* A send that failed says so, with the direct ways to reach the team */
.form-fail { flex-basis: 100%; grid-column: 1 / -1; margin-top: var(--s-4); font-size: 14px; color: var(--red-ink); }

.field { display: flex; flex-direction: column; gap: 10px; }
.field__label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field__input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 300ms var(--dare-out);
  appearance: none;
}
.field__input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field__input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-bottom-color: var(--red); }
.field select option { background: var(--surface); color: var(--text); }
.field.is-error .field__input { border-bottom-color: var(--red); }
.field__error {
  display: none;
  font-size: 13px;
  color: var(--red);
}
.field.is-error .field__error { display: block; }
.field__error { color: var(--red-ink); }

/* --- Plan a campaign: the brief dialog ----------------------------------
   Opens over the page from the nav. The page behind is dimmed and
   blurred; the panel settles down into place. Fields are filled and
   rounded here, so the short form reads as one calm block. */
.is-modal, .is-modal body { overflow: hidden; }
.pmodal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(16px, 3vh, 48px) 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pmodal[hidden] { display: none; }
.pmodal__backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity var(--t-ui) var(--dare-out);
}
.pmodal__panel {
  position: relative;
  width: min(720px, 100%);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(-32px) scale(.985);
  transition: opacity var(--t-ui) var(--dare-out), transform var(--t-reveal) var(--dare-out);
}
.pmodal.is-open .pmodal__backdrop { opacity: 1; }
.pmodal.is-open .pmodal__panel { opacity: 1; transform: none; }

.pmodal__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--red-ink);
  background: rgba(255,255,255,.07);
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background var(--t-ui), color var(--t-ui);
}
.pmodal__close:hover { background: var(--red); color: var(--on-red); }

.pmodal__head { padding: 24px 88px 18px 32px; border-bottom: 1px solid var(--line); }
.pmodal__title {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.pmodal__intro { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-dim); max-width: 460px; }

.pmodal__form { display: grid; gap: 14px; padding: 20px 32px 22px; }
.pmodal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pmodal__opt { margin-left: 6px; letter-spacing: .12em; color: var(--text-mute); opacity: .7; }

/* Filled, rounded fields — used in the dialog */
.field--filled .field__input {
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 300ms var(--dare-out), background 300ms var(--dare-out);
}
.field--filled textarea.field__input { resize: vertical; min-height: 84px; line-height: 1.6; }
.field--filled .field__input:focus { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--red); }
.field--filled.is-error .field__input { box-shadow: inset 0 0 0 1px var(--red); }

.pmodal__consent {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-soft);
  cursor: pointer;
}
.pmodal__consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.pmodal__tick {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-mute);
  transition: background-color var(--t-micro), box-shadow var(--t-micro);
}
.pmodal__consent input:checked + .pmodal__tick { background: var(--red); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 7px var(--red); }
.pmodal__consent input:focus-visible + .pmodal__tick { outline: 2px solid var(--red); outline-offset: 3px; }
.pmodal__consent.is-error .pmodal__tick { box-shadow: inset 0 0 0 1.5px var(--red); }
.pmodal__consent.is-error > span:last-child { color: var(--red-ink); }

.pmodal__note { font-size: 14px; color: var(--text-dim); }
.pmodal__submit { width: 100%; justify-content: center; height: 56px; }

.pmodal__done { padding: 36px 32px; }
.pmodal__mark {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,0,0,.12);
}
.pmodal__mark .spark-mark { fill: var(--red); }

.pmodal__tiles {
  list-style: none;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
  padding: 0 32px 24px;
}
.pmodal__tiles a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow var(--t-ui), background var(--t-ui);
}
.pmodal__tiles a:hover, .pmodal__tiles a:focus-visible { box-shadow: inset 0 0 0 1px var(--red); background: rgba(255,0,0,.05); }
.pmodal__tiles svg { color: var(--text-soft); }
.pmodal__tiles b { font-size: 15px; font-weight: 500; }
.pmodal__tiles span { grid-column: 1 / -1; font-size: 13px; color: var(--text-mute); overflow-wrap: anywhere; }

.pmodal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
}
.pmodal__brand { display: block; }
.pmodal__foot img { display: block; width: 150px; height: auto; }
.pmodal__alt { font-size: 13px; color: var(--text-mute); }
.pmodal__alt a { color: var(--text-soft); }

@media (max-width: 640px) {
  .pmodal { padding: 0; align-items: stretch; }
  .pmodal__panel { border-radius: 0; min-height: 100%; }
  .pmodal__head { padding: 24px 76px 20px 20px; }
  .pmodal__form { padding: 20px; }
  .pmodal__row, .pmodal__tiles { grid-template-columns: 1fr; }
  .pmodal__tiles { padding: 0 20px 20px; }
  .pmodal__foot { padding: 18px 20px; }
  .pmodal__close { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pmodal__backdrop, .pmodal__panel { transition: none; transform: none; }
}

/* Radio group rendered as chips */
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background-color var(--t-ui) var(--dare-out), color var(--t-ui) var(--dare-out), box-shadow var(--t-ui) var(--dare-out), scale 120ms ease-out;
}
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios input:checked + span,
.radios label:has(input:checked) { background: var(--red); color: var(--on-red); box-shadow: none; }
.radios label:hover { color: var(--text); }
.radios label:has(input:checked):hover { color: var(--on-red); }
.radios input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }

/* --- Panels -------------------------------------------------------------- */
.panel {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);   /* on white, a panel is drawn by its edge */
  padding: var(--s-7);
  --cut-size: var(--r); clip-path: var(--cut-poly); border-radius: var(--cut-size);
}
@media (max-width: 768px) { .panel { padding: var(--s-5); } }

/* --- Marquee ------------------------------------------------------------- */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
  padding-inline-end: var(--s-5);
  white-space: nowrap;
}

/* --- Footer -------------------------------------------------------------- */
/* Quiet on purpose: small grey labels over plain white links (a red rule
   wipes in under the one you point at), the office with its coordinates,
   then the brand's sign-off on a tri-vision board, then the small print. */
.footer { background: var(--canvas); padding-top: var(--s-9); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.25fr) minmax(0, 1.3fr);
  column-gap: clamp(24px, 3vw, 56px);
  padding-bottom: clamp(64px, 7vw, 112px);
}
.footer__logo { display: block; width: clamp(176px, 14vw, 220px); }
.footer__logo img { display: block; width: 100%; height: auto; }
.footer__blurb {
  max-width: 30ch;
  margin-top: var(--s-5);
  font-size: 15px; line-height: 1.7;
  color: var(--text-dim);
}
.footer__h {
  margin-bottom: var(--s-5);
  font-family: var(--body);
  font-size: 13px; font-weight: 400;
  letter-spacing: .02em;
  color: var(--text-mute);
}
.footer__col ul { list-style: none; }
.footer__col li + li { margin-top: 6px; }
.footer__a {
  display: inline-flex; align-items: center; gap: 6px;
  padding-block: 3px;
  font-size: 16px; line-height: 1.55;
  color: var(--text-soft);
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0% 1px no-repeat;
  transition: color var(--t-ui), background-size 450ms var(--dare-out);
}
.footer__a:hover, .footer__a:focus-visible { color: var(--text); background-size: 100% 1px; }
/* Instagram, LinkedIn and email: square hairline tiles under the words,
   the glyph white, lighting red when pointed at */
.footer__brand .footer__social { display: flex; gap: 12px; margin-top: var(--s-6); list-style: none; }
.footer__brand .footer__social-link {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 2px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  transition: color var(--t-ui), box-shadow var(--t-ui), transform var(--t-ui) var(--dare-out);
}
.footer__brand .footer__social-link svg { width: 16px; height: 16px; }
.footer__brand .footer__social-link:hover,
.footer__brand .footer__social-link:focus-visible {
  color: var(--red-ink);
  box-shadow: inset 0 0 0 1px var(--red-ink);
  transform: translateY(-2px);
}
.footer__addr { font-style: normal; }
.footer__a[href^="mailto:"] { white-space: nowrap; }
.footer__addr .footer__a { display: inline; }
.footer__geo {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--s-4);
  font-size: 12px; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-mute);
}
.footer__geo span { width: 4px; height: 4px; background: var(--red); }

/* The sign-off board. The script sets the sizes: --n prisms --w wide with
   a --g seam, --r the inner radius of a prism, --bw the board's width,
   --bh its height and --fs0…2 the type size of each message. Every face is
   the whole message, shifted so the prism shows only its own slice. */
.footer__board { border-block: 1px solid var(--line-soft); padding-block: clamp(28px, 3.4vw, 56px); }
.tv {
  position: relative;
  display: flex; gap: var(--g, 2px);
  height: var(--bh, 15vw);
  perspective: 2200px;
}
.tv__prism {
  position: relative;
  flex: 0 0 var(--w, 4%);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r, 0px) * -1)) rotateY(var(--a, 0deg));
  transition: transform 1200ms cubic-bezier(.7, 0, .18, 1) calc(var(--i) * 40ms);
}
.tv__face {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--canvas);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tv__face--0 { transform: rotateY(0deg) translateZ(var(--r, 0px)); }
.tv__face--1 { transform: rotateY(120deg) translateZ(var(--r, 0px)); }
.tv__face--2 { transform: rotateY(240deg) translateZ(var(--r, 0px)); }
/* Light falls off the faces turning away */
.tv__face::after {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  opacity: .8;
  transition: opacity 1200ms cubic-bezier(.7, 0, .18, 1) calc(var(--i) * 40ms);
}
.tv[data-face="0"] .tv__face--0::after,
.tv[data-face="1"] .tv__face--1::after,
.tv[data-face="2"] .tv__face--2::after { opacity: 0; }
.tv__msg {
  position: absolute; top: 0;
  left: calc(var(--i) * (var(--w) + var(--g)) * -1);
  width: var(--bw); height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.tv__face--0 .tv__msg { font-size: var(--fs0); }
.tv__face--1 .tv__msg { font-size: var(--fs1); color: var(--red); }
.tv__face--2 .tv__msg { font-size: var(--fs2); }
.tv__probe { position: absolute; left: 0; top: 0; width: auto; height: auto; font-size: 100px; visibility: hidden; }

/* The small print */
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-4) var(--s-6);
  padding-block: var(--s-6) 104px;     /* clears the chat launcher at the end of the page */
  font-size: 13px;
  color: var(--text-mute);
}
.footer__legal > p:first-child { margin-inline-end: auto; }
.footer__clock time { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.footer__legal-r { display: flex; gap: var(--s-5); }
.footer__legal .footer__a { font-size: 13px; color: var(--text-mute); }
.footer__legal .footer__a:hover { color: var(--text); }
.footer__top {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
  transition: color var(--t-ui);
}
.footer__top span {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--t-ui);
}
.footer__top svg { width: 16px; height: 16px; transition: transform var(--t-ui) var(--dare-out); }
.footer__top:hover, .footer__top:focus-visible { color: var(--text); }
.footer__top:hover span, .footer__top:focus-visible span { box-shadow: inset 0 0 0 1px var(--red); }
.footer__top:hover svg { transform: translateY(-3px); }

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, .8fr) minmax(0, .95fr) minmax(0, 1.3fr) minmax(0, 1.3fr); row-gap: var(--s-8); }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s-7); }
  .footer__brand .footer__blurb { margin-top: 0; }
  .footer__brand .footer__social { grid-column: 2; margin-top: var(--s-4); }
}
@media (max-width: 700px) {
  .footer { padding-top: var(--s-8); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); column-gap: var(--s-5); }
  .footer__brand { display: block; }
  .footer__grid > .footer__col:nth-last-child(-n+2) { grid-column: 1 / -1; }   /* the address and the lines, full width */
  .footer__brand .footer__blurb { margin-top: var(--s-5); }
  .footer__brand .footer__social { margin-top: var(--s-5); }
  .footer__legal { gap: var(--s-3) var(--s-5); padding-top: var(--s-5); }
  .footer__legal > p:first-child { flex-basis: 100%; }
  .footer__top { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tv__prism, .tv__face::after { transition: none; }
}

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: var(--z-skip);
  padding: 12px 20px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 500;
}
.skip:focus { inset-inline-start: var(--gutter); top: 12px; }

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .cursor { display: none !important; }
  .marquee__track { transform: none !important; }
}

/* --- Touch targets -------------------------------------------------------
   The chips, toggles and reply buttons are sized for a mouse, where 40px is
   comfortable and keeps the UI tight. A finger needs 44px, so grow them on
   coarse pointers only rather than loosening the desktop design.
   ------------------------------------------------------------------------ */
@media (pointer: coarse) {
  .chip,
  .radios label,
  .viewtoggle button,
  .stepdot,
  .chat__reply {
    min-height: 44px;
  }
  .chat__tool { width: 44px; height: 44px; }
  .nav__burger { width: 48px; height: 48px; }
  /* The pin's 44px hit area already meets this; the label just needs room */
  .cpage__item { padding-block: 16px; }
}

/* --- Phone motion (main.js) ----------------------------------------------
   The reading line and the swipe meters; their phone-only rules live in
   mobile.css. */
.swipe-meter { display: none; }

/* Pasting up: a large framed photo unrolls from the top as it comes in */
.flagship__frame.will-paste img { clip-path: inset(0 0 100% 0); }
.flagship__frame.will-paste::after { opacity: 0; }
.flagship__frame.is-pasted img {
  clip-path: inset(0);
  transition: clip-path 1200ms var(--dare-out), transform 1.4s var(--dare-out);
}
.flagship__frame.is-pasted::after { opacity: 1; transition: opacity 900ms var(--dare-out) 500ms; }

/* --- Traffic counter (counters in main.js) --------------------------------
   Each digit is a drum, a strip of 0–9 three times over, that rolls down
   to --to (its digit plus one or two full turns). Drums further right
   start a touch later and run longer. Every character sits in a box one
   line tall so the drums and the fixed units share a baseline. */
.odo { display: inline-flex; }
.odo__d, .odo__c { display: inline-block; height: 1.04em; line-height: 1.04em; vertical-align: top; }
.odo__d { overflow: hidden; }
.odo__s { display: block; }
.odo__s > span { display: block; height: 1.04em; text-align: center; }
.is-counted .odo__s {
  transform: translateY(calc(var(--to) * -1.04em));
  transition: transform calc(700ms + var(--i) * 90ms) cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 40ms);
}
/* Hidden from view, still read by search engines and screen readers */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.odo__vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
