/* ============================================================================
   Brivon — Modern Photography Studio HTML Template
   Free template by html.design.
   Visual direction: editorial-brutalist photography studio. Near-black ground
   throughout (#0A0A0C), paper-ivory text (#F4F4F0), one electric lime accent
   (#D4FF3D) used sparingly on tags, hover states, and signature micro-elements.
   Display in Boldonse (heavy condensed display, line-height 1.25), body in
   Inter Tight, captions in Geist Mono. Designed for commercial photographers,
   editorial studios, documentary teams, and visual-arts producers.
   No editorial serif, no cream zone, no warm earth — palette is intentionally
   cool-dark with one saturated accent.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette — charcoal ground + electric lime accent.
     Distinct from every shipped html.design template. */
  --ink-000:        #050507;          /* deepest — used behind hero photo */
  --ink-deep:       #140235;          /* primary surface, body bg */
  --ink:            #270568;          /* default cards / sections */
  --ink-card:       #290769;          /* elevated card body */
  --ink-elev:       #032702;          /* hover / next elevation */
  --ink-line:       rgba(244, 244, 240, 0.08);
  --ink-line-soft:  rgba(244, 244, 240, 0.04);
  --ink-rule:       rgba(244, 244, 240, 0.16);

  --paper:          #F4F4F0;          /* primary text on dark */
  --paper-soft:     #C9C9C2;          /* secondary text */
  --paper-mute:     #80807A;          /* tertiary / captions */
  --paper-deep:     #5A5A55;          /* hairlines / quiet labels */
  --paper-tile:     #F4F4F0;          /* reverse-tile background */
  --paper-tile-2:   #E5E5DE;          /* alt reverse tile */

  --lime:           #00ec0c;          /* signature accent — electric lime */
  --lime-soft:      #E2FF73;          /* lighter variant */
  --lime-deep:      #9CCB1F;          /* hover / pressed */
  --lime-glow:      rgba(212, 255, 61, 0.20);

  --cobalt:         #1A2EFF;          /* tiny secondary — used once on prints CTA hover only */

  /* Semantic surfaces */
  --bg:             var(--ink-deep);
  --bg-alt:         var(--ink-000);
  --bg-card:        var(--ink-card);
  --bg-elev:        var(--ink-elev);
  --bg-tile:        var(--paper-tile);   /* reverse-mode sections */

  --fg:             var(--paper);
  --fg-soft:        var(--paper-soft);
  --fg-mute:        var(--paper-mute);
  --fg-deep:        var(--paper-deep);
  --fg-on-tile:     var(--ink-deep);
  --fg-on-tile-mute:#5A5A55;

  --rule:           var(--ink-line);
  --rule-strong:    var(--ink-rule);
  --rule-lime:      rgba(212, 255, 61, 0.35);

  --primary:        var(--lime);
  --primary-deep:   var(--lime-deep);
  --accent:         var(--lime);

  /* Typography — Boldonse display, Inter Tight body, Geist Mono captions.
     Per memory: Boldonse needs line-height 1.25 minimum, never below 1.15. */
  --font-display:   'Boldonse', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'Geist Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:   clamp(1.5rem, 1.25rem + 0.95vw, 2rem);
  --text-3xl:   clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --text-4xl:   clamp(2.5rem, 1.75rem + 2.6vw, 4rem);
  --text-5xl:   clamp(2.8rem, 1.9rem + 3.4vw, 4.75rem);
  --text-mega:  clamp(2.5rem, 1.6rem + 3vw, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  6.5rem;
  --space-10: 9rem;
  --space-11: 12rem;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  --container:        1340px;
  --container-wide:   1480px;
  --container-narrow: 1080px;
  --gutter:           clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm:  0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow:     0 16px 36px -12px rgba(0, 0, 0, 0.55);
  --shadow-md:  0 24px 56px -18px rgba(0, 0, 0, 0.55);
  --shadow-lg:  0 48px 96px -32px rgba(0, 0, 0, 0.6);
  --shadow-lime: 0 22px 60px -22px rgba(212, 255, 61, 0.25);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   620ms;
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--ink-000);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 999;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: var(--space-9); }
section.compact  { padding-block: var(--space-7); }
section.snug     { padding-block: var(--space-8); }

