/* ============================================================
   CONTRAST STUDIO — style.css
   Design system: #0b0b0b / #f2efe8 / #d2ff00 accent
   Fonts: Syne (headlines) + IBM Plex Mono (body/labels)
   ============================================================ */

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

:root {
  --dark:   #0b0b0b;
  --light:  #f2efe8;
  --accent: #d2ff00;
  --accent-dim: rgba(210,255,0,0.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: auto; /* we handle smooth ourselves */
}

body {
  /* 2026-06-08 (Seb, third pass): body default flipped from #141210 (dark
     charcoal) to cream so the home page's explore/caps/team sections can
     run with a TRANSPARENT background and let the topo paint directly on
     cream (matching the hero look). Inner pages (flagship-venue +
     selected-work) override this via `body.tg-page { background:#0b0b0b }`
     inline at the top of those pages, so they're unaffected. #contact
     restores its own #141210 wash to keep its plain-black vibe. */
  background: #f2efe8;
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- WebGL Canvas ---------- */
#topo-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  /* Per Seb 2026-06-08 (third pass): topo lives BELOW sections (z:1).
     Sections that want to occlude the topo set their own opaque bg
     (#explore = cream). Sections that want to "frost" the topo through
     their cards (.cap-card, .team-card) make THEIR own bg transparent
     so the topo paints behind the cards, then the cards use
     backdrop-filter: blur(...) so the topo reads as a frosted-glass
     motif under the cards. The 3D hero badge sits at z:5 (above topo);
     hero text sits at z:20 (above both). */
  z-index: 1;
}

/* Section stacking — opaque-bg sections (e.g. #explore, #contact)
   occlude the topo at z:1. Transparent-bg sections (e.g. #capabilities
   from 2026-06-08) let the topo paint through. */
body > section:not(#hero) {
  position: relative;
  z-index: 2;
}

/* ============================================================
   BEAT 1 — HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: flex-end;
  /* No z-index here — keeps hero out of root stacking context so #hero-bg
     falls below the canvas (topo visible) while #hero-image z-index:5 stays above it */
}

/* Full-screen cream bg — below canvas (no z-index), topo lines paint above it */
#hero-bg {
  position: absolute;
  inset: 0;
  background: #f2efe8;
}

/* Logo card — z-index 6 lifts it above topo (z:5) and fluid (z:4) */
#hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  /* The landing gate drives --gate-scale + --gate-rx/ry to compress the
     badge as the user scrolls down — a 3D pull "into the screen" that
     leads into the tile-shift transition. Vars default to identity so
     the inner pages (no gate-locked) render the badge at rest. */
  transform: translate(-50%, -50%)
             scale(var(--gate-scale, 1))
             rotateX(var(--gate-rx, 0deg))
             rotateY(var(--gate-ry, 0deg));
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* 3D depth for the scale-down rotation. #hero only exists on the home
   page, so this is always-on. Both the gate-locked landing scroll AND
   the post-gate scroll-engine scroll-up apply rotateX/rotateY to
   #hero-image, and both need the perspective context to read as 3D
   instead of skewed 2D. (Seb tenth pass 2026-06-08.) */
#hero { perspective: 1400px; perspective-origin: center 40%; }


/* Circular clip — 3D canvas renders inside here.
   2026-06-08 (Seb, eighth pass): cream bg REMOVED. It was creating a
   visible "white vignette / mask" framing the badge — most obvious
   when scrolling back up to the top and the badge faded back in. The
   topo bleed-through it used to occlude is now handled directly in
   the topo shader (u_badgeMask uniform — see js/topo-shader.js)
   which fades line + zone alpha to zero inside the wrap's circle.
   Result: badge reads as a clean object with NO cream halo AND NO
   topo lines on its texture. */
#hero-logo-wrap {
  position: relative;
  width: 78vmin;
  height: 78vmin;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

/* Zoom 104% — badge fills nearly the full image, minimal crop needed */
#hero-logo {
  width: 104%;
  height: 104%;
  margin: -2%;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* Cream fade at bottom for text legibility */
#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(242,239,232,0.0) 0%,
    rgba(242,239,232,0.0) 50%,
    rgba(242,239,232,0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
  will-change: opacity;
}

/* Hero copy — bottom-left.
   2026-06-08 (Seb, third pass): rolled back the frosted backing pad —
   Seb didn't want it. The geometry fix (44vw max-width) alone keeps the
   headline clear of the centred badge envelope; no backing needed.
   z:25 keeps text above topo (z:1) AND above the badge (z:5). */
#hero-copy {
  position: relative;
  z-index: 25;
  padding: 0 48px 52px;
  max-width: 44vw;
  will-change: transform;
}
@media (max-width: 1200px) {
  #hero-copy { max-width: 50vw; }
}
@media (max-width: 900px) {
  #hero-copy { max-width: 88vw; padding: 0 24px 40px; }
}

.hero-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.4);
  margin-bottom: 14px;
  display: block;
}

.hero-headline {
  font-family: var(--font-head);
  /* 2026-06-08 (Seb): new 2-line copy is much longer than the previous
     "We turn space into memory."; pulled the max down to 4.2rem so each
     .reveal-line fits on one visual row inside the 55vw hero-copy
     constraint (otherwise the bar-wipe wraps onto two visual rows). */
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--dark);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
}

.hero-headline .accent {
  color: #d2ff00;
}

/* ── Bar-wipe text reveal ── */
.reveal-line {
  position: relative;
  display: inline-block; /* width = text content only */
}

.reveal-text {
  display: block;
  opacity: 0; /* hidden until bar exits */
  position: relative;
  z-index: 1;
}

.reveal-bar {
  position: absolute;
  /* slight padding so bar fully covers descenders / ascenders */
  top: -4px; bottom: -4px;
  left: -6px; right: -6px;
  background: #0b0b0b;
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 52px;
  right: 48px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(11,11,11,0.3);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(11,11,11,0.25));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Nav */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  mix-blend-mode: normal;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--light);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  position: relative;
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 8px 0;
}

/* Dark bar behind nav links — always readable */
.nav-links::before {
  content: '';
  position: absolute;
  top: -4px; bottom: -4px;
  left: -18px; right: -48px;
  background: rgba(11, 11, 11, 0.92);
  z-index: -1;
  /* Pixel-stepped left edge — circuit trace vibe */
  clip-path: polygon(
    18px 0%,
    12px 0%,
    12px 10%,
    8px 10%,
    8px 22%,
    4px 22%,
    4px 34%,
    0px 34%,
    0px 46%,
    4px 46%,
    4px 54%,
    0px 54%,
    0px 66%,
    4px 66%,
    4px 78%,
    8px 78%,
    8px 90%,
    12px 90%,
    12px 100%,
    18px 100%,
    100% 100%,
    100% 0%
  );
}

/* Accent pixel nodes along the circuit edge */
.nav-links::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  width: 2px;
  height: 2px;
  background: var(--accent);
  z-index: 0;
  box-shadow:
    -2px -12px 0 0 var(--accent),
     0px  -6px 0 0 rgba(210,255,0,0.5),
    -4px   0px 0 0 rgba(210,255,0,0.35),
     0px   6px 0 0 rgba(210,255,0,0.5),
    -2px  12px 0 0 var(--accent);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ============================================================
   BEAT 3 — MANIFESTO (dark → light transition)
   ============================================================ */
#manifesto {
  position: relative;
  min-height: 100vh;
  padding: 15vh 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Background and text color transition via JS .light-mode toggle */
  background: var(--dark);
  color: var(--light);
  transition: background 0.8s ease, color 0.8s ease;
}

#manifesto.light-mode {
  background: var(--light);
  color: var(--dark);
}

.manifesto-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.manifesto-line {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  margin-bottom: 0.1em;
}

.manifesto-line .glow {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(210,255,0,0.4);
}

/* ============================================================
   SELECTED WORK — cinematic vertical showcase
   7 projects, full-bleed video/image. Scroll advances slide;
   opacity crossfade between them. Bottom-left label gets
   bar-wipe reveal on slide enter / bar-hide on exit.
   ============================================================ */
#selected-work {
  background: #0b0b0b;
  color: var(--light, #f2efe8);
  /* z-index handled by the generic non-hero rule above. */
}
.sw-reel {
  position: relative;
  height: 700vh; /* 100vh per slide × 7 */
}
.sw-reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.sw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
.sw-slide.is-active { opacity: 1; }
.sw-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-label {
  position: absolute;
  bottom: 8vh;
  left: 6vw;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  max-width: 60vw;
}
.sw-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent, #d2ff00);
  margin: 0 0 0.8rem;
}
.sw-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
/* Bottom gradient for label legibility */
.sw-reel-sticky::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45vh;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Section eyebrow — top-left */
.sw-section-label {
  position: absolute;
  top: 4vh;
  left: 6vw;
  z-index: 3;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent, #d2ff00);
  margin: 0;
}
/* Progress dots — bottom-right */
.sw-reel-progress {
  position: absolute;
  bottom: 6vh;
  right: 6vw;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.sw-reel-dot {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease;
  cursor: pointer;
}
.sw-reel-dot.is-active { background: var(--accent, #d2ff00); }

/* ── Block-reveal shader overlay (Step 3) ─────────────────────────────
   When the shader successfully initialises, .sw-shader-active is added
   to the sticky host. The canvas renders the picture; DOM media is
   hidden. Labels and dots stay visible above the canvas. */
.sw-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.sw-shader-active .sw-media { visibility: hidden; }
/* Keep label + dots above the canvas. Labels are inside .sw-slide; the
   slide's opacity gates visibility, so only the active slide's label
   shows. */
.sw-shader-active .sw-slide { z-index: 2; }
.sw-shader-active .sw-section-label,
.sw-shader-active .sw-reel-progress { z-index: 4; }

/* Same shader, applied to the RXP KV reel. Mirrors the rules above but
   targets the RXP-specific class names so both reels can coexist. */
.rxp-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.rxp-shader-active .rxp-kv img { visibility: hidden; }
.rxp-shader-active .rxp-kv      { z-index: 2; }
.rxp-shader-active .rxp-frame,
.rxp-shader-active .rxp-reel-progress { z-index: 4; }

/* ============================================================
   BEAT 6 — CAPABILITIES & TEAM
   ============================================================ */
/* 2026-06-08 (Seb, third pass): Seb rejected the cream wash on
   #capabilities too — bg is now fully transparent. Topo paints over the
   cream body (`body { background: #f2efe8 }`) directly behind the cards,
   and the cards (.cap-card / .team-card / .team-card--placeholder)
   carry their own frosted-glass treatment so the topo also reads through
   them via backdrop-filter blur. */
#capabilities {
  background: transparent;
  padding: 15vh 10vw;
  color: var(--dark);
}

.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.4);
  margin-bottom: 60px;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 15vh;
}

