@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono.woff2) format("woff2"); }

:root {
  --paper: #f3ece0;
  --ink: #17140f;
  --ink-soft: rgba(23, 20, 15, .7);
  --light: #fbf7ef;
  --accent: #e8743b;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3.2vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.02em; margin: 0; }
.display em { font-style: italic; }
.label { margin: 0 0 18px; opacity: .85; }
.body { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; max-width: 30ch; margin: 22px 0 0; }

/* split text */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform, opacity; }

/* header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--light);
  mix-blend-mode: normal;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand__mark { width: 22px; height: 34px; fill: currentColor; }
.brand__word { font-family: var(--serif); font-size: 28px; line-height: 1; transform: translateY(-1px); }
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  background: var(--ink); color: var(--light);
  padding: 13px 18px; border-radius: 10px;
  transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* film */
.film { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #e9d9c2; }
.loop, .reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity .35s ease; }
.stage { background: #2c2f3a; }
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #1a1410; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__text { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: clamp(90px, 13vh, 140px); color: var(--light); text-shadow: 0 1px 24px rgba(0, 0, 0, .25); }
.hero__text .display.story { font-size: clamp(26px, 3vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.loop.is-on, .reel.is-on { opacity: 1; }
/* As the story scrolls in, its first picture settles from slightly close and dim to full frame. */
.loop, .reel { transform: scale(calc(1 + var(--enter, 0) * .14)); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #0d0b09; opacity: calc(var(--enter, 0) * .55); }
/* Phones: the story is three screens tall and the stage simply sticks to the top while each camera move plays. */
.is-phone .film { height: 300vh; height: 300svh; }
.is-phone .stage { position: sticky; top: 0; }
.is-phone body { overflow-x: clip; }
.snap { display: none; }
/* Phones: a flick stops at each place instead of flying past the story. */
html.is-phone { scroll-snap-type: y mandatory; }
.is-phone .hero, .is-phone .frames, .is-phone .footer { scroll-snap-align: start; }
.is-phone .snap { display: block; position: absolute; left: 0; width: 1px; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }
.is-phone .snap:nth-child(1) { top: 0; }
.is-phone .snap:nth-child(2) { top: 100svh; }
.is-phone .snap:nth-child(3) { top: 200svh; }
/* Phones: inside the story, swipes are read by the page instead of scrolling it. */
.is-phone .stage { touch-action: none; }

.shade { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 6, .28) 0%, rgba(10, 8, 6, 0) 22%, rgba(10, 8, 6, 0) 52%, rgba(10, 8, 6, .5) 100%); }

.caption {
  position: absolute; z-index: 6;
  left: var(--gutter); bottom: clamp(70px, 11vh, 120px);
  color: var(--light);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .18);
  right: var(--gutter);
}
.caption .display { font-size: clamp(44px, 8.6vw, 148px); }
.caption .display.story { font-size: clamp(26px, 3vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.caption .body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.caption--center { left: 0; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); text-align: center; margin: 0 auto; }
.caption { visibility: hidden; }
.caption--hero .label { color: var(--light); }

.hint { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--light); }
.hint i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--light), var(--light)) 0 0 / 1px 40% no-repeat, rgba(251, 247, 239, .3); animation: hint 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes hint { 0% { background-position: 0 -20px; } 100% { background-position: 0 66px; } }

/* frames */
.frames { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter) 40px; background: var(--paper); }
.frames__head { text-align: center; position: relative; z-index: 2; }
.frames__head .display { font-size: clamp(56px, 10vw, 168px); }
.frames__field { position: relative; height: clamp(1000px, 82vw, 1400px); margin-top: 4vh; }
.card { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; will-change: transform; }
.card img { width: 100%; height: auto; border-radius: 1px; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 1px 2px rgba(40, 25, 10, .18), 0 24px 50px -28px rgba(40, 25, 10, .5); }
.card::before { content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -1.6)); background: rgba(236, 222, 190, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); mix-blend-mode: multiply; }
.card--wide::before { left: 30%; }
.card figcaption { margin-top: 14px; color: var(--ink-soft); }

/* footer */
.footer { position: relative; min-height: 100vh; min-height: 100svh; color: var(--light); overflow: hidden; display: flex; align-items: flex-end; }
.footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #e98a5a; }
.footer__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 8, 6, .12) 0%, rgba(10, 8, 6, 0) 30%, rgba(10, 8, 6, 0) 50%, rgba(10, 8, 6, .55) 100%); }
.sign { position: absolute; z-index: 2; left: var(--gutter); top: clamp(96px, 16vh, 170px); display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); color: var(--light); text-shadow: 0 2px 30px rgba(0, 0, 0, .15); }
.sign__mark { width: clamp(46px, 5.6vw, 92px); height: clamp(70px, 8.6vw, 140px); fill: currentColor; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .15)); }
.sign__word { font-family: var(--serif); font-size: clamp(72px, 10vw, 180px); line-height: .9; letter-spacing: -.02em; }
.footer__inner { position: relative; width: 100%; padding: 0 0 22px; }
.marquee { display: block; overflow: hidden; text-decoration: none; white-space: nowrap; padding: .1em 0; }
.marquee__track { display: inline-block; font-size: clamp(72px, 15vw, 260px); padding-left: 100%; animation: marquee 38s linear infinite; }
.marquee__track i { font-style: normal; color: var(--accent); padding: 0 .2em; }
@keyframes marquee { to { transform: translateX(-100%); } }
.footer__line { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; margin: 18px var(--gutter) 64px; }
.footer__line a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer__base { display: flex; justify-content: space-between; padding: 0 var(--gutter); opacity: .85; }

@media (max-width: 720px) {
  .frames__head .display { font-size: 44px; }
  .brand__word { font-size: 24px; }
  .btn { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  .brand { min-height: 44px; }
  .caption .body a, .footer__line a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
  .mono { font-size: 12px; }
  .caption .display { font-size: 9.4vw; }
  .caption .display.story { font-size: 21px; line-height: 1.12; }
  .caption .display.story br, .hero__text .display.story br { display: none; }
  .hero__text .display.story { font-size: 21px; line-height: 1.12; }
  .hero__text { bottom: 132px; text-align: center; }
  .caption { left: var(--gutter); right: var(--gutter); text-align: center; }
  .caption .body { margin-left: auto; margin-right: auto; }
  .caption { bottom: 74px; }
  .body { font-size: 18px; }
  .hint { bottom: 44px; }
  .frames__field { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin-top: 36px; perspective: none; }
  .card { position: relative; left: auto; top: auto; width: auto; }
  .card:nth-child(even) { margin-top: 48px; }
  .card--wide { grid-column: 1 / -1; }
  .footer__bg { object-position: 78% 50%; }
  .is-phone .footer__bg { object-position: 50% 50%; }
  .sign { left: 0; right: 0; justify-content: center; top: auto; bottom: 262px; }
  .sign__word { font-size: 64px; }
  .sign__mark { width: 40px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; padding-left: 0; }
}
