/* =========================================================================
   Alternatives Productions — site.css
   Layers: tokens · reset · type · layout · components · pages · motion · a11y
   ========================================================================= */

/* -------------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Marathon / Riot / RENEGADE-mockup DNA — deep black, bold red, red glow */
  --bg-deep:    #04050A;
  --bg-elev:    #0B0E15;
  --bg-elev-2:  #11151F;
  --ink:        #ECE8DE;   /* cream — warm light tone used everywhere (was cool white #EDEDEA) */
  --ink-mute:   #8A8A86;
  --ink-faint:  #5C5C58;

  /* Red — primary accent. Use with glow on shield cards / CTAs. */
  --accent-red:      #E0252C;
  --accent-red-deep: #8A1218;
  --accent-red-soft: rgba(224,37,44,0.18);
  --accent-red-glow: 0 0 18px rgba(224,37,44,0.55), 0 0 42px rgba(224,37,44,0.25);

  /* Secondary-accent slots — formerly electric blue, now aliased to the brand red
     so tech readouts / registration marks read in the studio's classic red. */
  --accent-blue:      var(--accent-red);
  --accent-blue-soft: var(--accent-red-soft);
  --accent-blue-glow: var(--accent-red-glow);

  /* Tech-readout / metadata utility */
  --tech-orange: #FF6A1A; /* sparingly — Joseph Cross accent */
  --metal:       #B8B2A7;
  --hair:        rgba(237,237,234,0.08);
  --hair-strong: rgba(237,237,234,0.16);
  --grid-dot:    rgba(237,237,234,0.06);

  /* Bone — light color-block sections (Marathon home redesign rhythm).
     Used as a bold light beat against the dark base. */
  --bone:        #ECE8DE;
  --bone-ink:    #0E0E0C;
  --bone-mute:   rgba(14,14,12,0.62);
  --bone-faint:  rgba(14,14,12,0.55);
  --bone-hair:   rgba(14,14,12,0.20);

  /* Geist (variable, up to 900) drives display + sub-headings; Space Grotesk
     (variable, 300–700) drives body + UI. Orbitron is reserved for
     tech-readout moments only (tags, timestamps, IDs). */
  --ff-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-sub:     'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-ui:      'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono:    'Orbitron', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero:    clamp(3rem, 8vw, 7rem);
  --fs-h1:      clamp(2rem, 4.5vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3:      1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-body:  1.6;

  --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: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --maxw-prose: 60ch;
  --maxw-page:  1440px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);

  --ease-cinema: cubic-bezier(0.16, 0.84, 0.32, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   720ms;

  --z-base:    1;
  --z-nav:     50;
  --z-overlay: 100;
  --z-modal:   200;
}

/* -------------------------------------------------------------------------
   FONT FACES — point to assets/fonts after WOFF2 conversion
   ------------------------------------------------------------------------- */
/* Geist — variable weight font (100–900). Drives display + sub-headings,
   used at 900 (hero/h1), 700 (h2/sub). Single file covers the full range. */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Space Grotesk — variable weight font (300–700). Drives body + UI,
   used at 300 (body) and 700 (nav/buttons/labels). */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Orbitron — Google Fonts (SIL OFL). Used sparingly for tech-readouts. */
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* -------------------------------------------------------------------------
   BASE
   ------------------------------------------------------------------------- */
