/* ---------------------------------------------------------------
   Sam Joos — portfolio, v2: full-screen immersive
   The reel owns the screen. Heavy condensed display type, film grain,
   hard cuts between black and white sections.
---------------------------------------------------------------- */

:root {
  --black: #000;
  --white: #fff;
  --paper: #f2f2f0;
  --dim: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.16);

  --display: "Saira Extra Condensed", "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 2.6vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Film grain (shared) ---------- */

.grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(5) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navigation (turns dark over light sections) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: var(--white);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
}
/* The solid bar's tint and blur live on a pseudo-element: a blur on the nav
   itself would trap the fixed full-screen menu inside the bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-solid { text-shadow: none; }
.nav.on-light {
  color: var(--black);
  text-shadow: none;
}
.nav.on-light::before { background: rgba(242, 242, 240, 0.92); }

.nav__mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* The small name stays out of the way until the About section reaches the bar
   (the big name already owns the reel), and always shows in the open menu. */
.nav__mark { position: relative; z-index: 2; transition: opacity 0.3s ease, visibility 0.3s; }
.nav:not(.show-mark):not(.is-open) .nav__mark { opacity: 0; visibility: hidden; }

/* Menu button: two thin lines that cross into an X when open */
.nav__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.6rem -0.5rem auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.nav__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav__toggle-lines,
.nav__toggle-lines::before {
  display: block;
  width: 1.6rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.nav__toggle-lines { position: relative; transform: translateY(-3.5px); }
.nav__toggle-lines::before { content: ""; position: absolute; top: 7px; left: 0; }
.nav.is-open .nav__toggle-lines { transform: rotate(45deg); }
.nav.is-open .nav__toggle-lines::before { transform: translateY(-7px) rotate(-90deg); }

/* Full-screen menu in the site's display type */
.nav__links {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 6rem var(--gutter) clamp(3rem, 8svh, 5rem);
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
.nav__links a {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, min(17vw, 15svh), 9rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}
/* Instagram sits in outline, like "The tools evolve"; hover swaps solid and outline */
.nav__ig a { color: transparent; -webkit-text-stroke: 1.25px var(--white); }
.nav__links a:hover { color: transparent; -webkit-text-stroke: 1.25px var(--white); }
.nav__ig a:hover { color: var(--white); }

/* Open menu: always white on black, whatever section is underneath */
.nav.is-open { color: var(--white); text-shadow: none; }
.nav.is-open::before { opacity: 0; }

/* ---------- Hero: full scope frame, letterboxed ---------- */

.hero {
  --reserve: 14rem; /* nav + roles row + gaps + scroll cue */
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3svh, 2rem);
  padding: 4.5rem 0 clamp(1.5rem, 4svh, 3rem);
  background: var(--black);
}

.hero__top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 var(--gutter);
}

/* Scroll cue: a thin arrow centred under the frame that nudges down, gone once you scroll */
.scroll-cue {
  position: relative;
  z-index: 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.25rem;
  margin-top: -0.5rem;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.5s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { animation: cue 2.2s ease-in-out infinite; }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }
@keyframes cue {
  0%, 100% { transform: translateY(-4px); opacity: 0.35; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* The frame is always the reel's true 2.35:1 shape: full width, or
   pillarboxed on ultra-wide screens so it never runs past the fold. */
.hero__frame {
  position: relative;
  width: min(100%, calc((100svh - var(--reserve)) * 1920 / 816));
  margin-inline: auto;
  container-type: inline-size;
}

.hero__picture {
  position: relative;
  aspect-ratio: 1920 / 816;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
}

.hero__reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0) 60%);
}

