/* ============================================================
   TELL — tell-game.com
   Type: Neucha (headers) · Source Sans 3 (body) · Space Mono (labels)
   Spec: ../For_Claude/Design/type-system.md

   LAYOUT: full width. Sections span the viewport; only paragraph
   copy is held to a readable measure.
   ============================================================ */

:root{
  --ground:#0F0D0C;
  --surface:#191614;
  --surface-2:#221E1B;
  --cream:#EEE7D2;
  --body:#D6D0C3;
  --muted:#968F82;
  --line:#332E29;
  --red:#C43C37;
  --red-hot:#D9534E;

  --hand:'Neucha', cursive;
  --sans:'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:'Space Mono', ui-monospace, SFMono-Regular, monospace;
  --type:'Courier Prime', 'Courier New', monospace;   /* document typewriter */

  --header-h:80px;
  --gutter:clamp(20px, 4.5vw, 90px);
  --measure:68ch;

  /* measured off the hero artwork — do not hand-edit */
  --art-aspect:4934/2467;
  --slot-left:45.967%;
  --slot-top:25.051%;
  --slot-w:36.400%;
  --slot-h:40.940%;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--ground);
  color:var(--body);
  font-family:var(--sans);
  font-size:19px;
  line-height:1.65;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

h1,h2,h3{
  font-family:var(--hand); font-weight:400; color:var(--cream);
  line-height:1.04; margin:0 0 .3em; letter-spacing:.005em;
}
h1{ font-size:clamp(30px,5vw,96px); }
h2{ font-size:clamp(42px,5.4vw,88px); }
h3{ font-size:clamp(28px,3vw,40px); }

p{ margin:0 0 1.1em; }
a{ color:inherit; }

.container{ width:100%; padding-inline:var(--gutter); }
.measure{ max-width:var(--measure); }

.eyebrow{
  font-family:var(--mono); font-size:clamp(13px,1vw,15px);
  letter-spacing:.14em; text-transform:uppercase; color:var(--red); margin:0 0 16px;
}
.sub{
  font-size:clamp(21px,1.8vw,27px); font-weight:600; color:var(--cream);
  margin-bottom:1.1em; max-width:26ch;
}
.lede{ font-size:clamp(19px,1.7vw,25px); max-width:44ch; color:var(--body); }
.muted{ color:var(--muted); }
.tiny{ font-size:14px; }

.skip{ position:absolute; left:-9999px; top:0; z-index:200;
       background:var(--red); color:#fff; padding:12px 18px; }
.skip:focus{ left:8px; top:8px; }

/* ============================================================
   HEADER — no background until scrolled; a soft top gradient
   keeps the nav legible over the artwork.
   ============================================================ */
#site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  height:var(--header-h);
  background:none;
  border-bottom:0;
  transition:background .3s ease, backdrop-filter .3s ease;
}
/* fade runs taller than the bar itself so it dissolves instead of banding */
#site-header::before{
  content:''; position:absolute; left:0; right:0; top:0;
  height:calc(var(--header-h) * 2.1);
  pointer-events:none; z-index:-1;
  background:linear-gradient(to bottom,
    rgba(10,9,8,.92) 0%,
    rgba(10,9,8,.72) 34%,
    rgba(10,9,8,.34) 66%,
    rgba(10,9,8,0)   100%);
  transition:opacity .3s ease;
}
#site-header.scrolled::before{ opacity:0; }
#site-header.scrolled{
  background:rgba(15,13,12,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(140%) blur(10px);
}
.header-inner{
  height:100%; width:100%; padding-inline:var(--gutter);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px;
}

.logo{ display:block; justify-self:start; line-height:0; text-decoration:none; }
.logo img{ height:clamp(30px,3.2vw,44px); width:auto; transition:opacity .2s ease; }
.logo:hover img{ opacity:.82; }
.logo.small{ margin:0 0 10px; }
.logo.small img{ height:38px; }

