:root {
  --ink: #0f0e0d;
  --ink-2: #1a1816;
  --line: #2c2926;
  --paper: #eeeae3;
  --text: #f3efe8;
  --soft: #cfc9c0;
  --muted: #9a938a;
  --muted-dark: #5d5852;
  --tally: #f2482b;
  --tally-press: #d63a1f;

  /* one spacing scale, 8 px based */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s6: 3rem; --s8: 4rem; --s12: 6rem;
  --section: var(--s12);
  --radius: 6px;
  --wrap: 80rem;
  --gutter: 2rem;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(16px, .469vw + 10px, 24px); scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: .92; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }

.tally { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; background: var(--tally); flex: none; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.mark {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 800; font-size: 1.25rem;
  text-decoration: none;
}
.mark span { color: var(--tally); }
.top__nav { display: flex; gap: var(--s4); align-items: center; font-size: .9375rem; }
.top__nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.top__nav a:hover { color: var(--text); }
.top__nav .top__cta {
  color: var(--ink); background: var(--tally); font-weight: 700;
  padding: .5rem .875rem; border-radius: var(--radius);
  transition: background-color .15s;
}
.top__nav .top__cta:hover { color: var(--ink); background: var(--tally-press); }

/* hero: the showreel fills the screen */
.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,14,13,.96) 0%, rgba(15,14,13,.7) 34%, rgba(15,14,13,.28) 75%, rgba(15,14,13,.4) 100%);
}
.hero__content { position: relative; width: 100%; padding-bottom: var(--s8); }
.label {
  display: flex; align-items: center; gap: var(--s1);
  font-family: var(--mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--soft);
  margin-bottom: var(--s2);
}
.hero__name {
  font-variation-settings: "wdth" 62;
  font-weight: 900;
  font-size: clamp(6rem, 17vw, 16rem);
  line-height: .8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-left: -0.04em;
  margin-bottom: var(--s4);
}
.hero__name span { color: var(--tally); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); }
.hero__line { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); font-weight: 500; max-width: 30ch; line-height: 1.35; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.btn {
  display: inline-block;
  background: var(--tally); color: var(--ink);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  padding: 1rem var(--s3);
  border-radius: var(--radius);
  transition: background-color .15s;
}
.btn:hover { background: var(--tally-press); }
.link { white-space: nowrap; color: var(--text); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--tally); }
.hero__tc {
  position: absolute; top: var(--s3); right: var(--gutter);
  display: flex; align-items: center; gap: var(--s1);
  margin: 0; padding: .375rem .625rem;
  background: rgba(15,14,13,.75); border-radius: var(--radius);
  font-size: .875rem; color: var(--text);
}

/* filmstrip of real frames */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); padding: var(--s1) 0; }
.strip__row {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s1);
  padding: 0 var(--s1);
}
.strip__row img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }

/* sections */
.section { padding: var(--section) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s6); }
.section__title {
  font-variation-settings: "wdth" 62;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 10vw, 9.375rem);
  letter-spacing: -0.015em;
}
.section__intro { color: var(--muted); }

/* works: big thumbnails like a channel page */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) var(--s4); }
.work__thumb {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
}
.work__thumb img, .work__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__thumb video { opacity: 0; transition: opacity 180ms; }
.work__thumb.is-previewing video { opacity: 1; }
.work__play {
  position: absolute; left: var(--s2); bottom: var(--s2);
  background: var(--ink); color: var(--text);
  font-size: .875rem; padding: .375rem .625rem; border-radius: 4px;
  transition: background-color .15s, color .15s;
}
.work__thumb:hover .work__play { background: var(--tally); color: var(--ink); }
.work__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s2); margin: var(--s3) 0 var(--s1); }
.work h3 {
  font-variation-settings: "wdth" 70;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}
.work__kind { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.work__time { display: flex; gap: .625rem; font-size: .9375rem; color: var(--muted); margin-bottom: var(--s2); }
.work__time .arrow { color: var(--tally); }
.work__time .final { color: var(--text); }
.work__desc { color: var(--soft); max-width: 56ch; }

/* method, paper section breaks the dark rhythm */
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .section__title { margin-bottom: var(--s8); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: var(--s2); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 900;
  font-size: 5.5rem; line-height: 1; color: var(--tally);
  margin-bottom: var(--s2);
}
.steps h3 { font-variation-settings: "wdth" 85; font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin-bottom: var(--s1); }
.steps p { color: var(--muted-dark); }

/* contact: the one red block */
.contact { background: var(--tally); color: var(--ink); padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: end; }
.contact__title {
  font-variation-settings: "wdth" 62;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 9vw, 8.5rem);
  letter-spacing: -0.015em;
  margin-bottom: var(--s3);
}
.contact__lede { font-size: 1.1875rem; font-weight: 500; max-width: 40ch; }
.channels { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.channels li { display: flex; flex-direction: column; gap: .25rem; padding: 1.125rem 0; border-bottom: 2px solid var(--ink); }
.channels__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.channels__value {
  font: inherit; font-size: 1.1875rem; font-weight: 700; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-underline-offset: 4px;
}
.channels__value:hover { text-decoration: underline; }
.channels__hint { font-size: .75rem; font-weight: 400; margin-left: var(--s1); }

/* video player */
.player {
  width: min(75rem, calc(100vw - 2rem));
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--text);
}
.player::backdrop { background: rgba(8,8,7,.88); }
.player__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--s2); }
.player__title { font-size: .875rem; color: var(--muted); }
.player__close {
  font: inherit; font-weight: 700; font-size: .9375rem;
  background: var(--text); color: var(--ink);
  border: 0; border-radius: 4px; padding: .375rem .75rem; cursor: pointer;
}
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* footer */
.foot { padding: var(--s4) 0; font-size: .875rem; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: var(--s3); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* legal pages */
.legal { padding: var(--s8) 0 var(--section); border-bottom: 1px solid var(--line); }
.legal .wrap { max-width: 47.5rem; }
.legal h1 { font-variation-settings: "wdth" 62; font-weight: 900; text-transform: uppercase; font-size: clamp(3.5rem, 8vw, 6rem); }
.legal h2 { font-variation-settings: "wdth" 90; font-size: 1.375rem; line-height: 1.2; margin: var(--s6) 0 var(--s1); }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: var(--s2); }
.todo { background: var(--tally); color: var(--ink); padding: 0 4px; border-radius: 2px; font-family: var(--mono); font-size: .9em; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .strip__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --section: var(--s8); --gutter: 1rem; }
  .hero { min-height: calc(100svh - 4rem); }
  .hero__shade { background: linear-gradient(to top, rgba(15,14,13,.97) 0%, rgba(15,14,13,.75) 45%, rgba(15,14,13,.1) 80%); }
  .hero__content { padding-bottom: var(--s4); }
  .hero__name { font-size: 21vw; }
  .hero__tc { top: var(--s2); }
  .strip__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip__row img { width: 62vw; flex: none; scroll-snap-align: start; }
  .works { grid-template-columns: 1fr; gap: var(--s6); }
  .steps { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .top__nav { gap: var(--s2); }
  .top__nav a:not(.top__cta) { display: none; }
  .channels li { flex-direction: column; gap: 4px; }
  .channels__value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
