/* ============================================================
   SEGULA — Design System v2  ·  "Light as material"
   ------------------------------------------------------------
   A lighting brand should not describe light. It should emit it.
   Dark substrate · ember core · arctic counterpoint · RLAW spectrum
   ============================================================ */

:root {
  /* ---------- Substrate (the dark the light falls on) ---------- */
  --bg: #07070a;
  --bg-elev: #0d0d12;
  --bg-elev-2: #14141b;
  --surface: #0a0a0e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-lit: rgba(255, 168, 78, 0.35);

  /* ---------- Light (the material) ---------- */
  --ember: #ff9a3c;
  --ember-deep: #d9701f;
  --gold: #f8cd84;
  --glacier: #8ad8ff;
  --bloom: rgba(255, 154, 60, 0.16);
  --bloom-strong: rgba(255, 154, 60, 0.34);
  --bloom-soft: rgba(255, 154, 60, 0.07);

  /* ---------- RLAW spectrum (Red · Lime · Aqua · White) ---------- */
  --rlaw-r: #ff5a4e;
  --rlaw-l: #b7e34a;
  --rlaw-a: #46ded0;
  --rlaw-w: #f7f2e8;
  --spectrum: linear-gradient(90deg, #ff5a4e 0%, #ff9a3c 22%, #f8cd84 42%, #f7f2e8 58%, #46ded0 80%, #8ad8ff 100%);

  /* ---------- Text ---------- */
  --text: #f6f3ed;
  --text-soft: #b6b2aa;
  --text-muted: #7a7771;
  --text-faint: #4e4c48;

  /* ---------- Type ---------- */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ---------- Spacing ---------- */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --s-9: 176px;

  /* ---------- Radius ---------- */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 10px;
  --r-xl: 20px;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.5s;

  --container: 1280px;
  --container-narrow: 940px;
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* A faint warm bloom sits behind the whole page — the room is never fully dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255, 154, 60, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(138, 216, 255, 0.025), transparent 60%);
}

::selection { background: var(--ember); color: #07070a; }

/* Film grain — the single cheapest way to make flat design feel photographic */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* Cursor light — on desktop the page is lit by wherever you point */
.cursor-light {
  position: fixed;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft);
  background: radial-gradient(circle, rgba(255, 154, 60, 0.11) 0%, rgba(255, 154, 60, 0.04) 38%, transparent 66%);
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-light.on { opacity: 1; }

/* Scroll progress — a filament of light across the top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 9999;
  background: var(--spectrum);
  box-shadow: 0 0 14px var(--bloom-strong);
  transition: width 0.08s linear;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8vw, 7.2rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-soft); text-wrap: pretty; }

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

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

/* The "lit" word — a gradient that reads as emitted light, not paint */
.lit {
  background: linear-gradient(100deg, var(--ember) 0%, var(--gold) 40%, #fff5e6 62%, var(--glacier) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
em.lit { font-style: italic; }

/* Mono technical layer — the German-engineering voice */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  position: relative;
  z-index: 1;
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember));
}

/* ---------- Section index (01 — What We Do) ---------- */
.section-head {
  max-width: 680px;
  margin-bottom: var(--s-6);
}
.section-head .eyebrow { margin-bottom: var(--s-2); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, var(--gold) 100%);
  color: #0a0806;
  box-shadow: 0 6px 24px rgba(255, 154, 60, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(255, 154, 60, 0.4);
}
/* light sweeps across the button on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease);
}
.btn-primary:hover::after { left: 140%; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--line-lit);
  color: var(--gold);
  background: var(--bloom-soft);
  transform: translateY(-2px);
}

.btn-sm { padding: 11px 22px; font-size: 0.74rem; }

/* Arrow that slides on hover */
.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--s-3) 0;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease),
              border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 10, 0.74);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom-color: var(--line);
  padding: var(--s-2) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 26px;
  width: auto;
  display: block;
  transition: opacity var(--dur) var(--ease);
}
.logo:hover .logo-img { opacity: 0.8; }
.footer-brand .logo-img { height: 34px; }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  box-shadow: 0 0 8px var(--bloom-strong);
  transition: width var(--dur) var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-cta { margin-left: var(--s-2); }