.grid { display: grid; gap: var(--space-6); }
.flex { display: flex; }
.center-row { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- 4. Typography ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow--on-tile { color: var(--fg-on-tile-mute); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  /* Per memory: Boldonse-class display fonts require >= 1.2 line-height. */
  line-height: 1.25;
  text-transform: uppercase;
}
h1 { font-size: var(--text-5xl); line-height: 1.22; }
h2 { font-size: var(--text-4xl); line-height: 1.25; }
h3 { font-size: var(--text-2xl); line-height: 1.3; }
h4 { font-size: var(--text-xl); line-height: 1.32; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}
.label--lime { color: var(--lime); }

/* ---------- 5. Header / Nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
/* Style the parent link */
/* Container Link */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 1.25rem;
}

/* Style the logo */
.brand-logo {
  height: 50px;
  width: auto;
  display: block;            /* Prevents baseline inline whitespace gap */
  object-fit: contain;
  /* Adjust translateY if the Photoroom crop has transparent top/bottom margins */
  transform: translateY(-6px); 
}

/* Brand Text */
.brand-text {
  font-family: var(--font-display);
  font-size: var(--text-1xl);
  line-height: 1.2;          /* Meets Boldonse minimum recommendation */
  text-transform: uppercase;
  letter-spacing: -0.018em;
  display: inline-flex;      /* Prevents font line-box overflow */
  align-items: center;
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--lime); }
.nav-links a[aria-current="page"] { color: var(--lime); border-bottom-color: var(--lime); }
.nav-cta-row { display: flex; gap: var(--space-3); align-items: center; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--fg);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--fg);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-000);
  z-index: 200;
  padding: var(--space-7) var(--gutter);
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-transform: uppercase;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { color: var(--fg); }
.mobile-drawer a:hover { color: var(--lime); }
.drawer-close {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
/* ---------- Alive cards (pointer glow + lift) ---------- */
.card-alive {
  position: relative;
  isolation: isolate;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card-alive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 236, 12, 0.16),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.card-alive:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 236, 12, 0.30);
  box-shadow: 0 22px 44px -28px rgba(0, 236, 12, 0.35);
}
.card-alive:hover::after { opacity: 1; }
.card-alive > * { position: relative; z-index: 1; }
.process-card::before {
  transition:
    color 320ms var(--ease-out),
    transform 320ms var(--ease-out),
    letter-spacing 320ms var(--ease-out);
  transform-origin: left center;
}
.process-card:hover::before {
  color: var(--lime);
  transform: scale(1.12);
  letter-spacing: 0.22em;
}
.faq-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 2px;
  background: var(--rule-strong);
  transition: background 320ms var(--ease-out), transform 320ms var(--ease-out);
  transform-origin: center;
  z-index: 1;
}
.faq-card:hover::before {
  background: var(--lime);
  transform: scaleY(1.08);
}


/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--lime);
  color: var(--ink-000);
}

