/* ============================================
   DESIGN TOKENS
   Concept: a dark editing-bay / studio set — the
   phone screens are the only light source. Warm
   near-black, not cold-tech black. Gold = spotlight.
   ============================================ */
:root {
  /* Color */
  --bg: #14120f;
  --bg-raised: #1c1915;
  --bg-raised-2: #24201a;
  --line: #322c24;
  --ink: #f5f1ea;
  --ink-dim: #bdb6a9;
  --ink-faint: #8a8378;
  --gold: #e8a33d;
  --gold-dim: #a97a30;
  --teal: #5fb8a8;
  --danger: #e2604f;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-2xs: 0.6875rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.75rem;
  --fs-4xl: 5.5rem;

  /* Space (8pt-ish rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;
  --sp-8: 10rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;

  --container: 1240px;
}

/* ============================================ RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul { list-style: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--gold-dim);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.section-title {
  font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-3xl));
  margin-top: var(--sp-2);
  max-width: 18ch;
}
.section-kicker { color: var(--ink-dim); font-size: var(--fs-base); max-width: 46ch; margin-top: var(--sp-3); }

.section-head { margin-bottom: var(--sp-6); }

section { padding-block: var(--sp-7); position: relative; }
@media (max-width: 767px) { section { padding-block: var(--sp-6); } }

/* ============================================ PROGRESS BAR (stories-style) */
.story-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: var(--sp-1) var(--sp-2) 0;
  pointer-events: none;
}
.story-progress__seg {
  flex: 1 1 0;
  height: 2px;
  background: rgba(245, 241, 234, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress__seg span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 80ms linear;
}

/* ============================================ NAV */
.nav {
  position: fixed;
  top: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.6rem 0.7rem 0.6rem 1.2rem;
  background: rgba(28, 25, 21, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: calc(100% - 2rem);
  max-width: 760px;
}
.nav__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__mark em { color: var(--gold); font-style: normal; }
.nav__links {
  display: none;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--ink-dim);
  margin-left: auto;
}
.nav__links a { transition: color var(--dur-fast); }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav__links { display: flex; } }
.nav__cta {
  margin-left: auto;
  background: var(--gold);
  color: #1a1509;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.nav__cta:hover { transform: translateY(-1px); background: #f0b354; }
@media (min-width: 860px) { .nav__cta { margin-left: 0; } }

.nav__toggle {
  display: inline-flex;
  margin-left: auto;
  padding: 0.4rem;
  cursor: pointer;
}
@media (min-width: 860px) { .nav__toggle { display: none; } }

.nav__sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(20, 18, 15, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.nav__sheet.is-open { opacity: 1; pointer-events: auto; }
.nav__sheet-close { position: absolute; top: var(--sp-3); right: var(--sp-3); }

/* ============================================ PHONE COMPONENT */
.phone {
  --phone-w: 240px;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.5;
  border-radius: 2.4rem;
  padding: 10px;
  background: linear-gradient(165deg, #363026, #0c0a08 70%);
  box-shadow:
    0 0 0 1px rgba(245, 241, 234, 0.06),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
  position: relative;
  flex-shrink: 0;
}
.phone__island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #080706;
  border-radius: 20px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 1.9rem;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #3a2e1c, #14120f 60%);
  position: relative;
}
.phone__screen video, .phone__screen img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__tag {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--ink);
  background: rgba(10, 9, 7, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.3em 0.6em;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 234, 0.14);
}
.phone__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  background: rgba(8, 7, 6, 0);
  transition: background var(--dur-fast);
}
.phone__play svg { width: 44px; height: 44px; opacity: 0; transition: opacity var(--dur-fast); filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.phone.is-paused .phone__play { background: rgba(8, 7, 6, 0.28); }
.phone.is-paused .phone__play svg { opacity: 1; }
.phone__mute {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 4;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 999px;
  background: rgba(10, 9, 7, 0.55);
  backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.phone__mute:hover { background: rgba(10, 9, 7, 0.75); }
.phone__mute svg { width: 16px; height: 16px; }
.phone__mute .icon-unmuted { display: none; }
.phone__mute[aria-pressed="true"] .icon-muted { display: none; }
.phone__mute[aria-pressed="true"] .icon-unmuted { display: block; }

/* ============================================ HERO */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--sp-7);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  width: 100%;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
/* Mobile: the video is the hook — lead with it, like opening a Reel, then the pitch */
@media (max-width: 767px) {
  .hero__grid { gap: var(--sp-4); }
  .hero__stage { order: -1; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}
.hero__copy .eyebrow { margin-bottom: var(--sp-3); }
.hero__title {
  font-size: clamp(var(--fs-3xl), 6.4vw, var(--fs-4xl));
  max-width: 12ch;
}
.hero__title .accent { color: var(--gold); }
.hero__sub {
  margin-top: var(--sp-3);
  color: var(--ink-dim);
  font-size: var(--fs-lg);
  max-width: 40ch;
}
.hero__actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
}
.btn-primary { background: var(--gold); color: #1a1509; }
.btn-primary:hover { transform: translateY(-2px); background: #f0b354; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

.hero__stats {
  margin-top: var(--sp-5);
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--gold);
}
.stat__label { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 0.3em; }

.hero__stage {
  position: relative;
  height: clamp(400px, 46vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__stage .phone {
  position: absolute;
  --phone-w: clamp(148px, 20vw, 250px);
}
.hero__stage .phone[data-pos="left"] { transform: rotate(-9deg) translate(-36%, 6%); z-index: 1; filter: brightness(0.72); }
.hero__stage .phone[data-pos="right"] { transform: rotate(9deg) translate(36%, 6%); z-index: 1; filter: brightness(0.72); }
.hero__stage .phone[data-pos="center"] { z-index: 2; box-shadow: 0 0 90px -10px rgba(232, 163, 61, 0.25), 0 40px 70px -20px rgba(0,0,0,.8); }

/* Mobile: one confident phone, not a shrunk fan — side phones would just be clutter here */
@media (max-width: 640px) {
  .hero__stage { height: auto; padding-block: var(--sp-3); }
  .hero__stage .phone[data-pos="left"],
  .hero__stage .phone[data-pos="right"] { display: none; }
  .hero__stage .phone[data-pos="center"] {
    position: relative;
    --phone-w: min(78vw, 320px);
  }
}

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-3);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  letter-spacing: 0.1em;
}
.hero__scrollcue::after {
  content: "";
  width: 1px; height: 28px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: scrollcue 1.8s var(--ease-out) infinite;
}
@keyframes scrollcue { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }

/* ============================================ REVEAL
   A scrub-wipe: content reveals left-to-right like a
   playhead scanning across a timeline, echoing the
   timecodes and story-progress bar used elsewhere. */
[data-reveal] {
  position: relative;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms var(--ease-out);
}
[data-reveal].is-visible { clip-path: inset(0 0 0 0); }
[data-reveal]::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px 1px rgba(232, 163, 61, 0.7);
  opacity: 0;
}
[data-reveal].is-visible::after {
  animation: scrubline 900ms var(--ease-out) forwards;
}
@keyframes scrubline {
  0% { left: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

[data-reveal-stagger] > * {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 700ms var(--ease-out);
}
[data-reveal-stagger].is-visible > * { clip-path: inset(0 0 0 0); }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 450ms; }

/* ============================================ PORTFOLIO */
.portfolio__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.filter:hover { border-color: var(--ink-faint); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.reel-shelf {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-block: var(--sp-2);
  padding-inline: var(--sp-3);
  margin-inline: calc(var(--sp-3) * -1);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
@media (min-width: 768px) { .reel-shelf { padding-inline: var(--sp-5); margin-inline: calc(var(--sp-5) * -1); } }
.reel-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: opacity var(--dur-med);
}
.reel-card[hidden] { display: none; }
.reel-card .phone { --phone-w: 220px; }
/* Mobile: one reel dominates the viewport at a time, like swiping through Reels —
   not the same multi-card shelf just scaled down */
@media (max-width: 640px) {
  .reel-shelf { scroll-snap-type: x mandatory; gap: var(--sp-4); }
  .reel-card .phone { --phone-w: min(70vw, 280px); }
}
.reel-card__meta { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-faint); max-width: 220px; }
.reel-card__meta strong { color: var(--ink); font-weight: 500; display: block; font-size: var(--fs-sm); }

/* One reel leads the shelf — hierarchy across cards, not just within one */
.reel-card--featured .phone { --phone-w: 268px; }
.reel-card--featured .phone[data-pos], .reel-card--featured .phone { box-shadow: 0 0 60px -12px rgba(232, 163, 61, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.reel-card__badge {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: -0.25rem;
}
@media (max-width: 640px) { .reel-card--featured .phone { --phone-w: min(76vw, 300px); } }

/* ============================================ ABOUT */
.about__grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 900px) { .about__grid { grid-template-columns: 0.8fr 1.2fr; align-items: center; } }
.about__portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__body p { color: var(--ink-dim); font-size: var(--fs-lg); max-width: 52ch; }
.about__body p + p { margin-top: var(--sp-2); }
.about__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-4); }
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--teal);
  border: 1px solid rgba(95, 184, 168, 0.35);
  padding: 0.4em 0.8em;
  border-radius: 999px;
}

