/* ============================================================
   UMARIC — "NOIR" REskIN
   Pure black · Acid-green volumetrics · Cinematic scroll
   Reference language: DOTDNA cyber-security site
   Every class name is inherited from the base site so all
   5 pages restyle with zero HTML changes.
   ============================================================ */

:root {
  /* Flat light theme — solid #e8ebe0, no gradients/blooms */
  --ink:          #e8ebe0;
  --ink-surface:  #e1e4d7;
  --ink-card:     #dcdfd0;
  --ink-raised:   #d4d8c6;
  --border:       rgba(24, 40, 16, 0.16);
  --border-hover: rgba(38, 112, 20, 0.55);

  --bone:         #1b2116;   /* main text */
  --bone-pure:    #0c0f0a;   /* headings */
  --haze:         #5b6555;   /* muted text */

  /* accent stays named --bronze so inherited rules pick it up */
  --bronze:       #2c7a14;
  --bronze-light: #1f6410;
  --bronze-glow:  rgba(44, 122, 20, 0.22);
  --oxblood:      #123d0e;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:   'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 60px);
  --max-w: 1400px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
  color: var(--bone);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--bone);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Volumetric green light bloom fixed behind everything */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: -12vh;
  width: 120vw;
  height: 90vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(60, 230, 40, 0.22), rgba(60, 230, 40, 0.05) 60%, transparent 100%);
  filter: blur(30px);
}

/* Fine film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.10;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

::selection { background: rgba(59, 224, 30, 0.30); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #143b0e; border-radius: 20px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #1f6b16; }

/* Keep every section above the background bloom */
.masthead, main, .footer, .nav, .nav-cta { position: relative; z-index: 2; }

/* Container */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 780px; }

/* ============================================================
   MONO LABEL TOKENS  →  [ bracketed ] like the reference
   ============================================================ */
.tag, .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--haze);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tag::before, .label::before { content: "["; color: var(--bronze); opacity: 0.9; }
.tag::after,  .label::after  { content: "]"; color: var(--bronze); opacity: 0.9; }

.tag.accent, .label.accent { color: var(--bronze-light); }

.tag-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-light);
  background: rgba(59, 224, 30, 0.08);
  border: 1px solid rgba(59, 224, 30, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   MASTHEAD  →  fixed & transparent; logo left, CTA right, nav floats center
   ============================================================ */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  pointer-events: none;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.masthead a { pointer-events: auto; }

.mark {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-pure);
  transition: var(--transition);
}
.mark span {
  color: var(--bronze);
  text-shadow: 0 0 12px var(--bronze-glow);
}
.mark:hover { opacity: 0.85; }

/* Floating pill nav — top centre, guardnet-style */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 16px;
  margin-inline: auto;
  width: fit-content;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(6, 10, 6, 0.72);
  border: 1px solid rgba(120, 255, 120, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px -14px rgba(0,0,0,0.9), 0 0 30px -14px var(--bronze-glow);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haze);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a::after { display: none; }
.nav a:hover { color: var(--bone-pure); background: rgba(255,255,255,0.05); }
.nav a.active {
  color: #04120a;
  background: var(--bronze);
  box-shadow: 0 0 18px -4px var(--bronze-glow);
}

/* "Start a project" pill  →  solid white, top-right (guardnet "start today") */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bone-pure) !important;
  border: 1px solid var(--bone-pure) !important;
  color: #05100a !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.9);
  transition: var(--transition);
}
.nav-cta::after { content: none !important; display: none !important; }
.nav-cta:hover {
  background: var(--bronze-light) !important;
  border-color: var(--bronze-light) !important;
  color: #04120a !important;
}

@media (max-width: 680px) {
  .nav a { font-size: 9.5px; padding: 7px 11px; }
  .nav-cta { font-size: 9.5px; }
}

/* ============================================================
   CANVAS SCROLL HERO  →  full-bleed plate, scattered display type
   ============================================================ */
.hero-scroll-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.canvas-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.5s;
}
.canvas-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 50% at 62% 38%, rgba(70, 240, 40, 0.18) 0%, transparent 62%),
    radial-gradient(circle at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.72) 74%, #000 100%);
}
canvas#heroCanvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: hue-rotate(70deg) saturate(1.7) brightness(0.82) contrast(1.12);
}

