/* ========================================================================
   Ibby Onitolo — Portfolio
   Dark cinematic. Clean grotesque + monospace timecode labels.
   Three directions driven by a root class: .dir-theater / .dir-index / .dir-marquee
   ===================================================================== */

:root {
  --bg:        #08090b;
  --bg-2:      #0e1014;
  --bg-3:      #14171c;
  --fg:        #ededeb;
  --fg-dim:    #b7bac0;
  --muted:     #7f838b;
  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);
  --accent:    #3b6dff;
  --accent-ink:#0a0b0d;

  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 76px);

  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---- film grain overlay --------------------------------------------- */
body.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  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.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---- shared layout -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .tick { color: var(--accent); }
.eyebrow .dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.section { padding-block: clamp(72px, 11vw, 168px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 {
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

/* striped placeholder (for showreel + stills) ------------------------- */
.ph {
  position: relative;
  background-color: var(--bg-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 11px);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8,9,11,0.55);
  backdrop-filter: blur(2px);
}

/* reveal on scroll ---------------------------------------------------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
.reveal-ready .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,9,11,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  padding-block: 14px;
}
.nav .brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
  display: flex; align-items: center; gap: 9px;
}
.nav .brand .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav .links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav .links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav .links a:hover { color: var(--fg); }
.nav .links a:hover::after, .nav .links a.active::after { width: 100%; }
.nav .links a.active { color: var(--fg); }
.nav .links .cta { color: var(--fg); }
.nav .links .nav-contact { display: none; }
@media (min-width: 720px) { .nav .links .nav-contact { display: inline; } }

/* =====================================================================
   HERO / SHOWREEL
   ===================================================================== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--fg);
  box-shadow: 0 30px 72px -14px rgba(0,0,0,0.72);
}
.hero .reel-bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: #060708;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 13px),
    radial-gradient(120% 90% at 70% 20%, rgba(59,109,255,0.12), transparent 60%);
}
.hero .reel-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero .scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,9,11,0.5) 0%, transparent 26%, transparent 58%, rgba(8,9,11,0.72) 100%);
}
/* letterbox bars */
.letterbox .hero::before, .letterbox .hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5.5vh; min-height: 28px;
  background: #000; z-index: 5; pointer-events: none;
}
.letterbox .hero::before { top: 0; }
.letterbox .hero::after { bottom: 0; }

.hero-inner {
  position: relative; z-index: 4;
  width: 100%; max-width: none; margin: 0 auto;
  padding: 0 var(--pad) clamp(96px, 15vh, 180px);
  display: flex; flex-direction: column; gap: clamp(18px, 3vw, 30px);
}
.hero .role-line {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim);
}
.hero .role-line .sep { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.86;
  font-size: clamp(60px, 14vw, 236px);
  text-wrap: balance;
}
.hero .lede {
  max-width: 40ch; font-size: clamp(16px, 1.7vw, 22px); color: var(--fg-dim); line-height: 1.45; margin: 0;
}

/* play button */
.play-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.play-btn:hover { border-color: var(--accent); background: rgba(59,109,255,0.1); transform: translateY(-1px); }
.play-btn .ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; flex: 0 0 auto;
  position: relative;
}
.play-btn .ico svg { width: 13px; height: 13px; margin-left: 2px; }
.play-btn .ico::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0.5; animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 70%,100% { transform: scale(1.5); opacity: 0; } }
.play-btn .ptxt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-btn .ptxt b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.play-btn .ptxt span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.scroll-cue {
  position: absolute; bottom: clamp(20px, 4vh, 40px); right: var(--pad); z-index: 6;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl;
}
.scroll-cue .bar { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* =====================================================================
   WORK / CASE STUDIES  (base = THEATER)
   ===================================================================== */
.cases { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 150px); }
.case { position: relative; }
.case-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "id id" "title meta";
  align-items: end;
  column-gap: 24px; row-gap: 10px;
  margin-bottom: 30px;
}
.case-id { grid-area: id; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }
.case-title { grid-area: title; font-size: clamp(28px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; margin: 0; }
.case-meta { grid-area: meta; justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-meta b { color: var(--fg-dim); font-weight: 400; }
.expand-ico { display: none; }

.case-still { aspect-ratio: 16/9; width: 100%; border-radius: 4px; }
.case-still-wrap { margin-bottom: 30px; }
.case-thumb { aspect-ratio: 16/9; width: 100%; border-radius: 4px; }
.case-thumb-wrap { display: none; margin-bottom: 26px; }
@media (max-width: 640px) { .case-top { grid-template-areas: "id id" "title title" "meta meta"; } .case-meta { justify-self: start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; } }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.case-grid .spacer { display: none; }
.case-block { display: flex; flex-direction: column; gap: 12px; }
.case-block .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 8px;
}
.case-block .lbl::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.case-block p { margin: 0; color: var(--fg-dim); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.55; }
.case-block.result p { color: var(--fg); }
.case-result-metric {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); line-height: 1;
}
.metric-unit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; margin-bottom: 4px; }

