:root {
  --daylight: #F2F5F8;
  --ink: #14213D;
  --ink-soft: #46526B;
  --slate: #223258;
  --rec: #D92D2D;
  --focus: #FFC400;
  --white: #FFFFFF;
  --rule: #D3DAE3;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--daylight);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

main > section { padding-block: clamp(64px, 9vw, 112px); }

/* ---- Buttons and links ---- */

.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 2px solid var(--rec);
  border-radius: 999px;
  background: var(--rec);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #B92222; border-color: #B92222; }

.btn-quiet {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  font-size: 1rem;
}
.btn-quiet:hover { background: rgba(255, 255, 255, 0.12); border-color: currentColor; }

.text-link {
  font-weight: 600;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--rec); }

/* ---- Hero ---- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 300px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

/* Headline set like burned-in video captions: every line gets its own box. */
.caption {
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.025em;
}
.caption span {
  display: inline;
  padding: 0.08em 0.34em 0.12em;
  background: var(--ink);
  color: var(--white);
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.caption span::after {
  content: "\A";
  white-space: pre;
}

.lede {
  max-width: 34em;
  margin-top: 1.6em;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 2em;
}

/* ---- 9:16 frame ---- */

.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--slate);
  color: var(--white);
}
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

/* The phone camera's tap-to-focus square. */
.focus {
  position: relative;
  width: 72px;
  aspect-ratio: 1;
  border: 1.5px solid var(--focus);
}
.focus::before, .focus::after {
  content: "";
  position: absolute;
  background: var(--focus);
}
.focus::before { left: -1.5px; right: -1.5px; top: 50%; height: 1.5px; margin-top: -0.75px; clip-path: polygon(0 0, 7px 0, 7px 100%, 0 100%, 0 0, calc(100% - 7px) 0, 100% 0, 100% 100%, calc(100% - 7px) 100%, calc(100% - 7px) 0); }
.focus::after { top: -1.5px; bottom: -1.5px; left: 50%; width: 1.5px; margin-left: -0.75px; clip-path: polygon(0 0, 100% 0, 100% 7px, 0 7px, 0 0, 0 calc(100% - 7px), 100% calc(100% - 7px), 100% 100%, 0 100%, 0 calc(100% - 7px)); }

.hero-frame { box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.55); }

.rec {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rec i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* ---- Work ---- */

.work {
  background: var(--ink);
  color: var(--white);
}
.section-note {
  max-width: 36em;
  color: rgba(255, 255, 255, 0.78);
}
.reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px) clamp(14px, 3vw, 40px);
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 900px;
}
.reel figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}
.reel .fmt {
  font-weight: 650;
  color: var(--white);
}

/* ---- Formats ---- */

.format-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(16px, 3vw, 32px);
}
.format-list > div {
  padding-block: 22px;
  border-top: 2px solid var(--ink);
}
.format-list dt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.format-list dd {
  margin-top: 6px;
  max-width: 30em;
  color: var(--ink-soft);
}

/* ---- Process ---- */

.process {
  background: var(--white);
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
  margin-top: clamp(16px, 3vw, 32px);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-content: center;
  width: 2.4em;
  height: 2.4em;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--focus);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}
.steps h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: clamp(180px, 24vw, 280px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.portrait {
  display: grid;
  place-content: center;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--rule);
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.about p { max-width: 34em; }
.about p + p { margin-top: 1em; }

/* ---- Hire ---- */

.hire {
  background: var(--rec);
  color: var(--white);
}
.hire-lede { font-size: 1.25rem; }
.hire-email {
  margin-block: 0.5em 0.9em;
  font-size: clamp(1.5rem, 6.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.hire-email a {
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}
.hire-email a:hover { text-decoration-color: var(--focus); }
.hire-help {
  max-width: 36em;
  margin-top: 2em;
}
.hire :focus-visible { outline-color: var(--white); }

/* ---- Footer ---- */

.foot {
  padding-block: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---- Scrubber: section nav drawn as a video player's progress bar ---- */

.scrubber {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  height: var(--bar);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-inline: max(20px, calc((100% - 1080px) / 2));
  background: var(--ink);
  color: var(--white);
  font-size: 0.95rem;
}
.scrub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.timecode {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
}
.scrubber ul {
  display: flex;
  gap: clamp(10px, 2.4vw, 28px);
}
.scrubber a {
  display: block;
  padding-block: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  text-decoration: none;
}
.scrubber a:hover { color: var(--white); }
.scrubber a[aria-current] {
  color: var(--focus);
}
.track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.played {
  width: 0;
  height: 100%;
  background: var(--rec);
}

/* ---- Small screens ---- */

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { width: min(62vw, 250px); }
  .lede { font-size: 1.125rem; }

  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-grid { grid-template-columns: 1fr; }
  .portrait { width: min(56vw, 220px); }

  .timecode { display: none; }
  .scrub-row { justify-content: center; }
  .scrubber { font-size: 0.875rem; padding-inline: 12px; }
  .scrubber ul { width: 100%; justify-content: space-between; gap: 4px; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec i { animation: none; }
}
