/* ============================================================
   RUNWAY ANIMATION STUDIO — design tokens
   Black / white, editorial-cinematic. Serif display (Fraunces)
   for the fashion-runway voice, grotesque sans (Archivo) for
   everything structural: labels, nav, numerals, body copy.
   ============================================================ */

:root{
  --black: #0b0b0a;
  --near-black: #141412;
  --white: #faf9f6;
  --paper: #f2f0ea;
  --line-on-dark: #35342f;
  --line-on-light: #d9d6cc;
  --mute-on-dark: #948f83;
  --mute-on-light: #6b675c;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16,.8,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

body{
  margin:0;
  background:var(--white);
  color:var(--black);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

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

.wrap{ max-width:var(--max); margin:0 auto; padding:0 var(--gutter); }

h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }

.section{ padding:96px 0; }
.section--tight{ padding:64px 0; }
.on-dark{ background:var(--black); color:var(--white); }
.on-paper{ background:var(--paper); color:var(--black); }

/* ---------- structural label (film-slate style, used only for
   genuine sequences: process steps, frame counters) ---------- */
.slate{
  font-family:var(--sans);
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--mute-on-light);
  font-variant-numeric: tabular-nums;
}
.on-dark .slate{ color:var(--mute-on-dark); }

/* ---------- letterbox bars — cinematic aspect-ratio motif ---------- */
.letterbox-top, .letterbox-bottom{
  height:10px;
  background:repeating-linear-gradient(90deg, var(--black) 0 2px, transparent 2px 10px);
  opacity:.35;
}

/* ================= HEADER / NAV ================= */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(11,11,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line-on-dark);
  color:var(--white);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.logo{
  font-family:var(--serif);
  font-style:italic;
  font-weight:600;
  font-size:22px;
  letter-spacing:0.01em;
}
.logo span{ font-style:normal; opacity:.55; font-family:var(--sans); font-size:13px; margin-left:8px; vertical-align:middle;}
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:14.5px;
  color:var(--mute-on-dark);
  transition:color .2s var(--ease);
  position:relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--white); }
.nav-links a[aria-current="page"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-24px; height:2px; background:var(--white);
}
.nav-cta{
  border:1px solid var(--white);
  padding:10px 20px;
  border-radius:2px;
  font-size:14px;
}
.nav-cta:hover{ background:var(--white); color:var(--black); }

.nav-toggle{ display:none; background:none; border:0; color:var(--white); cursor:pointer; padding:8px; }
.nav-toggle svg{ width:22px; height:22px; }

@media (max-width:840px){
  .nav-links{
    position:fixed; inset:76px 0 0 0; background:var(--black);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px var(--gutter) 32px;
    transform:translateY(-8px);
    opacity:0; pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav-links a{ width:100%; padding:16px 0; border-bottom:1px solid var(--line-on-dark); font-size:18px; }
  .nav-links a[aria-current="page"]::after{ display:none; }
  .nav-cta{ margin-top:20px; }
  .nav-toggle{ display:block; }
}

/* ================= HERO ================= */
.hero{
  background:var(--black); color:var(--white);
  padding:64px 0 88px;
}
.hero h1{
  font-size:clamp(40px, 7vw, 92px);
  line-height:0.98;
  max-width:16ch;
}
.hero .lede{
  font-size:clamp(16px,2vw,19px);
  color:var(--mute-on-dark);
  max-width:56ch;
  margin-top:28px;
  line-height:1.6;
}
.hero-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 26px;
  font-size:14.5px;
  border-radius:2px;
  border:1px solid currentColor;
  cursor:pointer;
  transition:transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover{ transform:translateY(-2px); }
.btn-solid-light{ background:var(--white); color:var(--black); border-color:var(--white); }
.btn-solid-light:hover{ background:transparent; color:var(--white); }
.btn-outline-light{ color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--black); }
.btn-solid-dark{ background:var(--black); color:var(--white); border-color:var(--black); }
.btn-solid-dark:hover{ background:transparent; color:var(--black); }
.btn-outline-dark{ color:var(--black); }
.btn-outline-dark:hover{ background:var(--black); color:var(--white); }

/* ================= HEADINGS / EYEBROW-FREE SECTION HEADS ================= */
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:32px; margin-bottom:48px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(28px,4vw,44px); max-width:20ch; }
.section-head .desc{ max-width:38ch; font-size:15px; color:var(--mute-on-light); line-height:1.6; }
.on-dark .section-head .desc{ color:var(--mute-on-dark); }