/* Frosted glass: semi-transparent cream tint + backdrop blur so the
   topo lines (z:1) read through the cards as soft, blurred contour
   shapes. Subtle inset shadow gives a slight depth lift. */
.cap-card {
  background: rgba(232, 229, 222, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
  backdrop-filter: blur(14px) saturate(108%);
  padding: 40px 32px;
  border: 1px solid rgba(11, 11, 11, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cap-card:hover {
  background: rgba(232, 229, 222, 0.62);
  transform: translateY(-2px);
}

.cap-number {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.cap-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.15;
}

/* Small under-title eyebrow — keyword cluster for AIO/SEO. */
.cap-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.45);
  margin-bottom: 16px;
  font-weight: 400;
}

.cap-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(11,11,11,0.55);
  font-weight: 300;
}

/* Team
   ────────────────────────────────────────────────────────────────
   Layout (since 2026-06-08): every card is a CSS GRID with the
   portrait on the LEFT and name/role/tagline stacked on the RIGHT.
   This is the "names on the side of PF" treatment requested by
   Seb — far more compact than the previous portrait-above-name
   vertical layout, which let us go 3 columns across uniformly
   (leadership + studio team + collaborators).
   The tagline reveal mechanic (clip-path + scramble in main.js)
   stays untouched — only its grid-position changes (full-width
   row beneath the head row, so the wipe still reads left→right).
   ──────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.team-card {
  /* Frosted glass — matches .cap-card so the cap + team grids read as a
     single material across the section. */
  background: rgba(232, 229, 222, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
  backdrop-filter: blur(14px) saturate(108%);
  padding: 24px 24px;
  border: 1px solid rgba(11, 11, 11, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  /* Grid: avatar (col 1, spans the two text rows) + name/role (col 2). */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 2px;
  align-items: center;
}

.team-card:hover { background: rgba(232, 229, 222, 0.62); transform: translateY(-2px); }

.team-initials {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  grid-column: 2;
  align-self: end;
  line-height: 1.15;
}

.team-role {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.4);
  font-weight: 300;
  margin: 0;
  grid-column: 2;
  align-self: start;
}

/* Team sub-headings */
.team-sub-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10vh;
  margin-bottom: 32px;
}

/* First sub-label needs no top margin */
.section-label + .team-sub-label {
  margin-top: 0;
}