/* Full-height stage that the scattered words are pinned to */
.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  height: 100vh;
  min-height: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Giant scattered display words */
.hw {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--bone-pure);
  /* size follows width, but is capped by height so the vh-positioned
     words never grow tall enough to collide */
  font-size: clamp(60px, min(11vw, 16vh), 184px);
  text-shadow: 0 0 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(59, 224, 30, 0.14);
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.hw-1 { top: 9vh;   left: var(--gutter); }
.hw-2 { top: 42vh;  right: max(var(--gutter), 1vw); }
.hw-3 { top: 64vh;  left: 9vw; }
.hw-2 {
  color: var(--bronze-light);
  text-shadow: 0 0 90px rgba(0,0,0,0.5), 0 0 55px var(--bronze-glow);
}

/* Supporting intro copy, in the clear gap under the first word */
.hero-intro {
  position: absolute;
  top: 31vh;
  left: var(--gutter);
  max-width: clamp(230px, 26vw, 300px);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--haze);
}

/* Corner stat callouts with a thin leader line */
.hero-stat {
  position: absolute;
  font-family: var(--font-mono);
  z-index: 3;
}
.hero-stat b {
  display: block;
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bone-pure);
}
.hero-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--haze);
}
.hero-stat::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,255,120,0.4));
}
.hs-tr { top: 13vh; right: var(--gutter); text-align: right; }
.hs-tr::before { right: 100%; margin-right: 14px; background: linear-gradient(90deg, rgba(120,255,120,0.4), transparent); }
.hs-bl { bottom: 12vh; left: var(--gutter); }
.hs-bl::before { left: 100%; margin-left: 14px; }
.hs-br { bottom: 12vh; right: var(--gutter); text-align: right; }
.hs-br::before { right: 100%; margin-right: 14px; background: linear-gradient(90deg, rgba(120,255,120,0.4), transparent); }

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.scroll-indicator svg { animation: float 2.4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --- subtle entrance for the hero --- */
@keyframes hwIn {
  from { opacity: 0; transform: translateY(46px) scale(0.985); filter: blur(18px); }
  to   { opacity: 1; transform: translate(var(--px, 0), var(--py, 0)); filter: blur(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hw { opacity: 0; animation: hwIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hw-1 { animation-delay: 0.15s; }
.hw-2 { animation-delay: 0.32s; }
.hw-3 { animation-delay: 0.49s; }
.hero-intro, .hero-stat, .scroll-indicator {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}
.hero-intro     { animation-delay: 0.62s; }
.hs-tr          { animation-delay: 0.70s; }
.hs-bl          { animation-delay: 0.78s; }
.hs-br          { animation-delay: 0.86s; }
.scroll-indicator { animation-delay: 0.95s; }

/* Small screens: stop pinning, stack the words */
@media (max-width: 999px), (max-height: 759px) {
  .hero-scroll-container { min-height: auto; }
  .hero-stage { position: static; height: auto; min-height: 0; padding-top: 108px; padding-bottom: 44px; }
  .hw { position: static; display: block; font-size: clamp(52px, 18vw, 104px); margin: 0; }
  .hw-3 { margin-bottom: 22px; }
  .hero-intro { position: static; max-width: 42ch; margin: 18px 0 30px; }
  .hero-stat { position: static; display: inline-block; margin: 0 28px 12px 0; text-align: left; }
  .hero-stat::before { display: none; }
  .scroll-indicator { position: static; transform: none; margin-top: 8px; }
}

@media (max-width: 760px) {
  /* Header: logo alone up top, nav docks to the bottom, CTA hidden */
  .nav {
    top: auto;
    bottom: 14px;
    padding: 6px 6px;
    box-shadow: 0 -6px 24px -12px rgba(20,30,12,0.35), 0 10px 30px -16px rgba(20,30,12,0.45);
  }
  .nav a { font-size: 10px; padding: 8px 12px; }
  .nav-cta { display: none; }
  .masthead .wrap { height: 56px; }

  /* Hero: collapse to content height, no dead space */
  .hero-scroll-container { min-height: auto; }
  .hero-stage { height: auto; min-height: 0; padding-top: 92px; padding-bottom: 40px; }
  .hw { position: static; display: block; font-size: clamp(56px, 20vw, 104px); margin: 0; }
  .hw-3 { margin-bottom: 24px; }
  .hero-intro { position: static; max-width: none; margin: 20px 0 32px; }
  .hero-stat { position: static; display: inline-block; margin: 0 28px 12px 0; text-align: left; }
  .hero-stat::before { display: none; }
  .scroll-indicator { position: static; transform: none; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hw, .hero-intro, .hero-stat, .scroll-indicator { opacity: 1; animation: none; }
  .hw { transform: none; }
}

/* ============================================================
   SECTION HEADS + SHOWCASE CARDS
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 5vh, 52px);
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--bone-pure);
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 48px);
}

.project-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  background: linear-gradient(180deg, rgba(12,20,12,0.55), rgba(4,6,4,0.55));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(18px, 2.6vw, 34px);
  position: relative;
  transition: var(--transition);
}
.project-row:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.9), 0 0 60px -20px var(--bronze-glow);
}
.project-row.reverse { grid-template-columns: 0.85fr 1.15fr; }
.project-row.reverse .project-media { order: 2; }
.project-row.reverse .project-info  { order: 1; }

@media (max-width: 920px) {
  .project-row, .project-row.reverse { grid-template-columns: 1fr; gap: 22px; }
  .project-row.reverse .project-media { order: 1; }
  .project-row.reverse .project-info  { order: 2; }
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* Whole video is a link into the case study (no visible button) */
.media-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.video-card video, .video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-row:hover .video-card video,
.project-row:hover .video-card img { transform: scale(1.03); }

.video-scrub-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(120, 255, 120, 0.14);
  z-index: 4;
}
.video-scrub-progress {
  display: block; height: 100%; width: 0%;
  background: var(--bronze);
  box-shadow: 0 0 12px var(--bronze);
  transition: width 0.1s linear;
}
.video-timecode {
  position: absolute; right: 10px; bottom: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--bronze-light);
  background: rgba(0,0,0,0.75);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120,255,120,0.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-row:hover .video-timecode { opacity: 1; }

.video-card::before, .video-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--bronze);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  filter: drop-shadow(0 0 4px var(--bronze-glow));
}
.video-card::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.video-card::after  { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.project-row:hover .video-card::before,
.project-row:hover .video-card::after { opacity: 1; }

.project-info { display: flex; flex-direction: column; justify-content: center; }
.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 600;
  margin: 10px 0 0;
  letter-spacing: -0.03em;
  color: var(--bone-pure);
}
.project-info p {
  color: var(--haze);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 46ch;
}

.project-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-meta-grid div { display: flex; flex-direction: column; gap: 3px; }
.project-meta-grid span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haze);
}
.project-meta-grid b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bone);
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  background: var(--bronze);
  border: 1px solid var(--bronze);
  border-radius: 999px;
  color: #04120a;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 0 30px -10px var(--bronze-glow);
}
.btn-case-study:hover {
  background: var(--bronze-light);
  border-color: var(--bronze-light);
  transform: translateX(4px);
  box-shadow: 0 0 40px -6px var(--bronze-glow);
}