/* ================= STATS STRIP ================= */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-on-dark); border-bottom:1px solid var(--line-on-dark);
}
.stats div{ padding:28px var(--gutter); border-left:1px solid var(--line-on-dark); }
.stats div:first-child{ border-left:none; }
.stat-num{ font-family:var(--serif); font-size:clamp(26px,3vw,38px); }
.stat-label{ font-size:13px; color:var(--mute-on-dark); margin-top:6px; }
@media (max-width:760px){
  .stats{ grid-template-columns:repeat(2,1fr); }
  .stats div:nth-child(3){ border-left:none; }
}

/* ================= SERVICE / EDITORIAL ROWS ================= */
.rows{ border-top:1px solid var(--line-on-light); }
.on-dark .rows{ border-top-color:var(--line-on-dark); }
.row{
  display:grid; grid-template-columns:64px 1fr 1.3fr auto;
  gap:28px; align-items:center;
  padding:30px 0;
  border-bottom:1px solid var(--line-on-light);
}
.row-num{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; align-self:flex-start; }
.on-dark .row{ border-bottom-color:var(--line-on-dark); }
.row h3{ font-size:clamp(20px,2.4vw,27px); }
.row p{ font-size:14.5px; color:var(--mute-on-light); line-height:1.6; }
.on-dark .row p{ color:var(--mute-on-dark); }
.row a.row-link{ font-size:13.5px; border-bottom:1px solid currentColor; white-space:nowrap; }
@media (max-width:760px){
  .row{ grid-template-columns:1fr; gap:10px; }
  .row .slate{ order:-1; }
}

/* ================= PROCESS (real sequence → numbered) ================= */
.process{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line-on-dark); border:1px solid var(--line-on-dark); }
.process div{ background:var(--black); padding:28px 22px; min-height:220px; display:flex; flex-direction:column; justify-content:space-between; }
.process h4{ color:var(--white); font-size:18px; margin-top:14px; }
.process p{ color:var(--mute-on-dark); font-size:13.5px; margin-top:10px; line-height:1.55; }
@media (max-width:900px){ .process{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .process{ grid-template-columns:1fr; } }

/* ================= WORK GRID (contact-sheet) ================= */
.work-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-on-light); border:1px solid var(--line-on-light); }
.work-card{
  background:var(--white);
  aspect-ratio:4/3;
  position:relative;
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:20px;
  color:var(--white);
}
.work-card .frame-bg{ position:absolute; inset:0; }
.work-card .info{ position:relative; z-index:2; }
.work-card .cat{ font-size:12px; letter-spacing:.02em; color:rgba(250,249,246,.72); }
.work-card h3{ font-size:19px; color:var(--white); margin-top:6px; }
.work-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(11,11,10,0) 35%, rgba(11,11,10,.82) 100%); z-index:1; }
@media (max-width:900px){ .work-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .work-grid{ grid-template-columns:1fr; } }

/* ================= TESTIMONIALS ================= */
.quote-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-on-light); border-top:1px solid var(--line-on-light); border-bottom:1px solid var(--line-on-light); }
.quote{ background:var(--white); padding:34px 28px; }
.quote p.q{ font-family:var(--serif); font-size:19px; line-height:1.45; }
.quote .who{ margin-top:20px; font-size:13px; color:var(--mute-on-light); }
@media (max-width:900px){ .quote-strip{ grid-template-columns:1fr; } }

/* ================= PRICING ================= */
.plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-on-light); border:1px solid var(--line-on-light); }
.plan{ background:var(--white); padding:36px 30px; display:flex; flex-direction:column; }
.plan.featured{ background:var(--black); color:var(--white); }
.plan .name{ font-family:var(--serif); font-size:24px; }
.plan .price{ font-family:var(--serif); font-size:40px; margin-top:14px; }
.plan .price small{ font-family:var(--sans); font-size:14px; color:var(--mute-on-light); }
.plan.featured .price small{ color:var(--mute-on-dark); }
.plan .desc{ font-size:14px; color:var(--mute-on-light); margin-top:10px; line-height:1.6; }
.plan.featured .desc{ color:var(--mute-on-dark); }
.plan ul{ list-style:none; margin:26px 0 0; padding:0; flex:1; }
.plan li{ font-size:14px; padding:10px 0; border-top:1px solid var(--line-on-light); }
.plan.featured li{ border-top-color:var(--line-on-dark); }
.plan .btn{ margin-top:26px; width:100%; }
@media (max-width:900px){ .plans{ grid-template-columns:1fr; } }

/* ================= FAQ ================= */
.faq-item{ border-bottom:1px solid var(--line-on-light); padding:24px 0; }
.on-dark .faq-item{ border-bottom-color:var(--line-on-dark); }
.faq-item summary{ cursor:pointer; font-family:var(--serif); font-size:19px; list-style:none; display:flex; justify-content:space-between; gap:20px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-family:var(--sans); font-size:22px; color:var(--mute-on-light); }
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ margin-top:16px; font-size:14.5px; color:var(--mute-on-light); line-height:1.65; max-width:62ch; }

