/* =========================================================
   ZEFIRO — redesign (local only)
   Palette:  near-black ground, ice-blue signal, warm paper
   Type:     Syne (display) · Instrument Sans (text)
   ========================================================= */

:root {
  --ink:    #04060b;
  --ink-2:  #080d16;
  --ice:    #6fe3ff;
  --ice-dim:#2a6f85;
  --paper:  #eaf2f6;
  --muted:  rgba(234, 242, 246, 0.56);
  --faint:  rgba(234, 242, 246, 0.14);
  --hair:   rgba(111, 227, 255, 0.18);

  --gut:    clamp(1.25rem, 5vw, 6rem);
  --maxw:   1320px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

::selection { background: var(--ice); color: var(--ink); }

/* film grain, keeps the flat black from banding */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 1.4rem;
}

/* ───────── top bar ───────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gut);
  mix-blend-mode: difference;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
}

.mark svg { width: 20px; height: 20px; fill: #fff; }

.topbar-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}

.topbar-cta {
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .topbar-meta { display: none; }
}

/* ───────── progress rail ───────── */
.rail {
  position: fixed;
  left: clamp(0.8rem, 2vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
}

.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.rail-line {
  position: absolute;
  left: 4px; top: -1.2rem; bottom: -1.2rem;
  width: 1px;
  background: var(--faint);
}

.rail-fill {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 0;
  background: var(--ice);
  transition: height 0.15s linear;
}

.rail-dot {
  position: relative;
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.rail-dot span {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.rail-dot:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail-dot.is-on { background: var(--ice); transform: scale(1.35); }

@media (max-width: 960px) { .rail { display: none; } }

/* ───────── hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem var(--gut) 0;
  overflow: hidden;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 40%, rgba(4,6,11,0.2), rgba(4,6,11,0.94) 72%),
    linear-gradient(to bottom, rgba(4,6,11,0.8), transparent 30%, rgba(4,6,11,0.9));
}

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 1.5rem;
}

.kicker-rule { width: 54px; height: 1px; background: var(--ice); }

.hero-title {
  font-size: clamp(3.2rem, 11.6vw, 9.6rem);
  font-weight: 800;
  margin: 0 0 1.6rem;
}

.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-style: normal; color: var(--ice); }

.hero-lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--muted);
  margin: 0 0 2.1rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-ticker {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.1rem 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.hero-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: ticker 34s linear infinite;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-ticker-track i { color: var(--ice-dim); font-style: normal; }

@keyframes ticker { to { transform: translateX(-50%); } }

.hero-scroll {
  position: absolute;
  bottom: 6.5rem; right: var(--gut);
  z-index: 3;
  width: 1px; height: 54px;
  background: var(--faint);
  overflow: hidden;
}

.hero-scroll span {
  position: absolute; inset: 0;
  background: var(--ice);
  animation: scrollCue 2.2s var(--ease) infinite;
}

@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 760px) { .hero-scroll { display: none; } }

/* ───────── buttons ───────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--ice);
  border: 1px solid var(--ice);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease);
}

.btn span { position: relative; z-index: 2; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}

.btn:hover { color: var(--ice); }
.btn:hover::after { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--faint); }
.btn-ghost::after { background: var(--paper); }
.btn-ghost:hover { color: var(--ink); border-color: var(--paper); }

.btn-wide { width: 100%; }

/* ───────── manifesto ───────── */
.manifesto {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 12rem) var(--gut);
}

.statement {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 5.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 5rem;
  max-width: 20ch;
}

.statement [data-word] {
  display: inline-block;
  color: rgba(234, 242, 246, 0.12);
  transition: color 0.45s var(--ease);
}

.statement [data-word].lit { color: var(--paper); }
.statement [data-word].hi.lit { color: var(--ice); }

.delta { max-width: 640px; }

.delta-bar {
  position: relative;
  height: 2px;
  background: var(--faint);
  margin-bottom: 2.2rem;
}

.delta-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--ice);
  transition: width 1.6s var(--ease);
}

.delta-tick {
  position: absolute;
  top: -2.2rem;
  transform: translateX(-50%);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ice);
}

.delta-tick i {
  position: absolute;
  left: 50%; top: 1.5rem;
  width: 1px; height: 0.7rem;
  background: var(--ice);
}

.delta-note { color: var(--muted); margin: 0; max-width: 46ch; }

/* ───────── craft / specs ───────── */
.craft {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(6rem, 12vh, 10rem);
}

.craft-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
}

.craft-head {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin-bottom: 2.5rem;
}

.craft-shot { margin: 0; position: relative; }

.craft-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--hair);
  transition: opacity 0.5s var(--ease);
}