.team-collab-intro {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: rgba(11,11,11,0.45);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

/* Collaborating artists grid — 3 columns (same as leadership/studio now). */
.team-grid--collab {
  grid-template-columns: repeat(3, 1fr);
}

/* Placeholder card style — lighter treatment.
   2026-06-08: redesigned as a compact horizontal card. The grid
   gives us 3 rows: name (row 1, col 2), role (row 2, col 2),
   tagline (row 3, full width). Avatar sits in col 1 spanning the
   name+role rows. Reserved tagline row keeps card height stable
   regardless of bio length — the tagline reveal (clip-path wipe
   in main.js revealTagline / hideTagline) only animates opacity
   and clip-path, never reflows the grid. */
.team-card--placeholder {
  /* Frosted glass (matches .cap-card / .team-card). */
  background: rgba(235, 232, 225, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
  backdrop-filter: blur(14px) saturate(108%);
  padding: 22px 22px;
  border: 1px solid rgba(11, 11, 11, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;  /* tagline row absorbs slack */
  column-gap: 16px;
  row-gap: 2px;
  align-items: start;
  min-height: 168px;  /* was 290px — half-height with tagline reserved */
  transition: background 0.3s ease, transform 0.3s ease;
}

.team-card--placeholder:hover {
  background: rgba(235, 232, 225, 0.62);
  transform: translateY(-2px);
}

/* Circle photo placeholder */
.team-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #c9c6bf;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Real photo avatar (same shape as placeholder, holds an <img>).
   2026-06-08: in horizontal-card layout the avatar sits in col 1 and
   spans the name+role rows. `margin-bottom` is no longer needed (grid
   row-gap handles spacing). */
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  background: #c9c6bf;
  /* Lime ring around every portrait — leadership + collaborators. */
  border: 2px solid var(--accent, #d2ff00);
  box-shadow: 0 0 0 1px rgba(11,11,11,0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover .team-avatar {
  box-shadow: 0 0 0 1px rgba(11,11,11,0.18), 0 0 0 6px var(--accent-dim);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* All collaborator + leadership portraits render in black & white */
  filter: grayscale(100%) contrast(105%);
  transition: filter 0.3s ease;
}
.team-card:hover .team-avatar img { filter: grayscale(100%) contrast(110%) brightness(1.05); }

/* Per-portrait crop adjustments. Default object-position is 50% 50% (center).
   Some portraits frame the head too high — shift focal point UP (lower Y%)
   so the head sits inside the circle. */
.team-avatar img[src*="eugene-yeo"]   { object-position: 50% 22%; }
.team-avatar img[src*="parse-error"]  { object-position: 50% 22%; }

/* Larger circle for leadership + studio team cards (no tagline below). */
.team-avatar--lead {
  width: 72px;
  height: 72px;
}

/* When the whole team-card is an <a>, kill default link colour and
   underlines so it inherits the existing card visuals. */
a.team-card,
a.team-card:visited {
  color: inherit;
  text-decoration: none;
}
a.team-card .team-name { transition: color 0.25s ease; }
a.team-card:hover .team-name { color: var(--accent, #d2ff00); }

.team-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.55;
  color: rgba(11,11,11,0.5);
  font-weight: 300;
  margin: 10px 0 0 0;
  font-style: italic;
  /* In horizontal-card layout the tagline lives in row 3, spanning
     the full card width (under the avatar + name+role row). */
  grid-column: 1 / -1;
  grid-row: 3;
  /* Always occupies its natural height so the card never reflows on
     hover (uniform card size across the grid). Reveal is JS-driven
     now (see main.js revealTagline / hideTagline): scramble + clip-path
     wipe matching the tg-hero InfoCard reveal language. The CSS only
     sets the resting state — opacity 0, fully clipped right-to-left.
     The wipe pre-state must clip from the LEFT (inset 0 0 0 100%) so
     the wipeOut() right→left sweep returns the element to this state. */
  opacity: 0;
  clip-path: inset(0 0 0 100%);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: none;
}

/* stagger via nth-child */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   LIME-CHIP — lime accent text on light/cream sections.
   Lime (#d2ff00) on cream is illegible. Wrap the text in
   <span class="lime-chip"> to draw a dark backing rectangle
   behind it. The backing scales in from the left following the
   same cubic-bezier as the bar-wipe reveal — keeps the
   cinematic mechanic consistent.

   The text itself stays at full opacity throughout (lime
   reads fine on dark), and the chip background scales 0 → 1
   when the parent .scroll-reveal becomes .revealed.

   For chips OUTSIDE a .scroll-reveal (e.g. section labels at
   the top of #capabilities/#team), use .lime-chip.is-revealed
   directly, or pair with the in-view observer.
   ============================================================ */
.lime-chip {
  position: relative;
  display: inline-block;
  padding: 0.25em 0.55em;
  isolation: isolate;
  color: var(--accent, #d2ff00);
}
.lime-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark, #0b0b0b);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.46s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}
/* Trigger paths: either the chip itself is .is-revealed, or
   any ancestor .scroll-reveal has gone .revealed. */
.lime-chip.is-revealed::before,
.scroll-reveal.revealed .lime-chip::before {
  transform: scaleX(1);
}
/* Already-visible chip outside any reveal flow: paint backing immediately. */
.lime-chip.is-static::before { transform: scaleX(1); transition: none; }

/* ============================================================
   BEAT 7 — CONTACT / FOOTER
   ============================================================ */
/* 2026-06-08 (Seb, fifth pass): contact stays dark-looking (0.82)
   but the lime contour pops harder thanks to the topo-shader
   fifth-pass boost (dark base 1.2 → 1.6, blob bump 0.8 → 1.1).
   Net result Seb asked for: "plain black background" feel + the
   topo lines visible-by-transparency now POP rather than ghost. */
#contact {
  background: rgba(20, 18, 16, 0.82);
  padding: 18vh 10vw 8vh;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.contact-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
}

.contact-headline .glow {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(210,255,0,0.3);
}

.contact-links {
  display: flex;
  gap: 40px;
  margin-bottom: 15vh;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--accent); }

.contact-link .link-arrow {
  width: 16px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  transition: width 0.2s;
}

.contact-link:hover .link-arrow { width: 28px; }

/* ── Corner-box (generic) ──────────────────────────────────────────────
   Inline cousin of the .gate-box used by the landing menu / sound
   widget. Same 12px L-shaped corner brackets, same dark glass, but
   `position: relative` so it sits in document flow and can grow
   in-place from a handle button into a content panel. Used by the
   contact form (Seb 2026-06-08 — "pack the form into an expandable
   cornered box"). Reusable for any future inline disclosure widget. */
.corner-box {
  position: relative;
  color: #f2efe8;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.corner-box::before,
.corner-box::after,
.corner-box > .corner-box__brk-bl,
.corner-box > .corner-box__brk-br {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #f2efe8;
  pointer-events: none;
  z-index: 2;
}
.corner-box::before               { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.corner-box::after                { top: 0;    right: 0; border-left: 0;  border-bottom: 0; }
.corner-box > .corner-box__brk-bl { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.corner-box > .corner-box__brk-br { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

.corner-box.is-expanded { background: rgba(11, 11, 11, 0.86); }

.corner-box__handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}
.corner-box__handle:hover,
.corner-box__handle:focus-visible {
  color: var(--accent);
  outline: none;
}
.corner-box__handle-label { flex: 1; }

.corner-box__icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 18px;
  flex-shrink: 0;
}
.corner-box__icon-h,
.corner-box__icon-v {
  position: absolute;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.2s ease;
}
/* "+" sign drawn from two 1px strokes — collapses to "−" on expand. */
.corner-box__icon-h { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.corner-box__icon-v { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.corner-box.is-expanded .corner-box__icon-v { transform: translateX(-50%) scaleY(0); }

.corner-box__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  opacity: 0;
  transition:
    max-height 0.46s cubic-bezier(0.76, 0, 0.24, 1),
    padding-top 0.46s cubic-bezier(0.76, 0, 0.24, 1),
    padding-bottom 0.46s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.28s ease;
}
.corner-box.is-expanded .corner-box__panel {
  /* Cap at a generous height — the form is ~520px tall so 1200 leaves
     room for the success state copy + future fields without truncation. */
  max-height: 1200px;
  padding: 8px 26px 28px;
  opacity: 1;
  transition:
    max-height 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    padding-top 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    padding-bottom 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.3s ease 0.12s;
}

/* Contact-box specific overrides — wider cap, sits in the contact
   layout above the IG/Vimeo socials. */
.contact-box {
  max-width: 760px;
  margin-bottom: 60px;
}

/* ── Contact form ────────────────────────────────────────────────────────
   Inline Formspree-backed form. Keeps the studio inbox off the page.
   Dark on dark with cream inputs that lift on focus; the lime accent
   only shows on hover/focus/submit so the form doesn't fight the
   contact-headline glow. (Seb 2026-06-08 — form replaces the old mailto.) */
.contact-form {
  display: block;
  margin-bottom: 0;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field--full { margin-bottom: 24px; }

.cf-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.45);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--light);
  background: rgba(242,239,232,0.04);
  border: 1px solid rgba(242,239,232,0.12);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(242,239,232,0.07);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(242,239,232,0.35);
}

.cf-chips {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  align-items: center;
}

.cf-chips .cf-label {
  display: block;
  flex-basis: 100%;
  margin-bottom: 6px;
}

.cf-chips label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.cf-chips input[type="radio"] {
  /* Hide native control — the <span> sibling becomes the chip. */
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}

.cf-chips label span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.55);
  padding: 9px 16px;
  border: 1px solid rgba(242,239,232,0.18);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.cf-chips label:hover span {
  color: var(--light);
  border-color: rgba(242,239,232,0.32);
}

.cf-chips input[type="radio"]:checked + span {
  color: var(--dark);
  background: var(--accent);
  border-color: var(--accent);
}

.cf-chips input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Honeypot — visually hidden but still in the tab order? No, kept out. */
.cf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cf-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cf-submit {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  background: transparent;
  border: 1px solid rgba(242,239,232,0.4);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.cf-submit:hover,
.cf-submit:focus-visible {
  color: var(--dark);
  background: var(--accent);
  border-color: var(--accent);
}

.cf-submit .link-arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s;
}

.cf-submit:hover .link-arrow,
.cf-submit:focus-visible .link-arrow { width: 28px; }

.cf-submit[disabled] { opacity: 0.5; cursor: progress; }

.cf-status {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.6);
  margin: 0;
  min-height: 1em;
}

.cf-status[data-state="success"] { color: var(--accent); }
.cf-status[data-state="error"]   { color: #ff8a8a; }
.cf-status[data-state="idle"]    { color: rgba(242,239,232,0.4); }

@media (max-width: 720px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-chips { gap: 8px; }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(242,239,232,0.1);
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(242,239,232,0.25);
  font-weight: 300;
}

.footer-loc {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242,239,232,0.2);
  text-align: right;
  font-weight: 300;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.nav-hamburger {
  display: none; /* shown via media query below */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--light);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X state when overlay is open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.25px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.25px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 199;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10vw;
  /* Slide in from right */
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

#mobile-nav.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--light);
}

.mobile-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close span:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-links a {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 10vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

/* ============================================================
   SELECTED CLIENTS
   ============================================================ */
#clients {
  background: #141210;
  padding: 10vh 10vw 12vh;
  color: var(--light);
  border-top: 1px solid rgba(242,239,232,0.06);
}

#clients .section-label {
  color: rgba(242,239,232,0.3);
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
}

.client-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  /* Muted white on dark background */
  filter: grayscale(100%) brightness(10) opacity(0.3);
  transition: filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(100%) brightness(10) opacity(0.45);
}

/* ============================================================
   BEAT 4.5 — IMMERSIVE PREVIEW (Gaussian Splat)
   ============================================================ */
#immersive-preview {
  position: relative;
  padding: 14vh 8vw 12vh;
  background: var(--bg-dark, #0b0b0b);
  overflow: hidden;
}

.immersive-preview__header {
  margin-bottom: 5vh;
}

.immersive-preview__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text-light, #f2efe8);
  line-height: 1.05;
  margin: 0.5rem 0 0;
  letter-spacing: -0.02em;
}

/* Splat canvas / viewer container */
#splat-container {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vh, 640px);
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

/* ── Placeholder overlay ── */
.splat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #0b0b0b 60%, #141414 100%);
  /* Subtle animated grain texture */
  animation: splat-grain-shift 8s ease-in-out infinite alternate;
}

@keyframes splat-grain-shift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

.splat-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 0 32px;
  max-width: 520px;
}

.splat-placeholder__icon {
  color: rgba(186, 209, 4, 0.45); /* accent, muted */
  opacity: 0.7;
}

.splat-placeholder__text {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.35);
  line-height: 1.6;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #immersive-preview { padding: 10vh 6vw 8vh; }
  .immersive-preview__heading { font-size: clamp(2rem, 9vw, 3.2rem); }
  #splat-container { height: clamp(240px, 45vh, 400px); }
}

/* ============================================================
   RESPONSIVE — TABLET (769px–1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Navigation — slightly reduced padding */
  #nav { padding: 24px 36px; }

  /* Hero — reduce circular image size */
  #hero-logo-wrap { width: 65vmin; height: 65vmin; }

  /* Hero copy — reduced padding */
  #hero-copy { padding: 0 36px 40px; }

  /* Hero scroll hint — repositioned */
  .hero-scroll-hint { right: 36px; bottom: 40px; }

  /* Hero headline — slightly smaller */
  .hero-headline { font-size: clamp(2.2rem, 5vw, 4rem); }

  /* Capabilities grid — 2 columns instead of 3 */
  .caps-grid { grid-template-columns: repeat(2, 1fr); }

  /* Team grid — keep 3 columns (small enough) */
  .team-grid--collab { grid-template-columns: repeat(3, 1fr); }

  /* Selected Work — slightly tighter on tablet */
  .sw-reel { height: 560vh; } /* 80vh per slide */
  .sw-title { font-size: clamp(2rem, 5.5vw, 4rem); }

  /* Manifesto lines — slightly reduced */
  .manifesto-line { font-size: clamp(1.6rem, 4vw, 3.2rem); }

  /* Contact headline — slightly reduced */
  .contact-headline { font-size: clamp(2.4rem, 7vw, 5.5rem); }

  /* Section padding */
  #capabilities { padding: 12vh 8vw; }
  #contact { padding: 14vh 8vw 6vh; }

  /* Clients row — tighter spacing */
  .clients-row { gap: 32px 48px; }
  .client-logo { height: 32px; }
  .client-logo img { max-width: 100px; }

  /* Immersive preview section */
  #immersive-preview { padding: 12vh 8vw 10vh; }
  .immersive-preview__heading { font-size: clamp(2.2rem, 5.5vw, 4rem); }
  #splat-container { height: clamp(280px, 50vh, 500px); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width 768px)
   ============================================================ */