html, body { background: var(--bg-deep); color: var(--ink); }
body {
  font-family: var(--ff-ui);
  font-weight: 300;                /* Space Grotesk 300 for body text */
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* -------------------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------------------- */
.h-hero {
  font-family: var(--ff-display);
  font-weight: 900;                /* Geist Black */
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.h-1 {
  font-family: var(--ff-display);
  font-weight: 900;                /* Geist Black */
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h-2 {
  font-family: var(--ff-sub);
  font-weight: 700;                /* Geist 700 */
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.h-3 {
  font-family: var(--ff-ui);
  font-weight: 700;                /* Space Grotesk 700 for H3 to keep contrast */
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-red);
}
.lead { font-size: 1.125rem; color: var(--ink); max-width: var(--maxw-prose); }
.muted { color: var(--ink-mute); }
.prose p { max-width: var(--maxw-prose); }
.prose p + p { margin-top: var(--space-5); }

/* -------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-10);
}
.section--tight { padding-block: var(--space-8); }
/* Full-viewport block — fills 100% of the viewport height with content
   anchored to the lower third (loading-screen rhythm, same as the hero).
   Used on the home page to give every block the same cinematic full-frame impact. */
/* Section variant for the home page — content sized, packs tight without
   the empty-space gap that `min-height: 100svh` would force. Still pins
   the inner wrap to the left edge to match the hero's anchored writing. */
.section--full {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section--full > .wrap {
  margin-inline: auto;
}
/* Rhythm modifiers for the home page — let key beats breathe more / less. */
.section--pad-lg { padding-block: clamp(5rem, 10vw, 9rem); }
.section--pad-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}
.stack > * + * { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-7); }
.grid-2 { display: grid; gap: var(--space-6); }
.grid-3 { display: grid; gap: var(--space-6); }
.grid-4 { display: grid; gap: var(--space-5); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.hairline { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* -------------------------------------------------------------------------
   GRAIN OVERLAY (global)
   ------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* -------------------------------------------------------------------------
   NAV
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding: var(--space-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(7,8,11,0.85), rgba(7,8,11,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur-base) var(--ease-cinema);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--ff-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: var(--ff-display);
}
.nav__links {
  display: none;
  gap: var(--space-6);
  align-items: center;
}
.nav__links a {
  font-family: var(--ff-ui);
  font-weight: 700;                /* Space Grotesk 700 for nav links */
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
  padding-block: var(--space-2);
  transition: color var(--dur-fast) var(--ease-cinema);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent-red);
}
.nav__toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-strong);
  background: var(--bg-elev);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }
@media (min-width: 900px) {
  .nav__links { display: inline-flex; }
  .nav__toggle { display: none; }
}
.nav--scrolled { background: var(--bg-deep); border-bottom: 1px solid var(--hair); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: calc(var(--z-nav) - 1);
  padding: var(--space-10) var(--gutter) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-cinema);
}
.drawer[aria-hidden="false"] { transform: translateY(0); }
.drawer a {
  font-family: var(--ff-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--hair);
  padding-block: var(--space-4);
}
@media (min-width: 900px) { .drawer { display: none; } }

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-family: var(--ff-ui);
  font-weight: 700;                /* Space Grotesk 700 for buttons */
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-cinema),
              color var(--dur-fast) var(--ease-cinema),
              border-color var(--dur-fast) var(--ease-cinema);
  position: relative;
}
.btn:hover { background: var(--ink); color: var(--bg-deep); }
.btn--primary {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
.btn--primary:hover { background: var(--ink); color: var(--bg-deep); border-color: var(--ink); }
.btn--ghost { border-color: var(--hair-strong); color: var(--ink-mute); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn__icon { width: 10px; height: 10px; display: inline-block; }
.btn--play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

/* -------------------------------------------------------------------------
   CORNER SIGILS (decorative)
   ------------------------------------------------------------------------- */
.sigil-frame {
  position: relative;
}
.sigil-frame::before,
.sigil-frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent-red);
  opacity: 0.6;
}
.sigil-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.sigil-frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-deep) center/cover no-repeat;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Light wash at top, transparent through the upper-two-thirds, deep at the
     bottom so the lower-third overlay (headline + CTAs) stays legible. */
  background: linear-gradient(180deg,
    rgba(4,5,10,0.35) 0%,
    rgba(4,5,10,0.05) 25%,
    rgba(4,5,10,0.0) 45%,
    rgba(4,5,10,0.85) 85%,
    rgba(4,5,10,0.98) 100%);
  z-index: -1;
}
.hero__content { max-width: 900px; }
/* Pin the hero content stack to the left edge of the viewport (within the
   page gutter) instead of centering it inside the wrap. Reads as a
   loading-screen UI element anchored to the lower-left rather than a
   balanced editorial layout. */