.btn--primary:hover { background: var(--lime-soft); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--ghost-on-tile {
  background: transparent;
  color: var(--fg-on-tile);
  border-color: rgba(10,10,12,0.2);
}
.btn--ghost-on-tile:hover { border-color: var(--ink-000); }
.btn--dark {
  background: var(--ink-000);
  color: var(--paper);
}
.btn--dark:hover { background: var(--ink-elev); }
.btn--sm { padding: 8px 14px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 28px; }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.eyebrow .dot {
  animation: dotPulse 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0, 236, 12, 0.5); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(0, 236, 12, 0); }
}
body.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
body.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(900px 460px at 88% 0%, var(--lime-glow), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(26, 46, 255, 0.10), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.hero-text > * + * { margin-top: var(--space-5); }
.hero-headline {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.hero-headline .lime { color: var(--lime); }
.hero-headline .slash { color: var(--paper-mute); font-weight: 400; }
.hero-sub {
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 56ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  margin-top: var(--space-6);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.hero-media::after,
.split-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 236, 12, 0);
  transition: box-shadow 420ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.hero-media:hover::after,
.split-img:hover::after {
  box-shadow:
    inset 0 0 0 1px rgba(0, 236, 12, 0.40),
    inset 0 0 40px rgba(0, 236, 12, 0.08);
}
.hero-media img,
.split-img img {
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-media:hover img,
.split-img:hover img { transform: scale(1.04); }
.floating-tag {
  position: absolute;
  background: var(--ink-000);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow);
}
.floating-tag .pill {
  background: var(--lime);
  color: var(--ink-000);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.ft-top    { top: 16px; left: 16px; }
.ft-bottom { bottom: 16px; right: 16px; }
.ft-mid-r  { top: 50%; right: 16px; transform: translateY(-50%); }

/* ---------- 8. Stat strip ---------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--rule);
  margin-top: var(--space-7);
}
.stat-cell {
  padding: var(--space-6) var(--space-5);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stat-cell:last-child { border-inline-end: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.stat-num .lime { color: var(--lime); }
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 9. Section headers ----------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.section-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}
.section-head .lede { max-width: 48ch; }

/* ---------- 10. Work grid (selected work, archive) --------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}
.work-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
}
.work-item .wm {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.work-item:hover img { transform: scale(1.04); filter: contrast(1.05); }
.work-item .wm-pill {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink-000);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-item .wm-arrow {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 40px; height: 40px;
  background: var(--lime);
  color: var(--ink-000);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.work-item:hover .wm-arrow { transform: translate(2px, -2px); }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-family: var(--font-mono);
}
.work-meta .wm-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.work-meta .wm-cap {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.work-item--xl  { grid-column: span 8; }
.work-item--lg  { grid-column: span 7; }
.work-item--md  { grid-column: span 5; }
.work-item--sm  { grid-column: span 4; }
.work-item--xl .wm { aspect-ratio: 16 / 11; }
.work-item--lg .wm { aspect-ratio: 4 / 3; }
 /* ===== SECTION – MEDIA (repurposed, using second code's visual language) ===== */
    .media-section {
      background: var(--ink);
      border-radius: var(--radius);
      padding: 3.5rem 2rem;
      color: #fff;
      position: relative;
      overflow: hidden;
    }

    /* subtle pattern overlay (like african-pattern but abstract) */
    .media-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(224, 107, 60, 0.06) 1px, transparent 1px);
      background-size: 28px 28px;
      pointer-events: none;
      z-index: 0;
    }

    .media-section > * {
      position: relative;
      z-index: 2;
    }

    /* gradient edge (soft, like from-sunset/5 etc.) */
    .media-section::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(224, 107, 60, 0.04) 0%, transparent 40%, rgba(44, 110, 79, 0.04) 100%);
      pointer-events: none;
      z-index: 1;
    }

    /* ===== MEDIA HEADER ===== */
    .media-header {
      text-align: center;
      max-width: 720px;
      margin: 0 auto 3.5rem auto;
    }

    .media-badge {
      display: inline-block;
      padding: 0.375rem 1rem;
      background: rgba(255, 255, 255, 0.08);
      color: var(--savanna);
      font-weight: 600;
      font-size: 0.875rem;
      border-radius: 999px;
      letter-spacing: 0.02em;
      margin-bottom: 1rem;
      backdrop-filter: blur(4px);
      border: 1px solid rgba(217, 161, 59, 0.2);
    }

    .media-header h2 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 6vw, 3.25rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.02em;
      color: #fff;
      margin-bottom: 1rem;
    }

    .media-header p {
      font-size: 1.125rem;
      color: rgba(255, 255, 255, 0.7);
      max-width: 600px;
      margin: 0 auto;
    }

    /* ===== FEATURED GRID (YouTube + stats) ===== */
    .media-featured {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }
    

    /* YouTube feature card */
    .media-youtube {
      background: rgba(255, 255, 255, 0.03);
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: transform 0.3s ease, border-color 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .media-youtube:hover {
      border-color: rgba(224, 107, 60, 0.4);
      transform: translateY(-4px);
    }

    .media-youtube .thumb-wrap {
      position: relative;
      aspect-ratio: 16 / 9;
      background: #141e24;
      overflow: hidden;
    }

    .media-youtube .thumb-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.6s ease;
    }

    .media-youtube:hover .thumb-wrap img {
      transform: scale(1.03);
    }

    .media-youtube .thumb-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(14, 26, 31, 0.92) 0%, rgba(14, 26, 31, 0.2) 60%, transparent 100%);
    }

    .media-youtube .play-badge {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 72px;
      height: 72px;
      background: #dc2626;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease, background 0.2s;
      cursor: pointer;
    }

    .media-youtube:hover .play-badge {
      transform: translate(-50%, -50%) scale(1.08);
      background: #b91c1c;
    }

    .media-youtube .play-badge i {
      color: white;
      width: 32px;
      height: 32px;
      margin-left: 4px;
    }

    .media-youtube .yt-content {
      padding: 1.75rem 1.75rem 2rem;
      position: relative;
    }

    .media-youtube .yt-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .media-youtube .yt-icon {
      width: 40px;
      height: 40px;
      background: #dc2626;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .media-youtube .yt-icon i {
      color: white;
      width: 24px;
      height: 24px;
    }

    .media-youtube .yt-label {
      font-weight: 600;
      color: #ef4444;
      letter-spacing: 0.02em;
    }

    .media-youtube h3 {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #fff;
    }

    .media-youtube p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
      max-width: 90%;
    }

    .btn-subscribe {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: #dc2626;
      color: white;
      font-weight: 600;
      padding: 0.75rem 1.75rem;
      border-radius: 999px;
      text-decoration: none;
      font-size: 0.95rem;
      transition: background 0.2s, transform 0.2s;
      border: none;
      cursor: pointer;
    }

    .btn-subscribe:hover {
      background: #b91c1c;
      transform: translateY(-2px);
    }

    .btn-subscribe i {
      width: 18px;
      height: 18px;
    }

    /* Stats card */
    .media-stats {
      background: rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(8px);
      border-radius: var(--radius);
      padding: 1.75rem;
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: border-color 0.2s;
    }

    .media-stats:hover {
      border-color: rgba(255, 255, 255, 0.18);
    }

    .media-stats h4 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      color: #fff;
    }

    .stat-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.25rem;
    }

    .stat-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: rgba(255, 255, 255, 0.75);
    }

    .stat-left i {
      width: 20px;
      height: 20px;
      color: var(--savanna);
    }

    .stat-left i.sunset-icon {
      color: var(--sunset);
    }

    .stat-left i.jungle-icon {
      color: var(--jungle-soft);
    }

    .stat-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
    }

    .latest-upload {
      margin-top: 1.5rem;
      padding-top: 1.25rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .latest-upload p {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0.75rem;
    }

    .latest-thumb-row {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .latest-thumb {
      width: 72px;
      height: 48px;
      border-radius: 10px;
      overflow: hidden;
      flex-shrink: 0;
      background: #1e2c33;
    }

    .latest-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .latest-info p {
      font-size: 0.85rem;
      font-weight: 600;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 0.2rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      /* stylelint-disable-next-line property-no-vendor-prefix */
display: -webkit-box;
-webkit-box-orient: vertical;
/* stylelint-disable-next-line property-no-vendor-prefix */
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
    }

    .latest-info span {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.45);
    }
/* Perfect-fit bento override for the services section */
.cap-bento .cap-card--tall { grid-column: span 6; }
    /* Quick link buttons under stats */
    .quick-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin-top: 1.5rem;
    }

    .quick-link-item {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-sm);
      padding: 1rem 0.75rem;
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }

    .quick-link-item:hover {
      border-color: rgba(224, 107, 60, 0.5);
      background: rgba(255, 255, 255, 0.06);
    }

    .quick-link-item i {
      width: 22px;
      height: 22px;
      color: var(--sunset);
      transition: transform 0.2s;
    }

    .quick-link-item:hover i {
      transform: scale(1.1);
    }

    .quick-link-item span {
      font-size: 0.85rem;
      font-weight: 600;
      color: #fff;
    }

    /* ===== OTHER PLATFORMS GRID ===== */
    .platforms-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .platform-card {
      position: relative;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius);
      padding: 2rem 1.75rem 1.75rem;
      text-decoration: none;
      color: #fff;
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
      display: flex;
      flex-direction: column;
    }

    .platform-card:hover {
      transform: translateY(-4px);
      border-color: rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.06);
    }

    .platform-icon-badge {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s;
    }

    .platform-card:hover .platform-icon-badge {
      transform: scale(1.08);
    }

    .platform-icon-badge i {
      width: 24px;
      height: 24px;
      color: #fff;
    }

    .platform-main-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
    }

    .platform-main-icon i,
    .platform-main-icon span {
      width: 28px;
      height: 28px;
      color: #fff;
      font-weight: 700;
      font-size: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .platform-card h3 {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .platform-card p {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.65);
      margin-bottom: 1.5rem;
      flex: 1;
    }

    .platform-cta {
      display: flex;
      align-items: center;
      font-weight: 600;
      font-size: 0.9rem;
      gap: 0.35rem;
      margin-bottom: 1.5rem;
      transition: gap 0.2s;
    }

    .platform-card:hover .platform-cta {
      gap: 0.6rem;
    }

    .platform-cta i {
      width: 16px;
      height: 16px;
    }

    .platform-meta {
      padding-top: 1.25rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.45);
    }

    .platform-meta i {
      width: 16px;
      height: 16px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
      .media-featured {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .media-section {
        padding: 2.5rem 1.25rem;
        border-radius: var(--radius-sm);
      }
      .platforms-grid {
        grid-template-columns: 1fr;
      }
      .media-youtube h3 {
        font-size: 1.4rem;
      }
      .media-youtube p {
        max-width: 100%;
      }
      .stat-value {
        font-size: 1.25rem;
      }
      .play-badge {
        width: 56px;
        height: 56px;
      }
      .play-badge i {
        width: 26px;
        height: 26px;
      }
    }

    @media (max-width: 480px) {
      .quick-links {
        grid-template-columns: 1fr;
      }
    }

/* ---------- Media: match the site palette and component system ---------- */
.media-section {
  padding: 0;
  overflow: visible;
  background: transparent;
  color: var(--fg);
}
.media-section::before,
.media-section::after { display: none; }
.media-section > * { position: static; z-index: auto; }
.media-header {
  max-width: 680px;
  margin: 0 0 var(--space-6);
  text-align: start;
}
.media-header .eyebrow { margin-bottom: var(--space-3); }
.media-header h2 {
  max-width: 18ch;
  margin: 0 0 var(--space-3);
  font-size: var(--text-3xl);
  line-height: 1.25;
  text-transform: uppercase;
}
.media-header p { max-width: 58ch; margin: 0; color: var(--fg-soft); }
.media-featured {
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.media-youtube,
.media-stats,
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.media-youtube,
.media-stats {
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.media-youtube:hover,
.media-stats:hover,
.platform-card:hover { border-color: var(--rule-strong); }
.media-youtube:hover,
.platform-card:hover { transform: translateY(-3px); }
.media-youtube .thumb-wrap { background: var(--bg-alt); }
.media-youtube .thumb-overlay {
  background: linear-gradient(to top, rgba(5, 5, 7, 0.68), transparent 65%);
}
.media-youtube .play-badge {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(244, 244, 240, 0.5);
  background: var(--lime);
  box-shadow: none;
  color: var(--ink-000);
}
.media-youtube:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--lime-soft);
}
.media-youtube .play-badge i { color: var(--ink-000); width: 23px; height: 23px; }
.media-youtube .yt-content { padding: var(--space-5); }
.media-youtube .yt-icon {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--lime);
}
.media-youtube .yt-icon i { color: var(--lime); }
.media-youtube .yt-label { color: var(--fg-soft); }
.media-youtube h3 {
  margin: 0 0 var(--space-2);
  color: var(--fg);
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}
.media-youtube p { margin-bottom: var(--space-4); color: var(--fg-soft); font-size: var(--text-sm); }
.btn-subscribe {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink-000);
  font-size: var(--text-sm);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-subscribe:hover { background: var(--lime-soft); transform: translateY(-1px); }