/* Set like a credit block, in the same condensed face as the REEL line */
.hero__roles {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* The reel control is one line: REEL  00:00:02:03  ❚❚
   The whole line is the button; the glyph flips to ▶ when paused. */
.reel-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.reel-toggle__tag { text-transform: uppercase; }
.reel-toggle__tc { font-variant-numeric: tabular-nums; }
.reel-toggle__btn {
  display: grid;
  place-items: center;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.1em;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.reel-toggle__btn svg { grid-area: 1 / 1; width: 100%; height: 100%; }
.reel-toggle__play { display: none; }
.reel-toggle[aria-pressed="true"] .reel-toggle__pause { display: none; }
.reel-toggle[aria-pressed="true"] .reel-toggle__play { display: block; }
.reel-toggle:hover .reel-toggle__btn { opacity: 1; }
.reel-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
/* Screen readers hear "Pause reel" / "Play reel"; the line above says it visually */
.reel-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero__name {
  --seat: -0.175em; /* pulls the letters down so they sit on the frame's bottom edge */
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--seat);
  z-index: 3;
  display: flex;
  gap: 0.2em;
  padding: 0 2.2cqw;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20vw;
  font-size: 20cqw;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.mask {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.06em;
}
.word {
  display: block;
  transform: translateY(105%);
  animation: word-in 1.1s var(--ease-out) forwards;
}
.mask:nth-child(1) .word { animation-delay: 0.25s; }
.mask:nth-child(2) .word { animation-delay: 0.38s; }

@keyframes word-in {
  to { transform: translateY(0); }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ticker__h {
  padding: 0 var(--gutter) 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dim);
}

.ticker__viewport { overflow: hidden; }

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track li {
  padding-right: 0.32em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Frames ---------- */

.frames {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 40vw 26vw;
  gap: 4px;
  background: var(--black);
}

.frame {
  position: relative;
  overflow: hidden;
  background: #111;
}
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.frame:hover video { transform: scale(1.06); }

.frame--a { grid-column: 1 / span 4; }
.frame--b { grid-column: 5 / span 2; }
.frame--b video { object-position: 28% 50%; }
.frame--c { grid-column: 1 / span 2; }
.frame--d { grid-column: 3 / span 2; }
.frame--e { grid-column: 5 / span 2; }
.frame--e video { object-position: 45% 50%; }

/* ---------- About (hard cut to light) ---------- */

.about {
  background: var(--paper);
  color: var(--black);
  padding: var(--section-y) var(--gutter);
}

.about__h {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4rem, 12.4vw, 13rem);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.about__then,
.about__now { display: block; }
/* The second half reads as the next chapter: same voice, quieter ink */
.about__now { margin-top: 0.12em; color: #8a8a85; }
.nowrap { white-space: nowrap; }

.about__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem var(--gutter);
  margin-top: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.about__portrait { grid-column: 1 / span 6; }
.about__portrait picture { display: block; }
.about__portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.08);
}

.about__text {
  grid-column: 8 / span 5;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.78);
}
.about__text p + p { margin-top: 1.1em; }
.about__lede {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.01em;
}
/* Inline link: set apart by weight and full black, no resting underline.
   A thin line draws in under it on hover. */
.about__text a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.about__text a:hover { background-size: 100% 1px; }

.credo {
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: 2rem;
  border-top: 2px solid var(--black);
}
.credo p {
  max-width: 16em;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4.8vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* ---------- Beyond the camera ---------- */

.beyond {
  padding: var(--section-y) var(--gutter);
}

.beyond__h {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 11.6vw, 12rem);
  line-height: 0.84;
  text-transform: uppercase;
}
.beyond__h span { display: block; }
.beyond__h .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.beyond__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem var(--gutter);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.beyond__lede { grid-row: 1 / span 2; }
.beyond__lede p + p { margin-top: 1em; }

.beyond__lede {
  grid-column: 1 / span 5;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  max-width: 26em;
}

.venture {
  display: block;
  grid-column: 7 / span 6;
  padding-top: 1.25rem;
  border-top: 2px solid var(--white);
  color: var(--dim);
  text-decoration: none;
}
.venture__name {
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
}
/* Card links: condensed caps with a small out-arrow, no underline.
   The arrow nudges up and right on hover. */
.venture__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.venture__go::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease-out);
}
a.venture:hover .venture__go::after,
.venture a.venture__go:hover::after { transform: translate(0.12em, -0.12em); }
.venture__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.venture p + p:not(.venture__links) { margin-top: 0.75em; }
.venture p { max-width: 34em; }

/* ---------- Services ---------- */

.services {
  padding: 0 var(--gutter) var(--section-y);
}

.services__h {
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.service {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem var(--gutter);
  align-items: end;
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service dt {
  grid-column: 1 / span 8;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 6.4vw, 6.5rem);
  line-height: 0.86;
  text-transform: uppercase;
  transition: transform 0.6s var(--ease-out);
}
.service dd {
  grid-column: 9 / span 4;
  color: var(--dim);
  max-width: 30em;
}
.service:hover dt { transform: translateX(0.12em); }
.service dd a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.service dd a:hover { text-decoration-thickness: 2px; }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1) 70%);
}

.contact__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4rem);
}

.contact__h {
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
}

