/* ============================================================================
   MIKE JAMES — reimagined portfolio + Atlas Camera flagship
   Bold direction: cinematic dark base, tungsten (artist) + cyan (engineer),
   Space Grotesk / JetBrains Mono / Cormorant. Single-scroll narrative.
   ============================================================================ */

:root {
  --bg:        #06070a;
  --bg-1:      #0b0d12;
  --bg-2:      #10131a;
  --panel:     #0e1117;
  --ink:       #ece9e2;
  --ink-2:     #b7b4ac;
  --dim:       #7c7a74;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.045);

  --warm:      #e0a94b;   /* tungsten — artist / matte painting */
  --warm-deep: #c9853a;
  --tech:      #58b6e6;   /* projection cyan — engineer / atlas camera */
  --tech-deep: #2f7fb0;
  --magenta:   #ff5fb4;   /* retro synthwave secondary */
  --magenta-deep: #c23c86;
  --chrome: linear-gradient(100deg, #ff6ec7 0%, #ffffff 46%, #58b6e6 100%);
  /* Atlas Camera repo brand palette (github.com/mikejamesvfx/atlas-camera) */
  --atlas-orange: #eaa03a;
  --atlas-teal:   #2fb7a6;
  --atlas-tan:    #c4b29a;
  --atlas-taupe:  #8f8571;
  --atlas-paper:  #e8e2d6;
  --atlas-ink:    #0c0d0f;

  --serif: "Cormorant Garamond", Georgia, serif;
  --disp:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--warm); color: #0a0a0a; }

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

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

/* ---- film grain overlay ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- shared bits ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker .dot { color: var(--warm); }
.kicker.tech .dot { color: var(--tech); }

.accent { color: var(--warm); }
.accent-tech { color: var(--tech); }
.dim { color: var(--dim); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  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(6,7,10,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px;
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; cursor: pointer; }
.nav-brand .mj {
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.05em;
  color: #0a0a0a; background: var(--warm); padding: 3px 7px; border-radius: 3px; font-size: 13px;
}
.nav-brand .sub { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--warm); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line); border-radius: 40px; padding: 8px 16px !important;
  color: var(--ink) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--warm); background: rgba(224,169,75,0.08); }
.nav-burger { display: none; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05) brightness(0.62); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 20%, transparent 20%, rgba(6,7,10,0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(6,7,10,0.55) 0%, rgba(6,7,10,0.25) 35%, rgba(6,7,10,0.85) 82%, var(--bg) 100%);
}
/* HUD grid + crosshair over hero */
.hero-hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; }
.hero-hud .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 75% 30%, #000 30%, transparent 75%);
}
.hero-hud .tick { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.35); }
.hero-hud .tl { top: 96px; left: 32px; }
.hero-hud .tr { top: 96px; right: 32px; text-align: right; }
.hero-hud .cross { position: absolute; top: 32%; right: 12%; width: 60px; height: 60px; }
.hero-hud .cross::before, .hero-hud .cross::after { content: ""; position: absolute; background: var(--tech); opacity: 0.6; }
.hero-hud .cross::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-0.5px); }
.hero-hud .cross::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-0.5px); }

.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 8vh; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-eyebrow .rule { height: 1px; width: 56px; background: var(--warm); }
.hero h1 {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(42px, 8.2vw, 128px); line-height: 0.92; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero h1 .line2 { color: var(--dim); }
.hero-sub {
  max-width: 620px; font-size: clamp(16px, 1.6vw, 21px); color: var(--ink-2); font-weight: 300; line-height: 1.5;
}
.hero-sub b { color: var(--ink); font-weight: 500; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-roles span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 40px; padding: 7px 15px;
}
.hero-roles span.hot { border-color: rgba(88,182,230,0.4); color: var(--tech); }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .bar { width: 1px; height: 40px; background: linear-gradient(var(--dim), transparent); animation: scrolldrop 2.4s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================================
   SECTION SCAFFOLD
   ============================================================================ */
.section { position: relative; padding: 120px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--disp); font-weight: 500; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.0; letter-spacing: -0.025em; margin: 14px 0 0;
}
.section-head .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }
.section-head p { max-width: 440px; color: var(--ink-2); font-weight: 300; font-size: 16px; margin: 0; }

/* ============================================================================
   ATLAS CAMERA — flagship
   ============================================================================ */
