@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600&display=swap');

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

/* =============================================================================
   PALETTE CONTRACT — editable via the admin Palette editor (portal.html).
   The colour custom properties below are the DEFAULTS. At runtime, theme-loader.js
   may fetch a published palette from Supabase (public.site_theme) and override any
   of these --tokens on :root. If nothing is published, these defaults stand.
   Font tokens (--serif/--sans/--mono) are NOT part of the palette contract.
   ============================================================================= */
:root {
  --black: #080808;
  --off-white: #f4f1eb;
  --warm-white: #faf8f4;
  --glass-bg: rgba(244,241,235,0.05);
  --glass-border: rgba(244,241,235,0.1);
  --glass-hover: rgba(244,241,235,0.09);
  --muted: rgba(244,241,235,0.52);
  --accent: rgba(244,241,235,0.82);
  --red: #e32d27;
  --red-dim: color-mix(in srgb, var(--red) 18%, transparent);
  --red-glow: color-mix(in srgb, var(--red) 8%, transparent);
  --serif: 'Public Sans', sans-serif;
  --sans: 'Public Sans', sans-serif;
  --mono: 'Public Sans', sans-serif;

  /* Motion. There were ten different transition durations across this file and
     three easings, so nothing felt like it belonged to the same system. Three
     durations and one curve; the curve is the one already used in the best
     transitions here, not a new invention. */
  --t-fast: .15s;
  --t: .25s;
  --t-slow: .45s;
  --ease: cubic-bezier(.2,.8,.2,1);

  /* Off-white opacity ramp. The same colour was hardcoded as rgba(244,241,235,x)
     in 22 places at a dozen slightly different opacities -- three of them doing
     the same job as each other. */
  --line: rgba(244,241,235,.12);
  --line-strong: rgba(244,241,235,.28);
  --text-dim: rgba(244,241,235,.52);
  --text-faint: rgba(244,241,235,.28);
}

html { scroll-behavior: smooth; }

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:2px;}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── Cursor ───────────────────────────────── */
/* Both elements start at 0,0 until the first mousemove sets their position,
   which left a dot and ring parked in the top-left corner of every page on
   load. They stay invisible until the pointer has actually moved. */
.cursor { width: 7px; height: 7px; background: var(--off-white); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); opacity: 0; transition: width .2s, height .2s, background .2s, opacity .2s; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(244,241,235,.3); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); opacity: 0; transition: width .25s, height .25s, border-color .25s, opacity .2s; }
body[data-cursor-ready="true"] .cursor, body[data-cursor-ready="true"] .cursor-ring { opacity: 1; }
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 12px; height: 12px; background: var(--red); }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 48px; height: 48px; border-color: color-mix(in srgb, var(--red) 50%, transparent); }

/* The page hides the native cursor entirely, so every affordance the system
   cursor would normally give has to be expressed by the custom one. Without
   these, a text field looked identical to plain background: no I-beam, no
   hint that it could be typed into -- which is worst on the two inquiry
   forms, the most important pages on the site. */
body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):hover) .cursor,
body:has(textarea:hover) .cursor,
body:has([contenteditable="true"]:hover) .cursor {
  width: 2px; height: 22px; border-radius: 1px; background: var(--off-white);
}
body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):hover) .cursor-ring,
body:has(textarea:hover) .cursor-ring,
body:has([contenteditable="true"]:hover) .cursor-ring {
  width: 0; height: 0; border-color: transparent;
}
/* A disabled control should not read as clickable. */
body:has(button:disabled:hover) .cursor, body:has(.btn-primary[disabled]:hover) .cursor {
  background: var(--muted);
}
body:has(button:disabled:hover) .cursor-ring {
  border-color: rgba(244,241,235,.12);
}

@media (prefers-reduced-motion: reduce) {
  /* The dot and ring still track the pointer -- that is the cursor, not
     decoration -- but they stop easing between size/colour states. */
  .cursor, .cursor-ring { transition: none; }
}