.nav-cta::after { display: none; }
/* `.nav a` would otherwise win on specificity and leave the CTA low-contrast */
.nav a.btn-primary { color: #0a0806; }
.nav a.btn-primary:hover { color: #0a0806; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--dur) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO — cinematic
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 var(--s-7);
  isolation: isolate;
}

/* Media layer: the brand's own catalogue cover, full-bleed.
   One confident still beats a carousel — the artwork is the argument. */
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 46% keeps the beam's apex and the wordmark in frame, and slides the
     composition up so the copy column below stays clear of both. */
  object-position: center 46%;
  will-change: transform;
  animation:
    heroIn 1.9s var(--ease-soft) both,
    kenburns 34s var(--ease-soft) 1.9s infinite alternate;
}
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-0.8%, -1.1%, 0); }
}

/* Veil: the artwork is already black, so this only has to buy legibility —
   a top scrim for the header, a left scrim for the copy column, a soft base.
   Sits INSIDE .hero-media's stacking context, so a positive z-index is what
   puts it above the image here. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* top scrim — keeps the header legible */
    linear-gradient(to bottom, rgba(7, 7, 10, 0.66) 0%, rgba(7, 7, 10, 0.16) 14%, transparent 27%),
    /* bottom base — anchors the headline, subcopy and buttons */
    linear-gradient(to top, rgba(7, 7, 10, 0.9) 0%, rgba(7, 7, 10, 0.62) 17%, rgba(7, 7, 10, 0.2) 38%, transparent 56%),
    /* left scrim — the copy column */
    linear-gradient(100deg, rgba(7, 7, 10, 0.76) 0%, rgba(7, 7, 10, 0.34) 32%, transparent 62%);
}

/* A warm breath over the beam, so a still image still feels alive */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 42% at 80% 13%, rgba(255, 176, 104, 0.13), transparent 70%);
  animation: glowBreathe 12s var(--ease-soft) infinite alternate;
}
@keyframes glowBreathe {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

/* Narrow enough that the copy column never reaches the baked-in wordmark,
   which sits 60–72% across the artwork — true at any viewport width.
   This sits inside a `.container` wrapper (not on it), so the column keeps the
   same left gutter as the header logo instead of being centred as a flex item. */
.hero-content { position: relative; z-index: 2; max-width: min(620px, 52vw); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #dedad3;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  margin-bottom: var(--s-3);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.85), 0 0 90px rgba(0, 0, 0, 0.6);
}
.hero-content > p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 600px;
  margin-bottom: var(--s-4);
  color: var(--text-soft);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

/* Hero footer: spectrum strip + slide index */
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 var(--s-4) 22px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-spectrum {
  flex: 1;
  height: 2px;
  background: var(--spectrum);
  opacity: 0.55;
  border-radius: 2px;
  transform-origin: left;
  animation: spectrumIn 2.4s var(--ease) 0.4s both;
}
@keyframes spectrumIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 0.55; } }

.hero-foot-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 243, 237, 0.42);
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--ember), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE — project names in constant motion
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
  background: var(--bg-elev);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--s-6);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  transition: color var(--dur) var(--ease);
}
.marquee-item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.5;
}
.marquee-item:hover { color: var(--gold); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--s-8) 0; position: relative; }
.section-tight { padding: var(--s-6) 0; }
.band { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.stat { position: relative; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num span { color: var(--ember); }
.stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4) var(--s-4);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-lit);
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 154, 60, 0.06);
}
.card-glow {
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  filter: blur(0.5px);
}
.card:hover .card-glow { opacity: 1; }
/* a warm pool of light follows the pointer across the card */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 100%),
    rgba(255, 154, 60, 0.12),
    transparent 68%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
  color: var(--ember);
  background: rgba(255, 154, 60, 0.05);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover .card-icon { border-color: var(--line-lit); box-shadow: 0 0 24px rgba(255, 154, 60, 0.12); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: var(--s-2); position: relative; z-index: 1; }