.media-stats { padding: var(--space-5); backdrop-filter: none; }
.media-stats h4 {
  margin: 0 0 var(--space-3);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-section .stat-row {
  gap: var(--space-3);
  margin: 0;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.media-section .stat-left { color: var(--fg-soft); font-size: var(--text-sm); }
.media-section .stat-left i,
.media-section .stat-left i.sunset-icon,
.media-section .stat-left i.jungle-icon { color: var(--lime); }
.media-section .stat-value { color: var(--fg); font-size: var(--text-xl); }
.latest-upload { margin-top: var(--space-4); padding-top: var(--space-4); border-color: var(--rule); }
.latest-upload > p {
  margin: 0 0 var(--space-3);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}
.latest-thumb { border-radius: var(--radius-xs); background: var(--bg-alt); }
.latest-info p { margin: 0 0 var(--space-1); color: var(--fg); font-size: var(--text-sm); }
.latest-info span { color: var(--fg-mute); font-size: var(--text-xs); }
.quick-links { gap: var(--space-3); margin-top: var(--space-4); }
.quick-link-item {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  padding: var(--space-3);
  border-color: var(--rule);
  border-radius: var(--radius-sm);
  background: transparent;
}
.quick-link-item:hover { border-color: var(--rule-strong); background: var(--bg-elev); }
.quick-link-item i { width: 18px; height: 18px; color: var(--lime); }
.quick-link-item span { color: var(--fg-soft); font-size: var(--text-sm); }
.platforms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.platform-card {
  min-width: 0;
  padding: var(--space-5);
  color: var(--fg);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.platform-main-icon {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--lime);
}
.platform-main-icon i,
.platform-main-icon span { color: var(--lime); }
.platform-main-icon i { width: 20px; height: 20px; }
.platform-card h3 { margin: 0 0 var(--space-2); color: var(--fg); font-size: var(--text-lg); }
.platform-card p { margin-bottom: var(--space-4); color: var(--fg-soft); font-size: var(--text-sm); }
.platform-cta { margin-bottom: var(--space-4); color: var(--lime); font-size: var(--text-sm); }
.platform-meta {
  padding-top: var(--space-3);
  border-color: var(--rule);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.platform-meta i { width: 15px; height: 15px; }
@media (max-width: 1024px) {
  .media-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .platforms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .quick-links { grid-template-columns: 1fr; }
  .media-stats,
  .platform-card { padding: var(--space-4); }
}

/* reveal helper (kept subtle, since original used reveal) */
    .reveal {
      opacity: 1;
      transform: none;
    }
    /* no animation needed — design is static & polished */

/* ---------- 11. Reverse-mode tile (paper section) ---------------------- */
.tile-section {
  background: var(--bg-tile);
  color: var(--fg-on-tile);
  position: relative;
}
.tile-section .eyebrow { color: var(--fg-on-tile-mute); }
.tile-section .eyebrow .dot { background: var(--ink-000); }
.tile-section .lede { color: #2A2A28; }
.tile-section h1,
.tile-section h2,
.tile-section h3,
.tile-section h4 { color: var(--ink-000); }
.tile-section .label { color: var(--fg-on-tile-mute); }
.tile-section .mono  { color: #2A2A28; }
.tile-section .btn--ghost { color: var(--ink-000); border-color: rgba(10,10,12,0.25); }
.tile-section .btn--ghost:hover { border-color: var(--ink-000); }
.tile-section hr { border: 0; border-top: 1px solid rgba(10,10,12,0.15); }

/* ---------- 12. Chapter opener ----------------------------------------- */
.chapter {
  padding-block: var(--space-9);
}
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-8);
  align-items: start;
}
.chapter-grid .label { margin-bottom: var(--space-4); }
.chapter-body p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 60ch;
}
.tile-section .chapter-body p { color: #2A2A28; }
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-block: var(--space-6);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--lime);
  max-width: 22ch;
}
.tile-section .pull-quote { color: var(--ink-000); border-color: var(--ink-000); }
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: var(--space-3);
  font-style: normal;
}