/* ── Nav ──────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: flex-start; gap: 1.1rem;
  padding: 1.4rem 3.5rem;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(8,8,8,.72);
  border-bottom: 1px solid var(--glass-border);
  z-index: 200;
}
.nav-logo { font-family: var(--serif); font-size: 1rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--off-white); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin-right: auto; }
.nav-links a { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--red); transition: width .3s; }
.nav-links a:hover { color: var(--off-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--off-white); }
.nav-links a.active::after { width: 100%; }
/* ── Buttons ──────────────────────────────────
   Machined slab, not a rounded rectangle. Flat and blunt at rest, square
   cornered. The bevel is one pixel of light on top and one of shadow
   underneath -- enough to read as a physical face under a light source, not
   enough to look glossy. Hover runs a single hard specular band across it;
   press drives it down. Every duration and the easing come from the tokens
   above, so all of them move as one system.
   ───────────────────────────────────────────── */
.nav-cta, .btn-primary, .btn-outline, .btn-red {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--sans);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

/* The specular pass. A hard-edged band, wiped across once on hover -- a
   machined surface catching a light, not a soft glow. */
.nav-cta::after, .btn-primary::after, .btn-outline::after, .btn-red::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.20) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform var(--t-slow) var(--ease);
  pointer-events: none;
}
.nav-cta:hover::after, .btn-primary:hover::after, .btn-outline:hover::after, .btn-red:hover::after {
  transform: translateX(130%);
}

.nav-cta {
  font-size: .68rem; letter-spacing: .14em;
  color: var(--off-white); background: var(--red);
  padding: .6rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.32);
}
.nav-cta:hover { background: color-mix(in srgb, var(--red) 88%, #fff); }

.btn-primary {
  font-size: .72rem; letter-spacing: .2em; font-weight: 500;
  background: var(--red); color: var(--off-white);
  padding: 1rem 2.4rem;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.32);
}
.btn-primary:hover { background: color-mix(in srgb, var(--red) 88%, #fff); }

.btn-outline {
  font-size: .72rem; letter-spacing: .2em;
  color: var(--off-white); background: transparent;
  padding: 1rem 2.4rem;
  display: inline-block;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-outline:hover { background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--off-white); }

.btn-red {
  font-size: .72rem; letter-spacing: .2em;
  color: var(--off-white); background: var(--red-glow);
  padding: 1rem 2.4rem;
  display: inline-block;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent);
}
.btn-red:hover { background: var(--red-dim); box-shadow: inset 0 0 0 1px var(--red); }

/* Square corners again, so the standard outline ring is unobstructed and the
   global a/button:focus-visible rule above applies as intended. The inset
   double-ring workaround this replaced was only ever needed because clip-path
   crops an outline. */

/* The ghost button is a rule, not a slab -- it stays a refined underline. */
.btn-ghost {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  background: none; cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn-ghost:hover { color: var(--off-white); border-color: var(--off-white); }

/* ── Tactile press feedback ───────────────────────────────────────────────
   Buttons felt weightless (hover only). Give clicks a payoff: a subtle lift on
   hover + a real press-down on :active. transform is added to each transition so
   the motion eases rather than snaps. Respects reduced-motion. */
/* Press physics. Lift a hair on hover, drive down and tighten on press.
   Fast enough to feel mechanical rather than animated. */
.nav-cta:hover, .btn-primary:hover, .btn-outline:hover, .btn-red:hover { transform: translateY(-1px); }
.nav-cta:active, .btn-primary:active, .btn-outline:active, .btn-red:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.45);
  transition-duration: var(--t-fast);
}
.beat-play-btn:active, .beat-dl-btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  /* Colour still responds; nothing moves or sweeps. */
  .nav-cta::after, .btn-primary::after, .btn-outline::after, .btn-red::after { display: none; }
  .nav-cta:hover, .btn-primary:hover, .btn-outline:hover, .btn-red:hover,
  .nav-cta:active, .btn-primary:active, .btn-ghost:active, .btn-outline:active,
  .btn-red:active, .beat-play-btn:active, .beat-dl-btn:active { transform: none; }
}
}

/* ── Section labels ───────────────────────── */
.section-label { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--red); display: inline-block; opacity: .6; }