.section--hero > .hero__content {
  margin-left: 0;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.hero__meta {
  position: absolute;
  bottom: var(--space-5);
  right: var(--gutter);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------------
   PROJECT CARDS
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  transition: border-color var(--dur-base) var(--ease-cinema),
              transform var(--dur-slow) var(--ease-cinema);
}
.card:hover { border-color: var(--accent-red-soft); }
.card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease-cinema), opacity var(--dur-base) var(--ease-cinema);
  opacity: 0.92;
}
.card:hover .card__media img { transform: scale(1.04); opacity: 1; }
.card__body {
  padding: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  border-top: 1px solid var(--hair);
}
.card__num {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}
.card__title {
  font-family: var(--ff-sub);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card__tag {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-red);
  border: 1px solid var(--accent-red-soft);
  padding: var(--space-1) var(--space-3);
}

/* Selected work strip on home */
.work-strip { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .work-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* -------------------------------------------------------------------------
   SERVICES
   ------------------------------------------------------------------------- */
.service {
  padding: var(--space-6);
  border: 1px solid var(--hair);
  background: var(--bg-elev);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-base) var(--ease-cinema);
}
.service:hover { border-color: var(--accent-red-soft); }
.service__num {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--accent-red);
}
.service__title {
  font-family: var(--ff-sub);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.service__best {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hair);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* -------------------------------------------------------------------------
   FORMS
   ------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--ff-ui);
  font-weight: 700;                /* Space Grotesk 700 for form labels */
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field select,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  padding: var(--space-3) var(--space-4);
  font-family: var(--ff-ui);
  transition: border-color var(--dur-fast) var(--ease-cinema);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}
.field textarea { min-height: 160px; resize: vertical; }
.field--row { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__status {
  min-height: 1.5rem;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form__status--ok    { color: var(--metal); }
.form__status--error { color: var(--accent-red); }

/* -------------------------------------------------------------------------
   REEL MODAL
   ------------------------------------------------------------------------- */
.reel {
  position: fixed;
  inset: 0;
  background: rgba(7,8,11,0.96);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.reel[aria-hidden="false"] { display: flex; }
.reel__frame {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16/9;
  position: relative;
  background: black;
  border: 1px solid var(--hair-strong);
}
.reel__frame video,
.reel__frame iframe { width: 100%; height: 100%; border: 0; }

/* Lightbox variant — sizes to the image's natural aspect ratio. */
.reel--image .reel__frame {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.reel--image .reel__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--hair-strong);
}
.reel__close {
  position: absolute;
  top: var(--space-5);
  right: var(--gutter);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hair-strong);
}
.reel__close:hover { color: var(--ink); }

/* -------------------------------------------------------------------------
   PROJECT DETAIL
   ------------------------------------------------------------------------- */
.project-hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-8);
}
.project-meta {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-8);
  padding-block: var(--space-6);
  border-block: 1px solid var(--hair);
}
@media (min-width: 800px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta dt {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--space-2);
}
.project-meta dd {
  font-family: var(--ff-sub);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stills { display: grid; gap: var(--space-5); }
.stills img { width: 100%; height: auto; }

.project-nav {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr 1fr;
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hair);
}
.project-nav a { display: block; }
.project-nav__dir {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--space-2);
}
.project-nav a:last-child { text-align: right; }

/* -------------------------------------------------------------------------
   PROJECTS INDEX — filters
   ------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.filter {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--hair-strong);
  color: var(--ink-mute);
  background: transparent;
  cursor: pointer;
}
.filter[aria-pressed="true"] { color: var(--ink); border-color: var(--accent-red); }
.filter:hover { color: var(--ink); }
.projects-grid { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
.is-hidden { display: none !important; }

/* -------------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------------- */
.bio { display: grid; gap: var(--space-5); }
.bio__portrait {
  aspect-ratio: 4/5;
  background: var(--bg-elev-2);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio__role {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
}
.bio__name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: flex-start;
}
.logos img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-cinema);
}
.logos img:hover { opacity: 1; }
/* Per-logo modifier: flips a dark-on-transparent logo (e.g. ARTFX Black)
   to white so it reads on the deep page background. */
.logos img.logos__invert { filter: brightness(0) invert(1); }
.logos img.logos__invert:hover { filter: brightness(0) invert(1); }

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hair);
  padding-block: var(--space-7);
}
.footer > .wrap {
  margin-left: 0;
  margin-right: auto;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
}
.footer__row + .footer__row { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hair); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-family: var(--ff-ui); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: none; }