.atlas { background: linear-gradient(180deg, var(--bg) 0%, #07090f 40%, #090c14 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.atlas .wrap { position: relative; }
/* scope the section's accent to the repo's teal instead of neon cyan */
.atlas { --tech: var(--atlas-teal); --tech-deep: #1f7d70; }
/* amber is the brand accent ("projected light / the solve"); teal = status only */
.atlas .feat .fn, .atlas .flow .fs { color: var(--atlas-orange); }
.atlas .flow { border-top-color: rgba(196,178,154,0.28); }
.atlas .flow .arrow { color: var(--atlas-taupe); }

.atlas-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-bottom: 92px; }
.atlas-badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--atlas-teal); border: 1px solid rgba(47,183,166,0.4); border-radius: 40px; padding: 6px 13px; margin-bottom: 24px;
}
.atlas-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--atlas-teal); box-shadow: 0 0 0 0 rgba(47,183,166,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,183,166,0.5); } 70% { box-shadow: 0 0 0 9px rgba(47,183,166,0); } 100% { box-shadow: 0 0 0 0 rgba(47,183,166,0); } }
/* wordmark — monospace, wide tracking (repo register): ATLAS bold + CAMERA dim */
.atlas-wordmark {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 68px); line-height: 1.0; letter-spacing: 0.1em; margin: 0 0 22px;
  color: var(--atlas-paper);
}
.atlas-wordmark .wm-dim { font-weight: 400; color: var(--atlas-taupe); }
.atlas-tag { font-size: clamp(18px, 2vw, 26px); font-weight: 400; color: var(--ink); margin: 0 0 20px; letter-spacing: -0.01em; }
.atlas-lede { color: var(--ink-2); font-weight: 300; font-size: 16px; line-height: 1.6; max-width: 520px; }
.atlas-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 40px; border: 1px solid var(--line); color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; transition: all 0.25s var(--ease);
}
.btn .note { color: var(--dim); text-transform: none; letter-spacing: 0.04em; font-size: 10px; }
.btn:hover { border-color: var(--tech); background: rgba(88,182,230,0.08); }
.btn-primary { background: var(--tech); border-color: var(--tech); color: #04121b; }
.btn-primary .note { color: rgba(4,18,27,0.6); }
.btn-primary:hover { background: #6ec2ef; }

/* Atlas Camera brand panel — icon-forward, warm/earthy (matches the repo) */
.atlas-visual { position: relative; aspect-ratio: 4/3.2; border: 1px solid rgba(196,178,154,0.18); border-radius: 10px; background: radial-gradient(120% 120% at 50% 42%, #17140e 0%, #0d0b09 62%, #08080a 100%); overflow: hidden; box-shadow: inset 0 0 70px rgba(196,178,154,0.05); display: flex; align-items: center; justify-content: center; }
.atlas-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.atlas-iconimg { position: relative; z-index: 1; width: 58%; max-width: 300px; height: auto; filter: drop-shadow(0 14px 44px rgba(0,0,0,0.55)); }
.atlas-fallback { position: relative; z-index: 1; width: 60%; max-width: 300px; height: auto; }
.atlas-visual::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(66% 60% at 50% 44%, transparent 55%, rgba(6,6,8,0.55) 100%); }
.atlas-visual .vlabel { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--atlas-tan); z-index: 3; }
.atlas-visual .vcorner { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--atlas-taupe); z-index: 3; }

/* status badges (shields-style two-tone pills) */
.atlas-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge { display: inline-flex; align-items: stretch; border-radius: 5px; overflow: hidden; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; border: 1px solid rgba(255,255,255,0.08); text-decoration: none; }
.badge .badge-l { background: #23252b; color: #d7d5cd; padding: 4px 9px; }
.badge .badge-v { background: var(--bc, #8f8571); color: #14120c; padding: 4px 9px; font-weight: 500; }
.badge:hover { border-color: rgba(255,255,255,0.22); }

/* primary CTA takes the repo's warm orange */
.atlas .btn-primary { background: var(--atlas-orange); border-color: var(--atlas-orange); color: #1c1206; }
.atlas .btn-primary .note { color: rgba(28,18,6,0.65); }
.atlas .btn-primary:hover { background: #f2b354; }

.atlas-media { margin-bottom: 92px; }

/* feature grid */
.atlas-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 92px; }
.feat { background: var(--panel); padding: 30px 26px; transition: background 0.3s var(--ease); position: relative; }
.feat:hover { background: #121722; }
.feat .fn { font-family: var(--mono); font-size: 12px; color: var(--tech); letter-spacing: 0.1em; }
.feat h3 { font-family: var(--disp); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; margin: 14px 0 10px; }
.feat p { color: var(--ink-2); font-weight: 300; font-size: 14.5px; line-height: 1.55; margin: 0; }

/* workflow strip */
.atlas-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 92px; }
.flow { border-top: 1px solid var(--tech-deep); padding-top: 18px; position: relative; }
.flow .fs { font-family: var(--mono); font-size: 12px; color: var(--tech); letter-spacing: 0.1em; }
.flow h4 { font-family: var(--disp); font-weight: 500; font-size: 18px; margin: 10px 0 8px; }
.flow p { color: var(--ink-2); font-weight: 300; font-size: 14px; line-height: 1.5; margin: 0; }
.flow .arrow { position: absolute; top: -8px; right: -14px; color: var(--tech-deep); font-family: var(--mono); }

/* why / proof block */
.atlas-why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.atlas-why .qmark { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.42; color: var(--ink); font-weight: 400; }
.atlas-why .qmark p { margin: 0 0 20px; }
.atlas-why .qmark p:last-child { color: var(--ink-2); font-size: 0.82em; }
.atlas-proof { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 30px; }
.atlas-proof .kicker { margin-bottom: 16px; }
.atlas-proof p { color: var(--ink-2); font-weight: 300; font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.atlas-proof .stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.atlas-proof .stack span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; }
.atlas-proof a.prooflink { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--warm); display: inline-flex; align-items: center; gap: 8px; }
.atlas-proof a.prooflink:hover { gap: 12px; }

/* ============================================================================
   SELECTED WORK — grid
   ============================================================================ */
.work { background: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--bg-1); }
.card-media { position: absolute; inset: 0; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.5s; filter: saturate(0.9) brightness(0.72); }
.card:hover .card-media video, .card:hover .card-media img { transform: scale(1.06); filter: saturate(1.02) brightness(0.85); }
.card-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,10,0.1) 0%, transparent 30%, rgba(6,7,10,0.35) 60%, rgba(6,7,10,0.92) 100%); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.card-meta .num { color: var(--warm); }
.card-meta .yr { margin-left: auto; color: var(--dim); }
.card h3 { font-family: var(--disp); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; margin: 0; line-height: 1.02; }
.card h3 .sub2 { color: var(--dim); font-weight: 300; }
.card-open { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); opacity: 0; transform: translateY(-6px); transition: all 0.35s var(--ease); background: rgba(6,7,10,0.5); backdrop-filter: blur(6px); z-index: 3; }
.card:hover .card-open { opacity: 1; transform: none; }