/* ---------- 13. Capability bento --------------------------------------- */
.cap-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.cap-card:hover { border-color: var(--rule-lime); background: var(--ink-elev); }
.cap-card .label { color: var(--fg-mute); }
.cap-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}
.cap-card p { color: var(--fg-soft); }
.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.cap-card--wide { grid-column: span 6; }
.cap-card--std  { grid-column: span 3; }
.cap-card--tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; }
.cap-card--tall img { width: 100%; height: 100%; object-fit: cover; }
.cap-card--tall .cap-tall-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(10,10,12,0.85));
  color: var(--paper);
}
.cap-card--tall { position: relative; }

/* ---------- 14. Process / numbered steps ------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
.process-card {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--lime);
}
.process-card h3 { font-size: var(--text-lg); text-transform: uppercase; }
.process-card p { color: var(--fg-soft); font-size: var(--text-base); }

/* ---------- 15. Split-image chapter ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-9);
}
.split--reverse .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: var(--space-5); }
.split-text h2 { font-size: var(--text-3xl); line-height: 1.22; text-transform: uppercase; }
.split-text p { color: var(--fg-soft); font-size: var(--text-base); line-height: 1.6; }
.tile-section .split-text p { color: #2A2A28; }
.split-fact-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.tile-section .split-fact-list { border-top-color: rgba(10,10,12,0.15); }
.split-fact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}
.tile-section .split-fact-list li { border-bottom-color: rgba(10,10,12,0.15); }
.split-fact-list li b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.tile-section .split-fact-list li b { color: var(--fg-on-tile-mute); }
.split-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img .ft-corner {
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--lime);
  color: var(--ink-000);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 16. Press / logo strip ------------------------------------- */