/* -------------------------------------------------------------------------
   MOTION (reveals) — respects reduced motion
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-cinema),
              transform var(--dur-slow) var(--ease-cinema);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------
   PRINT — preserve dark cinematic look + force reveal animations to be in
   the "shown" state so headless PDF export captures the full page.
   Landscape A4 with zero page margin so the dark background fills the page.
   ------------------------------------------------------------------------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body {
    background: var(--bg-deep) !important;
    color: var(--ink) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .drawer, .grain, .reel { display: none !important; }
  .footer { min-height: auto !important; }
  /* Avoid awkward breaks inside service cards / project cards */
  .service, .card, .bio, .character-card { break-inside: avoid; }
  /* Tighten the top of the page now that the fixed nav is hidden */
  main > .section:first-child { padding-top: var(--space-5) !important; }
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  background: var(--accent-red); color: var(--ink);
  padding: var(--space-3) var(--space-5);
  z-index: 9999;
}
.skip-link:focus { top: var(--space-3); }

/* =========================================================================
   v2 — Marathon / Riot / RENEGADE-mockup DNA layer
   Added without disturbing v1 styles above. New utilities + variants only.
   ========================================================================= */

/* ---- Tech-readout label (ID / SN / MOD style metadata) ---------------- */
.readout {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-4);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.readout dt { color: var(--ink-faint); }
.readout dd { color: var(--ink); margin: 0; }
.readout--blue dt { color: var(--accent-blue); }
.readout--red  dt { color: var(--accent-red); }

/* Inline tech tag — e.g. <span class="tag-tech">ID-P · S9 K9 Y3</span> */
.tag-tech {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 2px var(--space-3);
  border: 1px solid var(--hair-strong);
  color: var(--ink-mute);
  background: rgba(11,14,21,0.6);
}
.tag-tech--red  { color: var(--accent-red);  border-color: var(--accent-red-soft); }
.tag-tech--blue { color: var(--accent-blue); border-color: var(--accent-blue-soft); }

/* ---- Registration marks / crosshair decorations ----------------------- */
.reg-mark {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
  color: var(--accent-blue);
}
.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.reg-mark::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.reg-mark::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.reg-mark--red { color: var(--accent-red); }

/* Dotted-grid backdrop utility (subtle) */
.grid-dots {
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Glow button variant ---------------------------------------------- */
.btn--glow {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: var(--accent-red-glow);
}
.btn--glow:hover {
  background: var(--ink);
  color: var(--bg-deep);
  border-color: var(--ink);
  box-shadow: none;
}

/* ---- Shield card (RENEGADE-style angular card) ----------------------- */
/* Angular clipped corners on top and bottom, red micro-glow at the base. */
.card--shield {
  position: relative;
  border: 1px solid var(--hair-strong);
  background:
    linear-gradient(180deg, rgba(11,14,21,0.95) 0%, rgba(4,5,10,1) 100%);
  clip-path: polygon(
    16px 0, calc(100% - 16px) 0, 100% 16px,
    100% calc(100% - 28px), calc(100% - 28px) 100%,
    28px 100%, 0 calc(100% - 28px), 0 16px
  );
  padding: var(--space-5);
  transition: transform var(--dur-base) var(--ease-cinema);
}
.card--shield::after {
  /* red base glow */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224,37,44,0.65), transparent 70%);
  pointer-events: none;
}
.card--shield:hover { transform: translateY(-2px); }
.card--shield .card__title { color: var(--accent-red); text-shadow: 0 0 12px rgba(224,37,44,0.45); }