/* ============================================================
   CASE STUDY DETAIL PAGES
   ============================================================ */
.case-header {
  padding: clamp(90px, 12vh, 150px) 0 clamp(24px, 4vh, 44px);
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haze);
  margin-bottom: 18px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--bronze); }

.case-header h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 10px 0 0;
  color: var(--bone-pure);
  line-height: 0.98;
  text-shadow: 0 0 60px rgba(59, 224, 30, 0.22);
}
.case-lede {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--haze);
  margin: 18px 0 0;
  max-width: 60ch;
  line-height: 1.6;
}

.case-facts-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vh, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.case-facts-bar div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 5px;
}
.case-facts-bar div b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
}

.case-disclaimer {
  margin: 18px 0 0;
  max-width: 68ch;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--haze);
}

.master-film-section { padding: clamp(24px, 4vh, 52px) 0; }
.master-film-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.95), 0 0 80px -30px var(--bronze-glow);
}
.master-film-wrapper video { width: 100%; height: 100%; object-fit: cover; }

.prose-section { padding: clamp(36px, 6vh, 72px) 0; }
.prose { color: #CBD8C7; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 36px);
  font-weight: 600;
  color: var(--bone-pure);
  letter-spacing: -0.03em;
  margin: 40px 0 16px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; color: #A9B8A5; margin: 0 0 18px; }
.prose strong { color: var(--bone-pure); font-weight: 500; }

.quote-box {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 2px solid var(--bronze);
  background: rgba(59, 224, 30, 0.05);
  border-radius: 0 14px 14px 0;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--bone-pure);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
}