/* ============================================================================
   PROJECT DETAIL — overlay
   ============================================================================ */
.detail { position: fixed; inset: 0; z-index: 9500; background: rgba(4,5,8,0.72); backdrop-filter: blur(10px); overflow-y: auto; opacity: 0; animation: fadein 0.35s var(--ease) forwards; }
@keyframes fadein { to { opacity: 1; } }
.detail-inner { max-width: 1080px; margin: 0 auto; padding: 0 0 90px; background: var(--bg-1); min-height: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.detail-hero { position: relative; height: 62vh; min-height: 380px; overflow: hidden; }
.detail-hero video, .detail-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.95); }
.detail-hero .dg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,10,0.5) 0%, transparent 40%, rgba(11,13,18,0.95) 100%); }
.detail-close { position: fixed; top: 22px; right: 22px; z-index: 9600; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6,7,10,0.7); backdrop-filter: blur(8px); color: var(--ink); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.detail-close:hover { border-color: var(--warm); background: rgba(224,169,75,0.12); transform: rotate(90deg); }
.detail-titlewrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; z-index: 2; }
.detail-titlewrap .kicker { margin-bottom: 12px; }
.detail-titlewrap h2 { font-family: var(--disp); font-weight: 500; font-size: clamp(32px, 5vw, 66px); letter-spacing: -0.03em; line-height: 0.98; margin: 0; }
.detail-titlewrap h2 .s { color: var(--dim); font-weight: 300; }
.detail-body { padding: 48px 40px 0; }
.detail-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4; color: var(--ink); max-width: 760px; margin: 0 0 48px; font-weight: 400; }
.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-bottom: 56px; }
.detail-approach p { color: var(--ink-2); font-weight: 300; font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.detail-approach p em { color: var(--ink); font-style: normal; font-weight: 500; }
.detail-specs { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.spec-row dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.spec-row dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.spec-row dd b, .spec-row dd strong { color: var(--ink); font-weight: 500; }

/* process steps */
.detail-process { margin-bottom: 48px; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proc { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.proc .pimg { aspect-ratio: 4/3; background: #0a0d13; position: relative; overflow: hidden; }
.proc .pimg img, .proc .pimg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proc .pimg .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; }
.proc .pcap { padding: 12px 14px; }
.proc .pcap .pl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--warm); }
.proc .pcap .pt { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* full-width cross-fade carousel */
.carousel { margin-top: 4px; }
.carousel-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0a0b0e; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cslide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); pointer-events: none; }
.cslide.on { opacity: 1; pointer-events: auto; }
.cslide img, .cslide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6,7,10,0.5); backdrop-filter: blur(6px); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); }
.carousel-nav:hover { border-color: var(--atlas-tan); background: rgba(6,7,10,0.72); }
.carousel-nav.prev { left: 14px; } .carousel-nav.next { right: 14px; }
.carousel-count { position: absolute; bottom: 12px; right: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-2); background: rgba(6,7,10,0.5); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 4px; z-index: 3; }
.carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.22); cursor: pointer; padding: 0; transition: all 0.25s var(--ease); }
.carousel-dots .dot.on { background: var(--warm); transform: scale(1.3); }