.press-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-7);
  border-block: 1px solid var(--rule);
}
.press-strip .label { font-size: var(--text-xs); }
.press-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.press-row span { white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.press-row span:hover { color: var(--fg); }

/* ---------- 17. Pricing / service tiers --------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tier-card.featured {
  background: var(--paper-tile);
  color: var(--ink-000);
  border-color: var(--paper-tile);
  box-shadow: var(--shadow-lime);
}
.tier-card.featured .label,
.tier-card.featured .tier-meta,
.tier-card.featured .tier-list li,
.tier-card.featured p { color: #2A2A28; }
.tier-card.featured .label { color: var(--fg-on-tile-mute); }
.tier-card.featured .tier-list li::before { background: var(--ink-000); }
.tier-card.featured h3 { color: var(--ink-000); }
.tier-card .label { color: var(--fg-mute); }
.tier-card h3 { font-size: var(--text-2xl); text-transform: uppercase; }
.tier-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}
.tier-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.tier-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-soft);
}
.tier-list li::before {
  content: '';
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-card.featured .tier-list li { color: #2A2A28; }
.tier-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-3);
}
.tier-card.featured .tier-divider { border-top-color: rgba(10,10,12,0.15); }

/* ---------- 18. Forms --------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-row--full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--ink-000);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  font-family: var(--font-body);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-deep); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--lime);
  background: var(--ink-elev);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.form-actions small {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ---------- 19. FAQ ----------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}
.faq-card h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.faq-card p { color: var(--fg-soft); font-size: var(--text-sm); }

/* ---------- 20. Journal / notes grid ----------------------------------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}
.journal-card .j-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.journal-card .j-img img { width: 100%; height: 100%; object-fit: cover; }
.journal-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}
.journal-card .j-meta {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 21. Awards strip ------------------------------------------- */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}
.award-cell {
  padding: var(--space-6) var(--space-4);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}