/* ---- Character card (large hero portrait, RENEGADE) ------------------ */
.character-card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  padding: var(--space-6) var(--space-5) var(--space-7);
  border: 1px solid var(--hair-strong);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(224,37,44,0.18), transparent 60%),
    linear-gradient(180deg, rgba(11,14,21,0.95), rgba(4,5,10,1));
  clip-path: polygon(
    24px 0, calc(100% - 24px) 0, 100% 24px,
    100% calc(100% - 44px), 50% 100%, 0 calc(100% - 44px), 0 24px
  );
  isolation: isolate;
}
.character-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-red);
  text-shadow: 0 0 14px rgba(224,37,44,0.5);
}
.character-card__sub {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.character-card__media {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.character-card__media img { width: 100%; height: 100%; object-fit: cover; }
.character-card__crest {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--accent-red);
  background: rgba(224,37,44,0.12);
  border: 1px solid var(--accent-red);
  box-shadow: var(--accent-red-glow);
}

/* ---- Project detail layout (nobody-studio: sticky left, scroll right) - */
.project-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .project-layout {
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: var(--space-9);
    align-items: start;
  }
}
@media (min-width: 1400px) {
  .project-layout {
    grid-template-columns: minmax(380px, 520px) 1fr;
    gap: var(--space-10);
  }
}
.project-layout__aside {
  position: relative;
  padding: var(--space-6);
  background:
    radial-gradient(ellipse at top left, rgba(224,37,44,0.22), transparent 55%),
    radial-gradient(ellipse 110% 90% at 50% 40%, rgba(11,14,21,0.85), rgba(11,14,21,0.25) 70%, transparent 100%);
  border: 0;
}
@media (min-width: 1000px) {
  .project-layout__aside { position: sticky; top: 96px; }
}
.project-layout__media {
  display: grid;
  gap: var(--space-5);
}
.project-layout__media img,
.project-layout__media video {
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
}
.project-layout__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.project-layout__desc {
  color: var(--ink-mute);
  margin-bottom: var(--space-6);
  max-width: 44ch;
}
.project-layout__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.project-layout__links a {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  border-bottom: 1px dashed var(--accent-blue-soft);
  align-self: flex-start;
  padding-bottom: 2px;
}
.project-layout__links a:hover { color: var(--ink); border-color: var(--ink); }

/* Red variant — used when the aside has the red radial glow */
.project-layout__links--red a {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red-soft);
}
.project-layout__links--red a:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Gallery card (Projects index, nobody-studio gallery feel) -------- */
/* Original 2-col grid (used on Home "Selected work") */
.gallery {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px){ .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery .card {
  background: transparent;
  border: 0;
}
.gallery .card__media {
  border: 1px solid var(--hair);
  position: relative;
}
.gallery .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(4,5,10,0.85) 100%);
  pointer-events: none;
}
.gallery .card__body {
  padding: var(--space-3) 0 0;
  border-top: 0;
}
.gallery .card__tag { color: var(--accent-blue); border-color: var(--accent-blue-soft); }

/* Full-bleed cover gallery — first project full-width, rest in 2-per-row grid.
   Text overlaid on the image (nobody-studio /projects model). */
.gallery--cover {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.gallery--cover .card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 45vh;
  min-height: 320px;
  background: var(--bg-elev-2);
  border: 0;
  isolation: isolate;
}
@media (min-width: 800px) {
  .gallery--cover { grid-template-columns: 1fr 1fr; }
  /* First card spans both columns — full width, but same height as the rest. */
  .gallery--cover .card:first-child { grid-column: 1 / -1; }
  /* Last card spans full width if it would be alone in its row
     (i.e. the total card count is even, so after the first-child takes
     a full row the remaining count is odd → orphan at the end). */
  .gallery--cover .card:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .gallery--cover .card { height: 56vh; min-height: 420px; }
}
.gallery--cover .card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  height: 100%;
  border: 0;
  z-index: -1;
}
.gallery--cover .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity var(--dur-base) var(--ease-cinema),
              transform 1800ms var(--ease-cinema);
}
.gallery--cover .card:hover .card__media img {
  opacity: 1;
  transform: scale(1.04);
}
.gallery--cover .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,5,10,0.0) 40%, rgba(4,5,10,0.85) 100%),
    linear-gradient(90deg, rgba(4,5,10,0.4) 0%, rgba(4,5,10,0.0) 50%);
  pointer-events: none;
}
.gallery--cover .card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-7) var(--gutter) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  border-top: 0;
  color: var(--ink);
}
.gallery--cover .card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.gallery--cover .card__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.gallery--cover .card:hover .card__title { color: var(--accent-red); text-shadow: 0 0 18px rgba(224,37,44,0.45); }
.gallery--cover .card__meta {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* Premium single-column stack (nobody-studio Projects page model) */
.gallery--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  grid-template-columns: none;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery--stack .card {
  display: grid;
  gap: var(--space-5);
  background: transparent;
  border: 0;
}
.gallery--stack .card__media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.gallery--stack .card__media img {
  transition: transform 1400ms var(--ease-cinema), opacity var(--dur-base) var(--ease-cinema);
}
.gallery--stack .card:hover .card__media img { transform: scale(1.03); opacity: 1; }
.gallery--stack .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,5,10,0.85) 100%);
  pointer-events: none;
}
.gallery--stack .card__body {
  padding: 0;
  border-top: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr auto;
  align-items: end;
}
.gallery--stack .card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.gallery--stack .card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.gallery--stack .card__meta {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.gallery--stack .card:hover .card__title { color: var(--accent-red); text-shadow: 0 0 12px rgba(224,37,44,0.35); }

/* ---- Hydrastudios-style client/experience strip ---------------------- */
.experience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7) var(--space-9);
  align-items: center;
  padding: var(--space-6) 0;
  border-block: 1px solid var(--hair);
}
.experience-strip__label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.experience-strip__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  flex: 1 1 auto;
}
.experience-strip__logos img {
  height: 22px; width: auto;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-cinema);
}
.experience-strip__logos img:hover { opacity: 1; }