.card p { font-size: 0.94rem; color: var(--text-muted); position: relative; z-index: 1; }
.card-num {
  position: absolute;
  top: var(--s-3);
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ============================================================
   RLAW LAB — the interactive centrepiece
   ============================================================ */
.rlaw-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rlaw-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 88% 42%, rgba(255, 154, 60, 0.13), transparent 66%),
    radial-gradient(ellipse 40% 60% at 68% 74%, rgba(70, 222, 208, 0.05), transparent 62%);
}
.rlaw-band .container { position: relative; }

.rlaw-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
}
.rlaw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0806;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: var(--s-3);
  box-shadow: 0 4px 20px rgba(255, 154, 60, 0.28);
}
.rlaw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s-3) 0 var(--s-4);
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--line-lit); }
.chip strong { color: var(--ember); font-weight: 600; }

/* --- The lab stage: a room lit by a colour temperature you control --- */
.lab {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: #07070a;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.lab-stage {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.35s linear;
}
/* the ambient wash that recolours with the slider */
.lab-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 108%, var(--lab-glow, rgba(255, 154, 60, 0.5)), transparent 66%);
  transition: background 0.35s linear;
}
.lab-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 100%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, black, transparent 72%);
}
.lab-orb {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--lab-orb, #ffb968);
  box-shadow:
    0 0 60px 12px var(--lab-glow-soft, rgba(255, 154, 60, 0.45)),
    0 0 140px 40px var(--lab-glow, rgba(255, 154, 60, 0.22));
  transition: background 0.35s linear, box-shadow 0.35s linear;
  animation: orbBreathe 5s var(--ease-soft) infinite;
  z-index: 2;
}
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
/* the floor reflection */
.lab-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -64%;
  width: 220%;
  height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--lab-glow, rgba(255, 154, 60, 0.3)), transparent 70%);
  filter: blur(12px);
  transition: background 0.35s linear;
}
.lab-readout {
  position: absolute;
  top: var(--s-3);
  left: var(--s-4);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lab-k {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.lab-unit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
}
.lab-mood {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.lab-mood .name { color: #fff; }

/* --- Controls --- */
.lab-controls { padding: var(--s-4); border-top: 1px solid var(--line); background: var(--bg-elev); }

.lab-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: grab;
  display: block;
}
.lab-range:active { cursor: grabbing; }
.lab-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--spectrum);
  box-shadow: 0 0 18px rgba(255, 154, 60, 0.25);
}
.lab-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lab-orb, #ffb968);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06), 0 0 22px var(--lab-glow, rgba(255, 154, 60, 0.6));
  transition: transform 0.2s var(--ease), border-color 0.35s linear;
}
.lab-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.lab-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--spectrum);
}
.lab-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lab-orb, #ffb968);
  box-shadow: 0 0 18px var(--lab-glow, rgba(255, 154, 60, 0.6));
}
.lab-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--glacier); outline-offset: 3px; }

.lab-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.lab-scale span { transition: color var(--dur) var(--ease); }
.lab-scale span.on { color: var(--ember); }

/* RLAW channel readout */
.lab-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.chan { display: flex; flex-direction: column; gap: 7px; }
.chan-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
}
.chan-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.chan-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.35s linear;
}
.chan.r .chan-bar i { background: var(--rlaw-r); box-shadow: 0 0 10px var(--rlaw-r); }
.chan.l .chan-bar i { background: var(--rlaw-l); box-shadow: 0 0 10px var(--rlaw-l); }
.chan.a .chan-bar i { background: var(--rlaw-a); box-shadow: 0 0 10px var(--rlaw-a); }
.chan.w .chan-bar i { background: var(--rlaw-w); box-shadow: 0 0 10px var(--rlaw-w); }