.award-cell:last-child { border-inline-end: 0; }
.award-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--lime);
}
.award-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 22. Team grid ---------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.team-card { display: flex; flex-direction: column; gap: var(--space-3); }
.team-card .t-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-card);
}
.team-card .t-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transition: filter var(--dur-base) var(--ease-out); }
.team-card:hover .t-img img { filter: grayscale(0); }
.team-card h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.team-card .t-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 23. Contact channels bento --------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.channel-card .label { color: var(--lime); }
.channel-card h3 { font-size: var(--text-xl); text-transform: uppercase; }
.channel-card p { color: var(--fg-soft); font-size: var(--text-sm); }
.channel-card .channel-line {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg);
  letter-spacing: 0.04em;
}
.channel-card a.channel-line:hover { color: var(--lime); }

/* ---------- 24. Closing CTA -------------------------------------------- */
.closing-cta {
  background: var(--lime);
  color: var(--ink-000);
  padding-block: var(--space-9);
}
.closing-cta .container { display: grid; gap: var(--space-6); }
.closing-cta h2 {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  color: var(--ink-000);
  max-width: 22ch;
}
.closing-cta .lede { color: rgba(10,10,12,0.75); max-width: 52ch; }
.closing-cta .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.closing-cta .btn--dark { background: var(--ink-000); color: var(--lime); }
.closing-cta .btn--dark:hover { background: var(--ink-elev); }
.closing-cta .btn--ghost {
  background: transparent;
  border-color: rgba(10,10,12,0.4);
  color: var(--ink-000);
}
.closing-cta .btn--ghost:hover { background: var(--ink-000); color: var(--lime); border-color: var(--ink-000); }

/* ---------- 25. Footer -------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--rule);
}
.footer-top h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-top ul a { color: var(--fg-soft); font-size: var(--text-sm); }
.footer-top ul a:hover { color: var(--lime); }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand .brand { font-size: var(--text-2xl); text-transform: uppercase; }
.footer-brand p { color: var(--fg-soft); font-size: var(--text-sm); max-width: 32ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom .footer-meta-links { display: flex; gap: var(--space-5); }
.footer-bottom a:hover { color: var(--lime); }

/* ---------- 26. Misc helpers ------------------------------------------- */
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.hidden  { display: none; }
.lime-text { color: var(--lime); }


/* ---------- 27. Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 28. Responsive --------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-media { max-width: 100%; aspect-ratio: 4 / 3; justify-self: stretch; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-inline-end: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-item--xl, .work-item--lg { grid-column: span 6; }
  .work-item--md, .work-item--sm { grid-column: span 3; }
  .cap-bento { grid-template-columns: repeat(6, 1fr); }
  .cap-card--wide, .cap-card--tall { grid-column: span 6; }
  .cap-card--std { grid-column: span 3; }
  .cap-card--tall { grid-row: auto; aspect-ratio: 16 / 10; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-text { order: initial; }
  .press-strip { grid-template-columns: 1fr; gap: var(--space-4); }
  .tier-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr; }
  .awards-strip { grid-template-columns: repeat(2, 1fr); }
  .award-cell:nth-child(2) { border-inline-end: 0; }
  .award-cell:nth-child(1), .award-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .chapter-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .faq-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   WORK SHOWCASE — bento grid with hover backdrop reveal
   ============================================================ */