.gallery-section { padding: clamp(36px, 6vh, 72px) 0; border-top: 1px solid var(--border); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover { border-color: var(--border-hover); box-shadow: 0 0 40px -16px var(--bronze-glow); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 9px 14px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--haze);
  border-top: 1px solid var(--border);
}

.storyboard-feature {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-surface);
}
.storyboard-feature img { width: 100%; height: auto; }
.storyboard-feature .caption-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Storyboard "chart" — two frames per row; if the frame count is odd
   ( .board-grid.odd ) the final row carries three instead of a lone one. */
.board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.board-cell { grid-column: span 3; }               /* 2 per row */
.board-grid.odd .board-cell:nth-last-child(-n+3) { grid-column: span 2; }  /* last 3 → 3 per row */
.board-cell {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-card);
}
.board-cell img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.board-cell:hover img { transform: scale(1.03); }
.board-cell figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #eef0e6;
  background: rgba(12, 15, 10, 0.72);
  padding: 3px 8px;
  border-radius: 999px;
}
@media (max-width: 480px) { .board-grid { gap: 8px; } }

.next-project-bar { padding: clamp(36px, 6vh, 68px) 0; border-top: 1px solid var(--border); }
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(22px, 3.2vw, 36px);
  background: linear-gradient(180deg, rgba(12,20,12,0.55), rgba(4,6,4,0.55));
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: var(--transition);
}
.next-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.9), 0 0 60px -22px var(--bronze-glow);
}
.next-card h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 6px 0 0;
  color: var(--bone-pure);
  transition: color 0.25s;
}
.next-card:hover h2 { color: var(--bronze-light); }

/* ============================================================
   CAPABILITY + PROCESS
   ============================================================ */
.band { padding: clamp(44px, 7vh, 84px) 0; border-top: 1px solid var(--border); }

.spec-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.spec-sheet dl { margin: 0; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--border); }
.spec-sheet dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}
.spec-sheet dd { margin: 0 0 6px; font-size: 14.5px; color: var(--bone); }
.spec-sheet dd + dd { color: var(--haze); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.process-step { padding-top: 18px; border-top: 2px solid var(--bronze); }
.process-step .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--bronze);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 10px 0 8px;
  color: var(--bone-pure);
  letter-spacing: -0.02em;
}
.process-step p { margin: 0; font-size: 14px; color: var(--haze); line-height: 1.6; }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
}
.contact-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.0;
  margin: 16px 0 0;
  letter-spacing: -0.04em;
  color: var(--bone-pure);
  text-shadow: 0 0 50px rgba(59, 224, 30, 0.22);
}
.mailto {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--bronze-light);
  border-bottom: 1px solid rgba(59, 224, 30, 0.45);
  padding-bottom: 4px;
  transition: border-color 0.25s, color 0.25s;
}
.mailto:hover { border-color: var(--bronze); color: var(--bone-pure); }

.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haze);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--bronze-light); }

.footer { border-top: 1px solid var(--border); padding: 28px 0 96px; }
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   MOTION / A11Y
   ============================================================ */
.rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  canvas#heroCanvas { filter: hue-rotate(72deg) saturate(1.4) brightness(0.62); }
}

/* ============================================================
   FLAT LIGHT THEME  —  solid #e8ebe0, no animation, no glow
   Appended last so it wins on source order.
   ============================================================ */