.nav{ justify-self:center; display:flex; gap:clamp(22px,3vw,48px); }
.nav a{
  font-family:var(--mono); font-weight:700;
  font-size:14px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--cream); text-decoration:none;
  padding:6px 0; position:relative; transition:color .2s; white-space:nowrap;
  text-shadow:0 1px 10px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.75);
}
.nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background:var(--red); transition:right .25s ease;
}
.nav a:hover{ color:#fff; }
.nav a:hover::after{ right:0; }

.socials{ justify-self:end; display:flex; gap:20px; align-items:center; }
.socials a{ color:var(--muted); display:block; transition:color .2s, transform .2s; }
.socials a:hover{ color:var(--cream); transform:translateY(-2px); }
.socials svg{ width:21px; height:21px; fill:currentColor; display:block; }

.menu-toggle{
  display:none; justify-self:end; background:none; border:0; cursor:pointer;
  padding:10px; gap:5px; flex-direction:column;
}
.menu-toggle span{ width:24px; height:2px; background:var(--cream); display:block; }

/* ============================================================
   HERO — artwork runs to the very top, header floats over it.
   The video sits inside the void painted into the artwork.
   ============================================================ */
.hero{ position:relative; background:var(--ground); padding:0; }

.hero-art{
  position:relative; width:100%;
  aspect-ratio:var(--art-aspect);
  background-image:url(../assets/hero-wall.jpg);
  background-size:100% 100%;
  background-repeat:no-repeat;
}
/* directional scrim under the copy only */
.hero-art::before{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    /* directional scrim under the copy */
    linear-gradient(100deg,
      rgba(15,13,12,.88) 0%, rgba(15,13,12,.68) 26%,
      rgba(15,13,12,.28) 40%, rgba(15,13,12,0) 50%),
    /* lite fade over the whole backdrop so it stops competing.
       sits BELOW the video and copy (z-index 2), so neither is dimmed. */
    linear-gradient(rgba(15,13,12,.26), rgba(15,13,12,.26));
}

.hero-lead{
  position:absolute; z-index:2;
  left:6.5%;                 /* indent from the page edge */
  width:37.5%;               /* runs to ~44%, clearing the video at 47.47% */
  top:45.52%; transform:translateY(-50%);   /* tracks the video's centre */
  text-align:left;
}
.hero-lead .eyebrow{
  font-family:var(--hand);          /* handwritten annotation */
  font-size:clamp(19px,1.85vw,34px);
  letter-spacing:0; text-transform:none;
  margin-bottom:clamp(6px,.7vw,14px);
  text-shadow:0 1px 10px rgba(0,0,0,.9);
}
/* Courier Prime Bold caps: "TELLERMAN HIGH" measures 8.42x its font-size, so
   4.45vw is the hard fit inside the 37.5% column; 4.25vw leaves margin. */
.hero-lead h1{
  font-family:var(--type);
  font-weight:700;
  text-transform:uppercase;
  font-size:clamp(23px,4.25vw,104px);
  letter-spacing:0;
  line-height:1.16;
  margin-bottom:.44em;
  text-shadow:0 2px 24px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.7);
}
.hero-lead .lede{
  /* same width as the headline block */
  font-size:clamp(14px,1.18vw,21px); max-width:76%; margin:0;
  line-height:1.55;
  text-shadow:0 1px 16px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.8);
}
.hero-credit{
  display:flex; align-items:center; gap:12px;
  margin:clamp(20px,2.2vw,38px) 0 0;
  font-family:var(--mono); font-weight:700;
  font-size:clamp(10px,.66vw,12px); letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted);
  text-shadow:0 1px 10px rgba(0,0,0,.9);
}
.hero-credit::before{
  content:''; width:clamp(20px,2.4vw,44px); height:1px;
  background:var(--muted); opacity:.55; flex:none;
}

.video-slot{
  position:absolute; z-index:2;
  left:var(--slot-left);
  top:var(--slot-top);
  width:var(--slot-w);
  height:var(--slot-h);
}

/* ============================================================
   SLIDESHOW — fills the void; controls live inside it
   ============================================================ */
.video-slot .slideshow{ margin:0; width:100%; height:100%; }
.slideshow{ position:relative; }
.slides, .slide{ height:100%; }
.slide{ display:none; }
.slide.is-active{ display:block; animation:fade .45s ease; }
@keyframes fade{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none; } }