@media (max-width: 768px) {
  #nav { padding: 20px 24px; }
  #hero-copy { padding: 0 24px 40px; }
  .hero-scroll-hint { right: 24px; bottom: 40px; }

  .caps-grid, .team-grid, .team-grid--collab { grid-template-columns: 1fr; }
  .contact-headline { font-size: clamp(2.2rem, 10vw, 4rem); }

  #capabilities { padding: 10vh 6vw; }
  #contact { padding: 12vh 6vw 6vh; }

  /* Desktop nav links hidden; hamburger shown */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Clients row: 2 per row on mobile */
  .clients-row { gap: 28px 32px; }
  .client-logo { height: 28px; }
  .client-logo img { max-width: 90px; }

  /* Selected Work — on mobile, keep sticky but tighter dimensions */
  .sw-reel { height: 560vh; }
  .sw-label { bottom: 5vh; left: 5vw; max-width: 90vw; }
  .sw-title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .sw-reel-progress { bottom: 4vh; right: 5vw; gap: 8px; }
  .sw-reel-dot { width: 16px; }
  .sw-section-label { top: 3vh; left: 5vw; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   All content remains accessible; motion is stripped.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all transitions and animations globally */
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    transition-delay:          0ms    !important;
  }

  /* Scroll-reveal: make elements immediately visible, no slide-up */
  .scroll-reveal {
    opacity:   1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Bar-wipe reveals: skip the animation — show text immediately */
  .reveal-text {
    opacity: 1 !important;
  }
  .reveal-bar {
    display: none !important;
  }

  /* Hero label visible from the start (no fade-in JS) */
  .hero-label {
    opacity: 1 !important;
    transition: none !important;
  }

  /* Scroll pulse indicator — just a static line */
  .scroll-line {
    animation: none !important;
    opacity: 0.4;
  }

  /* Manifesto section colour transition — disable the background morph */
  #manifesto {
    transition: none !important;
  }

  /* Mobile nav slide — instant open/close */
  #mobile-nav {
    transition: none !important;
  }

  /* Hamburger line transforms — no easing */
  .nav-hamburger span {
    transition: none !important;
  }

  /* Selected Work — force static vertical layout, all slides visible */
  .sw-reel { height: auto !important; }
  .sw-reel-sticky {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  .sw-slide {
    position: relative !important;
    opacity: 1 !important;
    height: 60vh;
    margin-bottom: 4vw;
  }
  .sw-media {
    aspect-ratio: 16/9;
    height: auto !important;
  }
  .sw-section-label,
  .sw-reel-progress { display: none !important; }

  /* Splat placeholder grain shift — static */
  .splat-placeholder {
    animation: none !important;
  }

  /* Hero image — no scale-down animation; keep it centred at natural size */
  #hero-image {
    will-change: auto !important;
  }

  /* Nav link colour hover — keep it instant, already handled by transition:none */
  .nav-links a {
    transition: none !important;
  }

  /* Contact link arrow hover — instant */
  .contact-link,
  .contact-link .link-arrow {
    transition: none !important;
  }

  /* Cap / team card hover backgrounds — instant */
  .cap-card,
  .team-card,
  .team-card--placeholder {
    transition: none !important;
  }
}

/* ---------- Performance: content-visibility ---------- */
/* Off-screen sections skip rendering until scrolled into view */
/* content-visibility: skip render for off-screen short sections.
   Excluded: #rexperience-chapter and #selected-work — both are tall
   sticky-scroll containers (500vh / 700vh) and need their real height
   reserved for the scroll-pin math to work. */
#manifesto,
#capabilities,
#clients,
#contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 100vh;
}

/* ============================================================
   RXP FEATURE — single cinematic moment
   Sticky 100vh frame; 5 artist works crossfade as you scroll.
   The "RExperience KL" brand block stays constant bottom-left;
   each work labels itself top-right as it enters.
   ============================================================ */