@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; gap: 26px; } }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait { aspect-ratio: 4/5; border-radius: 4px; position: sticky; top: 96px; }
@media (max-width: 880px) { .about-portrait { position: static; aspect-ratio: 16/10; } }
.about-body p { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; color: var(--fg); margin: 0 0 22px; max-width: 46ch; letter-spacing: -0.01em; }
.about-body p.dim { color: var(--fg-dim); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }

.cap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.cap-group h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 400; }
.cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cap-list li { display: flex; align-items: baseline; gap: 12px; font-size: 16px; color: var(--fg); }
.cap-list li .n { font-family: var(--mono); font-size: 11px; color: var(--accent); min-width: 22px; }
@media (max-width: 520px) { .cap-cols { grid-template-columns: 1fr; } }

.clients-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.client-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim);
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 100px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.client-chip:hover { border-color: var(--accent); color: var(--fg); }

/* =====================================================================
   CONTACT + FOOTER
   ===================================================================== */
.contact { border-top: 1px solid var(--line); }
.contact-avail { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.contact-avail .live { width: 8px; height: 8px; border-radius: 50%; background: #43d17a; box-shadow: 0 0 10px #43d17a; animation: blink 2.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.contact-mail {
  font-size: clamp(32px, 7vw, 104px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin: 0;
  display: inline-block; position: relative; color: var(--fg);
  transition: color 0.3s var(--ease);
  text-wrap: balance;
}
.contact-mail:hover { color: var(--accent); }
.contact-sub { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(36px, 5vw, 64px); }
.contact-col { display: flex; flex-direction: column; gap: 8px; }
.contact-col .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-col a, .contact-col span.v { font-size: 16px; color: var(--fg); }
.contact-col a { transition: color 0.2s var(--ease); }
.contact-col a:hover { color: var(--accent); }

.foot { border-top: 1px solid var(--line-soft); padding: 30px var(--pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.foot .top-link { color: var(--fg-dim); transition: color 0.2s var(--ease); }
.foot .top-link:hover { color: var(--accent); }

/* =====================================================================
   REEL MODAL
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 4vw;
  background: rgba(4,5,6,0.86); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(1100px, 100%); }
.modal-video { aspect-ratio: 16/9; width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-bar .t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.modal-close { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; transition: color 0.2s var(--ease); }
.modal-close:hover { color: var(--fg); }

/* =====================================================================
   DIRECTION: INDEX  (editorial archive)
   ===================================================================== */
.dir-index .hero h1 { font-size: clamp(44px, 8vw, 124px); letter-spacing: -0.04em; }
.dir-index .hero-inner { gap: clamp(16px, 2vw, 22px); }

.dir-index .cases { gap: 0; border-top: 1px solid var(--line); }
.dir-index .case { padding-block: clamp(28px, 3.6vw, 52px); border-bottom: 1px solid var(--line); }
.dir-index .case-top {
  grid-template-columns: 52px 1fr auto;
  grid-template-areas: "id title expand";
  align-items: baseline; column-gap: 22px; row-gap: 0;
  margin-bottom: 0; cursor: pointer;
}
.dir-index .case-id { font-size: 13px; }
.dir-index .case-title { font-size: clamp(23px, 3.3vw, 44px); transition: color 0.3s var(--ease); }
.dir-index .case:hover .case-title { color: var(--accent); }
.dir-index .case-meta { display: none; }
.dir-index .expand-ico {
  display: block; grid-area: expand; justify-self: end; align-self: center;
  font-family: var(--mono); font-size: 22px; color: var(--accent); line-height: 1;
  transition: transform 0.4s var(--ease);
}
.dir-index .case.open .expand-ico { transform: rotate(45deg); }

.dir-index .case-body {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows 0.55s var(--ease);
}
.dir-index .case.open .case-body { grid-template-rows: 1fr; }
.dir-index .case-body > .inner { min-height: 0; }
.dir-index .case.open .case-body > .inner { padding-top: 30px; }
.dir-index .case-still-wrap { display: none; }
.dir-index .case-thumb-wrap { display: block; }
.dir-index .case-grid { grid-template-columns: 52px repeat(3, 1fr); column-gap: clamp(18px, 2.4vw, 40px); row-gap: 28px; }
.dir-index .case-grid .spacer { display: block; }
@media (max-width: 860px) {
  .dir-index .case-top { grid-template-columns: 30px 1fr auto; column-gap: 14px; }
  .dir-index .case-grid { grid-template-columns: 1fr; }
  .dir-index .case-grid .spacer { display: none; }
}

/* =====================================================================
   DIRECTION: MARQUEE  (loud, oversized, accent-forward)
   ===================================================================== */
.dir-marquee { --accent-weight: 1; }
.dir-marquee .hero h1 { font-size: clamp(60px, 17vw, 260px); letter-spacing: -0.05em; line-height: 0.8; }
.dir-marquee .section-head h2 { font-size: clamp(40px, 8vw, 110px); letter-spacing: -0.045em; }

.dir-marquee .cases { gap: clamp(90px, 12vw, 190px); }
.dir-marquee .case-top {
  grid-template-columns: auto 1fr;
  grid-template-areas: "id meta" "title title";
  align-items: start; row-gap: 16px;
}
.dir-marquee .case-meta { align-self: start; }
.dir-marquee .case-id {
  font-size: clamp(56px, 11vw, 150px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8;
  -webkit-text-stroke: 1px var(--accent); color: transparent; font-family: var(--sans);
}
.dir-marquee .case-title { font-size: clamp(34px, 6vw, 86px); letter-spacing: -0.04em; }
.dir-marquee .case-still {
  border: 1px solid var(--accent); box-shadow: 18px 18px 0 rgba(59,109,255,0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.dir-marquee .case:hover .case-still { transform: translate(-6px,-6px); box-shadow: 26px 26px 0 rgba(59,109,255,0.28); }
.dir-marquee .case-block .lbl { font-size: 12px; }
.dir-marquee .case-block.result {
  background: var(--accent); color: var(--accent-ink); padding: 22px; border-radius: 4px; margin: -6px;
}
.dir-marquee .case-block.result .lbl { color: var(--accent-ink); }
.dir-marquee .case-block.result .lbl::before { background: var(--accent-ink); }
.dir-marquee .case-block.result p { color: var(--accent-ink); }
.dir-marquee .case-block.result .case-result-metric { color: var(--accent-ink); }
.dir-marquee .case-block.result .case-result-metric .unit { color: var(--accent-ink); opacity: 0.7; }
.dir-marquee .contact-mail:hover { letter-spacing: -0.03em; }

/* =====================================================================
   ACCENT = MONO (white) tuning so accent-on-accent text stays legible
   ===================================================================== */
.accent-mono .play-btn .ico { color: #0a0b0d; }
.accent-mono .dir-marquee .case-block.result { color: #0a0b0d; }

/* =====================================================================
   CAMERA HUD  (viewfinder brackets, metadata bar, scrub ticks)
   ===================================================================== */
.vf { position: relative; }
.hud-on .vf { padding: 10px; }
.vf .c { display: none; position: absolute; width: 16px; height: 16px; opacity: 0.85; z-index: 2; pointer-events: none; }
.hud-on .vf .c { display: block; }
.vf .tl { top: 0; left: 0; border-top: 1.5px solid var(--fg); border-left: 1.5px solid var(--fg); }
.vf .tr { top: 0; right: 0; border-top: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); }
.vf .bl { bottom: 0; left: 0; border-bottom: 1.5px solid var(--fg); border-left: 1.5px solid var(--fg); }
.vf .br { bottom: 0; right: 0; border-bottom: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); }

.hero-corners { position: absolute; inset: 0; z-index: 6; pointer-events: none; display: none; }
.hud-on .hero-corners { display: block; }
.hero-corners .c { position: absolute; width: 24px; height: 24px; opacity: 0.65; }
.hero-corners .tl { top: 78px; left: 22px; border-top: 1.5px solid var(--fg); border-left: 1.5px solid var(--fg); }
.hero-corners .tr { top: 78px; right: 22px; border-top: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); }
.hero-corners .bl { bottom: calc(5.5vh + 22px); left: 22px; border-bottom: 1.5px solid var(--fg); border-left: 1.5px solid var(--fg); }
.hero-corners .br { bottom: calc(5.5vh + 22px); right: 22px; border-bottom: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); }

.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 30px var(--pad) 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-dim); pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.hud .hud-c { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; white-space: nowrap; }
.hud b { font-weight: 400; color: var(--fg); }
.hud-on .foot { padding-bottom: 62px; }

.ticks {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 140px; z-index: 1100; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.22) 0 1px, transparent 1px 7px);
}
.ticks .marker {
  position: absolute; left: -3px; right: -3px; height: 2px; top: 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
@media (max-width: 760px) { .hud, .ticks { display: none; } .hud-on .foot { padding-bottom: 30px; } }

/* true black */
.true-black { --bg: #000000; --bg-2: #070708; --bg-3: #0d0d0e; }
.true-black .hero .reel-bg { background-color: #000; }

/* all-mono display type */
.type-mono .hero h1, .type-mono .section-head h2, .type-mono .case-title,
.type-mono .contact-mail, .type-mono .case-result-metric, .type-mono .lede,
.type-mono .nav .brand, .type-mono .about-body p, .type-mono .play-btn .ptxt b {
  font-family: var(--mono);
}
.type-mono .hero h1 { font-size: clamp(40px, 9vw, 142px); letter-spacing: -0.06em; line-height: 0.92; }
.type-mono .section-head h2 { font-size: clamp(24px, 4vw, 50px); letter-spacing: -0.04em; }
.type-mono .case-title { letter-spacing: -0.04em; }
.type-mono .contact-mail { font-size: clamp(24px, 5.6vw, 82px); letter-spacing: -0.05em; }
.type-mono .nav .brand { font-size: 14px; letter-spacing: 0.04em; }
.type-mono .about-body p { font-size: clamp(15px, 1.5vw, 20px); }
.type-mono .dir-marquee .hero h1, .type-mono.dir-marquee .hero h1 { font-size: clamp(48px, 12.5vw, 200px); }

/* =====================================================================
   LIGHT MODE  — reverses foreground / background
   ===================================================================== */
body.light {
  --bg:        #ededeb;
  --bg-2:      #e3e4e1;
  --bg-3:      #d7d8d4;
  --fg:        #0a0b0d;
  --fg-dim:    #34383d;
  --muted:     #6e7279;
  --line:      rgba(0,0,0,0.16);
  --line-soft: rgba(0,0,0,0.07);
  --accent-ink:#0a0b0d;
}
body.light { background: var(--bg); color: var(--fg); }
body.light .grain::after { mix-blend-mode: multiply; opacity: 0.05; }

/* hero keeps its dark cinematic palette regardless of theme */
body.light .hero {
  --bg:        #08090b;
  --fg:        #ededeb;
  --fg-dim:    #b7bac0;
  --muted:     #7f838b;
  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);
}

/* =====================================================================
   THEME TOGGLE  — fixed, middle-left
   ===================================================================== */
.theme-toggle {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%);
  z-index: 1200; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: translateY(-50%) scale(0.92); }
.theme-toggle .tt-ico {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--fg);
  box-shadow: inset -5px -4px 0 0 var(--bg);
  transition: box-shadow .4s var(--ease), background .3s var(--ease);
}
body.light .theme-toggle .tt-ico {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--fg), 0 0 0 4px transparent;
}
@media (max-width: 720px) { .theme-toggle { width: 38px; height: 38px; left: 10px; } }

/* =====================================================================
   SCROLL PROGRESS  — left-edge loading bar (fills 0 → 100%)
   ===================================================================== */
.scroll-progress {
  position: fixed; left: 0; top: 0; width: 3px; height: 100vh;
  z-index: 1150; pointer-events: none; background: var(--line-soft);
}
.scroll-progress .fill {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
  box-shadow: 0 0 10px var(--accent);
  transition: height .1s linear;
}

/* =====================================================================
   CUSTOM CIRCLE CURSOR
   ===================================================================== */
@media (pointer: fine) {
  body.cursor-on,
  body.cursor-on a, body.cursor-on button, body.cursor-on .play-btn,
  body.cursor-on [role="button"], body.cursor-on input, body.cursor-on label { cursor: none; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--fg);
  opacity: 0;
  will-change: transform;
  transition: width .22s var(--ease), height .22s var(--ease),
              background .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease), opacity .25s var(--ease);
}
.cursor.on { opacity: 0.6; }
.cursor.on.hot {
  width: 46px; height: 46px; opacity: 1;
  background: rgba(255,255,255,0.16);
  border-color: #ffffff;
  box-shadow: 0 0 24px 5px rgba(255,255,255,0.9), 0 0 4px 1px rgba(255,255,255,0.8);
}
