:root {
  --bg: #000;
  --frame: #161616;
  --ink: #efefef;
  --soft: #8c8c8c;
  --accent: #f0b54a;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 13vw, 220px);

  --small: 0.875rem;
  --body: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  --lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);
  --head: clamp(2.25rem, 1.4rem + 3.4vw, 5rem);
  --huge: clamp(3.5rem, 1rem + 10vw, 12rem);

  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--m); }

/* letter roll on hover, split by main.js */
[data-roll] { display: inline-flex; overflow: hidden; line-height: 1.15; vertical-align: top; white-space: pre; }
[data-roll] .c { display: inline-block; text-shadow: 0 1.15em currentColor; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 14ms); }
a:hover [data-roll] .c, button:hover [data-roll] .c, [data-roll]:hover .c,
a:focus-visible [data-roll] .c, button:focus-visible [data-roll] .c { transform: translateY(-1.15em); }

/* nav sits over the video, inverted against it */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 72px; padding-inline: var(--m);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  mix-blend-mode: difference; color: #fff; font-weight: 600; font-size: 0.9375rem;
}
.wordmark { font-weight: 800; font-stretch: 125%; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav-place { text-align: center; }
.nav-place span, .footer-row span { font-variant-numeric: tabular-nums; }
.nav nav { display: flex; gap: clamp(14px, 2vw, 28px); justify-content: flex-end; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; background: var(--ink); color: #000; border: 0;
  font-weight: 700; padding: 14px 22px; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease);
}
.btn:active { transform: scale(.96); }
.link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* frames: placeholders until the real videos arrive */
.frame { background: var(--frame); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { color: var(--soft); font-size: var(--small); text-align: center; padding: 16px; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-top {
  position: absolute; top: 92px; left: var(--m); right: var(--m);
  display: flex; justify-content: space-between; font-weight: 600; mix-blend-mode: difference; color: #fff;
}
.golden { color: var(--accent); mix-blend-mode: normal; text-align: right; max-width: 34ch; }
.golden strong { font-weight: 700; }
.hero-bottom { position: absolute; left: var(--m); right: var(--m); bottom: clamp(12px, 2vw, 28px); }
.hero-meta { display: flex; justify-content: space-between; align-items: end; margin-bottom: clamp(8px, 1.5vw, 20px); }
.scroll-cue { font-weight: 600; mix-blend-mode: difference; color: #fff; }
.name {
  margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.055em; line-height: .8;
  font-size: 12.4vw; white-space: nowrap; mix-blend-mode: difference; color: #fff;
}
.name span { display: inline-block; }

/* intro statement, words light up with scroll */
.intro { padding-block: var(--gap); }
.statement { font-size: var(--lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }
.statement .w { opacity: .18; transition: opacity .3s linear; }
.statement .w.on { opacity: 1; }

/* marquee */
.marquee { overflow: hidden; padding-block: 8px; }
.marquee-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee span {
  font-size: var(--huge); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em;
  line-height: .95; white-space: nowrap; padding-right: .3em;
}

/* section heads */
.h2 { font-size: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: .9; margin: 0; }
.h2.huge { font-size: var(--huge); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.sec-note { color: var(--soft); font-weight: 600; }

/* work */
.work { margin-top: var(--gap); }
.cases { list-style: none; margin: 0; padding: 0; }
.cases button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  background: none; border: 0; padding: clamp(10px, 1.2vw, 18px) 0; text-align: left; cursor: pointer;
  transition: opacity .35s var(--ease);
}
.cases .t { font-size: clamp(1.75rem, 1rem + 3vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; }
.cases .k { color: var(--soft); font-weight: 600; white-space: nowrap; }
.cases:hover button { opacity: .25; }
.cases button:hover, .cases button:focus-visible { opacity: 1 !important; }

/* cursor preview follows the mouse over the case list */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; width: 300px;
  opacity: 0; scale: .85; transition: opacity .3s var(--ease), scale .3s var(--ease);
}
.cursor.show { opacity: 1; scale: 1.18; }
.cursor-frame { aspect-ratio: 4 / 3; border-radius: 10px; }
.cursor-label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--ink); color: #000;
  font-weight: 700; font-size: var(--small); padding: 8px 14px; border-radius: 999px;
}

/* fpv */
.fpv { margin-top: var(--gap); }
.fpv-media { height: 90svh; }
.fpv-text { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 40px; }
.fpv-text p { max-width: 42ch; }

/* what I shoot */
.shoot { margin-top: var(--gap); }
.kinds { margin: 56px 0 0; display: grid; gap: clamp(40px, 5vw, 72px); }
.kinds div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: baseline; }
.kinds dt { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: .95; text-transform: uppercase; }
.kinds dd { margin: 0; max-width: 42ch; }

/* about */
.about { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.frame-portrait { aspect-ratio: 4 / 5; border-radius: 10px; }
.letter .h2 { margin-bottom: 40px; }
.letter p { max-width: 52ch; margin-bottom: 1.1em; }
.letter .worked { color: var(--soft); margin-top: 2em; }

/* contact */
.contact { margin-top: var(--gap); }
.contact-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.lead { font-size: var(--lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }

/* footer */
.footer { margin-top: var(--gap); padding: 0 var(--m) 24px; }
.footer-name {
  font-size: 12.4vw; font-weight: 800; text-transform: uppercase; letter-spacing: -0.055em;
  line-height: .8; white-space: nowrap; margin: 0;
}
.footer-row { display: flex; justify-content: space-between; color: var(--soft); font-weight: 600; margin-top: 24px; }

/* player */
dialog { background: var(--bg); color: var(--ink); border: 0; padding: 0; width: min(1200px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .9); }
.frame-player { aspect-ratio: 16 / 9; }
.player-bar { display: flex; justify-content: space-between; padding: 16px 0; font-weight: 600; }

/* entrances, added by main.js */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: settle 1.8s var(--ease) both; }
  .name span { animation: up 1.2s var(--ease) both; }
  .name span + span { animation-delay: .12s; }
  @keyframes settle { from { transform: scale(1.08); } }
  @keyframes up { from { transform: translateY(100%); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rise { opacity: 1; transform: none; }
  [data-roll] .c { transition: none; }
}
@media (hover: none) { .cursor { display: none; } }

/* tablet and phone */
@media (max-width: 900px) {
  .fpv-text, .kinds div, .about, .contact-row { grid-template-columns: 1fr; gap: 20px; }
  .fpv-media { height: 70svh; }
}
@media (max-width: 600px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-place { text-align: right; }
  .nav nav { display: none; }
  .hero-top { flex-direction: column; gap: 6px; }
  .golden { text-align: left; }
  .name { white-space: normal; font-size: 22vw; line-height: .82; }
  .name span { display: block; }
  .cases button { flex-direction: column; gap: 2px; }
  .sec-head { flex-direction: column; align-items: start; }
  .footer-name { font-size: 12.6vw; }
}