.lab-hint {
  margin-top: var(--s-3);
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Legacy spectrum bar (kept for subpages) */
.rlaw-visual {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 154, 60, 0.16), transparent 70%),
    #07070a;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rlaw-spectrum {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--spectrum);
  box-shadow: 0 0 40px rgba(255, 154, 60, 0.45);
}
.rlaw-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 1 / 1;
}
.rlaw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PRODUCT PANELS — full-bleed image + floating spec card
   ============================================================ */
.panel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  margin-bottom: var(--s-3);
  isolation: isolate;
}
.panel-media { position: absolute; inset: 0; z-index: -2; }
.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* lets a panel nudge the crop so the subject isn't hidden under the scrim */
.panel-media img.focus-top { object-position: center 30%; }
.panel-media img.focus-left { object-position: 30% center; }
.panel:hover .panel-media img { transform: scale(1.045); }
.panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 7, 10, 0.94) 0%, rgba(7, 7, 10, 0.72) 38%, rgba(7, 7, 10, 0.1) 70%),
    linear-gradient(to top, rgba(7, 7, 10, 0.6), transparent 50%);
}
.panel.flip .panel-media::after {
  background:
    linear-gradient(260deg, rgba(7, 7, 10, 0.94) 0%, rgba(7, 7, 10, 0.72) 38%, rgba(7, 7, 10, 0.1) 70%),
    linear-gradient(to top, rgba(7, 7, 10, 0.6), transparent 50%);
}
.panel-body {
  position: relative;
  max-width: 560px;
  padding: var(--s-6);
}
.panel.flip { justify-content: flex-end; }
.panel.flip .panel-body { text-align: left; }
.panel h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: var(--s-2) 0 var(--s-2); }
.panel p { margin-bottom: var(--s-3); max-width: 460px; }

.panel-index {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

/* Legacy product rows (used on products.html) */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.product-row:last-child { border-bottom: none; }
.product-row.reverse > .product-visual { order: 2; }
.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.product-visual img.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.product-row:hover .product-visual img.product-photo { transform: scale(1.04); }
.product-info h3 { margin-bottom: var(--s-2); }
.product-info .eyebrow { margin-bottom: var(--s-2); }
.product-info p { margin-bottom: var(--s-3); }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-3); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(7, 7, 9, 0.72);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

/* ============================================================
   SPEC TABLE
   ============================================================ */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  width: 190px;
}
.spec-table td { color: var(--text-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table .hl { color: var(--ember); font-weight: 500; }

/* ============================================================
   CINEMA (video)
   ============================================================ */
.cinema { position: relative; }
.cinema-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.66);
  aspect-ratio: 16 / 9;
}
.cinema-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

.cinema-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: block;
  transition: opacity 0.7s var(--ease);
}
.cinema-poster img { width: 100%; height: 100%; object-fit: cover; }
.cinema-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.8), rgba(7, 7, 10, 0.2) 60%);
  transition: opacity var(--dur) var(--ease);
}
.cinema-poster:hover::after { opacity: 0.7; }
.cinema.is-playing .cinema-poster { opacity: 0; pointer-events: none; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cinema-poster:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.09);
  background: var(--ember);
  border-color: var(--ember);
  color: #0a0806;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
/* a slow ring of light around the play button */
.play-btn::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 154, 60, 0.35);
  animation: ring 3s var(--ease-soft) infinite;
}
@keyframes ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}
.cinema-meta {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  z-index: 4;
  pointer-events: none;
}
.cinema-meta .mono { color: rgba(255, 255, 255, 0.6); }

.cinema-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.cinema-caption p { font-size: 0.88rem; color: var(--text-faint); max-width: 720px; }

/* Legacy video showcase (kept for subpages) */
.video-showcase { position: relative; }
.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.video-caption p { font-size: 0.9rem; color: var(--text-muted); max-width: 640px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-5);
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.filter-chip.is-active {
  color: #0a0806;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(255, 154, 60, 0.26);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: var(--s-2);
}
.mosaic .project { aspect-ratio: auto; grid-row: span 2; }
.mosaic .project.tall { grid-row: span 3; }
.mosaic .project.wide { grid-column: span 2; }