/* ============================================ RATE CARD */
.rates {
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 860px) { .rates { grid-template-columns: repeat(3, 1fr); } }
.rate-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.rate-card:hover { transform: translateY(-6px); border-color: var(--ink-faint); }
.rate-card.is-featured { border-color: var(--gold-dim); background: linear-gradient(165deg, var(--bg-raised-2), var(--bg-raised)); }
.rate-card__slate {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.rate-card__name { font-family: var(--font-display); font-size: var(--fs-xl); margin-top: 0.2rem; }
.rate-card__price { font-family: var(--font-mono); color: var(--gold); font-size: var(--fs-lg); margin-top: var(--sp-1); }
.rate-card__price span { color: var(--ink-faint); font-size: var(--fs-xs); }
.rate-card__list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 0.65rem; flex-grow: 1; }
.rate-card__list li { display: flex; gap: 0.6em; font-size: var(--fs-sm); color: var(--ink-dim); align-items: flex-start; }
.rate-card__list svg { flex-shrink: 0; margin-top: 0.2em; width: 16px; height: 16px; color: var(--teal); }
.rate-card .btn { margin-top: var(--sp-4); justify-content: center; }

/* ============================================ BRANDS */
#brands { padding-block: var(--sp-4); }
.brands__strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.brand-mark:hover { opacity: 1; color: var(--ink); }

/* ============================================ CONTACT */
.contact__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact__info p { color: var(--ink-dim); font-size: var(--fs-lg); max-width: 40ch; }
.contact__meta { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.contact__meta a, .contact__meta span { display: flex; align-items: center; gap: 0.7em; font-size: var(--fs-sm); color: var(--ink-dim); }
.contact__meta svg { width: 18px; height: 18px; color: var(--gold); }
.contact__meta a:hover { color: var(--ink); }

.form-row { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-3); }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dim); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-2); }
.form-status { font-size: var(--fs-xs); color: var(--teal); margin-top: var(--sp-2); min-height: 1.2em; }

/* ============================================ FOOTER */
footer {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
footer .socials { display: flex; gap: var(--sp-3); }
footer .socials a:hover { color: var(--ink); }

/* Timecode divider used before sections as a subject-specific structural device */
.timecode {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