/* ---- Section eyebrow with reg-mark + version stamp -------------------- */
.eyebrow--tech::before {
  /* override v1's red bar with a tiny crosshair */
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  color: var(--accent-blue);
}

/* Slight glow on hero red CTA */
.section--hero .btn--primary { box-shadow: var(--accent-red-glow); }
.section--hero .btn--primary:hover { box-shadow: none; }

/* ---- Bio shield — pre-designed portrait card used in the side-by-side bios */
.bio__shield {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
}
/* Make the side-by-side bio cards align their internal content vertically:
   shields at the top (same height) → name at the same Y → description at
   the same Y → tags pushed to the bottom of the card. */
.bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.bio > div:last-child { margin-top: auto; }

/* ---- About bios framed in the hairline grid (matches duo / services) -- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-strong);
  border: 1px solid var(--hair-strong);
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
}
@media (min-width: 760px) { .bio-grid { grid-template-columns: 1fr 1fr; } }
.bio-grid .bio {
  background: var(--bg-deep);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

/* ---- Bio demoreel — thumbnail tile with play icon overlay ----------- */
.bio__reel {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hair);
  background: var(--bg-elev-2);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.bio__reel img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--dur-base) var(--ease-cinema),
              transform 1400ms var(--ease-cinema);
}
.bio__reel:hover img { opacity: 1; transform: scale(1.04); }
.bio__reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,5,10,0.0) 40%, rgba(4,5,10,0.65) 100%);
  pointer-events: none;
}
.bio__reel__overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}
.bio__reel__icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  color: var(--ink);
  background: var(--accent-red);
  box-shadow: var(--accent-red-glow);
  transition: background var(--dur-fast) var(--ease-cinema),
              color var(--dur-fast) var(--ease-cinema),
              transform var(--dur-fast) var(--ease-cinema),
              box-shadow var(--dur-fast) var(--ease-cinema);
}
.bio__reel:hover .bio__reel__icon {
  background: var(--ink);
  color: var(--bg-deep);
  transform: scale(1.05);
  box-shadow: none;
}
.bio__reel__label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Featured media (hero video tile + featured still) ---------------
   Used on project detail pages to elevate the lead visuals above the
   smaller breakdown grid. Adds a soft outer shadow and a 1px red micro-line
   so the eye registers them as "headline content". */
.project-layout__media > .project-hero-tile,
.media-featured {
  box-shadow:
    0 0 0 1px rgba(224,37,44,0.22),
    0 28px 64px rgba(4,5,10,0.7);
}
.media-featured {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* ---- Breakdown grid — smaller, multi-column, demoted from hero ------- */
.breakdown-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}
@media (min-width: 700px)  { .breakdown-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .breakdown-grid { grid-template-columns: repeat(3, 1fr); } }
.breakdown-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--hair);
  opacity: 0.78;
  transition: opacity var(--dur-fast) var(--ease-cinema),
              border-color var(--dur-fast) var(--ease-cinema);
}
.breakdown-grid img:hover {
  opacity: 1;
  border-color: var(--accent-red-soft);
}