.project {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg-elev);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.project:hover { border-color: rgba(255, 154, 60, 0.32); }
.project.is-hidden { display: none; }

.project .project-img,
.project .project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter var(--dur) var(--ease);
  filter: saturate(0.92) brightness(0.92);
}
.project:hover .project-img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.94) 0%, rgba(7, 7, 10, 0.35) 44%, transparent 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-3);
  transition: background var(--dur) var(--ease);
}
.project-overlay .tag {
  background: rgba(7, 7, 10, 0.55);
  margin-bottom: 8px;
  align-self: flex-start;
}
.project-overlay h3 {
  font-size: 1.3rem;
  transform: translateY(0);
  transition: transform var(--dur) var(--ease);
}
/* a hairline of light draws itself across the bottom on hover */
.project-overlay::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.project:hover .project-overlay::after { transform: scaleX(1); }
.project:hover .project-overlay h3 { transform: translateY(-3px); }

.mosaic-cta { margin-top: var(--s-5); text-align: center; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: scale(0.97);
  transition: transform 0.55s var(--ease);
}
.lightbox.open figure { transform: scale(1); }
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.lightbox-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lightbox-close:hover { background: var(--ember); color: #0a0806; border-color: var(--ember); }

/* ============================================================
   SPLIT / FEATURES (About)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover { border-bottom-color: var(--line-lit); padding-left: 10px; }
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  min-width: 38px;
  padding-top: 5px;
}
.feature-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 5px; letter-spacing: 0; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Figures */
.figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: linear-gradient(to top, rgba(7, 7, 10, 0.92), transparent);
}

/* Award */
.award-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-6);
  align-items: center;
}
.award-points { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.award-point {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  text-align: center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.award-point:hover { border-color: var(--line-lit); box-shadow: 0 0 30px rgba(255, 154, 60, 0.08); }
.award-point .ap-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); }
.award-point .ap-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 5px;
}

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s-4);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-lit);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}
.resource-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(255, 154, 60, 0.36);
  border-radius: 100px;
  padding: 5px 12px;
}
.resource-card h3 { font-size: 1.4rem; line-height: 1.2; }
.resource-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin: 0; }
.resource-cta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap var(--dur) var(--ease);
}
.resource-card:hover .resource-cta { gap: 13px; }

/* ============================================================
   DOWNLOAD CARD
   ============================================================ */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: border-color var(--dur) var(--ease);
}
.download-card:hover { border-color: var(--line-lit); }
.download-card .dl-meta { display: flex; align-items: center; gap: var(--s-3); }
.download-card .dl-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  flex-shrink: 0;
  background: rgba(255, 154, 60, 0.05);
}
.download-card .dl-icon svg { width: 22px; height: 22px; }
.download-card h3 { font-size: 1.15rem; }
.download-card p { font-size: 0.82rem; color: var(--text-faint); }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: flex; flex-direction: column; gap: var(--s-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--line-lit);
  background: var(--bg-elev-2);
  box-shadow: 0 0 0 4px rgba(255, 154, 60, 0.07);
}
.field textarea { resize: vertical; min-height: 150px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-7);
}
.info-block { display: flex; flex-direction: column; gap: var(--s-4); }
.info-item { display: flex; gap: var(--s-3); }
.info-item .card-icon { flex-shrink: 0; margin-bottom: 0; width: 46px; height: 46px; }
.info-item h4 { font-family: var(--font-body); font-size: 0.93rem; font-weight: 600; margin-bottom: 3px; letter-spacing: 0; }
.info-item p { font-size: 0.9rem; color: var(--text-muted); }
.info-item a { transition: color var(--dur) var(--ease); }
.info-item a:hover { color: var(--ember); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 50% 0%, rgba(255, 154, 60, 0.14), transparent 68%),
    radial-gradient(ellipse 40% 60% at 50% 110%, rgba(138, 216, 255, 0.05), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: var(--s-2); font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-band p { margin: 0 auto var(--s-4); max-width: 520px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-3);
  margin-top: var(--s-7);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-6);
}
.footer-brand p { font-size: 0.88rem; color: var(--text-faint); max-width: 300px; margin-top: var(--s-3); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-3);
}
.footer-col a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-soft);
  padding: 5px 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--ember); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--s-8) + 60px) 0 var(--s-6);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% -10%, rgba(255, 154, 60, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 40%, rgba(138, 216, 255, 0.04), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: var(--s-3) 0 var(--s-3); font-size: clamp(2.6rem, 6vw, 5.2rem); }