/* Kill every decorative layer → truly flat background */
body::before,           /* film grain            */
body::after,            /* green light bloom      */
.canvas-bg {             /* scroll-scrub canvas    */
  display: none !important;
}

html, body { background-color: var(--ink); color: var(--bone); }

.hero-scroll-container { background: var(--ink); }

/* Scrollbar on light */
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #b9c0aa; border-color: var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #9aa389; }

::selection { background: rgba(44, 122, 20, 0.22); color: var(--bone-pure); }

/* Drop glow text-shadows */
.hw, .hw-2,
.hero-scroll-container h1, .hero-content h1,
.hero-scroll-container h1 em, .hero-content h1 em,
.case-header h1, .contact-grid h2,
.mark span { text-shadow: none; }

/* Floating nav pill → light glass */
.nav {
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--border);
  box-shadow: 0 10px 30px -16px rgba(20, 30, 12, 0.45);
}
.nav a:hover { color: var(--bone-pure); background: rgba(20, 30, 12, 0.06); }
.nav a.active {
  color: #f2f4ea;
  background: var(--bronze-light);
  box-shadow: none;
}

/* CTA pill → solid dark on the light page */
.nav-cta {
  background: var(--bone-pure) !important;
  border-color: var(--bone-pure) !important;
  color: #eef0e6 !important;
  box-shadow: 0 10px 26px -14px rgba(20, 30, 12, 0.5);
}
.nav-cta:hover {
  background: var(--bronze-light) !important;
  border-color: var(--bronze-light) !important;
  color: #f2f4ea !important;
}

/* Cards / media → flat fills, soft neutral shadow only */
.project-row,
.next-card {
  background: var(--ink-surface);
  box-shadow: none;
}
.project-row:hover,
.next-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px -22px rgba(20, 30, 12, 0.45);
}
.video-card { background: var(--ink-card); }
.master-film-wrapper {
  background: #cfd4c3;
  box-shadow: 0 22px 55px -28px rgba(20, 30, 12, 0.5);
}
.gallery-item:hover { box-shadow: 0 14px 34px -20px rgba(20, 30, 12, 0.4); }

/* Video HUD bits */
.video-scrub-bar { background: rgba(24, 40, 16, 0.16); }
.video-scrub-progress { box-shadow: none; }
.video-timecode {
  background: rgba(12, 15, 10, 0.78);
  color: #eef0e6;
  border-color: rgba(255, 255, 255, 0.14);
}
.gallery-caption { background: rgba(12, 15, 10, 0.78); color: #d7dccb; }

/* Accent chips / rules on light */
.tag-badge {
  color: var(--bronze);
  background: rgba(44, 122, 20, 0.10);
  border-color: rgba(44, 122, 20, 0.30);
}
.quote-box { background: rgba(44, 122, 20, 0.07); }
.hero-stat::before,
.hs-tr::before, .hs-br::before {
  background: linear-gradient(90deg, rgba(24, 40, 16, 0.35), transparent);
}
.hs-bl::before { background: linear-gradient(90deg, transparent, rgba(24, 40, 16, 0.35)); }
.btn-case-study { box-shadow: none; }
.btn-case-study:hover { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  canvas#heroCanvas { filter: none; }
}

/* ============================================================
   POINTER COMPANION  —  elastic green dot + text ripples
   (cursor.js; auto-disabled on touch / reduced-motion)
   ============================================================ */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  margin: 0;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 14px -2px var(--bronze-glow);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform;
}
#cursor-dot.on { opacity: 0.92; }
#cursor-dot.hot {
  width: 34px;
  height: 34px;
  background: rgba(44, 122, 20, 0.16);
  box-shadow: 0 0 0 1px var(--bronze) inset, 0 0 18px -4px var(--bronze-glow);
}
#cursor-dot.press { background: var(--bronze-light); }

.cursor-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid var(--bronze);
  pointer-events: none;
  z-index: 9998;
  animation: cursorRipple 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cursorRipple {
  from { transform: scale(0.35); opacity: 0.5; }
  to   { transform: scale(4.6);  opacity: 0; }
}

@media (hover: none) {
  #cursor-dot, .cursor-ripple { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #cursor-dot, .cursor-ripple { display: none; }
}