/* ---- Project hero tile (clickable thumbnail with YouTube-style play) -- */
.project-hero-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hair);
  background: var(--bg-elev-2);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.project-hero-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1200ms var(--ease-cinema), opacity var(--dur-base) var(--ease-cinema);
  opacity: 0.92;
}
.project-hero-tile:hover img { transform: scale(1.03); opacity: 1; }
.project-hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,5,10,0.0) 40%, rgba(4,5,10,0.7) 100%);
  pointer-events: none;
}
.project-hero-tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-red);
  color: var(--ink);
  box-shadow: var(--accent-red-glow);
  transition: background var(--dur-fast) var(--ease-cinema),
              color var(--dur-fast) var(--ease-cinema),
              box-shadow var(--dur-fast) var(--ease-cinema);
}
.project-hero-tile:hover .project-hero-tile__play {
  background: var(--ink);
  color: var(--bg-deep);
  box-shadow: none;
}
.project-hero-tile__triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.project-hero-tile__label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================================
   v3 — Home elevation layer
   Credits wall · angular CTA panel · service corner-ticks · scroll cue
   ========================================================================= */

/* ---- Credits / experience wall (type-based, no logo files needed) ----- */
.credits {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.credit-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
}
.credit-wall span {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 2.3vw, 1.85rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color var(--dur-fast) var(--ease-cinema);
  white-space: nowrap;
}
.credit-wall span:hover { color: var(--ink); }

/* ---- Service card corner-tick accent (Marathon registration detail) --- */
.service.sigil-frame::before,
.service.sigil-frame::after {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-cinema);
}
.service.sigil-frame:hover::before,
.service.sigil-frame:hover::after { opacity: 0.8; }

/* ---- Angular CTA panel (the bold close on the home page) --------------- */
.cta-panel {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(224,37,44,0.28), transparent 62%),
    linear-gradient(180deg, rgba(11,14,21,0.96), rgba(4,5,10,1));
  border: 1px solid var(--hair-strong);
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - 34px), calc(100% - 34px) 100%,
    34px 100%, 0 calc(100% - 34px)
  );
  overflow: hidden;
  isolation: isolate;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: clamp(140px, 45%, 460px);
  height: 2px;
  background: var(--accent-red);
  box-shadow: var(--accent-red-glow);
  z-index: 0;
}
.cta-panel .h-1 { margin-inline: auto; }
.cta-panel .lead { margin-inline: auto; }

/* ---- Scroll cue under the hero ---------------------------------------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent-red), transparent);
  animation: scroll-cue-pulse 2.4s var(--ease-cinema) infinite;
}
@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

/* ---- Featured video framing (Protocol section) ------------------------ */
.video-frame {
  position: relative;
  width: 100%;
  display: block;
  border: 1px solid var(--hair-strong);
  box-shadow:
    0 0 0 1px rgba(224,37,44,0.18),
    0 28px 64px rgba(4,5,10,0.7);
  overflow: hidden;
  isolation: isolate;
}
.video-frame video { width: 100%; height: auto; display: block; }

/* Two-column home blocks collapse cleanly on small screens */
@media (max-width: 820px) {
  .home-split { grid-template-columns: 1fr !important; gap: var(--space-7) !important; }
}

/* =========================================================================
   MARATHON HOME REDESIGN PORT
   Two home blocks ported from the bone-and-black redesign handoff:
   the Manifest as a light bone color-block, and the Services as a black
   hairline grid whose cells invert to solid red on hover. Existing fonts
   (Geist / Space Grotesk / Orbitron) and copy are kept verbatim — only the
   visual treatment changed.
   ========================================================================= */

/* Inline red accent word (e.g. "crafted", "production.") */
.accent { color: var(--accent-red); }

/* Section mark — oversized red index + mono "// label" HUD annotation */
.secmark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
}
.secmark__n {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-red);
}
.secmark__label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Bone color-block section (Manifest) ------------------------------ */
.section--bone {
  background: var(--bone);
  color: var(--bone-ink);
}
.section--bone .eyebrow { color: var(--bone-faint); }
.section--bone .secmark__label { color: var(--bone-faint); }
.section--bone .muted { color: var(--bone-mute); }