#rexperience-chapter {
  position: relative;
  background: var(--dark, #0b0b0b);
  color: var(--light, #f2efe8);
}
.rxp-label { color: var(--accent, #d2ff00); margin-bottom: 1.5rem; }

/* — KV REEL (pinned, scroll-driven crossfade) — */
.rxp-reel {
  position: relative;
  height: 500vh; /* 100vh per KV — 5 works = 500vh of scroll */
}
.rxp-reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.rxp-kv {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
.rxp-kv.is-active { opacity: 1; }
.rxp-kv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Per-work label: top-right, crossfades with its KV */
.rxp-kv-label {
  position: absolute;
  top: 12vh;
  right: 6vw;
  z-index: 2;
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.kv-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent, #d2ff00);
  margin: 0 0 0.6rem;
}
.kv-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Subtle gradient at the bottom so the brand frame always reads */
.rxp-reel-sticky::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55vh;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* — Persistent RExperience KL brand frame — anchors the feature — */
.rxp-frame {
  position: absolute;
  bottom: 8vh;
  left: 6vw;
  z-index: 3;
  max-width: 560px;
  color: #fff;
}
.rxp-frame-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.6rem;
}
.rxp-frame-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(242, 239, 232, 0.78);
  max-width: 52ch;
  margin: 0 0 2rem;
}
.rxp-frame-cta {
  display: flex;
  gap: 2.6vw;
  flex-wrap: wrap;
}

/* Reel progress dots — bottom-right */
.rxp-reel-progress {
  position: absolute;
  bottom: 6vh;
  right: 6vw;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.rxp-reel-dot {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease;
}
.rxp-reel-dot.is-active { background: var(--accent, #d2ff00); }

/* — RESPONSIVE — */
@media (max-width: 900px) {
  .rxp-reel { height: 400vh; } /* slightly less aggressive on tablet */
  .rxp-frame-headline { font-size: clamp(2rem, 5.5vw, 4rem); }
  .kv-title { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
}
@media (max-width: 600px) {
  .rxp-reel-progress { bottom: 4vh; right: 4vw; }
  .rxp-kv-label { top: 8vh; right: 5vw; }
  .rxp-frame { bottom: 5vh; left: 5vw; right: 5vw; max-width: none; }
  .rxp-frame-cta { gap: 4vw; }
}

/* ============================================================
   VOICES — artists behind RExperience KL
   Sits between #rexperience-chapter and #selected-work.
   Mirrors the cream/dark rhythm of #capabilities.
============================================================ */
#voices {
  background: var(--light, #f4f1ea);
  color: var(--dark, #0b0b0b);
  padding: 15vh 10vw;
  position: relative;
  z-index: 1;
}

.voices-headline {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
}

.voices-intro {
  max-width: 36rem;
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(11, 11, 11, 0.6);
  margin: 0 0 9vh 0;
}

.voices-panel {
  margin-bottom: 12vh;
  border-top: 1px solid rgba(11, 11, 11, 0.1);
  padding-top: 5vh;
}
.voices-panel:last-child { margin-bottom: 0; }

.voices-meta { margin-bottom: 3vh; }

.voices-eyebrow {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--dark, #0b0b0b);
}

.voices-role {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.45);
  margin: 0;
}

.voices-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.voices-grid--multiwork {
  grid-template-columns: 1fr 1fr 1fr;
}

.voices-clip {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.voices-clip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
  overflow: hidden;
}
.voices-clip-frame--reel {
  aspect-ratio: 9 / 16;
  max-height: 75vh;
}

/* Instagram embed wrapper — embed.js renders an iframe inside the blockquote. */
.voices-ig-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 540px;
  background: var(--light, #f4f1ea);
}
.voices-ig-wrap .instagram-media {
  background: #FFF !important;
  border: 0 !important;
  border-radius: 4px !important;
  margin: 0 !important;
  max-width: 540px !important;
  min-width: 280px !important;
  padding: 0 !important;
  width: 100% !important;
}
.voices-clip-frame iframe,
.voices-clip-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.voices-mute-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 11, 11, 0.55);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.voices-mute-toggle:hover,
.voices-mute-toggle.is-unmuted {
  background: var(--accent, #d2ff00);
  color: var(--dark, #0b0b0b);
  border-color: var(--accent, #d2ff00);
}

.voices-clip figcaption {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.55);
  padding-top: 12px;
}

.voices-pullquote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4vh 3vw;
  border-left: 2px solid var(--accent, #d2ff00);
  background: rgba(11, 11, 11, 0.035);
}
.voices-credit-lead {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--dark, #0b0b0b);
  margin: 0 0 1.2rem 0;
}
.voices-credit-small {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(11, 11, 11, 0.55);
  margin: 0;
}

@media (max-width: 900px) {
  #voices { padding: 12vh 6vw; }
  .voices-grid,
  .voices-grid--multiwork {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .voices-clip-frame--reel { max-height: none; }
}

/* ============================================================
   EXPLORE — homepage sitemap-style nav blocks.
   Two big tiles leading to /flagship-venue.html + /selected-work.html.
   Sits between #manifesto and #capabilities, replacing the old
   sticky-scroll reels.
============================================================ */
/* 2026-06-08 (Seb, third pass): Seb rejected the translucent cream wash
   ("grey background, don't want") — bg is now FULLY transparent. With
   `body { background: #f2efe8 }` and `#topo-canvas` at z:1 painting
   over the body, the topo lines now show directly behind the explore
   tiles. The two explore-block cards remain solid #0b0b0b so they read
   as dark tiles on the cream-topo field. */
.explore-nav {
  background: transparent;
  color: var(--dark, #0b0b0b);
  padding: 14vh 8vw;
}
.explore-headline {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 7vh 0;
}
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* Explore tile — TG-hero style corner-bracket card.
   Rest state: dark, video hidden (poster only via <video poster>),
   small inward-padded corner brackets at all 4 corners. Hover: brackets
   push outward to the card edges, video fades in + scales subtly, label
   colour shifts. Click navigates to the linked page. The "expand"
   modifier `.explore-block--expand` keys all the hover behaviour so
   plain `.explore-block` can be reused later as a non-expanding card. */
.explore-block {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #0b0b0b;
  color: #f4f1ea;
  overflow: hidden;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.55s ease;
}
.explore-block--expand:hover {
  /* 2026-06-08 (Seb, second pass): the previous scale(1.035) was too
     subtle — Seb said "we don't have hover-expand boxes". Pushed to
     scale(1.08) + deeper translateY + stronger shadow so the tile
     visibly grows out of the grid when hovered, and the sibling
     visibly recedes (filter+scale below). */
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 60px 120px -32px rgba(11, 11, 11, 0.75),
              0 16px 32px -12px rgba(11, 11, 11, 0.45);
  z-index: 3;
}
/* The non-hovered sibling visibly recedes when its neighbour is hovered. */
.explore-grid:hover .explore-block--expand:not(:hover) {
  transform: scale(0.95);
  filter: brightness(0.78) saturate(0.85);
  opacity: 0.85;
}

/* Corner brackets — 22 px L-shaped marks pinned just inside each corner
   on rest, animating to the card edges on hover. Uses borders rather
   than SVG so the colour transition is cheap. */
.explore-block__brk {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(244, 241, 234, 0.85);
  border-style: solid;
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              bottom 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              left 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              right 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.3s ease;
  z-index: 4;
}
.explore-block__brk--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.explore-block__brk--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.explore-block__brk--bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.explore-block__brk--br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.explore-block--expand:hover .explore-block__brk--tl { top: 0; left: 0; border-color: var(--accent, #d2ff00); }
.explore-block--expand:hover .explore-block__brk--tr { top: 0; right: 0; border-color: var(--accent, #d2ff00); }
.explore-block--expand:hover .explore-block__brk--bl { bottom: 0; left: 0; border-color: var(--accent, #d2ff00); }
.explore-block--expand:hover .explore-block__brk--br { bottom: 0; right: 0; border-color: var(--accent, #d2ff00); }

.explore-block-media {
  position: absolute;
  inset: 0;
}
/* Rest: media at low opacity (poster ghost) so the tile reads as a
   considered placeholder rather than a black panel. Hover: full opacity. */
.explore-block-media img,
.explore-block-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, filter 0.45s ease, opacity 0.4s ease;
  /* Rest: heavily dimmed so the unhovered tile reads as a placeholder.
     Hover: full brightness + slight zoom so the video pops in. */
  filter: brightness(0.4) saturate(0.85);
  opacity: 0.75;
}
.explore-block--expand:hover .explore-block-media img,
.explore-block--expand:hover .explore-block-media video {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.05);
  opacity: 1;
}

/* Number chip embedded in the eyebrow. */
.explore-block-num {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent, #d2ff00);
  margin-right: 6px;
}
.explore-block-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 32px 28px;
  background: linear-gradient(to top, rgba(11,11,11,0.78), rgba(11,11,11,0));
  pointer-events: none;
}
.explore-block-eyebrow {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
  margin: 0 0 12px 0;
}
.explore-block-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #f4f1ea;
  margin: 0 0 8px 0;
}
.explore-block-meta {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
  margin: 0;
}
.explore-block-arrow {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 22px;
  color: #f4f1ea;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.45s ease;
}
.explore-block:hover .explore-block-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
  color: var(--accent, #d2ff00);
}

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-block { aspect-ratio: 4 / 3; }
}

/* ============================================================
   TG-HERO — Thibault-Guignand-style hover-driven project picker.
   Used on /selected-work.html (6 tiles) and /flagship-venue.html
   (4 tiles). Full-viewport single-screen layout. Background is
   the BlockRevealReel shader canvas; tiles hug the edges and
   transition the background on hover.
============================================================ */
body.tg-page {
  background: #0b0b0b;
  color: #f4f1ea;
  overflow-x: hidden;
}
body.tg-detail-open { overflow: hidden; }

/* Override nav for inner pages — sit on top of dark video hero. */
.nav--inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,11,11,0.55), rgba(11,11,11,0));
}
.nav--inner .nav-logo,
.nav--inner .nav-links a {
  color: #f4f1ea;
}
.nav--inner .nav-links a:hover { color: var(--accent, #d2ff00); }

.tg-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

/* Texture pool — DOM media for shader; hidden from layout but in DOM
   so videos can decode and the shader can sample them. */
.tg-pool {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.tg-pool .sw-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.tg-pool .sw-slide.is-active { opacity: 1; }
.tg-pool .sw-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Once shader takes over, hide the DOM media (BlockRevealReel adds
   .sw-shader-active to host). The shader canvas is inserted as host's
   first child and gets .sw-shader-canvas. */
.tg-hero.sw-shader-active .tg-pool .sw-slide { opacity: 0 !important; }
.tg-hero .sw-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Center title block — sits above shader. */
.tg-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  padding: 0 4vw;
  max-width: 52vw;        /* constrain so it doesn't spill into tile area */
}
.tg-center-eyebrow {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
  margin: 0 0 0.9rem 0;
}
.tg-center-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.9rem, 4.6vw, 5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: #f4f1ea;
  margin: 0 0 1.1rem 0;
  text-shadow: 0 2px 32px rgba(0,0,0,0.6);
}
.tg-center-meta {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
  margin: 0;
}

/* Tile grid — 3 columns × 2 rows. Tiles spread to top + bottom edges
   so the central area is fully reserved for `.tg-center` + the
   travelling bracket marker. Outer-corner alignment per tile (below)
   gives the marker visible travel distance — that travel is part of
   the selection language now, not friction. */
.tg-tile-grid {
  position: absolute;
  inset: 0;
  display: grid;
  /* 12-col base lets the top row run 4 tiles (3 cols each) and the
     bottom row spread 3 tiles evenly across the full width (4 cols
     each), with no empty corner cell. */
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr 1fr;
  /* Bottom-row corners deliberately match top-row corners — Nike React
     (t5) anchored at cols 1-3 to align under RExperience (t1), and
     Suite 26 (t7) at cols 10-12 to align under Fuse Lounge (t4). Nike
     Interactive Retail (t6) takes the middle 6 cols. Without this,
     t5/t7 sat one column off from t1/t4 → Seb 2026-06-06. */
  grid-template-areas:
    "t1 t1 t1 t2 t2 t2 t3 t3 t3 t4 t4 t4"
    "t5 t5 t5 t6 t6 t6 t6 t6 t6 t7 t7 t7";
  padding: 13vh 4vw 11vh 4vw;     /* tile rows at top + bottom (per-tile align below) */
  gap: 0 2vw;                      /* no vertical gap — alignment handles spread */
  z-index: 4;
  pointer-events: none; /* re-enabled per-tile */
}
/* 7-tile layout (Selected Work) — scope by :not(--4) to avoid
   leaking into the 4-tile variant which uses different area names. */
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(1) { grid-area: t1; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(2) { grid-area: t2; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(3) { grid-area: t3; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(4) { grid-area: t4; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(5) { grid-area: t5; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(6) { grid-area: t6; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(7) { grid-area: t7; }

/* 4-tile variant (Flagship Venue) — 2×2, tiles at outer corners. */
.tg-tile-grid--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "tl tr"
    "bl br";
  gap: 0 6vw;
}
.tg-tile-grid--4 > .tg-tile:nth-of-type(1) { grid-area: tl; }
.tg-tile-grid--4 > .tg-tile:nth-of-type(2) { grid-area: tr; }
.tg-tile-grid--4 > .tg-tile:nth-of-type(3) { grid-area: bl; }
.tg-tile-grid--4 > .tg-tile:nth-of-type(4) { grid-area: br; }

/* Individual tile — text-only on the video, NO box, NO border, NO bg.
   Selection visual is handled entirely by the travelling .bracket-marker
   (see js/bracket-marker.js). Hover state adjusts text styling only. */
.tg-tile {
  pointer-events: auto;
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(244, 241, 234, 0.92);
  cursor: pointer;
  text-align: left;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  width: clamp(320px, 32vw, 480px);
  /* height auto */
}
/* 6-tile (selected work) — narrower so all three tiles fit one row
   without overflowing the viewport on standard widths. */
.tg-tile-grid:not(.tg-tile-grid--4) .tg-tile {
  width: clamp(260px, 26vw, 380px);
}
/* 4-tile (flagship) tiles get the larger 2×-ish treatment — only
   2 columns, so they have room to breathe. */
.tg-tile-grid--4 .tg-tile {
  width: clamp(420px, 42vw, 640px);
  padding: 24px 30px;
  column-gap: 26px;
  row-gap: 10px;
}

/* Tile-number sits in left column spanning both rows. */
.tg-tile > .tg-tile-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}
.tg-tile > .tg-tile-name,
.tg-tile > .tg-tile-meta {
  grid-column: 2;
}
.tg-tile > .tg-tile-name { grid-row: 1; align-self: end; }
.tg-tile > .tg-tile-meta { grid-row: 2; align-self: start; }

/* Spread tiles to the outer corners of their grid cells. The bracket
   marker travels between these positions — that travel is now part of
   the selection animation language. */
/* Hybrid clustering: HORIZONTALLY pulled toward center (tiles close to
   each other, not at viewport edges); VERTICALLY pushed to outer rows
   (top row sits at viewport top, bottom row at viewport bottom — far
   from the central title). The bracket marker travels the full vertical
   distance — long, expressive selection animation.                    */
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(1) { justify-self: end;    align-self: start; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(2) { justify-self: center; align-self: start; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(3) { justify-self: center; align-self: start; }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(4) { justify-self: start;  align-self: start; }
/* Bottom row: 3 tiles. t5 (Nike React) mirrors t1's justify-self:end so
   Nike React sits at the SAME x as RExperience above. Likewise t7
   (Suite 26) mirrors t4's justify-self:start so it lines up with
   Fuse Lounge above. Without this, t5/t7 hugged the OUTER viewport
   edges while t1/t4 hugged INNER cell edges — Seb 2026-06-06. */
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(5) { justify-self: end;    align-self: end;   }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(6) { justify-self: center; align-self: end;   }
.tg-tile-grid:not(.tg-tile-grid--4) > .tg-tile:nth-of-type(7) { justify-self: start;  align-self: end;   }
.tg-tile-grid--4 > .tg-tile:nth-of-type(1) { justify-self: end;   align-self: start; }
.tg-tile-grid--4 > .tg-tile:nth-of-type(2) { justify-self: start; align-self: start; }
.tg-tile-grid--4 > .tg-tile:nth-of-type(3) { justify-self: end;   align-self: end;   }
.tg-tile-grid--4 > .tg-tile:nth-of-type(4) { justify-self: start; align-self: end;   }
/* Keep keyboard outline for a11y. */
.tg-tile:focus-visible {
  outline: 1px dashed rgba(210, 255, 0, 0.6);
  outline-offset: 6px;
}
.tg-tile-num {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(244, 241, 234, 0.55);
  transition: color 0.35s ease;
}
.tg-tile-grid--4 .tg-tile-num { font-size: 15px; }

.tg-tile:hover .tg-tile-num,
.tg-tile:focus-visible .tg-tile-num,
.tg-tile.is-active .tg-tile-num {
  color: var(--accent, #d2ff00);
}
.tg-tile-name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: #f4f1ea;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  align-self: end;
  transition: letter-spacing 0.45s ease, transform 0.45s ease;
}
/* Flagship tiles read at hero-headline scale — biggest in the system. */
.tg-tile-grid--4 .tg-tile-name {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
}
.tg-tile:hover .tg-tile-name,
.tg-tile:focus-visible .tg-tile-name,
.tg-tile.is-active .tg-tile-name {
  letter-spacing: 0.01em;        /* subtle "open up" on activate */
}
.tg-tile-meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.65);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}
.tg-tile-grid--4 .tg-tile-meta { font-size: 12px; }
.tg-tile:hover .tg-tile-meta,
.tg-tile:focus-visible .tg-tile-meta,
.tg-tile.is-active .tg-tile-meta {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BracketMarker — corner-tick selection marker.
   Hosts:
     - .tg-hero (flagship + selected work)  → transit color WHITE
     - .team-grid / .team-grid--collab       → transit color GREY
   The marker REST color is the lime accent (CS identity).
   ============================================================ */
.bracket-marker {
  position: absolute;
  top: 0; left: 0; width: 0; height: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transform: scale(1);
  --brk-rest-color:    var(--accent, #d2ff00);
  --brk-transit-color: #ffffff;       /* default — overridden per host */
  transition:
    top      0.55s cubic-bezier(.6,.0,.25,1),
    left     0.55s cubic-bezier(.6,.0,.25,1),
    width    0.55s cubic-bezier(.6,.0,.25,1),
    height   0.55s cubic-bezier(.6,.0,.25,1),
    transform 0.22s ease,
    opacity   0.22s ease;
}
.bracket-marker.is-visible { opacity: 1; }
.bracket-marker.is-moving  { transform: scale(1.08); }
.bracket-marker.is-moving .bracket-marker__c {
  border-color: var(--brk-transit-color);
}
.bracket-marker__c {
  position: absolute;
  width:  var(--brk-size, 14px);
  height: var(--brk-size, 14px);
  border: 0 solid var(--brk-rest-color);
  transition: border-color 0.22s ease;
}
.bracket-marker__c--tl { top: 0; left: 0;
  border-top-width:    var(--brk-thickness, 1px);
  border-left-width:   var(--brk-thickness, 1px); }
.bracket-marker__c--tr { top: 0; right: 0;
  border-top-width:    var(--brk-thickness, 1px);
  border-right-width:  var(--brk-thickness, 1px); }
.bracket-marker__c--bl { bottom: 0; left: 0;
  border-bottom-width: var(--brk-thickness, 1px);
  border-left-width:   var(--brk-thickness, 1px); }
.bracket-marker__c--br { bottom: 0; right: 0;
  border-bottom-width: var(--brk-thickness, 1px);
  border-right-width:  var(--brk-thickness, 1px); }

/* Team grids use GREY (not white) for the transit phase. */
.team-grid .bracket-marker,
.team-grid--collab .bracket-marker {
  --brk-transit-color: #888888;
}

/* ============================================================
   .tg-center text reveal — "wipe out, wipe in" on tile change.
   Clip-path goes top→bottom for leaving, then bottom→top for
   entering, so each label feels like it's been wiped through.
   ============================================================ */
.tg-center [data-bind] {
  transition:
    opacity   0.22s ease,
    clip-path 0.34s cubic-bezier(.65,.05,.25,1),
    transform 0.34s cubic-bezier(.65,.05,.25,1);
  clip-path: inset(0 0 0 0);
}
.tg-center [data-bind].is-leaving {
  opacity: 0;
  clip-path: inset(0 0 100% 0);   /* clip from bottom edge upward */
  transform: translateY(-6px);
}
.tg-center [data-bind].is-entering {
  opacity: 0;
  clip-path: inset(100% 0 0 0);   /* start with text fully clipped (top edge down) */
  transform: translateY(6px);
  transition: none;               /* snap to pre-reveal state */
}

/* Edge labels (bottom-left + bottom-right). */
.tg-edge {
  position: absolute;
  bottom: 1.4vh;
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin: 0;
  z-index: 5;
  pointer-events: none;
}
.tg-edge--bl { left: 3vw; }
.tg-edge--br { right: 3vw; text-align: right; }

/* ============================================================
   DETAIL OVERLAY — opened from tile click on Flagship Venue.
   Full-screen modal with full video + artist bio + interview reel.
============================================================ */
.tg-detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  overflow-y: auto;
}
.tg-detail[hidden] { display: none; }

.tg-detail-close {
  position: absolute;
  top: 2vh;
  right: 2vw;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  background: rgba(244, 241, 234, 0.05);
  color: #f4f1ea;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-detail-close:hover {
  background: var(--accent, #d2ff00);
  color: #0b0b0b;
  border-color: var(--accent, #d2ff00);
}

.tg-detail-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3vw;
  width: 100%;
  max-width: 1400px;
  align-items: start;
}

.tg-detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.tg-detail-media video,
.tg-detail-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* IG-as-main-media variant (Geometry of Emotion has no video file) */
.tg-detail-media--ig {
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  background: #fff;
  display: flex;
  justify-content: center;
}
.tg-detail-media--ig .instagram-media {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 !important;
}

.tg-detail-body {
  padding-top: 1vh;
}
.tg-detail-eyebrow {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  margin: 0 0 1rem 0;
}
.tg-detail-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f4f1ea;
  margin: 0 0 0.6rem 0;
}
.tg-detail-artist {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.75);
  margin: 0 0 1.6rem 0;
}
.tg-detail-artist a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(244,241,234,0.25); }
.tg-detail-artist a:hover { color: var(--accent, #d2ff00); border-color: var(--accent, #d2ff00); }
.tg-detail-bio {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.75);
  margin: 0 0 2.2rem 0;
  max-width: 36rem;
}
.tg-detail-cta-eyebrow {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin: 0 0 0.8rem 0;
}
.tg-detail-ig {
  max-width: 540px;
}
.tg-detail-ig .instagram-media {
  background: #fff !important;
  border: 0 !important;
  margin: 0 !important;
  max-width: 540px !important;
  width: 100% !important;
}

/* Inline interview player — replaces the Instagram embed entirely.
   Idle state: a thumbnail card with a play icon (looks like a poster).
   On click the JS swaps it for a native <video controls> that plays a
   locally-hosted mp4 of the interview. No Instagram styling, no parent
   navigation. Audio routes through the spectral cross-mix on play. */
.tg-detail-interview {
  display: block;
  max-width: 540px;
}
.tg-detail-interview__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.14);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.tg-detail-interview__trigger:hover,
.tg-detail-interview__trigger:focus-visible {
  background: rgba(210, 255, 0, 0.06);
  border-color: rgba(210, 255, 0, 0.55);
  transform: translateY(-1px);
}
.tg-detail-interview__thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.08);
}
.tg-detail-interview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tg-detail-interview__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f1ea;
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.22s ease, color 0.22s ease;
}
.tg-detail-interview__trigger:hover .tg-detail-interview__play-icon,
.tg-detail-interview__trigger:focus-visible .tg-detail-interview__play-icon {
  background: rgba(210, 255, 0, 0.18);
  color: #d2ff00;
}
.tg-detail-interview__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tg-detail-interview__headline {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #f4f1ea;
}
.tg-detail-interview__trigger:hover .tg-detail-interview__headline,
.tg-detail-interview__trigger:focus-visible .tg-detail-interview__headline {
  color: #d2ff00;
}
.tg-detail-interview__meta {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}
/* Once activated, the card's contents are replaced with this <video>. */
.tg-detail-interview__player {
  display: block;
  width: 100%;
  max-width: 540px;
  max-height: 60vh;
  background: #000;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 2px;
}
/* Friendly fallback shown when the interview mp4 fails to load (e.g. file
   not yet uploaded to /assets/videos/interviews/). */
.tg-detail-interview__missing {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  padding: 16px;
  border: 1px dashed rgba(244, 241, 234, 0.18);
  margin: 0;
}

/* CTA link replacing the Instagram blockquote embed (which was hijacking
   parent navigation). Reads as a contained card the user clearly opts
   into. target=_blank means click goes to a new tab; the website stays
   put. Hover: lime accent + subtle lift. */
.tg-detail-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.14);
  color: inherit;
  border-radius: 2px;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.tg-detail-cta-link:hover,
.tg-detail-cta-link:focus-visible {
  background: rgba(210, 255, 0, 0.06);
  border-color: rgba(210, 255, 0, 0.55);
  transform: translateY(-1px);
}
.tg-detail-cta-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.08);
}
.tg-detail-cta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tg-detail-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tg-detail-cta-headline {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #f4f1ea;
}
.tg-detail-cta-link:hover .tg-detail-cta-headline,
.tg-detail-cta-link:focus-visible .tg-detail-cta-headline {
  color: #d2ff00;
}
.tg-detail-cta-meta {
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}
.tg-detail-credit {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(244, 241, 234, 0.75);
  margin: 0;
}

/* ============================================================
   InfoCard — hover-revealed details panel anchored to a tile.
   Box itself animates rect (left/top/width/height); corner
   brackets ride the corners; content reveals via scramble +
   clip-path wipe (see js/text-reveal.js).
   ============================================================ */
.info-card {
  position: absolute;
  /* JS sets left/top/width/height per-tile. Card spans the UNION rect
     (tile + gap + extension); gloss covers both. Tile content sits at
     a higher z-index so the tile text/number stays readable above
     the gloss in the tile-area portion of the card. */
  pointer-events: none;
  z-index: 3;       /* below .tg-tile-grid (z=4) so tile content shows above */
  opacity: 0;
  box-sizing: border-box;
  --brk-size:      32px;
  --brk-thickness: 1px;
  --card-bg:       rgba(8, 8, 10, 0.62);
  --card-bg-edge:  rgba(8, 8, 10, 0.32);
  --card-text:     rgba(244, 241, 234, 0.92);
  --card-muted:    rgba(244, 241, 234, 0.62);
  --card-accent:   var(--accent, #d2ff00);
  color: var(--card-text);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  background:
    linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg-edge) 100%);
  backdrop-filter:  blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  overflow: hidden;
}
.info-card[aria-hidden="false"] { pointer-events: auto; }
.info-card.is-clickable { cursor: pointer; }

/* Corner brackets — pinned to each corner of the card, fixed size.
   Hidden by default: the tile's BracketMarker grows to encompass the
   union of tile + card, becoming the single frame around the combined
   block. To re-enable the card's own corner brackets (standalone mode),
   add the `info-card--standalone` modifier on the card root. */
.info-card__c {
  position: absolute;
  width:  var(--brk-size);
  height: var(--brk-size);
  border: 0 solid var(--card-accent);
  pointer-events: none;
  display: none;
}
.info-card--standalone .info-card__c { display: block; }
.info-card__c--tl { top: 0;    left: 0;
  border-top-width:    var(--brk-thickness);
  border-left-width:   var(--brk-thickness); }
.info-card__c--tr { top: 0;    right: 0;
  border-top-width:    var(--brk-thickness);
  border-right-width:  var(--brk-thickness); }
.info-card__c--bl { bottom: 0; left: 0;
  border-bottom-width: var(--brk-thickness);
  border-left-width:   var(--brk-thickness); }
.info-card__c--br { bottom: 0; right: 0;
  border-bottom-width: var(--brk-thickness);
  border-right-width:  var(--brk-thickness); }

.info-card__inner {
  position: absolute;
  /* Horizontal insets are CSS; vertical (top/bottom) are set inline by
     JS based on grow direction so the text content sits in the
     extension portion only (NOT under the tile area, which has its
     own number/name/meta showing above the gloss). */
  left:  22px;
  right: 22px;
  /* Default vertical insets — overridden inline. */
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  /* Inner content sits above the gloss bg of the parent (default), and
     since .info-card is z-3 the whole inner is still BELOW tg-tile
     content (z-4) — which is fine because the text area never overlaps
     the tile area. */
  pointer-events: auto;
}

.info-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent);
  clip-path: inset(0 100% 0 0);  /* reveal handles the wipe */
  opacity: 0;
}

.info-card__blurb {
  margin: 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--card-text);
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

.info-card__artists {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.info-card__artist {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.7rem;
}
.info-card__artist--linked { cursor: pointer; }
.info-card__artist--linked:hover .info-card__artist-name {
  color: var(--card-accent);
}
.info-card__artist-pf {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: rgba(244, 241, 234, 0.08);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4);
  opacity: 0;
  transform: scale(0.7);
}
.info-card__artist-txt {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.info-card__artist-name {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--card-text);
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: color 0.2s ease;
}
.info-card__artist-role {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--card-muted);
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

.info-card__cta {
  margin: auto 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-accent);
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}
.info-card.is-clickable .info-card__cta { text-decoration: underline; text-underline-offset: 4px; }

/* On small viewports the card is squeezed; tighten the inner padding. */
@media (max-width: 720px) {
  .info-card { display: none; }   /* mobile tile list — card not useful */
}
/* Hero responsive */
@media (max-width: 900px) {
  .tg-hero { min-height: 100svh; }
  .tg-tile-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, auto);
    grid-template-areas: "t1" "t2" "t3" "t4" "t5" "t6" "t7";
    padding: 12vh 5vw 6vh;
    gap: 8px;
  }
  .tg-tile-grid--4 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    grid-template-areas: "tl" "tr" "bl" "br";
  }
  .tg-center { padding: 0 5vw; max-width: 90vw; top: 40%; }
  .tg-center-title { font-size: clamp(1.8rem, 8vw, 3.4rem); }
  .tg-tile-meta { opacity: 1; transform: none; } /* always visible on touch */

  .tg-detail-inner { grid-template-columns: 1fr; gap: 6vh; }
  .tg-detail-media--ig { aspect-ratio: 9 / 16; max-height: 70vh; }
}

