/* NEVERSET website. Tokens from NEVERSET_tokens.json (light theme). */
:root {
  --paper: #ffffff;
  --fog: #e4e4e2;
  --ink: #0b0b0b;
  --ink-muted: #5e5e5c;
  --line: #d6d6d3;
  --cobalt: #1f3bcc;
  --on-cobalt: #ffffff;
  --on-image: #ffffff;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 64px);
  --gap: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- type ---------- */
.label { display: block; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.label--cobalt { color: var(--cobalt); }
.label--on-image, .label--on-cobalt { color: var(--on-image); }
.headline { font-weight: 800; font-size: clamp(34px, 5vw, 72px); line-height: .95; letter-spacing: -.03em; }
.headline--xl { font-size: clamp(42px, 7.4vw, 112px); letter-spacing: -.04em; line-height: .92; }
.film-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: .9; }
.film-title-sm { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: .95; }
.film-title--on-image, .film-title-sm { color: var(--on-image); }
.muted { color: var(--ink-muted); }

/* ---------- pill (the only rounded element) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s; }
.pill:hover { background: var(--ink); }
.pill--lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__logo img { height: 18px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav__links a:hover { color: var(--cobalt); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; margin-top: 64px; height: calc(100svh - 64px); overflow: hidden; background: var(--fog); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__top { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(24px, 6vh, 72px); }
.hero__title { color: var(--on-image); font-weight: 800; font-size: clamp(44px, 7.6vw, 128px); line-height: .9; letter-spacing: -.04em; }
.hero__bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__bottom .label { margin-bottom: 8px; }
.hero__reel { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px 0 18px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; }
.hero__reel svg { width: 18px; height: 18px; fill: var(--ink); }
.hero__reel:hover { background: var(--cobalt); color: var(--on-cobalt); }
.hero__reel:hover svg { fill: var(--on-cobalt); }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; padding: clamp(64px, 10vw, 160px) var(--gutter); }
.statement .label { grid-column: 1 / -1; }
.statement .headline { grid-column: 1 / span 8; }
.statement__body { grid-column: 9 / span 4; align-self: end; display: grid; gap: 12px; font-size: 17px; line-height: 1.45; }

/* ---------- work: contact sheet ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter) 16px; }
.section-head__note { font-size: 13px; color: var(--ink-muted); }
.sheet { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.tile { position: relative; display: block; overflow: hidden; background: var(--fog); height: min(42vw, 780px); text-align: left; }
.tile--wide { grid-column: span 8; }
.tile--narrow { grid-column: span 4; }
.tile--full { grid-column: span 12; height: min(40vw, 720px); }
.tile--third { grid-column: span 4; }
.tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover video { transform: scale(1.02); }
.tile__cap { position: absolute; left: 24px; bottom: 22px; display: grid; gap: 8px; }
.tile__cap--top { top: 22px; bottom: auto; }
.tile__series { position: absolute; left: 24px; right: 24px; top: 22px; bottom: 22px; display: flex; flex-direction: column; }
.tile__series .label { margin-bottom: auto; }
.series-bar { align-self: flex-start; background: var(--cobalt); color: var(--on-cobalt); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.03em; line-height: 1; padding: 6px 10px 5px; }
.series-cat { margin-top: 6px; color: var(--on-image); font-weight: 800; font-size: clamp(16px, 1.4vw, 22px); letter-spacing: -.01em; text-transform: uppercase; }

/* ---------- what we make ---------- */
.make { padding: clamp(80px, 11vw, 176px) var(--gutter) 0; }
.make__head { display: grid; gap: 14px; margin-bottom: 40px; }
.film-title--sub { font-size: clamp(34px, 5vw, 72px); line-height: .95; }
.make__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: 0 calc(var(--gutter) * -1); }
.make__item { background: var(--paper); }
.make__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--fog); }
.make__item figcaption { display: grid; gap: 6px; padding: 16px 20px 0; font-size: 15px; color: var(--ink-muted); }
.make__item .label { color: var(--ink); }

/* ---------- process (the one cobalt slab) ---------- */
.process { margin-top: clamp(80px, 11vw, 176px); background: var(--cobalt); color: var(--on-cobalt); padding: clamp(64px, 9vw, 140px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.process__head { grid-column: 1 / span 6; display: grid; gap: 18px; align-content: start; }
.steps { grid-column: 7 / span 6; list-style: none; border-top: 1px solid rgba(255,255,255,.35); margin-top: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: start; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.steps__n { font-weight: 800; font-size: 22px; letter-spacing: -.02em; padding-top: 4px; }
.steps h3 { font-weight: 800; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; letter-spacing: -.035em; margin-bottom: 8px; }
.steps p { font-size: 16px; opacity: .92; }
.tag { background: var(--paper); color: var(--cobalt); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; white-space: nowrap; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; background: var(--fog); }
.studio__img { min-height: 560px; }
.studio__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.studio__text { padding: clamp(48px, 7vw, 112px) var(--gutter); display: grid; gap: 16px; align-content: center; max-width: 720px; font-size: 17px; line-height: 1.5; }
.studio__text .headline { margin-bottom: 8px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(80px, 11vw, 176px) var(--gutter); }
.contact__main { grid-column: 1 / span 7; display: grid; gap: 18px; align-content: start; }
.contact__mail { justify-self: start; margin-top: 12px; color: var(--cobalt); font-weight: 800; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -.03em; line-height: 1.05; text-decoration: none; border-bottom: 4px solid var(--cobalt); padding-bottom: 4px; }
.contact__mail:hover { color: var(--ink); border-color: var(--ink); }
.contact__side { grid-column: 9 / span 4; display: grid; gap: 24px; align-content: end; justify-items: start; }
.brief { list-style: none; width: 100%; border-top: 1px solid var(--line); }
.brief li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.brief span { color: var(--cobalt); margin-right: 14px; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 48px var(--gutter) 40px; border-top: 1px solid var(--line); }
.foot__logo { width: 120px; }
.foot__cols { display: grid; gap: 6px; text-align: right; font-size: 14px; }

/* ---------- player ---------- */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; }
.player::backdrop { background: rgba(11,11,11,.94); }
.player[open] { display: flex; align-items: center; justify-content: center; }
.player__video { max-width: min(92vw, 1600px); max-height: 86vh; background: #000; }
.player__close { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); }
.player__close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; fill: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .statement, .process, .contact { grid-template-columns: 1fr; column-gap: 0; }
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
  .statement .headline, .statement__body { grid-column: 1 / -1; }
  .tile--wide, .tile--narrow, .tile--full, .tile--third { grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 5; }
  .tile--full, .tile--wide { aspect-ratio: 16 / 10; }
  .make__grid { grid-template-columns: 1fr 1fr; }
  .process__head, .steps { grid-column: 1 / -1; }
  .studio { grid-template-columns: 1fr; }
  .studio__img { min-height: 0; aspect-ratio: 4 / 5; }
  .contact__main, .contact__side { grid-column: 1 / -1; }
  .contact__side { margin-top: 48px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot__cols { text-align: left; }
}
@media (max-width: 560px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .steps li { grid-template-columns: 40px 1fr; }
  .steps .tag { grid-column: 2; justify-self: start; }
  .pill { height: 36px; padding: 0 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile video { transition: none; }
}