.manifest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

/* ---- Services hairline grid (red-invert hover) ------------------------ */
.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-strong);
  border: 1px solid var(--hair-strong);
}
@media (min-width: 680px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative;
  background: var(--bg-deep);
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: clamp(240px, 28vh, 300px);
  transition: background var(--dur-fast) var(--ease-cinema),
              color var(--dur-fast) var(--ease-cinema);
}
.svc:hover { background: var(--accent-red); color: var(--bone-ink); }
.svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.svc__n {
  font-family: var(--ff-mono);   /* Orbitron — tech readout */
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.svc__plus {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  color: var(--accent-red);
}
.svc__title {
  font-family: var(--ff-sub);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  min-height: 2.1em;   /* reserve 2 lines so every description starts at the same height */
}
.svc__desc {
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.svc:hover .svc__n,
.svc:hover .svc__title,
.svc:hover .svc__plus { color: var(--bone-ink); }
.svc:hover .svc__desc { color: rgba(14, 14, 12, 0.78); }

/* ---- Red color-block section (The Protocol) --------------------------- */
.section--red {
  background: var(--accent-red);
  color: var(--bone-ink);
}
.section--red .secmark__n { color: var(--bone-ink); }
.section--red .secmark__label { color: rgba(14, 14, 12, 0.6); }
.section--red .muted { color: rgba(14, 14, 12, 0.82); }
.section--red .eyebrow { color: rgba(14, 14, 12, 0.7); }
.section--red .eyebrow::before { background: var(--bone-ink); }
/* Tech-stack pills read crisper as solid chips on the red block */
.section--red .tag-tech {
  background: var(--bone-ink);
  border-color: rgba(14, 14, 12, 0.35);
  color: var(--bone);
}
.section--red .tag-tech--blue { color: var(--accent-red); }

/* Cream display word — "public." filled solid in the cream tone on red */
.text-cream { color: var(--bone); }

/* Dark button — for use on the red block */
.btn--dark {
  background: var(--bone-ink);
  border-color: var(--bone-ink);
  color: var(--bone);
}
.btn--dark:hover {
  background: transparent;
  color: var(--bone-ink);
  border-color: var(--bone-ink);
}

/* HUD registration chrome framing the showreel video */
.protocol__media { position: relative; }
.hud__tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--bone);
  z-index: 3;
  pointer-events: none;
}
.hud__tick--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud__tick--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hud__tick--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hud__tick--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.hud__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 232, 222, 0.9);
  pointer-events: none;
}
.hud__rec {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .hud__rec { animation: none; }
}

/* ---- Bone footer (ported from the redesign) --------------------------- */
.footer--bone {
  background: var(--bone);
  color: var(--bone-ink);
  border-top: 1.5px solid var(--bone-ink);
  padding-block: clamp(1.3rem, 2.4vw, 1.9rem);
}
.footer--bone .footer__row + .footer__row {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}
.footer--bone > .wrap { margin-inline: auto; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.footer__wm {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone-ink);
}
.footer--bone .footer__links { color: var(--bone-mute); }
.footer--bone .footer__links a { color: var(--bone-mute); }
.footer--bone .footer__links a:hover { color: var(--accent-red); }
.footer--bone .footer__row + .footer__row { border-top-color: var(--bone-hair); }
.footer--bone .footer__legal { color: var(--bone-faint); }

/* ---- The Duo — bone block, hairline cards inverting to black --------- */
.duo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.duo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-strong);
  border: 1px solid var(--hair-strong);
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
}
@media (min-width: 760px) { .duo__grid { grid-template-columns: 1fr 1fr; } }
.duo__card {
  background: var(--bg-deep);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--dur-fast) var(--ease-cinema),
              color var(--dur-fast) var(--ease-cinema);
}
.duo__card:hover { background: var(--bone); color: var(--bone-ink); }
.duo__label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-red);
}
.duo__name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.duo__desc { color: var(--ink-mute); max-width: 46ch; }
.duo__card:hover .duo__desc { color: rgba(14, 14, 12, 0.78); }