/* General arrangement drawings are about 2.2:1 and 2.9:1 against a 1.6:1
   frame — cropping them cuts the ends off the boat. */
.craft-shot img.is-drawing {
  object-fit: contain;
  padding: 1.25rem;
  background: rgba(111, 227, 255, 0.03);
}

.craft-shot figcaption {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs { list-style: none; margin: 0; padding: 0; }

.spec {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--faint);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}

.spec.is-on { opacity: 1; }
.spec:last-child { border-bottom: none; }

.spec-no {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ice);
}

.spec-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0.6rem 0 0.4rem;
}

.spec h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.spec-body { color: var(--muted); max-width: 42ch; margin: 0; }

@media (max-width: 900px) {
  .craft { grid-template-columns: 1fr; }
  .craft-sticky { position: relative; height: auto; padding: 6rem 0 2rem; }
  .spec { min-height: auto; padding: 3rem 0; opacity: 1; }
}

/* ───────── foils ───────── */
.foils {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gut);
  border-top: 1px solid var(--faint);
}

.foils-head { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.6rem; }
.foils-body { color: var(--muted); max-width: 46ch; margin: 0 0 2.4rem; }

.states { display: grid; gap: 0.6rem; max-width: 380px; }

.state {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 0.95rem 1.2rem;
  background: transparent;
  border: 1px solid var(--faint);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.state-k {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.state-v { font-size: 0.78rem; }

.state:hover { border-color: var(--hair); }

.state.is-on {
  border-color: var(--ice);
  color: var(--paper);
  background: rgba(111, 227, 255, 0.06);
}

.foils-stage { position: relative; }

/* The yard's own general-arrangement drawings, one per foil state.
   They are black line art on white, so they are inverted for the dark page;
   the extra hue-rotate puts the colours back where the draughtsman had them
   (orange superstructure, teal waterline) instead of leaving them negated. */
.blueprint { margin: 0; }

.bp-frame {
  position: relative;
  overflow: hidden;              /* hides the Italian WL / "volo" labels on the left */
  aspect-ratio: 794 / 326;
}

/* Both drawings are redrawn onto one 794x326 canvas with the waterline on the
   same row (side-close-aligned.png), so the sea stays put while the hull rises.
   With a shared canvas the crop can be a flat percentage on both. */
.bp {
  position: absolute;
  inset: 0;
  width: 106.5%;
  margin-left: -6.5%;
  height: 100%;
  filter: invert(1) hue-rotate(180deg);
  transition: opacity 0.9s var(--ease);
}

.bp-up   { opacity: 0; }
.bp-down { opacity: 1; }

.blueprint.flying .bp-up   { opacity: 1; }
.blueprint.flying .bp-down { opacity: 0; }

.bp-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--faint);
}

.bp-state {
  font-family: 'Syne', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
}

.bp-scale {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .foils { grid-template-columns: 1fr; }
}

/* ───────── routes ───────── */
.routes {
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--faint);
}

.routes-head {
  max-width: var(--maxw);
  margin: 0 auto 3rem;
  padding: 0 var(--gut);
}

.routes-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }

.routes-note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.rail-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 var(--gut) 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }

.route {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: center;
  border: 1px solid var(--faint);
  background: var(--ink-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.route:hover { border-color: var(--hair); transform: translateY(-6px); }

.route img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.route-body { padding: 1.6rem 1.5rem 2rem; }

.route-no {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}

.route h3 { font-size: 1.7rem; margin: 0.5rem 0 0.8rem; }
.route p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ───────── press ───────── */
.press {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gut);
  border-top: 1px solid var(--faint);
  text-align: center;
}

.quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto 2rem;
}

.quote-src {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 52ch;
  margin: 0 auto;
}

.quote-src em { font-style: normal; color: var(--paper); }
.quote-logo { height: 22px; width: auto; opacity: 0.9; }

.logos {
  margin-top: 4rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logos 24s linear infinite;
}

@keyframes logos { to { transform: translateX(calc(-100% / 3)); } }

.logos-track img { opacity: 0.4; flex-shrink: 0; }
.lg-salone { height: 28px; filter: brightness(0) invert(1); }
.lg-vf     { height: 18px; }

/* ───────── partner ───────── */
.partner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gut);
  border-top: 1px solid var(--faint);
}

.partner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.4rem; }
.partner-copy > p { color: var(--muted); max-width: 48ch; }

.facts { margin: 2.6rem 0 0; display: grid; gap: 0; }

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--faint);
  font-size: 0.86rem;
}

.facts dt { color: var(--muted); margin: 0; }
.facts dd { margin: 0; text-align: right; }

.partner-form {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--faint);
  background: var(--ink-2);
}

.partner-form label { display: grid; gap: 0.4rem; }

