/* fredrecap.com. Design: prototype P2 "Modern art", built out for production. Phone first:
   the base rules are the 375-414 px phone held upright; @media (min-width: 760px) adapts to wider screens.
   One theme: black field, white type. The film supplies the only colour.
   Sources of borrowed values (measurement notes, research/measure/ in the design folder):
   [AY] Artiom Yakushev, b.md section 2: name, two voices per phrase, numerals, reveals, spacing.
   [CB] Clay Boan, a.md section 3a: skewed clip-path windows, index quads, the house ease.
   [RW] Ruben Walma, a.md section 1c: "Bekijk ook" rows, the tile that fills from the side the pointer enters. */

@font-face {
  font-family: "Apfel";
  src: url("../fonts/apfel-grotezk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* The one house ease: power3.out, measured on [CB] index toggle (50 % at 228 ms of 1 s). Every timed tween uses it. */
  --ease: cubic-bezier(.215, .61, .355, 1);
  --pad: max(16px, 1.09vw);    /* [AY] side padding 15.7 px at 1440; 16 px floor on phones */
  --micro: max(13px, .95vw);   /* [AY] micro caps 13.7 px */
  --body: max(16px, 1.3vw);    /* [AY] body 18.7 px; 16 px floor on phones */
  --tag: max(20px, 1.9vw);     /* [AY] tagline 27.4 px */
  --list: max(22px, 2.2vw);    /* [AY] list 31.7 px */
  --count: max(40px, 4.65vw);  /* [AY] counter "All (15)" 67 px */
  --mute: #a6a6a6;             /* secondary text, 8.6:1 on black ([AY] #8a8a8a is 6.1:1, below the 7:1 floor) */
  --line: rgba(255, 255, 255, .16); /* [RW] hairline rgba(255,255,255,.05) on #121212, raised so it reads on #000 */
  --fill: #1c1c1c;             /* [RW] tile #1D1D1D */
  --head: calc(48px + env(safe-area-inset-top, 0px)); /* header height; anchors land below it */
  --sans: "Apfel", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: #000; color: #fff; color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); /* phones on their side */
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.42;
  letter-spacing: -.005em;           /* [AY] body tracking */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2 { font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
section[id], [id="main"] { scroll-margin-top: var(--head); }
main:focus { outline: none; }

/* Two voices inside one phrase [AY]: sans for facts, italic serif for one or two words.
   Newsreader's x-height (0.426) is smaller than Apfel's (0.50), so the serif runs 1.1em to sit level. */
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; line-height: 1; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: var(--pad); top: calc(var(--head) + 8px); z-index: 30;
  background: #fff; color: #000; padding: .7em 1em; font-size: var(--micro); text-decoration: none;
  transform: translateY(-400%);
}
.skip:focus { transform: none; }

/* Lenis (desktop only), its stylesheet inlined */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

/* Label in parentheses over a block [AY "(Info)"] */
.lbl { font-size: var(--micro); color: var(--mute); }

/* A plain play triangle, drawn with borders so it needs no icon file */
.tri { display: inline-block; width: 0; height: 0; border-left: .62em solid currentColor; border-block: .38em solid transparent; flex: none; }

/* A quiet pill button: the main action on a thumb */
.go {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: 0 1.1em;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  text-decoration: none; font-size: 16px; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
@media (hover: hover) { .go:hover { background: #fff; color: #000; } }
.go:active { background: #fff; color: #000; }

/* ---------- Header ----------
   [AY] layout: name left, handle right, micro size, fixed. [AY] uses mix-blend-mode difference; here it is dropped:
   white in difference mode over a mid-grey frame (128) becomes grey 127, unreadable over large parts of the film,
   and blending a fixed layer over playing video costs a repaint each frame on phones. Instead a black backing at
   80 % fading out below the text: white over the brightest frame behind it is still 9:1. */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: env(safe-area-inset-top, 0px) calc(var(--pad) - 10px + env(safe-area-inset-right, 0px)) 12px calc(var(--pad) - 10px + env(safe-area-inset-left, 0px));
  font-size: var(--micro);
  background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8) 66%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hd a { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
@media (hover: hover) { .hd a:hover { text-decoration: underline; } }

/* ---------- Hero ----------
   The name [AY]: first name in a grotesk, surname in an italic serif, tracking -0.04em, white in difference blend.
   Advance widths read from the font files: Apfel 400 "Frederik" 3.598em, Newsreader italic wght 340 opsz 72
   "Pedersen" 3.58em. With -0.04em per letter: "Frederik" 3.28em, "Pedersen" 3.26em.
   Phone: two lines at 21vw, line-height .9. At 375: 78.8 px, the longer line 258 px of 343 px room; at 320: 220 of 288.
   The film is sized from the height left over (in-app browsers leave about 600 to 650 px of svh on an 812 px phone):
   --rw = clamp(46vw, (100svh - top - 160 px) x 9/16, 64vw). At 375 x 620 svh: top 72 px, film 218 x 388 px, right-aligned
   from x 141. The two name lines (1.8em = 142 px) cross its top 37 %; the 160 px under it hold the bio and the button.
   At 390 x 700 svh: film 249 x 443 px, name across the top 32 %. */
.hero {
  --vw: calc((100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) / 100); /* 1vw of the usable width */
  --F: calc(21 * var(--vw));
  position: relative; padding-bottom: 6svh;
}
.stage {
  --top: calc(env(safe-area-inset-top, 0px) + max(68px, 9svh));
  --rw: clamp(46vw, calc((100svh - var(--top) - 160px) * .5625), 64vw);
  position: relative;
  font-size: var(--F);
  padding: var(--top) var(--pad) 0;
  min-height: calc(var(--top) + var(--rw) * 16 / 9);
}
.name {
  position: relative; z-index: 1;
  margin: 0;
  font: 400 1em/.9 var(--sans);
  letter-spacing: -.04em;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;   /* the film and its fallback button stay reachable under it */
}
.name .w { display: block; }
.name .w2 { font-family: var(--serif); font-style: italic; font-weight: 340; font-variation-settings: "opsz" 72; }

.reel { position: absolute; z-index: 0; margin: 0; top: var(--top); right: var(--pad); width: var(--rw); }
.reel-clip { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #111; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
/* Autoplay refused (low power mode, data saver): the poster stays and a play button sits on it, never an empty box. */
.reel-play {
  position: absolute; inset: 0; display: none; place-items: center;
  color: #fff; font-size: 22px;
}
.reel-play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .6); padding-left: 4px; }
.reel.is-blocked .reel-play { display: grid; }

.hero-bio { position: relative; z-index: 2; padding: 20px var(--pad) 0; }
.hero-bio .bio { font-size: max(18px, 1.9vw); line-height: 1.3; letter-spacing: -.02em; max-width: 22em; }
.hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.hero-go .meta { font-size: var(--micro); color: var(--mute); }

/* Load: [AY] name rise per character from y 100 % inside a mask, about 0.02 s per character, 1.1 s.
   The mask is a clip-path on each word with its bottom edge at the word box, so the letters wait below it.
   The blur 10 px to 0 only runs with a fine pointer on a wide screen (.blur); phones get the rise alone. */
.motion.ready .name .w { clip-path: inset(-.45em -.25em 0 -.25em); }
.motion.ready .name .c {
  display: inline-block;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(150ms + var(--i) * 20ms);
}
.motion.ready:not(.is-in) .name .c { transform: translateY(130%); }
.blur.motion.ready:not(.is-in) .name .c { filter: blur(10px); }
/* The film opens from [CB] start window T to the rectangle, 1.2 s, after the name has begun. */
.motion.ready .reel-clip {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s var(--ease) .35s;
}
.motion.ready:not(.is-in) .reel-clip { clip-path: polygon(20.83% 10%, 79.17% 20%, 100% 100%, 0 100%); }

/* ---------- About ---------- */
.about { padding: 16svh var(--pad) 14svh; }
.about .lbl { margin-bottom: 1.4rem; }
.lead { font-size: max(27px, 2.6vw); line-height: 1.18; letter-spacing: -.02em; max-width: 15em; }
.lead .wd { display: inline-block; }
.about-body { margin-top: 2.4rem; max-width: 33em; }
.about-body p + p { margin-top: 1em; }

/* ---------- Moments: [CB] skewed windows ----------
   Each window is its own scroll block. JS writes a 4-point clip-path polygon from the block's position:
   start T (20.83% 10%, 79.17% 20%, 100% 100%, 0 100%) -> rectangle -> end B (0 0, 100% 0, 79.17% 80%, 20.83% 90%),
   every other window mirrored. On phones the corner offsets are scaled to 0.7 so the tilt reads without cutting
   the picture to a sliver. Phone: one window per screen, as wide as the screen allows while the window and its
   caption still fit under the header: width = min(--wm vw, 100 %, (100svh - 110 px) x 9/16). At 375 x 620 svh:
   287 x 510 px, caption under it, 12svh to the next. Without JS or with reduced motion these are plain rectangles. */
.moments { padding: 4svh 0 10svh; }
.moments-head { padding: 0 var(--pad) 8svh; }
.moments-head p { margin-top: .6rem; color: var(--mute); max-width: 26em; }
.m { margin: 0 0 12svh; padding: 0 var(--pad); }
.frame {
  --w: min(calc(var(--wm) * 1vw), 100%, calc((100svh - 110px) * .5625));
  position: relative;
  width: var(--w);
}
.m.r .frame { margin-left: auto; }
.win { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0b; }
.media { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .7em;
  margin-top: .7rem; font-size: var(--micro);
}
.m.r figcaption { justify-content: flex-end; text-align: right; }
.tc { color: var(--mute); font-variant-numeric: tabular-nums; }
.q { color: var(--mute); flex-basis: 100%; }
.motion .win { will-change: clip-path; }
/* Media parallax [CB]: yPercent -20 to +20 measured. A 9:16 still loses too much of its sides when blown up to
   140 %, so the drift here is +-10 % of the window, on media 120 % tall. No gap can show at any scroll position. */
.motion .media { position: absolute; left: 0; top: -10%; height: 120%; will-change: transform; }

/* ---------- Numbers ----------
   [AY] monster numerals: tracking -0.06em, line-height 0.8, serif digits mixed in.
   Width check, Apfel advances: "2:05:27" = 3.036em - 7 x 0.06em = 2.62em.
   Phone at 30vw: 2.62 x 112.5 = 295 px of 343 px at 375; at 320: 2.62 x 96 = 252 of 288.
   Wide at 15vw in two columns: 1440: 566 px in a 654 px column; 760: 299 in 339; 1920: 755 in 872. */
.numbers { padding: 12svh var(--pad) 14svh; }
.numbers .lbl { margin-bottom: 8svh; }
.nums { position: relative; display: grid; row-gap: 9svh; }
.nums div { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.nums div:nth-child(even) { align-items: flex-end; text-align: right; }
.nums dd { font-size: 30vw; line-height: .8; letter-spacing: -.06em; white-space: nowrap; }
.nums dd em { font-size: 1.08em; font-weight: 300; font-variation-settings: "opsz" 72; letter-spacing: -.04em; }
.nums dt { font-size: var(--micro); color: var(--mute); margin-top: 1rem; }

/* ---------- Watch ----------
   The film large with native controls. On a phone it is as large as the screen allows under the header
   (width (100svh - 120 px) x 9/16, at 620 svh: 281 x 500 px), centred; the moments are a two-column grid of
   48 px buttons under it, so every moment is in thumb reach and the film is scrolled back into view after a tap. */
.watch { padding: 12svh var(--pad) 14svh; }
.watch-head h2 { font-size: var(--count); line-height: .95; letter-spacing: -.04em; }
.watch-head .date { font-size: var(--micro); color: var(--mute); margin-top: .8rem; }
.film-view {
  width: min(100%, calc((100svh - 120px) * .5625));
  margin: 6svh auto 0;
  aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0b;
  transform-origin: 50% 50%;
  scroll-margin-top: calc(var(--head) + 8px);
  scroll-margin-bottom: 16px;
}
.film-view video { width: 100%; height: 100%; object-fit: cover; background: #0b0b0b; }
/* The window opens once [CB T to rectangle] when the section comes in. While a mouse previews a moment it zooms
   out to 0.8 and tilts to the next of four quads [CB index hover], 0.5 s; back to the rectangle in 1 s [CB toggle].
   It is always the rectangle at rest, so the native controls are never cut. */
.motion.ready .film-view {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s var(--ease), transform 1s var(--ease);
}
.motion.ready .film-view:not(.is-open) { clip-path: polygon(20.83% 10%, 79.17% 20%, 100% 100%, 0 100%); }
.motion .film-view.is-tilt { transform: scale(.8); }

.idx { display: none; margin-top: 5svh; }
.js .idx { display: block; } /* the buttons need JS; without it the native controls do the seeking */
.idx .lbl { margin-bottom: .6rem; }
.idx ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.idx button {
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; min-height: 56px; padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--mute); line-height: 1.2;
  transition: color .4s var(--ease);
}
.idx button .tc { font-size: var(--micro); }
@media (hover: hover) { .idx button:hover { color: #fff; } }
.idx button[aria-pressed="true"], .idx button:active { color: #fff; }
.idx button[aria-pressed="true"] .tc::after { content: ""; display: inline-block; width: .9em; height: 1px; background: currentColor; margin-left: .5em; vertical-align: middle; }

.film-text { margin-top: 5svh; max-width: 30em; }
.film-text .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }

/* ---------- Rows: films list and "See also" ----------
   [RW] rows: label over hairline rows, row padding 1.5em, 1 px rule. On hover a tile slides in from the edge the
   pointer entered (top or bottom half), 0.5 s (here in the house ease), and the text shifts right
   ([RW] 2.5em at 9.52 px = 24 px). On touch a plain pressed state. */
.tile { position: relative; isolation: isolate; overflow: hidden; text-decoration: none; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  transform: translateY(var(--y, 101%));
  transition: transform .5s var(--ease);
}
.tile.snap::before { transition: none; }
.tile .shift { transition: transform .5s var(--ease); }
.tile.is-on .shift { transform: translateX(24px); }
.tile:active::before { transform: none; transition: none; }
.tile:focus-visible { outline-offset: -2px; }

.films { padding: 12svh 0 10svh; }
.films h2 { padding: 0 var(--pad) 5svh; font-size: var(--count); line-height: .95; letter-spacing: -.04em; }
.films h2 em { font-weight: 300; font-variation-settings: "opsz" 72; }
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
  padding: 14px var(--pad); border-bottom: 1px solid var(--line);
}
.row-thumb { grid-row: span 2; width: 64px; aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0b; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-t { font-size: var(--list); line-height: 1.1; letter-spacing: -.02em; align-self: end; }
.row-m { grid-column: 2; font-size: var(--micro); color: var(--mute); align-self: start; margin-top: .4rem; }
.row-go { grid-column: 3; grid-row: 1 / span 2; font-size: var(--micro); white-space: nowrap; }

.also { padding: 10svh 0 0; }
.also .lbl { padding: 0 var(--pad) 1rem; }
.also ul { border-top: 1px solid var(--line); }
.also a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  min-height: 64px; padding: 18px var(--pad); border-bottom: 1px solid var(--line);
}
.also .t { font-size: var(--list); line-height: 1.1; letter-spacing: -.02em; }
.also .meta { font-size: var(--micro); color: var(--mute); text-align: right; }

/* ---------- Footer ---------- */
.ft { padding: 18svh var(--pad) calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.ig { display: inline-block; font-size: 15vw; line-height: .9; letter-spacing: -.04em; text-decoration: none; padding: .05em 0; }
.ig em { font-weight: 300; font-variation-settings: "opsz" 72; }
@media (hover: hover) { .ig:hover { text-decoration: underline; text-decoration-thickness: 1px; } }
.ft p { font-size: var(--micro); }
.ft p:first-of-type { margin-top: 2rem; }
.ft .who { color: var(--mute); }

/* ---------- Persistent pill (phones and tablets) ----------
   Bottom right, in thumb reach. Shown after the hero; hidden over the watch section, the films, "See also" and the
   footer, and while the film plays. It never covers content for long and never over anything it duplicates. */
.pill {
  position: fixed; z-index: 15;
  right: calc(var(--pad) + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: .6em;
  min-height: 44px; padding: 0 1.1em;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .86); color: #fff;
  font-size: 15px; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.pill.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (max-width: 1023px), (pointer: coarse) { .js .pill { display: inline-flex; } }

/* ---------- Film page ---------- */
.fp { padding: calc(var(--head) + 6svh) var(--pad) 0; }
.crumb { font-size: var(--micro); color: var(--mute); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.crumb span { margin: 0 .4em; }
.fp-t { margin: 1rem 0 0; font-weight: 400; font-size: 13vw; line-height: .9; letter-spacing: -.04em; }
.fp-t em { font-weight: 340; font-variation-settings: "opsz" 72; }
.fp-date { font-size: var(--micro); color: var(--mute); margin-top: 1rem; }
.fp-grid { margin-top: 6svh; }
.fp-video {
  width: min(100%, calc((100svh - 120px) * .5625)); height: auto; margin: 0 auto;
  aspect-ratio: 9 / 16; background: #0b0b0b; object-fit: cover;
  scroll-margin-top: calc(var(--head) + 8px);
}
.fp-text { margin-top: 6svh; max-width: 34em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 2rem; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--micro); color: var(--mute); }
.facts dd { font-size: var(--tag); letter-spacing: -.02em; line-height: 1.2; margin-top: .2rem; }
.fp-text .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.fp-moments { margin-top: 12svh; }
.fp-moments .lbl { margin-bottom: 1rem; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; }
.mgrid button { display: block; width: 100%; }
.mgrid .mi { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0b; }
.mgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .mgrid button:hover img { transform: scale(1.04); } }
.mgrid button:active .mi { opacity: .7; }
.mgrid .cap { display: flex; flex-wrap: wrap; gap: .1em .6em; margin-top: .6rem; font-size: var(--micro); }
.mgrid button[aria-pressed="true"] .cap { text-decoration: underline; text-underline-offset: .25em; }
.fp ~ .also { padding-top: 14svh; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--head) var(--pad) 10svh; }
.nf h1 { margin: 0; font-weight: 400; font-size: 21vw; line-height: .9; letter-spacing: -.04em; }
.nf h1 em { font-weight: 340; font-variation-settings: "opsz" 72; }
.nf p { margin-top: 1.6rem; max-width: 24em; }
.nf .go { margin-top: 1.6rem; align-self: flex-start; }

/* =================================================================
   Wider screens: the P2 layout.
   ================================================================= */
@media (min-width: 760px) {
  /* Name on one line at 14vw (P2 arithmetic, no kerning since JS splits the letters): 3.598em + 3.5795em + space
     0.254em - word-spacing 0.13em - 17 x 0.04em = 6.5875em = 92.2vw. At 760: 701 px of 713 px room
     (760 - 15 scrollbar - 2 x 16 padding); at 1440: 1328 of 1393; at 1920: 1770 of 1863. */
  .hero { --F: calc(14 * var(--vw)); } /* a phone on its side: the insets come off before the name is sized */
  .stage {
    --top: 20svh;
    padding: var(--top) var(--pad) 0;
    min-height: max(100svh, calc(var(--top) + 2.6 * var(--F) + 3rem));
  }
  .name { line-height: .81; white-space: nowrap; word-spacing: -.13em; } /* [AY] line-height 0.81, gap closed by hand */
  .name .w { display: inline-block; }
  /* The film under the name, off-centre left so it crosses "Frederik" only. Line box maths (line-height .81, Apfel
     asc .88 / desc .20, cap .65): caps cross the film between 7.5 % and 32.5 % of its height, the top third, where
     the frames carry the least mid-grey (P2 measurement over all 340 frames). */
  .reel { top: calc(var(--top) - .1em); left: calc(var(--pad) + 1.75em); right: auto; width: 1.4625em; }
  /* Bio [AY] asymmetric block at x 851 of 1440 (59vw), its bottom on the film's bottom edge. */
  .hero { padding-bottom: 0; }
  .hero-bio { position: absolute; left: 59vw; right: var(--pad); top: calc(20svh + 2.5 * var(--F)); transform: translateY(-100%); padding: 0; }

  .about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5vw; padding: 24svh var(--pad) 20svh; }
  .about .lbl { grid-column: 1 / span 3; }
  .lead { grid-column: 6 / span 6; }
  .about-body { grid-column: 8 / span 4; }

  /* Windows placed left or right at different sizes like [AY] portfolio rectangles, 0.85 to 1.15 x the screen
     height ([CB] blocks are 1.5 vh full-width prints; these are portrait). Blocks touch, as in [CB]. */
  .moments-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5vw; padding-bottom: 14svh; }
  .moments-head h2 { grid-column: 1 / span 3; }
  .moments-head p { grid-column: 6 / span 4; margin-top: 0; }
  .frame {
    --w: min(calc(var(--n) * 100svh * .5625), 56vw);
    margin-left: clamp(0px, calc(var(--x) * 1vw - var(--pad)), calc(100% - var(--w)));
  }
  .m.r .frame { margin-left: clamp(0px, calc(var(--x) * 1vw - var(--pad)), calc(100% - var(--w))); }
  .frame figcaption { position: absolute; bottom: 0; left: calc(100% + 1.4vw); width: 18vw; margin: 0; flex-direction: column; gap: .2em; }
  .m.r figcaption { left: auto; right: calc(100% + 1.4vw); align-items: flex-end; }
  .q { flex-basis: auto; }
  .motion .m { margin-bottom: 0; }

  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7vw; row-gap: 8svh; }
  .nums div:nth-child(even) { margin-top: 9svh; align-items: flex-start; text-align: left; }
  .nums dd { font-size: 15vw; }

  .watch {
    display: grid; column-gap: 2.5vw; align-items: end;
    grid-template-columns: min(calc((100svh - 160px) * .5625), 34vw) minmax(0, 1fr) minmax(0, 38%);
    grid-template-areas: "head head head" "view idx text";
  }
  .watch-head { grid-area: head; padding-bottom: 8svh; }
  .film-view { grid-area: view; width: 100%; margin: 0; }
  .idx { grid-area: idx; margin: 0; }
  .idx ul { grid-template-columns: 1fr; }
  .idx button { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: .8em; min-height: 44px; }
  .film-text { grid-area: text; margin: 0; }

  .row { grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr) auto; padding-block: 18px; }
  .row-thumb { width: 96px; grid-row: auto; }
  .row-t { align-self: center; }
  .row-m { grid-column: 3; margin: 0; align-self: center; }
  .row-go { grid-column: 4; grid-row: auto; }
  .also a { min-height: 84px; }

  .ig { font-size: var(--count); }
  .ft { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5vw; padding-top: 24svh; }
  .ft > * { grid-column: 1 / span 6; justify-self: start; }

  .fp-t { font-size: 8vw; }
  .fp-grid { display: grid; grid-template-columns: min(calc((100svh - 140px) * .5625), 40vw) minmax(0, 1fr); column-gap: 5vw; align-items: end; }
  .fp-video { width: 100%; margin: 0; }
  .fp-text { margin: 0; }
  .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 1.5vw; }

  .nf h1 { font-size: 14vw; }
}

/* Reduced motion: nothing scrubbed, pinned or smoothed; every video shows its controls (set in the markup). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* Tablet widths: captions stay under their window (beside it they ran past the right edge at 768 px). */
@media (min-width: 760px) and (max-width: 1099px) {
  .frame figcaption { position: static; width: auto; flex-direction: row; gap: .9em; margin: .7rem 0 0; }
  .m.r figcaption { right: auto; align-items: baseline; justify-content: flex-end; }
}