.video-frame{
  position:relative; width:100%; height:100%;
  background:#000; border:0; border-radius:0; overflow:hidden;
}
.video-frame img{ width:100%; height:100%; object-fit:cover; }
.video-frame iframe,.video-frame video{ width:100%; height:100%; border:0; display:block; }
.video-frame::after{
  content:attr(data-label);
  position:absolute; left:16px; bottom:12px;
  font-family:var(--mono); font-size:clamp(10px,.72vw,13px); letter-spacing:.08em;
  color:var(--cream); text-shadow:0 1px 6px rgba(0,0,0,.9);
}
.play{
  position:absolute; inset:0; margin:auto;
  width:clamp(44px,4.4vw,78px); aspect-ratio:1; height:auto; border-radius:50%;
  background:rgba(196,60,55,.92); border:0; cursor:pointer;
  display:grid; place-items:center;
  transition:transform .2s ease, background .2s ease;
}
.play:hover{ transform:scale(1.07); background:var(--red-hot); }
.play span{
  width:0; height:0; margin-left:clamp(3px,.35vw,7px);
  border-left:clamp(13px,1.3vw,23px) solid #fff;
  border-top:clamp(8px,.8vw,14px) solid transparent;
  border-bottom:clamp(8px,.8vw,14px) solid transparent;
}
.arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:clamp(30px,2.4vw,44px); aspect-ratio:1; height:auto; border-radius:50%;
  display:grid; place-items:center; padding:0;
  background:rgba(15,13,12,.6); border:1px solid rgba(150,143,130,.35);
  color:var(--cream); font-size:clamp(18px,1.5vw,26px); line-height:1; cursor:pointer;
  transition:background .2s, border-color .2s; z-index:3;
}
.arrow:hover{ background:var(--surface-2); border-color:var(--muted); }
.arrow.prev{ left:10px; }
.arrow.next{ right:10px; }
.dots{
  position:absolute; left:0; right:0; bottom:5%; z-index:3;
  display:flex; gap:9px; justify-content:center;
}
.dots button{
  width:9px; height:9px; padding:0; border-radius:50%;
  background:rgba(255,255,255,.28); border:0; cursor:pointer;
  transition:background .2s, transform .2s;
}
.dots button[aria-selected="true"]{ background:var(--red); transform:scale(1.25); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section{ padding:clamp(80px,9vw,160px) 0; border-top:1px solid var(--line); }
.section.alt{ background:var(--surface); }

.section-grid{
  display:grid;
  grid-template-columns:minmax(320px,1fr) minmax(0,1.15fr);
  gap:clamp(32px,5vw,90px); align-items:start;
}
.section-grid > .col-head{ position:sticky; top:calc(var(--header-h) + 40px); }

.chips{ display:flex; flex-wrap:wrap; gap:12px; margin-top:36px; }
.chips span{
  font-family:var(--mono); font-size:13px; letter-spacing:.08em;
  color:var(--muted); border:1px solid var(--line); padding:9px 15px; border-radius:2px;
}

/* The Game — three numbered beats */
.beats{
  list-style:none; margin:clamp(44px,5vw,80px) 0 0; padding:0;
  display:grid; gap:clamp(24px,2.6vw,40px);
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.beats li{ min-width:0; }
.beats img{
  width:100%; aspect-ratio:16/9; object-fit:cover;
  border:1px solid var(--line); border-radius:3px; margin-bottom:20px;
}
.beat-no{ font-family:var(--mono); font-size:13px; letter-spacing:.16em;
          color:var(--red); margin:0 0 6px; }
.beats h3{ margin-bottom:.35em; }
.beats p:last-child{ margin:0; color:var(--body); }

/* The Story — wide still */
.wide-shot{ margin:clamp(40px,5vw,72px) 0 0; }
.wide-shot img{
  width:100%; aspect-ratio:21/9; object-fit:cover;
  border:1px solid var(--line); border-radius:3px;
}
.wide-shot figcaption{ font-family:var(--mono); font-size:13px; color:var(--muted); margin-top:12px; }

/* The Tech — stats + features */
.stats{
  display:grid; gap:clamp(20px,3vw,48px); margin:clamp(48px,5vw,80px) 0 0;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  border-top:1px solid var(--line); padding-top:36px;
}
.stats div{ min-width:0; }
.stats dt{ font-family:var(--hand); font-size:clamp(48px,5vw,76px); color:var(--cream); line-height:1; }
.stats dd{ margin:8px 0 0; font-family:var(--mono); font-size:13px;
           letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

.features{
  list-style:none; margin:clamp(40px,4vw,64px) 0 0; padding:0;
  display:grid; gap:clamp(24px,2.6vw,40px);
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.features li{ border-left:2px solid var(--red); padding-left:20px; min-width:0; }
.features h3{ font-size:clamp(24px,2vw,30px); margin-bottom:.3em; }
.features p{ margin:0; font-size:17px; color:var(--body); }

/* The Roadmap — three lanes */
.roadmap{
  display:grid; gap:clamp(20px,2.4vw,34px); margin-top:clamp(44px,5vw,72px);
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.lane{
  border:1px solid var(--line); border-radius:3px;
  background:rgba(15,13,12,.55); padding:28px 26px 30px; min-width:0;
}
.lane-title{ font-family:var(--mono); font-size:13px; letter-spacing:.16em;
             text-transform:uppercase; margin:0 0 18px; color:var(--muted); }
.lane.done{ border-color:#3E5B44; }
.lane.done .lane-title{ color:#8FBF97; }
.lane.now{ border-color:#7A4A2E; }
.lane.now .lane-title{ color:#E0A268; }
.lane ul{ list-style:none; margin:0; padding:0; }
.lane li{ font-size:17px; padding:9px 0 9px 22px; position:relative;
          border-top:1px solid rgba(51,46,41,.6); }
.lane li:first-child{ border-top:0; }
.lane li::before{
  content:''; position:absolute; left:0; top:17px;
  width:8px; height:8px; border-radius:50%; background:var(--line);
}
.lane.done li::before{ background:#8FBF97; }
.lane.now li::before{ background:#E0A268; }

/* Gallery */
.grid-shots{
  display:grid; gap:clamp(10px,1.2vw,18px); margin-top:clamp(30px,3vw,48px);
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.grid-shots a{ display:block; overflow:hidden; border:1px solid var(--line); border-radius:3px; }
.grid-shots img{
  width:100%; aspect-ratio:16/9; object-fit:cover;
  transition:transform .4s ease, opacity .3s ease; opacity:.9;
}
.grid-shots a:hover img{ transform:scale(1.04); opacity:1; }
.gallery-note{ margin-top:22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ border-top:1px solid var(--line); background:var(--surface); padding:70px 0 50px; }
.footer-inner{ display:grid; gap:30px; grid-template-columns:1fr auto; align-items:start; }
.footer-links{ display:flex; flex-wrap:wrap; gap:28px; justify-content:flex-end; }
.footer-links a{
  font-family:var(--mono); font-size:14px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); text-decoration:none;
  font-weight:700; transition:color .2s;
}
.footer-links a:hover{ color:var(--cream); }
.footer-bottom{ grid-column:1/-1; border-top:1px solid var(--line); padding-top:24px; margin-top:8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1180px) and (min-width:861px){
  .nav{ gap:20px; }
  .nav a{ font-size:13px; letter-spacing:.06em; }
}

@media (max-width:980px){
  .section-grid{ grid-template-columns:1fr; gap:14px; }
  .section-grid > .col-head{ position:static; }
}

@media (max-width:860px){
  body{ font-size:18px; }
  :root{ --header-h:64px; }

  .header-inner{ grid-template-columns:auto 1fr auto; }
  .socials{ display:none; }
  .menu-toggle{ display:flex; }
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    flex-direction:column; gap:0; align-items:stretch;
    background:rgba(15,13,12,.98); border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .nav.open{ max-height:60vh; }
  .nav a{ padding:18px var(--gutter); border-bottom:1px solid var(--line);
          font-size:15px; text-shadow:none; }
  .nav a::after{ display:none; }

  /* hero collapses: art becomes a backdrop, copy + video in normal flow */
  .hero{
    padding:calc(var(--header-h) + 34px) 0 56px;
    background:#0F0D0C url(../assets/hero-wall-sm.jpg) center/cover no-repeat;
  }
  .hero::before{
    content:''; position:absolute; inset:0;
    background:linear-gradient(to bottom, rgba(15,13,12,.88), rgba(15,13,12,.74) 40%, rgba(15,13,12,.96));
  }
  .hero-art{
    position:relative; z-index:1;
    aspect-ratio:auto; background:none; padding-inline:var(--gutter);
  }
  .hero-art::before{ display:none; }
  .hero-lead{
    position:static; transform:none; width:auto; left:auto;
    padding:0 0 clamp(24px,5vw,40px); text-align:center;
  }
  .hero-lead h1{ font-size:clamp(44px,12vw,72px); }
  .hero-lead h1 br{ display:none; }
  .hero-lead .lede{ font-size:17px; max-width:40ch; margin-inline:auto; }

  .video-slot{ position:static; width:100%; height:auto; }
  .video-slot .slideshow, .slides, .slide{ height:auto; }
  .video-frame{
    aspect-ratio:16/9; height:auto;
    border:1px solid var(--line); border-radius:3px;
  }
  .dots{ position:static; margin-top:16px; }
  .arrow{ width:38px; font-size:22px; }
  .arrow.prev{ left:8px; }
  .arrow.next{ right:8px; }

  .section{ padding:70px 0; }
  .footer-inner{ grid-template-columns:1fr; }
  .footer-links{ justify-content:flex-start; }
}