/* label only — an unscoped .partner-form span also caught the one inside
   the submit button and bleached its text. */
.partner-form label span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--faint);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.partner-form input:focus,
.partner-form textarea:focus {
  outline: none;
  border-color: var(--ice);
  background: rgba(111, 227, 255, 0.05);
}

.partner-form input::placeholder,
.partner-form textarea::placeholder { color: rgba(234,242,246,0.25); }

.form-msg {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--ice);
  background: rgba(111, 227, 255, 0.07);
  color: var(--paper);
}

.form-msg[data-kind="bad"] {
  border-left-color: #ff8a6b;
  background: rgba(255, 138, 107, 0.08);
}

.partner-form button[disabled] { opacity: 0.6; cursor: progress; }

@media (max-width: 900px) { .partner { grid-template-columns: 1fr; } }

/* ───────── footer ───────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--gut) 3rem;
  border-top: 1px solid var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-mid { color: var(--ice-dim); }

/* ───────── reveal ───────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-ticker-track, .logos-track, .pulse, .hero-scroll span { animation: none; }
  .statement [data-word] { color: var(--paper); }
}

/* =========================================================
   FOOTER EXTRAS
   ========================================================= */
.foot-mark {
  display: inline-flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease);
}

.foot-mark svg { width: 16px; height: 16px; fill: var(--paper); }
.foot-mark:hover { opacity: 0.6; }

.foot-prefs {
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.foot-prefs:hover { color: var(--paper); }
.foot-prefs[hidden] { display: none; }

/* =========================================================
   CONSENT BAR (analytics.js)
   ========================================================= */
.z-consent {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(150%);
  z-index: 40;
  width: min(760px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.z-consent.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

.z-consent-text { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.z-consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.z-consent-btn {
  font-family: 'Syne', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ice);
  background: var(--ice);
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.z-consent-btn:hover { opacity: 0.85; }

.z-consent-btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--faint);
}

.z-consent-btn--ghost:hover { color: var(--paper); border-color: var(--paper); }

@media (max-width: 767px) {
  .z-consent { flex-direction: column; align-items: stretch; gap: 1rem; }
  .z-consent-btn { flex: 1; }
}

/* =========================================================
   STATS GATE (stats.htm)
   ========================================================= */
.gate {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--gut) 4rem;
}

.gate-inner { width: 100%; max-width: 560px; }

.gate h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }

.gate-lede { color: var(--muted); margin: 0 0 2.5rem; }

.gate-panel {
  border: 1px solid var(--faint);
  background: var(--ink-2);
  padding: 1.75rem;
}

.gate-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--faint);
  font-size: 0.86rem;
}

.gate-row:last-of-type { border-bottom: none; }
.gate-row dt { margin: 0; color: var(--muted); }
.gate-row dd { margin: 0; text-align: right; }

.gate-cta { margin-top: 1.6rem; }

.gate-warn {
  margin: 2rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--ice);
  background: rgba(111, 227, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.gate-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.gate-back:hover { color: var(--paper); }

/* =========================================================
   TEAM
   One group portrait shot three times over, each with a
   different person left in colour — the picture changes with
   the name you pick.
   ========================================================= */
.team {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gut);
  border-top: 1px solid var(--faint);
}

.team-head { margin-bottom: 3rem; }
.team-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }

.team-note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.team-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.team-shot { margin: 0; position: sticky; top: 6rem; }

.team-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--hair);
  transition: opacity 0.45s var(--ease);
}

.team-list { list-style: none; margin: 0; padding: 0; }

.member { border-top: 1px solid var(--faint); }
.member:last-child { border-bottom: 1px solid var(--faint); }

.member-btn {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  text-align: left;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.member-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.member-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(234, 242, 246, 0.45);
  transition: color 0.3s var(--ease);
}

.member-btn:hover .member-name { color: var(--paper); }
.member.is-on .member-name { color: var(--paper); }
.member.is-on .member-role { color: var(--ice); }

/* The bio belongs to the selected name only. The 0fr → 1fr collapse needs the
   grid item itself to allow min-height: 0, which a bare text node cannot be
   given — hence the span. Without it a closed bio keeps its full height. */
.member-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46ch;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease),
              padding-bottom 0.5s var(--ease);
  padding-bottom: 0;
}

.member-bio > span { min-height: 0; overflow: hidden; }

.member.is-on .member-bio {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 1.6rem;
}

@media (max-width: 900px) {
  .team-body { grid-template-columns: 1fr; }
  .team-shot { position: relative; top: 0; }
}

/* Without JS, or with motion turned down, every bio stays readable. */
@media (prefers-reduced-motion: reduce) {
  .member-bio {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-bottom: 1.6rem;
    transition: none;
  }
}