.work-showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: var(--space-4);
}

.showcase-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out);
}
.showcase-card:hover { border-color: var(--rule-strong); }

/* Image */
.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85) saturate(0.95);
  transition: transform 900ms var(--ease-out), filter 500ms var(--ease-out);
}
.showcase-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(0.9);
}

/* Pills (always visible) */
.showcase-pill {
  position: absolute;
  z-index: 3;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.showcase-pill--live,
.showcase-pill--beta,
.showcase-pill--dev {
  top: 14px;
  left: 14px;
  background: var(--lime);
  color: var(--ink-000);
  font-weight: 500;
}
.showcase-pill--beta {
  background: var(--lime-soft);
  color: var(--ink-000);
}
.showcase-pill--dev {
  background: var(--ink-000);
  color: var(--lime);
  border: 1px solid var(--rule-strong);
}
.showcase-pill--category {
  top: 14px;
  right: 14px;
  background: rgba(5, 5, 7, 0.65);
  color: var(--fg-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 244, 240, 0.12);
}

/* Reveal panel — the "backdrop" */
.showcase-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  z-index: 2;
  opacity: 0;
  transition: opacity 450ms var(--ease-out);
  pointer-events: none;
}
.showcase-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 7, 0.10) 0%,
    rgba(5, 5, 7, 0.55) 45%,
    rgba(5, 5, 7, 0.92) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
}
.showcase-card:hover .showcase-reveal { opacity: 1; }

.showcase-reveal > * {
  transform: translateY(18px);
  transition: transform 550ms var(--ease-out), opacity 500ms var(--ease-out);
  opacity: 0;
}
.showcase-card:hover .showcase-reveal > * {
  transform: translateY(0);
  opacity: 1;
}
.showcase-card:hover .showcase-reveal > *:nth-child(1) { transition-delay: 0ms; }
.showcase-card:hover .showcase-reveal > *:nth-child(2) { transition-delay: 90ms; }
.showcase-card:hover .showcase-reveal > *:nth-child(3) { transition-delay: 180ms; }

.showcase-reveal h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 var(--space-3);
}

.showcase-reveal p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

.showcase-reveal .sc-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.showcase-reveal .sc-arrow svg {
  transition: transform var(--dur-fast) var(--ease-out);
}
.showcase-card:hover .sc-arrow svg {
  transform: translate(2px, -2px);
}

/* Feature vs standard cell sizing */
.showcase-card--feature {
  grid-column: span 7;
  grid-row: span 2;
}
.showcase-card--feature .showcase-reveal h3 { font-size: var(--text-3xl); }
.showcase-card--feature .showcase-reveal p { font-size: var(--text-base); }

.showcase-card--std  { grid-column: span 5; grid-row: span 1; }
.showcase-card--half { grid-column: span 6; grid-row: span 1; }

/* Touch devices: hover isn't available, so keep reveal visible */
@media (hover: none) {
  .showcase-card img { filter: brightness(0.55) saturate(0.9); }
  .showcase-reveal { opacity: 1; }
  .showcase-reveal > * { transform: none; opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase-card--feature { grid-column: span 12; grid-row: span 2; }
  .showcase-card--std     { grid-column: span 6;  grid-row: span 1; }
  .showcase-card--half    { grid-column: span 6;  grid-row: span 1; }
}
@media (max-width: 720px) {
  .showcase-card--feature,
  .showcase-card--std,
  .showcase-card--half {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 320px;
  }
  .showcase-reveal { padding: var(--space-5); }
  .showcase-reveal h3 { font-size: var(--text-xl); }
  .showcase-reveal p { font-size: var(--text-sm); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .stat-cell:last-child { border-bottom: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--xl, .work-item--lg, .work-item--md, .work-item--sm { grid-column: span 1; }
  .cap-bento { grid-template-columns: 1fr; }
  .cap-card--wide, .cap-card--std, .cap-card--tall { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .awards-strip { grid-template-columns: 1fr; }
  .award-cell { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .award-cell:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-headline { font-size: var(--text-4xl); }
  .closing-cta h2 { font-size: var(--text-4xl); }
}