/* ── Fade animations ──────────────────────── */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ── Glass card ───────────────────────────── */
.glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ── Forms ────────────────────────────────── */
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: rgba(244,241,235,.04); border: 1px solid var(--glass-border);
  color: var(--off-white); padding: .82rem 1rem; font-family: var(--sans); font-size: .82rem;
  outline: none; transition: border-color .3s; -webkit-appearance: none; border-radius: 0;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field select option { background: #141414; }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Grid line texture ────────────────────── */
.grid-texture {
  background-image: linear-gradient(rgba(244,241,235,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(244,241,235,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ── Noise overlay ────────────────────────── */
.noise::after { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 1; opacity: .4; }

/* ── Scroll line ──────────────────────────── */
.scroll-line { width: 1px; height: 52px; background: linear-gradient(to bottom, color-mix(in srgb, var(--red) 60%, transparent), transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── CAIN ─────────────────────────────────── */
.cain-trigger {
  position: fixed; bottom: 2.8rem; left: 3.2rem;
  width: 36px; height: 36px;
  cursor: pointer; z-index: 150;
  opacity: 0;
  animation: cainReveal 1.2s ease 2.5s forwards;
}
@keyframes cainReveal { to { opacity: 1; } }
.cain-trigger-inner { position: relative; width: 100%; height: 100%; }
.cain-trigger-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  animation: cainRingPulse 3s ease-in-out infinite;
}
@keyframes cainRingPulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.18); opacity: .7; border-color: color-mix(in srgb, var(--red) 60%, transparent); }
}
.cain-trigger svg { width: 100%; height: 100%; opacity: .35; transition: opacity .5s, transform .5s; }
.cain-trigger:hover svg { opacity: .85; transform: scale(1.08); }
.cain-trigger:hover .cain-trigger-ring { animation: none; opacity: .8; border-color: var(--red); }
.cain-overlay {
  position: fixed; inset: 0; background: #000;
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity .8s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cain-overlay.active { opacity: 1; pointer-events: all; }
.cain-overlay-inner { text-align: center; position: relative; z-index: 2; }
.cain-close { position: absolute; top: 2.5rem; right: 3.5rem; background: none; border: none; color: rgba(244,241,235,.3); font-family: var(--sans); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.cain-close:hover { color: var(--off-white); }
.cain-symbol-large { width: 80px; height: 80px; margin: 0 auto 3rem; animation: cainPulse 3s ease-in-out infinite; }
@keyframes cainPulse { 0%,100%{opacity:.6; transform:scale(1)} 50%{opacity:1; transform:scale(1.04)} }
.cain-title { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); font-weight: 300; font-style: italic; letter-spacing: .04em; margin-bottom: 1rem; color: var(--off-white); }
.cain-sub { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,241,235,.35); margin-bottom: 3.5rem; }
.cain-tagline { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; color: rgba(244,241,235,.5); margin-bottom: 3rem; }
.cain-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.particle { position: absolute; width: 1px; height: 1px; background: color-mix(in srgb, var(--red) 50%, transparent); border-radius: 50%; animation: float linear infinite; }
@keyframes float { 0%{transform: translateY(100vh) translateX(0)} 100%{transform: translateY(-100px) translateX(var(--drift))} }

/* ── Footer ───────────────────────────────── */
footer { border-top: 1px solid var(--glass-border); }
.footer-inner { padding: 4rem 3.5rem 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; margin-bottom: .8rem; }
.footer-tagline { font-size: .78rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.8rem; }
.footer-email { font-size: .8rem; color: var(--off-white); text-decoration: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 2px; transition: border-color .3s; }
.footer-email:hover { border-color: var(--red); }
.footer-col-title { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { font-size: .8rem; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--off-white); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding: 1.8rem 3.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: .65rem; color: var(--muted); letter-spacing: .06em; }
.footer-socials { display: flex; gap: 1.4rem; }
.footer-socials a { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-socials a:hover { color: var(--off-white); }

/* ── Red accent utilities ─────────────────── */
.accent-red { color: var(--red); }
.tag-red { display: inline-block; font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); padding: .2rem .6rem; }

/* ── Carousel base ────────────────────────── */
.carousel-wrap { overflow: hidden; position: relative; }
.carousel-wrap::before, .carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.carousel-wrap::after { right: 0; background: linear-gradient(to left, var(--black), transparent); }
.carousel-track { display: flex; gap: 1.5rem; animation: carouselScroll 40s linear infinite; width: max-content; }
.carousel-track:hover { animation-play-state: paused; }
@keyframes carouselScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Beat card ────────────────────────────── */
.beat-card { background: rgba(244,241,235,.03); border: 1px solid rgba(244,241,235,.08); padding: 1.5rem; transition: border-color .35s, background .35s; }
.beat-card:hover { border-color: color-mix(in srgb, var(--red) 30%, transparent); background: color-mix(in srgb, var(--red) 3%, transparent); }
.beat-card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; margin-bottom: .25rem; }
.beat-card-meta { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.beat-player { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.beat-play-btn { width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); background: var(--red-glow); color: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s, border-color .3s; flex-shrink: 0; }
.beat-play-btn:hover, .beat-play-btn.playing { background: var(--red); color: var(--off-white); border-color: var(--red); }
.beat-waveform { flex: 1; height: 32px; display: flex; align-items: flex-end; gap: 2px; overflow: hidden; }
.beat-bar { flex: 1; background: rgba(244,241,235,.1); border-radius: 1px; min-height: 3px; transition: background .3s; }
.beat-card:hover .beat-bar { background: color-mix(in srgb, var(--red) 15%, transparent); }
.beat-time { font-family: var(--mono); font-size: .6rem; color: var(--muted); flex-shrink: 0; }
.beat-actions { display: flex; gap: .5rem; }
.beat-dl-btn { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; padding: .5rem .9rem; font-family: var(--sans); cursor: pointer; border: none; transition: background .25s, opacity .25s; }
.beat-dl-mp3 { background: rgba(244,241,235,.08); color: var(--off-white); }
.beat-dl-mp3:hover { background: rgba(244,241,235,.14); }
.beat-dl-wav { background: var(--red); color: var(--off-white); }
.beat-dl-wav:hover { opacity: .85; }

@media(max-width:900px){
  nav { padding: 1.2rem 1.8rem; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; padding: 1.8rem; }
  .cain-trigger { left: 1.8rem; bottom: 2rem; }
}

/* ══════════════════════════════════════════
   MOBILE FIXES — appended to shared.css
══════════════════════════════════════════ */

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

/* Prevent horizontal overflow globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* Form grid stacks on mobile */
@media(max-width:600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Footer stacks properly on small screens */
@media(max-width:600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.4rem; }
  /* The floating Icarus launcher is fixed to the bottom-right. Without
     clearance the last footer line (copyright / Privacy / Terms) renders
     underneath it at the very bottom of the page. */
  .footer-bottom { padding: 1.4rem 1.4rem 5.5rem; }
  /* The nav is a single non-wrapping flex row (logo + language + Portal +
     menu button). At 375px the logo held its full width and pushed the menu
     button ~24px past the right edge, leaving it partly untappable. Letting
     the logo shrink and tightening the gutter keeps every control on screen. */
  nav { padding: 1rem 1.1rem; gap: .55rem; }
  .nav-logo { font-size: .8rem; letter-spacing: .08em; min-width: 0; }
  .nav-cta { padding: .5rem .75rem; font-size: .58rem; }
}

/* Touch target minimums */
@media(max-width:900px) {
  .nav-cta { padding: .7rem 1.2rem; min-height: 44px; display: flex; align-items: center; }
  button, .btn-primary, .btn-ghost, .btn-outline { min-height: 44px; }
}

/* ── Mobile nav ───────────────────────────── */
.mob-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  z-index: 300; flex-shrink: 0;
}
.mob-menu-btn span {
  display: block; width: 100%; height: 1px;
  background: var(--off-white);
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.mob-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mob-menu-btn.open span:nth-child(2) { opacity: 0; }
.mob-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media(max-width:900px) {
  .mob-menu-btn { display: flex; }
  .nav-cta { padding: .55rem .9rem; font-size: .62rem; }
}

.mob-menu {
  position: fixed; inset: 0;
  background: rgba(8,8,8,.97);
  z-index: 250;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mob-menu.open { opacity: 1; pointer-events: all; }

.mob-menu-links {
  list-style: none;
  display: flex; flex-direction: column;
  align-items: center; gap: .2rem;
  text-align: center;
}
.mob-menu-links a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.8rem);
  font-weight: 300; letter-spacing: -.01em;
  color: rgba(244,241,235,.38);
  text-decoration: none; line-height: 1.25;
  display: block; padding: .2rem 0;
  transition: color .25s;
}
.mob-menu-links a:hover,
.mob-menu-links a.active { color: var(--off-white); }

.mob-menu-cta {
  font-family: var(--sans);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--off-white); background: var(--red);
  padding: .9rem 2.2rem; text-decoration: none;
  display: inline-block; transition: opacity .3s;
}
.mob-menu-cta:hover { opacity: .85; }

/* ══════════════════════════════════════════
   MEGA-NAV DROPDOWNS (driven by nav.js)
══════════════════════════════════════════ */
.nav-links { align-items: center; }
.nav-group { position: relative; list-style: none; }
.nav-trigger {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 0; transition: color .3s;
}
.nav-trigger:hover, .nav-group.active .nav-trigger, .nav-group.open .nav-trigger { color: var(--off-white); }
.nav-caret { font-size: .58rem; transition: transform .3s, color .3s; }
.nav-group.open .nav-caret { transform: rotate(180deg); color: var(--red); }
.nav-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: rgba(8,8,8,.92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: .6rem; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 300;
}
.nav-group.open .nav-panel { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-panel::before {
  content: ''; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px;
  background: rgba(8,8,8,.92); border-left: 1px solid var(--glass-border); border-top: 1px solid var(--glass-border);
}
.nav-panel::after { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: .7rem .9rem; text-decoration: none; border-left: 2px solid transparent; transition: background .25s, border-color .25s; }
.nav-panel a:hover { background: rgba(244,241,235,.04); border-left-color: var(--red); }
.np-label { display: block; font-family: var(--sans); font-size: .78rem; color: var(--off-white); letter-spacing: .02em; }
.np-desc  { display: block; font-size: .6rem; color: var(--muted); margin-top: .2rem; line-height: 1.5; }

/* Mobile accordion (overlay) */
.mob-acc { list-style: none; width: 100%; max-width: 340px; }
.mob-acc-group { }
.mob-acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; border-bottom: 1px solid var(--glass-border);
  color: var(--off-white); font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  padding: 1rem 0; cursor: pointer;
}
.mob-acc-trigger span { color: var(--red); font-family: var(--sans); font-size: 1.4rem; transition: transform .3s; }
.mob-acc-group.open .mob-acc-trigger span { transform: rotate(45deg); }
.mob-acc-panel { list-style: none; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mob-acc-group.open .mob-acc-panel { max-height: 320px; }
.mob-acc-panel a { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: .7rem 0 .7rem 1rem; }
.mob-acc-panel a:hover { color: var(--off-white); }
.nav-link-direct { text-decoration: none; }
a.mob-acc-trigger { text-decoration: none; }
/* Make the direct-link tab (e.g. Who?) match the dropdown <button> tabs exactly,
   overriding any legacy `.nav-links a` rules on individual pages. */
.nav-links a.nav-trigger { letter-spacing: .14em; color: var(--muted); padding: .4rem 0; }
.nav-links a.nav-trigger::after { display: none; }
.nav-links a.nav-trigger:hover, .nav-group.active a.nav-trigger { color: var(--off-white); }

/* ── Language selector ────────────────────── */
.lang-select { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--glass-border); color: var(--muted); font-family: var(--sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; cursor: pointer; transition: color .3s, border-color .3s; }
.lang-btn:hover { color: var(--off-white); border-color: rgba(244,241,235,.35); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: rgba(8,8,8,.95); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .2s; z-index: 320; padding: .4rem; }
.lang-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.lang-select:hover .lang-menu, .lang-select.open .lang-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-opt { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; padding: .55rem .7rem; cursor: pointer; transition: background .2s, color .2s; }
.lang-opt:hover { background: rgba(244,241,235,.04); color: var(--off-white); }
.lang-opt.on { color: var(--red); }
@media(max-width:900px){ .lang-select { margin-left: auto; margin-right: .6rem; } }