/* ===========================================================================
   LANDING GATE — corner-box loader/Enter widget + corner-box menu
   --------------------------------------------------------------------------- */

/* While the gate owns the page, no scroll, no nav, no autoplay below the fold. */
body.gate-locked          { overflow: hidden; height: 100vh; }
body.gate-locked #manifesto,
body.gate-locked #explore,
body.gate-locked #capabilities,
body.gate-locked #clients,
body.gate-locked #contact { display: none; }
/* Whenever a .gate-menu is present (landing OR inner page), the legacy
   <nav id="nav"> is replaced by it. Hide the legacy nav whenever the
   menu is wired. */
body.has-gate-menu #nav   { display: none; }

/* The corner-box itself. Both .gate-menu and .gate-loader compose on top
   of this. Brackets are 4 absolutely-positioned L-shapes that hug the
   container as it expands. */
.gate-box {
  position: fixed;
  /* Sits above all hero/shader content so the corner-box menu + sound
     widget stay visible across navigation. */
  z-index: 260;
  /* Always-on dark glass — both rest and expanded states sit on the
     same backdrop, so text/brackets stay legible regardless of the
     hero bg behind them. Expansion only grows the box, doesn't
     change ink colour. */
  color: #f2efe8;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  transition:
    width   0.42s cubic-bezier(0.76, 0, 0.24, 1),
    height  0.42s cubic-bezier(0.76, 0, 0.24, 1),
    background 0.3s ease,
    opacity 0.3s ease,
    color   0.3s ease;
}
.gate-box::before,
.gate-box::after,
.gate-box > .gate-box__brk-bl,
.gate-box > .gate-box__brk-br {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #f2efe8;
  pointer-events: none;
  transition: border-color 0.3s ease;
}
.gate-box.is-expanded { background: rgba(11, 11, 11, 0.86); }
.gate-box::before                  { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.gate-box::after                   { top: 0;    right: 0; border-left: 0;  border-bottom: 0; }
.gate-box > .gate-box__brk-bl      { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.gate-box > .gate-box__brk-br      { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

/* Default handle = the visible rest-state label. Becomes hidden when the
   box expands (the panel fades in instead). */
.gate-box__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.gate-box__handle:focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }

.gate-box.is-expanded .gate-box__handle { opacity: 0; pointer-events: none; }

/* While the tile-shift is firing: lock out clicks. The MENU stays
   visible (the destination has it at the same position so the user
   perceives one continuous box across the navigation). The LOADER
   fades out — it's landing-only with no destination counterpart, so
   keeping it visible would create a jarring "loader disappears" pop
   on navigation. Seb 2026-06-06. */
.gate-box.is-firing {
  pointer-events: none;
}
.gate-loader.is-firing {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ---------- Top-right corner-box: site nav ------------------------------- */
.gate-menu {
  top: 28px;
  right: 32px;
  width: 132px;
  height: 40px;
  cursor: pointer;
}
.gate-menu.is-expanded {
  width: 232px;
  height: 244px;   /* 5 items + padding */
}
.gate-menu__panel {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease 0.12s;
}
.gate-menu.is-expanded .gate-menu__panel { opacity: 1; pointer-events: auto; }
.gate-menu__link {
  color: #f2efe8;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 4px;
  transition: color 0.18s ease;
}
.gate-menu__link:hover { color: #d2ff00; }

/* ---------- Bottom-right corner-box: loader → Enter ---------------------- */
/* Moved down + inward — Seb feedback: previous right-centre position read
   as "floating", felt too close to the top-right menu. Anchoring to the
   bottom-right corner balances against the menu and keeps the same axis
   for both gate widgets. */
.gate-loader {
  bottom: 32px;
  right: 32px;
  width: 168px;
  height: 40px;
  cursor: default;
}
.gate-loader.is-ready { cursor: pointer; }
.gate-loader:not(.is-ready) .gate-box__handle { cursor: progress; }

.gate-loader.is-expanded {
  width: 332px;
  height: 198px;
}
.gate-loader__label    { display: inline-block; }
.gate-loader__pct      { font-variant-numeric: tabular-nums; opacity: 0.8; }
.gate-loader__panel {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease 0.12s;
}
.gate-loader.is-expanded .gate-loader__panel { opacity: 1; pointer-events: auto; }
.gate-loader__panel-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.gate-loader__bar {
  width: 100%;
  height: 2px;
  background: rgba(242, 239, 232, 0.24);
  overflow: hidden;
}
/* Slim progress bar visible in REST state too — tracks across the bottom
   of the bracketed pill so the user sees streaming even before hover. */
.gate-loader__rest-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(242, 239, 232, 0.18);
  overflow: hidden;
  pointer-events: none;
}
.gate-loader__rest-bar-fill {
  width: 100%;
  height: 100%;
  background: #d2ff00;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s linear;
}
.gate-loader.is-expanded .gate-loader__rest-bar { opacity: 0; }
.gate-loader__bar-fill {
  width: 100%;
  height: 100%;
  background: #d2ff00;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s linear;
}
.gate-loader__file {
  font-size: 10px;
  color: rgba(242, 239, 232, 0.78);
  letter-spacing: 0.06em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}
.gate-loader__status {
  font-size: 9px;
  color: rgba(242, 239, 232, 0.42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Ready state — brackets and label glow lime, soft pulse. Overrides the
   default ink color so the box reads as "armed" on either bg. */
.gate-loader.is-ready                     { color: #d2ff00; }
.gate-loader.is-ready::before,
.gate-loader.is-ready::after,
.gate-loader.is-ready > .gate-box__brk-bl,
.gate-loader.is-ready > .gate-box__brk-br { border-color: #d2ff00; }
.gate-loader.is-ready .gate-loader__label { font-weight: 600; letter-spacing: 0.22em; }
.gate-loader.is-ready                     { animation: gate-pulse 1.6s ease-in-out infinite; }
@keyframes gate-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(210, 255, 0, 0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(210, 255, 0, 0.45)); }
}

/* ---------- Tile-shift overlay (reverse only: inner → Home) -------------- */
/* The forward landing → flagship tile-shift was removed 2026-06-06.
   This overlay only runs when the user clicks Home from an inner
   page, so the shader hands off into the landing's cream hero via
   the wake-cover (below). Cream bg matches the landing's hero so the
   first paint of this overlay is flush with the inner-page bg
   beneath. */
.landing-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f2efe8;
  overflow: hidden;
}
.landing-transition .sw-slide {
  position: absolute;
  inset: 0;
  opacity: 0 !important;
}
.landing-transition .sw-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-transition__canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: #f2efe8;
}
.landing-transition.is-fallback .sw-slide[data-slide="1"] {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Reverse-transition wake cover — dark fullscreen overlay painted by
   main.js on the FIRST FRAME of the landing page when arriving via
   the back-transition (sessionStorage.cs_wake). Bridges "tile-shift
   ended dark" → "landing repaints cream from scratch" so the cream
   hero doesn't pop in. */
.wake-cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0b0b0b;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.wake-cover.is-fading { opacity: 0; }

/* ---------- Background preloader pill (inner pages) ---------------------- */
/* Bottom-left twin to the gate-loader: shows live progress for the
   "next videos" preload that runs once the user lands on flagship or
   selected-work. Pure courtesy widget — fades out when CACHED. */
.gate-pill {
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  width: 220px;
  height: 50px;
  cursor: default;
  opacity: 0;
  animation: gate-pill-in 0.45s ease-out 0.4s forwards;
}
@keyframes gate-pill-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.gate-pill__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gate-pill__label { font-size: 10px; letter-spacing: 0.16em; }
.gate-pill__pct   { font-size: 10px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.gate-pill__file {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(242, 239, 232, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gate-pill__bar {
  width: 100%;
  height: 1.5px;
  background: rgba(242, 239, 232, 0.18);
  overflow: hidden;
  margin-top: 2px;
}
.gate-pill__bar-fill {
  width: 100%;
  height: 100%;
  background: #d2ff00;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s linear;
}
.gate-pill.is-done {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Audio FX widget (top-right, stacked under .gate-menu) -------- */
/* Sits directly below the corner-box menu at the same right anchor, with
   a 12 px gap. Idle = a bracketed "SOUND · OFF / NN" pill matching the
   menu's geometry (132 × 40); hover-expand grows to match the menu's
   expanded width (232 px) and reveals a toggle row, volume row, and a
   slim range slider. When enabled, brackets + label recolor to lime;
   each transition firing pulses .is-firing for tactile feedback. */
.audio-fx {
  top: 80px;        /* gate-menu top 28 + height 40 + 12 gap */
  right: 32px;
  /* 2026-06-08 (Seb, seventh pass): pill rest dimensions back to
     132 × 40 to match .gate-menu exactly — Seb wanted the SOUND
     button visually identical to MENU at rest. The now-playing
     credit no longer lives inside the pill: it's a floating
     `.audio-fx__credit-wrap` below the pill, shown only when a
     track is active (scramble + marquee + auto-hide after 5 s). */
  width: 132px;
  height: 40px;
  cursor: pointer;
  transition: top 0.28s cubic-bezier(0.5, 0, 0.2, 1);
}
.audio-fx.is-expanded {
  width: 232px;     /* matches .gate-menu.is-expanded width */
  height: 84px;     /* same as before the credit-row experiment */
}
/* Pill rest handle: single row, matches .gate-menu's horizontal layout. */
.audio-fx > .gate-box__handle {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
}
.audio-fx__handle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* ── Floating now-playing credit ────────────────────────────────────────
   Lives OUTSIDE the pill chrome — anchored just below the audio-fx
   aside's bottom edge so the pill itself stays exactly menu-sized.
   Visible only when the `.audio-fx.is-showing-credit` class is on
   (added by audio-fx.js when _updateCredit() lands a non-empty
   credit, removed ~5 s later — see _updateCredit below). On hover
   the credit also appears, so it's accessible without waiting for
   the next track-change. Seb 2026-06-08 (seventh pass). */
.audio-fx__credit-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  height: 18px;
  line-height: 18px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* Centre when text fits; JS adds `.is-marquee` to the wrap when
     the text overflows, which switches alignment to left + adds a
     right-edge fade mask so the marqueed text trails off softly. */
  text-align: center;
}
.audio-fx__credit-wrap.is-marquee {
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
}
.audio-fx.is-showing-credit .audio-fx__credit-wrap,
.audio-fx:hover .audio-fx__credit-wrap {
  opacity: 1;
  transform: translateY(0);
}
.audio-fx__credit-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body, 'IBM Plex Mono', monospace);
  color: rgba(242, 239, 232, 0.78);
  text-shadow: 0 0 8px rgba(11, 11, 11, 0.6);
  transform: translateX(0);
}
.audio-fx.is-on .audio-fx__credit-track { color: rgba(210, 255, 0, 0.92); }
/* Marquee — 9 s round-trip: hold left → glide right → hold right → glide back.
   `--marquee-offset` is set by audio-fx.js per track (e.g. `-42px`). */
.audio-fx__credit-track.is-marquee {
  animation: audio-fx-credit-scroll 9s linear infinite;
}
@keyframes audio-fx-credit-scroll {
  0%, 10%   { transform: translateX(0); }
  45%, 55%  { transform: translateX(var(--marquee-offset, -50%)); }
  90%, 100% { transform: translateX(0); }
}

/* When the corner-box MENU is expanded, slide the audio-fx box down
   below the expanded menu so the two never visually overlap. Menu
   expanded ends at top 28 + height 244 = 272 → 284 with the standard
   12 px gap. `body:has(...)` is supported by all current browsers. */
body:has(.gate-menu.is-expanded) .audio-fx { top: 284px; }

.audio-fx__label {
  display: inline-block;
  font-weight: 500;
}
.audio-fx__state {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.audio-fx__panel {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease 0.12s;
}
.audio-fx.is-expanded .audio-fx__panel { opacity: 1; pointer-events: auto; }

.audio-fx__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.audio-fx__row-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.audio-fx__vol-val {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* Slide-toggle pill */
.audio-fx__toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(242, 239, 232, 0.5);
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.audio-fx__toggle::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f2efe8;
  transition: transform 0.18s cubic-bezier(0.76, 0, 0.24, 1), background 0.18s ease;
}
.audio-fx__toggle.is-on {
  background: rgba(210, 255, 0, 0.18);
  border-color: #d2ff00;
}
.audio-fx__toggle.is-on::before {
  transform: translateX(18px);
  background: #d2ff00;
}
.audio-fx__toggle:focus-visible {
  outline: 1px dashed currentColor;
  outline-offset: 3px;
}

/* Range slider — minimal, brand-aligned */
.audio-fx__slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.audio-fx__slider::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(242, 239, 232, 0.24);
  border-radius: 2px;
}
.audio-fx__slider::-moz-range-track {
  height: 2px;
  background: rgba(242, 239, 232, 0.24);
  border-radius: 2px;
}
.audio-fx__slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f2efe8;
  border: 0;
  margin-top: -5px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.audio-fx__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f2efe8;
  border: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}
.audio-fx.is-on .audio-fx__slider::-webkit-slider-thumb { background: #d2ff00; }
.audio-fx.is-on .audio-fx__slider::-moz-range-thumb     { background: #d2ff00; }
.audio-fx__slider:focus-visible::-webkit-slider-thumb   { transform: scale(1.2); }

.audio-fx__hint {
  font-size: 9px;
  color: rgba(242, 239, 232, 0.42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* Enabled state — brackets + label glow lime, same idiom as gate-loader.is-ready */
.audio-fx.is-on                          { color: #d2ff00; }
.audio-fx.is-on::before,
.audio-fx.is-on::after,
.audio-fx.is-on > .gate-box__brk-bl,
.audio-fx.is-on > .gate-box__brk-br      { border-color: #d2ff00; }
.audio-fx.is-on .audio-fx__label         { font-weight: 600; letter-spacing: 0.22em; }

/* Firing pulse — each transition burst briefly lifts the box. */
.audio-fx.is-firing {
  filter: drop-shadow(0 0 8px rgba(210, 255, 0, 0.6));
  transition: filter 0.05s ease;
}

/* Mobile */
@media (max-width: 720px) {
  .audio-fx { top: 60px; right: 14px; width: 108px; height: 34px; }
  .audio-fx.is-expanded { width: 200px; height: 150px; }
}

/* Mobile tuning */
@media (max-width: 720px) {
  .gate-menu   { top: 14px;  right: 14px; width: 108px; height: 34px; }
  .gate-loader { right: 14px; width: 140px; height: 34px; }
  .gate-menu.is-expanded   { width: 200px; height: 188px; }
  .gate-loader.is-expanded { width: 280px; height: 176px; }
  .gate-pill  { left: 14px; bottom: 14px; width: 180px; height: 44px; }
}