.page-hero p { max-width: 600px; color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   MOTION — reveal
   ============================================================ */
/* Motion is opt-in from CSS's point of view: without JS the .js hook is never
   added, so content stays visible instead of being stuck at opacity 0. */
.reveal {
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* staggered children */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ============================================================
   CATALOGUES & DOWNLOADS
   The covers are pulled straight out of the PDFs at print resolution,
   so the cards are the actual documents, not stand-ins.
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.cat-card.is-feature { border-color: var(--line-lit); }
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-lit);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.cat-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #05050a;
  overflow: hidden;
}
.cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
}
.cat-card:hover .cat-cover img { transform: scale(1.045); }
/* the cover sinks into the body so the card reads as one object */
.cat-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13, 13, 18, 0.9) 0%, transparent 44%);
}
.cat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-3) var(--s-3) var(--s-4);
}
.cat-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.cat-body h3 { font-size: 1.4rem; line-height: 1.15; margin-bottom: 10px; }
.cat-body p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: var(--s-3); }
.cat-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  transition: gap var(--dur) var(--ease);
}
.cat-card.is-feature .cat-cta { color: var(--gold); }
.cat-card:hover .cat-cta { gap: 14px; }
.cat-note {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
/* The save-instead row. Quiet by design — it is a safety net, not a CTA —
   but it must stay legible and comfortably tappable on a phone. */
.cat-fallback {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cat-fallback a {
  color: var(--ember);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.cat-fallback a:hover { border-bottom-color: transparent; }
.cat-note a {
  color: var(--ember);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.cat-note a:hover { border-bottom-color: var(--ember); }

/* The official SEGULA main catalogue. It is the brand's catalogue rather
   than one of our three editions, and the only entry in this section that
   leaves the site, so it gets a full-width row of its own instead of a
   fourth slot in the grid.
   The row layout earns its keep twice over: the official cover is PORTRAIT,
   so the 4:3 crop the cards above apply would slice the wordmark off — here
   it can be shown whole, and at 246px wide it is still being downscaled
   from its 211x300 source, so it stays sharp. */
.cat-card.is-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 236px;
}
.cat-card.is-wide .cat-cover {
  flex: 0 0 246px;
  aspect-ratio: auto;
}
.cat-card.is-wide .cat-cover img { object-fit: contain; }
/* the cover sinks into the body on the cards above; on a letterboxed
   portrait cover that same gradient would just fog the bottom of the book */
.cat-card.is-wide .cat-cover::after { display: none; }
.cat-card.is-wide .cat-body {
  justify-content: center;
  padding: var(--s-4);
}
.cat-card.is-wide .cat-body h3 { font-size: 1.65rem; }
.cat-card.is-wide .cat-body p { max-width: 68ch; }
.cat-card.is-wide .cat-cta { margin-top: var(--s-3); }

/* ============================================================
   CATALOGUE READER  (catalogue-*.html)
   ------------------------------------------------------------
   The catalogues are readable as plain HTML — one <img> per page.
   No PDF viewer, no popup window, no range requests: it is the same
   kind of navigation as any other link on the site, so it cannot fail
   on a device that simply refuses to display a PDF.
   ============================================================ */
.reader-head {
  /* clear the fixed header, then breathe */
  padding: calc(96px + var(--s-6)) 0 var(--s-5);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 12% 0%, var(--bloom-soft) 0%, transparent 58%),
    var(--bg);
}
.reader-head .eyebrow { color: var(--reader-accent, var(--ember)); }
.reader-head h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  margin: var(--s-2) 0 var(--s-3);
  max-width: 22ch;
}
.reader-lead {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.reader-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- jump-to-page strip: 87 pages needs a shortcut ---- */
.reader-index {
  position: sticky;
  /* measured: the fixed header is 85px tall at rest and 69px once scrolled,
     so tuck 2px under the scrolled height to hide the seam where page
     content would otherwise show through the gap */
  top: 67px;
  z-index: 40;
  padding: var(--s-2) 0;
  background: rgba(7, 7, 10, 0.9);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.reader-index .container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.reader-index .container::-webkit-scrollbar { display: none; }
.reader-index-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-right: 4px;
}
.reader-index a {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 5px 7px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.reader-index a:hover { color: var(--ember); border-color: var(--line-lit); }

/* ---- the pages themselves ---- */
.reader { padding: var(--s-5) 0 var(--s-6); }
.reader-page {
  margin: 0 auto var(--s-4);
  max-width: 1040px;
}
.reader-page img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  /* fit inside the column AND inside the viewport height, so a whole
     page is visible at once instead of needing to be scrolled around */
  max-width: 100%;
  max-height: 88vh;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}
.reader-page figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
/* anchor targets must clear the fixed header + the sticky strip */
.reader-page { scroll-margin-top: 150px; }
.reader-foot {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.reader-foot a {
  color: var(--ember);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.reader-foot a:hover { border-bottom-color: var(--ember); }

@media (max-width: 620px) {
  .reader-head { padding: calc(84px + var(--s-4)) 0 var(--s-4); }
  .reader-index { top: 62px; }
  .reader-index-label { display: none; }
  .reader-page { margin-bottom: var(--s-3); }
  /* the height cap is pointless on a phone — pages are already narrow */
  .reader-page img { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* must out-specify `.js .reveal`, otherwise content stays invisible */
  .reveal,
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .rlaw-grid { gap: var(--s-6); }
}

@media (max-width: 900px) {
  :root { --s-8: 88px; --s-7: 72px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: var(--s-4); }
  .product-row.reverse > .product-visual { order: 0; }
  .split { grid-template-columns: 1fr; gap: var(--s-5); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .rlaw-grid, .award-band { grid-template-columns: 1fr; gap: var(--s-5); }
  .resource-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  /* the wide card keeps its row layout down to 621px, but the cover column
     has to give way or the copy is squeezed to nothing at half width */
  .cat-card.is-wide { min-height: 212px; }
  .cat-card.is-wide .cat-cover { flex: 0 0 168px; }
  .cat-card.is-wide .cat-body { padding: var(--s-3); }
  .cat-card.is-wide .cat-body h3 { font-size: 1.35rem; }
  .panel { min-height: 460px; }
  .panel-body { padding: var(--s-5) var(--s-4); max-width: 100%; }
  .panel-media::after, .panel.flip .panel-media::after {
    background: linear-gradient(to top, rgba(7, 7, 10, 0.96) 0%, rgba(7, 7, 10, 0.66) 50%, rgba(7, 7, 10, 0.3) 100%);
  }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic .project.wide { grid-column: span 2; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 86vw);
    height: 100vh;
    background: rgba(13, 13, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-6) var(--s-5);
    transition: right var(--dur) var(--ease);
    border-left: 1px solid var(--line);
    z-index: 1001;
  }
  .nav.open { right: 0; }
  .nav a { font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: var(--s-2); }
  .nav-toggle { display: flex; z-index: 1002; position: relative; }

  .cursor-light { display: none; }
  .grain { opacity: 0.025; }
  .hero { min-height: 92svh; }
  .hero-foot { padding-bottom: 16px; }
  .scroll-cue { display: none; }
  .lab-stage { height: 240px; }
  .cinema-frame { aspect-ratio: 4 / 3; }
  .lightbox { padding: var(--s-3); }
}

/* ============================================================
   PHONE HERO — stack instead of overlay
   ------------------------------------------------------------
   In the portrait artwork the beam occupies the top 22% and the wordmark sits
   at 52–56% of the height — exactly where a bottom-anchored copy block lands.
   Rather than crop the brand mark or let the headline fight it, the artwork
   becomes a block and the copy sits beneath it on solid black.

   The height comes from aspect-ratio rather than a fixed value: the image is
   0.536 wide-to-tall, so `cover` reveals 1.282 / 1.866 = 69% of the artwork at
   ANY width. That margin over the wordmark's 55.6% is what keeps it in frame
   from a 320px phone up to the 620px cut-over — no per-breakpoint magic numbers.
   ============================================================ */
@media (max-width: 620px) and (orientation: portrait) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 var(--s-6);
  }
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 0.78;
  }
  /* the window starts at the top, keeping the beam's apex */
  .hero-media img { object-position: center top; }

  /* re-tuned: this now only seats the art into the page and fades its lower
     edge into the black body, rather than protecting a full-height copy column.
     Kept short because the artwork is already black below the wordmark — a
     deeper fade would just dim the brand mark for no gain. */
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(7, 7, 10, 0.62) 0%, rgba(7, 7, 10, 0.16) 20%, transparent 40%),
      linear-gradient(to top, var(--bg) 0%, rgba(7, 7, 10, 0.55) 8%, transparent 22%);
  }
  .hero-content { max-width: 100%; margin-top: var(--s-5); }
  .hero-foot {
    position: static;
    margin-top: var(--s-4);
    padding: 0 var(--s-3);
  }
  .hero-foot-note { display: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  :root { --s-8: 72px; --s-7: 60px; --s-6: 48px; }
  .container { padding: 0 var(--s-3); }

  .card-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-body h3 { font-size: 1.25rem; }
  /* one card per row now, so the wide card stacks like the rest and its
     cover goes back to a normal 4:3 plate */
  .cat-card.is-wide { flex-direction: column; min-height: 0; }
  .cat-card.is-wide .cat-cover {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic .project.wide { grid-column: span 1; }
  .mosaic .project.tall { grid-row: span 2; }
  .lab-channels { grid-template-columns: 1fr 1fr; }
  .panel { min-height: 400px; border-radius: var(--r-lg); }
  .hero-badge { font-size: 0.58rem; padding: 6px 13px 6px 10px; }
  .marquee-item { font-size: 0.95rem; gap: var(--s-4); }
  .marquee-track { gap: var(--s-4); }
  .btn { padding: 14px 26px; }
  .award-points { gap: var(--s-1); }
  .award-point { padding: 13px 18px; flex: 1; }
}

/* ============================================================
   KAI TAK FEATURED PROJECT (portrait video + photo duo)
   ============================================================ */
.cinema-frame.cinema-portrait { aspect-ratio: 9 / 16; }
.kaitak-feature {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: var(--s-6);
  align-items: center;
}
.kaitak-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.kaitak-feature-body p { font-size: 0.92rem; color: var(--text-faint); max-width: 640px; }

/* Before / After showcase */
.kaitak-ba { margin-top: var(--s-5); }
.kaitak-ba-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ba-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--text-soft);
}
.ba-before { color: var(--text-muted); }
.ba-after { color: var(--ember); border-color: var(--line-lit); }
.ba-arrow { color: var(--ember); }
.ba-note { color: var(--text-faint); letter-spacing: 0.04em; text-transform: none; }
.kaitak-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-4);
}
.kaitak-ba-grid .figure { aspect-ratio: 3 / 4; }

@media (max-width: 900px) {
  .kaitak-feature { grid-template-columns: 1fr; gap: var(--s-5); }
  .cinema-frame.cinema-portrait { max-width: 400px; margin: 0 auto; }
  .kaitak-ba-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .kaitak-ba-grid { grid-template-columns: 1fr; }
  .cinema-frame.cinema-portrait { max-width: 320px; }
}