/* trailer embed (e.g. Self Love, on-circuit) */
.detail-trailer { margin-top: 6px; }
.trailer-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.trailer-link { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--warm); }
.trailer-link:hover { color: #f0c877; }

/* portrait poster wall (film credits, key art) */
.poster-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.poster-tile { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); }
.poster-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.poster-tile:hover img { transform: scale(1.05); }

/* film credits wall in About */
.about-credits { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--line); }
.about-credits h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm); margin: 0 0 22px; }
.about-credits .credits-wall { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.about-credits .credits-imdb { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--warm); transition: gap 0.2s; }
.about-credits .credits-imdb:hover { color: #f0c877; }

/* gallery */
.detail-gallery { columns: 2; column-gap: 14px; }
.detail-gallery img, .detail-gallery video { width: 100%; display: block; margin-bottom: 14px; border-radius: 6px; border: 1px solid var(--line); break-inside: avoid; }

/* ============================================================================
   ABOUT / CONTACT
   ============================================================================ */
.about { background: linear-gradient(180deg, var(--bg) 0%, #080a10 100%); border-top: 1px solid var(--line); }
.about-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 72px; }
.about-lead .big { font-family: var(--disp); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.32; letter-spacing: -0.015em; }
.about-lead .big b { color: var(--warm); font-weight: 500; }
.about-lead .big .tech { color: var(--tech); font-weight: 500; }
.about-body p { color: var(--ink-2); font-weight: 300; font-size: 16px; line-height: 1.7; margin: 0 0 18px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 44px; border-top: 1px solid var(--line); }
.about-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm); margin: 0 0 16px; }
.about-col a, .about-col .li { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; text-decoration: none; }
.about-col a:hover { color: var(--ink); }

/* contact CTA band */
.contact { padding: 96px 0; text-align: center; border-top: 1px solid var(--line); background: var(--bg); }
.contact .kicker { margin-bottom: 22px; }
.contact h2 { font-family: var(--disp); font-weight: 500; font-size: clamp(34px, 6vw, 82px); letter-spacing: -0.03em; margin: 0 0 30px; line-height: 0.98; }
.contact a.mail { font-family: var(--disp); color: var(--warm); font-size: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid rgba(224,169,75,0.4); padding-bottom: 4px; transition: all 0.25s; }
.contact a.mail:hover { color: #f0c877; border-color: var(--warm); }
.contact .subline { margin-top: 24px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim); flex-wrap: wrap; gap: 14px; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 940px) {
  .wrap { padding: 0 22px; }
  .section { padding: 88px 0; }
  .atlas-hero, .atlas-why, .about-lead { grid-template-columns: 1fr; gap: 34px; }
  .atlas-features { grid-template-columns: 1fr 1fr; }
  .atlas-flow { grid-template-columns: 1fr 1fr; gap: 26px; }
  .detail-cols { grid-template-columns: 1fr; gap: 30px; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 30px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(6,7,10,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 22px 22px; }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav-burger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: 0; padding: 6px; }
  .nav-burger span { width: 22px; height: 1.5px; background: var(--ink); }
  .atlas-features { grid-template-columns: 1fr; }
  .atlas-flow { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 12px; }
  .proc-grid { grid-template-columns: 1fr; }
  .detail-gallery { columns: 1; }
  .detail-body, .detail-titlewrap, .detail-hero { }
  .detail-body { padding: 36px 22px 0; }
  .detail-titlewrap { padding: 24px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-scroll .bar, .atlas-badge .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
