@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --dusk: #241c26;      /* page */
  --dusk-2: #2f2532;    /* raised surfaces */
  --line: #4a3d4d;      /* rules and outlines */
  --wax: #efe7dc;       /* text */
  --smoke: #b3a8b0;     /* secondary text */
  --flame: #f2b04e;     /* accent: links, focus, frame marks */
  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dusk);
  color: var(--wax);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--flame); color: var(--dusk); padding: .5rem 1rem; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
}
.wordmark { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.wordmark span { color: var(--smoke); }
.site-head nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-head nav a { text-decoration: none; color: var(--smoke); }
.site-head nav a:hover { color: var(--wax); }
@media (max-width: 560px) {
  .site-head nav a:not(:last-child) { display: none; }
}

/* Hero */
.hero { display: grid; gap: 2.5rem; padding-block: 2rem 4rem; }
.line-name { color: var(--flame); font-size: .95rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; max-width: 13ch; }
.lede { margin-top: 1.5rem; max-width: 34rem; color: var(--smoke); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.btn {
  display: inline-block; background: var(--flame); color: var(--dusk);
  font-weight: 600; text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px;
}
.btn:hover { background: #f7c272; }
.text-link { color: var(--wax); text-underline-offset: .25em; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: var(--flame); }

.hero-media { margin: 0; }
.hero-media figcaption { margin-top: 1rem; color: var(--smoke); font-size: .95rem; max-width: 30rem; }

/* Viewfinder: corner crop marks around the hero film */
.viewfinder { position: relative; padding: 14px; }
.viewfinder video { border-radius: 4px; width: 100%; aspect-ratio: 864 / 1040; object-fit: cover; background: var(--dusk-2); }
.viewfinder::before, .viewfinder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --m: 28px; --t: 2px;
  background:
    linear-gradient(var(--flame), var(--flame)) top left / var(--m) var(--t),
    linear-gradient(var(--flame), var(--flame)) top left / var(--t) var(--m),
    linear-gradient(var(--flame), var(--flame)) top right / var(--m) var(--t),
    linear-gradient(var(--flame), var(--flame)) top right / var(--t) var(--m);
  background-repeat: no-repeat;
}
.viewfinder::after { transform: scaleY(-1); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; padding-block: 3rem 6rem; }
  .hero-media { max-width: 480px; justify-self: end; }
}

/* Section heads */
.section-head { display: grid; gap: .75rem; margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; }
.section-head p { color: var(--smoke); }

.work, .how, .lines, .contact { padding-block: 4rem; border-top: 1px solid var(--line); }

/* Reel of vertical clips: swipe on phones, grid on desktop */
.reel {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
.clip { scroll-snap-align: start; }
.phone { position: relative; border-radius: 14px; overflow: hidden; background: var(--dusk-2); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.clip h3 { font-size: 1.2rem; line-height: 1.25; margin-top: 1rem; }
.clip p { color: var(--smoke); font-size: .95rem; margin-top: .4rem; }
@media (min-width: 640px) { .reel { grid-auto-columns: 42%; } }
@media (min-width: 1000px) {
  .reel { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1.5rem; }
}

/* Sound toggle added by main.js */
.sound {
  position: absolute; left: 10px; bottom: 30px; z-index: 2;
  font: 600 .8rem/1 var(--sans); color: var(--wax);
  background: rgb(36 28 38 / .72); border: 1px solid rgb(239 231 220 / .25);
  padding: .5rem .75rem; border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sound[aria-pressed="true"] { border-color: var(--flame); color: var(--flame); }

/* Stills */
.stills { display: grid; gap: 2rem; margin-top: 3.5rem; }
.still { margin: 0; }
.still img { width: 100%; border-radius: 6px; background: var(--dusk-2); }
.still figcaption { margin-top: .85rem; color: var(--smoke); font-size: .95rem; max-width: 36rem; }
.still figcaption strong { color: var(--wax); font-weight: 600; }
@media (min-width: 800px) {
  .stills { grid-template-columns: 1fr 1fr; align-items: start; gap: 2.5rem 1.5rem; }
  .still-wide { grid-column: 1 / -1; }
}

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--flame);
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--smoke); margin-top: .35rem; max-width: 26rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.rules {
  list-style: none; margin: 3rem 0 0; padding: 1.5rem; display: grid; gap: 1rem;
  background: var(--dusk-2); border-radius: 10px; color: var(--smoke);
}
.rules strong { color: var(--wax); font-weight: 600; }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.75rem 2rem; } }

/* Other lines */
.lines { display: grid; gap: 1.5rem; }
.line { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.line h3 { font-size: 1.4rem; }
.line p { color: var(--smoke); margin-top: .5rem; max-width: 30rem; }
.line .soon { color: var(--flame); font-size: .9rem; margin-top: 1rem; }
@media (min-width: 800px) { .lines { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { padding-block: 5rem; }
.contact h2 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em; }
.contact p { color: var(--smoke); margin-top: 1rem; max-width: 32rem; }
.email {
  display: inline-block; margin-top: 2rem; font-family: var(--serif);
  font-size: clamp(1.25rem, 5.2vw, 2.2rem); color: var(--flame);
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .1em;
  overflow-wrap: anywhere;
}
.email:hover { color: #f7c272; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--smoke); font-size: .9rem; display: grid; gap: 1rem; }
.site-foot .ai-note { color: var(--wax); }
.privacy { max-width: 44rem; display: grid; gap: .6rem; }
.privacy h2 { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--wax); }
.copy { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