.contact__mail {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.25rem, 11vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__mail:hover {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
/* Email and Instagram share one line; Instagram wraps under only if it must */
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(1.25rem, 3vw, 3rem);
  row-gap: 1rem;
  margin-top: 0.75rem;
}

/* Instagram: just the glyph, after the email, set off by a
   hairline about the height of the email's capitals */
.contact__ig {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: clamp(1.25rem, 3vw, 3rem);
  color: var(--white);
  text-decoration: none;
}
.contact__ig::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: clamp(1.6rem, 7.7vw, 8.4rem);
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
}
.contact__ig .ig-icon {
  flex: none;
  width: clamp(2.25rem, 4.8vw, 5rem);
  height: clamp(2.25rem, 4.8vw, 5rem);
  transition: transform 0.4s var(--ease-out);
}
.contact__ig:hover .ig-icon { transform: rotate(-8deg) scale(1.08); }


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

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dim);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .about__portrait { grid-column: 1 / span 12; max-width: 34rem; }
  .about__text { grid-column: 1 / span 12; }
  .beyond__lede { grid-column: 1 / span 12; grid-row: auto; }
  .venture { grid-column: span 6; }
  .service dt { grid-column: 1 / span 12; }
  .service dd { grid-column: 1 / span 12; }
}

@media (max-width: 700px) {
  .nav { padding-block: 1rem; }
  .nav__mark { font-size: 1.5rem; }

  .reel-toggle { font-size: 1.25rem; }

  .frames {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: calc(100vw * 9 / 16) 46vw 46vw; /* lead frame matches the 16:9 hero */
  }
  .frame--a { grid-column: 1 / span 2; }
  .frame--b { grid-column: 1; }
  .frame--c { grid-column: 2; }
  .frame--d { grid-column: 1; }
  .frame--e { grid-column: 2; }

  .venture { grid-column: 1 / span 12; }
  .ticker__track li:nth-child(even) { -webkit-text-stroke-width: 1px; }
  .beyond__h .outline { -webkit-text-stroke-width: 1.25px; }
}

@media (orientation: portrait), (max-width: 700px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 4.25rem;
    padding-bottom: 2rem;
  }
  .hero__frame { width: 100%; }
  .scroll-cue { display: none; } /* the next section already shows below the frame */
}

/* Every screen: the reel runs full-bleed, edge to edge and top to bottom
   (cropping the sides of the 2.35:1 footage as needed; portrait screens get a
   center-cropped portrait encode). Roles and the reel control sit just above
   the name, so the top of the frame is pure picture. */
@media screen {
  .hero {
    /* fills the screen; the picture stops 4.5vw short of the bottom, leaving a
       black strip inside the hero for the name's dip and the scroll arrow */
    --strip: 4.5vw;
    height: 100svh;
    min-height: 30rem;
    justify-content: flex-end;
    gap: 0;
    padding: 0 0 calc(var(--strip) + 16cqw + 1.75rem);
    container-type: inline-size;
  }
  .hero__frame {
    position: absolute;
    inset: 0 0 var(--strip) 0;
    width: 100%;
    margin: 0;
  }
  .hero__picture {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .hero__shade {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 22%),
      linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0) 62%);
  }
  /* The reel control drops to the bottom right, level with the name; the
     scroll arrow sits under it in the black strip below the picture. */
  .hero__top { position: static; }
  .hero__roles { position: relative; z-index: 3; }
  .hero__name { pointer-events: none; } /* it spans the full width; let clicks reach the reel control */
  .reel-toggle {
    position: absolute;
    z-index: 5;
    right: var(--gutter);
    bottom: calc(var(--strip) + 1.5rem);
  }
  .scroll-cue {
    position: absolute;
    z-index: 5;
    right: calc(var(--gutter) - 0.75rem);
    bottom: calc(var(--strip) / 2 - 1.125rem);
    margin: 0;
    display: grid;
  }
}

/* Phones: open straight onto the reel. The roles, timecode and transport
   button move under the frame. */
@media (max-width: 700px) {
  .hero { gap: 1.75rem; }
  .hero__top { order: 2; align-items: center; }
  .reel-toggle { font-size: 1.05rem; }
  .hero__roles { font-size: 1.05rem; line-height: 1.15; }
  /* Phones: black menu bar on top, then a 16:9 frame (a light trim of the
     2.35:1 footage, from a dedicated 16:9 encode), then roles and the reel
     control below it. */
  .hero {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 4.25rem 0 2rem;
  }
  .hero__frame { position: relative; inset: auto; }
  .hero__picture { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .hero__top { position: relative; }
  .reel-toggle { position: static; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .word { transform: none; animation: none; }
  .grain { animation: none; }
  .scroll-cue svg { animation: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .ticker__track [aria-hidden="true"] { display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Narrow phones: keep the email at a size that leaves room for the icon on its line */
@media (max-width: 520px) {
  .contact__mail { font-size: 2.25rem; }
  .contact__ig::before { height: 1.6rem; }
}