/* ================= FORM ================= */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:13px; color:var(--mute-on-light); }
.field input, .field select, .field textarea{
  font-family:var(--sans); font-size:15px;
  border:1px solid var(--line-on-light);
  background:transparent; color:var(--black);
  padding:13px 14px; border-radius:2px;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:2px solid var(--black); outline-offset:1px;
}
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }

/* ================= CTA BAND ================= */
.cta-band{ background:var(--black); color:var(--white); padding:88px 0; text-align:center; }
.cta-band h2{ font-size:clamp(30px,5vw,54px); max-width:18ch; margin:0 auto; }
.cta-band .btn{ margin-top:34px; }

/* ================= FOOTER ================= */
footer.site{ background:var(--black); color:var(--white); padding-top:56px; }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:48px; border-bottom:1px solid var(--line-on-dark); }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h5{ font-family:var(--sans); font-size:13px; color:var(--mute-on-dark); margin-bottom:16px; }
.footer-col a{ display:block; font-size:14.5px; padding:6px 0; color:var(--white); opacity:.85; }
.footer-col a:hover{ opacity:1; text-decoration:underline; }
.footer-bottom{ display:flex; justify-content:space-between; padding:26px 0; font-size:13px; color:var(--mute-on-dark); flex-wrap:wrap; gap:10px; }

/* ================= misc utility ================= */
.tag{ display:inline-block; font-size:12px; padding:5px 10px; border:1px solid var(--line-on-light); border-radius:2px; color:var(--mute-on-light); }
.on-dark .tag{ border-color:var(--line-on-dark); color:var(--mute-on-dark); }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
@media (max-width:800px){ .grid-2{ grid-template-columns:1fr; gap:36px; } }
.center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; } .mt-48{ margin-top:48px; }

/* ================= ICON BADGES ================= */
.icon-badge{
  width:46px; height:46px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-on-light);
  border-radius:2px;
  flex-shrink:0;
}
.on-dark .icon-badge{ border-color:var(--line-on-dark); }
.icon-badge svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.4; }

/* ================= FRAME COLLAGE (hero visuals) =================
   Scattered, rotated "storyboard frames" — grayscale gradients via
   the same data-tone technique used in the work grid, not photos —
   keeps every page visually rich without borrowed imagery. */
.frame-collage{ position:relative; height:380px; }
.frame-collage .f{
  position:absolute;
  border:1px solid rgba(250,249,246,.18);
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  overflow:hidden;
}
.frame-collage .f .frame-bg{ position:absolute; inset:0; }
.frame-collage .f1{ width:62%; aspect-ratio:4/3; top:0; left:4%; transform:rotate(-4deg); z-index:2; }
.frame-collage .f2{ width:46%; aspect-ratio:3/4; bottom:0; right:2%; transform:rotate(6deg); z-index:1; }
.frame-collage .f3{ width:34%; aspect-ratio:1/1; top:38%; right:20%; transform:rotate(-8deg); z-index:3; }
.frame-collage .f-mark{
  position:absolute; top:14px; left:14px; z-index:2;
  width:32px; height:32px; border:1px solid rgba(250,249,246,.55);
  display:flex; align-items:center; justify-content:center;
}
.frame-collage .f-mark svg{ width:16px; height:16px; stroke:var(--white); fill:none; stroke-width:1.4; }
@media (max-width:900px){ .frame-collage{ height:280px; margin-top:36px; } }

/* small category mark on work-cards */
.work-card .cat-icon{
  position:absolute; top:16px; left:16px; z-index:2;
  width:34px; height:34px; border:1px solid rgba(250,249,246,.55);
  display:flex; align-items:center; justify-content:center;
}
.work-card .cat-icon svg{ width:17px; height:17px; stroke:var(--white); fill:none; stroke-width:1.4; }

.hero-flex{ display:flex; align-items:center; gap:56px; justify-content:space-between; }
.hero-flex > .hero-copy{ flex:1 1 480px; }
.hero-flex > .frame-collage{ flex:1 1 380px; min-width:280px; }
@media (max-width:900px){ .hero-flex{ flex-direction:column; align-items:stretch; } }

/* single orchestrated load-in moment for the hero only */
.reveal{ opacity:0; transform:translateY(14px); animation:reveal .8s var(--ease) forwards; }
.reveal.d1{ animation-delay:.08s; }
.reveal.d2{ animation-delay:.18s; }
.reveal.d3{ animation-delay:.28s; }
@keyframes reveal{ to{ opacity:1; transform:translateY(0); } }
