/* ==========================================================================
   PROFILE & CV — "Sequence 01: The Career Cut"
   The page reads as one open edit project: Program monitor (hero), Source
   monitor (summary), a docked NLE timeline that rewinds from today to 2005
   (experience), a screening monitor (films), effects + mixer (toolkit) and
   end credits with an Export of the CV.
   Only tokens from style.css; every class starts with pf-.
   Motion: html.js gates the CSS-only intro; html.pf-motion (set by
   profile.js when motion is allowed) gates every JS-driven start state.
   ========================================================================== */

/* ---------- foundations ---------- */
/* clip, not hidden: when main.js locks html for the player, body must not turn
   into a scroll container, or the sticky monitor and dock jump */
body.page-profile { overflow-x: hidden; overflow-x: clip; }
.pf-sec { position: relative; isolation: isolate; padding-block: var(--sec); }

/* depth layer: layered magenta pools + hatch + light streak (never a flat black field) */
.pf-glow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 55% at var(--gx, 18%) var(--gy, 0%), rgba(143, 29, 114, var(--ga, 0.6)), transparent 70%),
    radial-gradient(45% 45% at var(--gx2, 85%) var(--gy2, 100%), rgba(242, 68, 216, var(--gb, 0.2)), transparent 72%),
    #000;
  /* soft top and bottom edges so neighbouring sections meet without a seam */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
}
.pf-glow::before {
  content: ""; position: absolute; inset: 0; background: var(--hatch);
  -webkit-mask-image: linear-gradient(var(--hm, 180deg), #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
  mask-image: linear-gradient(var(--hm, 180deg), #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
}
/* light streak: wide soft stops instead of a blur pass (cheaper to scroll) */
.pf-glow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 10%, rgba(242, 68, 216, 0.16) 30%, transparent 50%, transparent 52%, rgba(242, 68, 216, 0.12) 64%, transparent 84%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 75%); mask-image: linear-gradient(180deg, #000 30%, transparent 75%);
}
.pf-log { --gx: 0%; --gy: 40%; --gx2: 100%; --gy2: 100%; --hm: 0deg; }
.pf-exp { --gx: 100%; --gy: 0%; --gx2: 0%; --gy2: 55%; }
.pf-scr { --gx: 50%; --gy: 0%; --ga: 0.35; }
.pf-kit { --gx: 0%; --gy: 100%; --gx2: 100%; --gy2: 0%; --hm: 0deg; }

/* ---------- small shared parts ---------- */
.pf-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgba(242, 68, 216, 0.6); vertical-align: middle; }
.pill .pf-dot { width: 7px; height: 7px; }
h2.pill { font-weight: 300; }
.pf-head { margin-bottom: 48px; }
.pf-head .h2 { margin-top: 14px; }
.pf-lead { margin-top: 12px; font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--f-head); letter-spacing: -0.05em; color: var(--muted); }
.pf-hint { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.pf-over { margin-bottom: 14px; font: 400 13px/1.4 var(--f-body); letter-spacing: -0.01em; color: var(--pink-2); }
.pf-k { font: 500 11px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.pf-safe { position: absolute; inset: 12px; z-index: 2; pointer-events: none; }
.pf-safe i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(255, 255, 255, 0.5); }
.pf-safe i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.pf-safe i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.pf-safe i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.pf-safe i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.pf-badge { display: inline-grid; place-items: center; flex: none; height: 22px; padding: 0 7px; border-radius: 5px; font: 600 12px/1 var(--f-head); letter-spacing: 0; color: #fff; }
.pf-badge--v { background: linear-gradient(var(--pink-2), var(--pink)); color: #000; } /* black on bright pink: readable (white is ~3:1) */
.pf-badge--a { background: var(--pink-deep); }
/* recording dot: the ring is a pseudo-element animated with transform + opacity only (no repaint) */
.pf-rec { position: relative; display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); vertical-align: middle; }
.pf-rec::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pink); animation: pf-ping 2.2s infinite; }
@keyframes pf-ping { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
/* folder outline (bins and tool groups) */
.pf-folder { position: relative; display: inline-block; flex: none; width: 18px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; color: var(--pink-2); transition: translate 0.4s var(--ease); }
.pf-folder::before { content: ""; position: absolute; left: -1.5px; top: -5.5px; width: 8px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }

/* shared ruler (hero sequence + dock): one tick a year, quarter ticks between */
.pf-ruler {
  position: relative; height: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px) 0 100% / calc(100% / var(--years, 22)) 5px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px) 0 100% / calc(100% / var(--years, 22) / 4) 3px repeat-x;
}
.pf-ruler span { position: absolute; bottom: 5px; padding-left: 5px; font: 400 10px/10px var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.pf-ruler .pf-ruler__now { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 0; transform: translateX(-100%); }
.pf-ruler__now .pf-rec { width: 6px; height: 6px; }

/* LED meters (hero + mixer): segments come from the container mask, bars scale inside */
.pf-meters, .pf-vu {
  display: flex; gap: 3px;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px); mask: repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px);
}
.pf-meters i, .pf-vu i {
  display: block; width: 6px; height: 100%; transform-origin: bottom; transform: scaleY(0.7);
  background: linear-gradient(0deg, var(--pink), var(--pink-2) 70%, #fff);
  animation: pf-vu 1.3s ease-in-out infinite alternate paused;
}
.pf-meters i + i { animation-duration: 1.7s; }
.pf-hero.is-live .pf-meters i, .pf-mix.is-live .pf-vu i { animation-play-state: running; }
@keyframes pf-vu { 0% { transform: scaleY(0.35); } 20% { transform: scaleY(0.8); } 35% { transform: scaleY(0.5); } 55% { transform: scaleY(0.95); } 70% { transform: scaleY(0.6); } 100% { transform: scaleY(0.75); } }

/* ==========================================================================
   2.1 HERO — Program monitor
   ========================================================================== */
.pf-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: 100svh; padding: clamp(118px, 15vh, 150px) 0 64px; }
.pf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, #000 85%); }
.pf-hero > .wrap { position: relative; z-index: 3; }
.pf-ghost { top: 24px; will-change: auto; }
.pf-mon { display: grid; transform-origin: 50% 35%; }
.pf-mon__stage, .pf-mon__copy { grid-area: 1 / 1; }
.pf-mon__stage { position: relative; min-height: clamp(600px, calc(100svh - 210px), 720px); }
.pf-mon__screen {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background: radial-gradient(80% 90% at 72% 40%, #3a0b31 0%, #14040f 60%, #0a0a0a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(242, 68, 216, 0.12);
}
.pf-mon__screen::before { content: ""; position: absolute; inset: 0; background: var(--hatch); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
/* letterbox shutter: two black halves that open on load (CSS only, never over the portrait) */
.pf-mon__lb i { position: absolute; left: 0; right: 0; z-index: 3; height: 50%; background: #000; transform: scaleY(0); }
.pf-mon__lb i:first-child { top: 0; transform-origin: top; }
.pf-mon__lb i:last-child { bottom: 0; transform-origin: bottom; }
.js .pf-mon__lb i { animation: pf-shutter 1.1s 0.15s var(--ease) both; }
@keyframes pf-shutter { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.pf-mon__label { position: absolute; top: 18px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-body); letter-spacing: 0.02em; color: var(--dim); }
.pf-hero .pf-mon__label { z-index: 3; } /* monitor overlays sit above the picture */
.pf-tc { position: absolute; top: 16px; right: 20px; z-index: 3; min-width: 11ch; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.45); font: 500 13px/1.2 var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; text-align: right; color: #fff; }
.pf-meters { position: absolute; right: 16px; top: 22%; bottom: 22%; z-index: 2; }
.pf-seq { position: absolute; left: 24px; right: 24px; bottom: 14px; z-index: 1; height: 38px; }
.pf-seq__trk { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.pf-seq__run { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(242, 68, 216, 0.14)); }
.pf-seq__run::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.pf-seq__run::before { content: ""; position: absolute; right: -2px; top: -3px; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.js .pf-seq__run { animation: pf-sweep 1.8s 0.2s var(--ease) both; }
@keyframes pf-sweep { from { transform: translateX(-100%); } to { transform: none; } }
/* portrait: his head breaks out above the monitor */
.pf-mon__media { position: absolute; bottom: 0; left: 46%; right: 5%; z-index: 2; height: 110%; display: flex; justify-content: center; pointer-events: none; }
.pf-mon__media::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; bottom: 20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 68, 216, 0.3), rgba(143, 29, 114, 0.12) 60%, transparent); filter: blur(24px); }
.pf-mon .hero-portrait { width: auto; height: 100%; max-width: none; }
.pf-mon__copy { position: relative; z-index: 3; align-self: center; width: min(560px, 52%); padding: 48px 0 84px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.pf-h1 { margin-top: 16px; max-width: 4.6em; font: 600 clamp(60px, 7.2vw, 120px)/0.86 var(--f-cond); letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.pf-h1 .w > span { background: linear-gradient(180deg, #fff 25%, #8d8d8d 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-role { margin-top: 18px; font: 600 clamp(19px, 1.7vw, 24px)/1.15 var(--f-head); letter-spacing: -0.05em; color: var(--pink-2); }
.pf-org { margin-top: 6px; font-size: 15px; color: var(--muted); }
.pf-statement { margin-top: 18px; max-width: 440px; font: 300 17px/1.45 var(--f-body); }
.pf-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.pf-mon .btn-in, .pf-export .btn-in { height: 36px; }
/* play pill with a real poster thumb: main.js puts its hover preview inside it */
.pf-play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); cursor: none; transition: box-shadow 0.4s var(--ease); }
.pf-play:hover { box-shadow: inset 0 0 0 1px rgba(242, 68, 216, 0.55); }
.pf-play__thumb { position: relative; flex: none; width: 64px; height: 36px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.pf-play__thumb img, .pf-play__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-play__thumb img { transition: transform 0.8s var(--ease); }
.pf-play:hover .pf-play__thumb img { transform: scale(1.06); }
.pf-play__txt { display: flex; flex-direction: column; gap: 2px; }
.pf-play__txt b { font: 500 15px/1.1 var(--f-head); letter-spacing: -0.04em; }
.pf-play__txt small { font-size: 12px; line-height: 1.2; color: var(--muted); }
@media (hover: none) { .pf-play { cursor: pointer; } }
.pf-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; margin: 18px auto 0; font-size: 13px; color: var(--dim); }
.pf-cue i { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }
.pf-cue i::after { content: ""; position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px rgba(242, 68, 216, 0.6); animation: pf-cue 1.8s ease-in-out infinite; }
@keyframes pf-cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }

/* ==========================================================================
   2.2 SUMMARY — Source monitor
   ========================================================================== */
.pf-log__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pf-log__mon { grid-column: 1 / 6; align-self: stretch; } /* full row height, so the monitor can stick */
.pf-log__copy { grid-column: 7 / 13; }
@media (min-width: 810px) and (min-height: 640px) { .pf-src { position: sticky; top: 100px; } }
/* the photo without its background (.pf-src__cut) is always shown in full; its studio backdrop (.pf-src__bg, the
   same photo with the background, lined up exactly) fills in behind him as eight horizontal blinds, each one from
   its top edge down, while you scroll (--bgp 0 → 1 = how far each blind has filled) */
@property --bgp { syntax: "<number>"; inherits: true; initial-value: 1; }
.pf-src__frame {
  --bgp: 1;
  position: relative; aspect-ratio: 3 / 4; width: min(100%, calc((100svh - 190px) * 0.75)); border-radius: 14px; overflow: hidden; isolation: isolate;
}
.pf-motion .pf-src__frame:has(.pf-src__cut) { --bgp: 0; }
.pf-src__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.pf-src__bg { z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--bgp) * 100%), transparent calc(var(--bgp) * 100%));
  -webkit-mask-size: 100% 12.5%; -webkit-mask-repeat: repeat-y;
  mask-image: linear-gradient(180deg, #000 calc(var(--bgp) * 100%), transparent calc(var(--bgp) * 100%));
  mask-size: 100% 12.5%; mask-repeat: repeat-y; }
.pf-src__cut { z-index: 2; }
.pf-src__frame .pf-safe { z-index: 3; opacity: clamp(0, (var(--bgp) - 0.55) * 2.5, 1); }
.pf-src__frame .pf-mon__label { top: 14px; left: 14px; z-index: 4; padding: 6px 9px; border-radius: 6px; background: rgba(0, 0, 0, 0.45); color: #fff; opacity: clamp(0, (var(--bgp) - 0.55) * 2.5, 1); }
.pf-io { display: flex; align-items: center; gap: 10px; height: 24px; margin-top: 12px; width: min(100%, calc((100svh - 190px) * 0.75)); font: 300 18px/1 var(--f-cond); color: var(--muted); }
@media (max-height: 639px) { .pf-src__frame, .pf-io { width: 100%; } } /* short screens: no sticking, so no need to fit the height */
.pf-io__rail { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pf-io__run { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); }
.pf-io__run::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: #fff; }
.pf-summary { margin: 18px 0 56px; font: 600 clamp(26px, 2.6vw, 40px)/1.15 var(--f-head); letter-spacing: -0.05em; }
/* burned-in subtitle: the newest lit word gets the pink box; equal padding and negative margin, so no shift */
.pf-summary .wd { padding-inline: 0.12em; margin-inline: -0.12em; border-radius: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: opacity 0.35s, background-color 0.18s; }
.pf-summary .wd.on:has(+ .wd:not(.on)) { background: var(--pink); }
.pf-bgtext { margin-bottom: 48px; font: 300 18px/1.5 var(--f-body); }
.pf-meta { margin-bottom: 48px; padding: 6px 18px; border-radius: 14px; }
.pf-meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; }
.pf-meta > div + div { border-top: 1px solid var(--line); }
.pf-meta dt { font-size: 13px; color: var(--dim); }
.pf-meta dd { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.pf-meta a { transition: color 0.3s; }
.pf-meta a:hover { color: var(--pink-2); }
.pf-bins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pf-bins li { position: relative; min-height: 84px; padding: 26px 14px 14px; border-radius: 10px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1.2 var(--f-head); letter-spacing: -0.04em; transition: box-shadow 0.4s var(--ease); }
.pf-bins .pf-folder { position: absolute; top: 10px; left: 14px; }
.pf-bins li:hover { box-shadow: inset 0 0 0 1px rgba(242, 68, 216, 0.55); }
/* these items are also [data-reveal]: .js [data-reveal] would replace their own transition */
.js .pf-bins li[data-reveal] { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s), filter 0.9s var(--ease) var(--d, 0s), box-shadow 0.4s var(--ease); }
.pf-bins li:hover .pf-folder, .pf-fx__grp:hover .pf-folder { translate: 0 -3px; }

/* ==========================================================================
   2.3 EXPERIENCE — clip cards + the docked timeline
   ========================================================================== */
.pf-exp { padding-bottom: 0; }
.pf-clip { position: relative; isolation: isolate; --cp: clamp(20px, 3vw, 36px); padding: 0 var(--cp) var(--cp); }
.pf-clip + .pf-clip { margin-top: 28px; }
.pf-clip__bg {
  position: absolute; inset: 0; z-index: -1; border-radius: 18px; overflow: hidden;
  background: radial-gradient(60% 70% at 0% 0%, rgba(143, 29, 114, 0.42), transparent 70%), var(--bg-1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.5s, clip-path 0.9s var(--ease);
}
.pf-clip--a .pf-clip__bg { background: radial-gradient(60% 70% at 100% 100%, rgba(143, 29, 114, 0.5), transparent 70%), var(--bg-1); }
.pf-clip__bg::before { content: ""; position: absolute; inset: 0; background: var(--hatch); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.pf-clip.is-active .pf-clip__bg { box-shadow: inset 0 0 0 1px rgba(242, 68, 216, 0.45), 0 30px 80px rgba(242, 68, 216, 0.12); }
.pf-clip__bar { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.pf-clip__tc { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 6px; margin-left: auto; font: 300 22px/1 var(--f-cond); letter-spacing: 0; font-variant-numeric: tabular-nums; text-align: right; }
.pf-clip__tc .pf-k { margin-left: 4px; }
.pf-dur { margin-left: 10px; font: 400 13px/1.2 var(--f-body); letter-spacing: -0.02em; color: var(--muted); }
/* the clip's band: video = sprocket stripes, audio = waveform bars (added by profile.js) */
.pf-band { position: relative; height: 28px; margin: 0 calc(-1 * var(--cp)) 28px; overflow: hidden; transition: clip-path 0.9s var(--ease); }
.pf-band--v { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0 2px, transparent 2px 64px), linear-gradient(90deg, rgba(242, 68, 216, 0.55), rgba(250, 105, 214, 0.3)); }
.pf-band--a { display: flex; align-items: center; gap: 2px; padding: 0 var(--cp); background: rgba(143, 29, 114, 0.45); }
.pf-band--a i:not(.pf-band__run) { flex: 1; height: calc(var(--h) * 100%); border-radius: 1px; background: rgba(255, 255, 255, 0.32); }
.pf-band--sm { height: 16px; margin-bottom: 18px; }
.pf-band__run { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.16)); }
.pf-band__run::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 10px var(--pink); }
.pf-clip__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.pf-org-big { font: 600 clamp(56px, 6.4vw, 108px)/0.88 var(--f-cond); letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; color: #fff; }
.pf-org-big .w > span { background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.1) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-clip__role { margin-top: 18px; font: 600 clamp(22px, 2.1vw, 30px)/1.12 var(--f-head); letter-spacing: -0.05em; }
.pf-clip__where { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
/* teleprompter: the bullet crossing the middle of the screen lights up (colour only) */
.pf-shots { display: grid; gap: 12px; }
.pf-shots li { position: relative; padding-left: 22px; font: 300 15px/1.55 var(--f-body); color: rgba(255, 255, 255, 0.8); transition: color 0.4s; }
.pf-shots li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.pf-shots li::after { content: ""; position: absolute; left: 22px; right: 0; bottom: -6px; height: 1px; background: linear-gradient(90deg, var(--pink), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.js .pf-shots li[data-reveal] { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s), filter 0.9s var(--ease) var(--d, 0s), color 0.4s; }
.pf-shots li.live { color: #fff; }
.pf-shots li.live::before { transform: scale(1.35); box-shadow: 0 0 12px rgba(242, 68, 216, 0.8); }
.pf-shots li.live::after { transform: scaleX(1); }
.pf-ach { margin-top: 36px; }
.pf-ach__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-ach__tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 180px; padding: 20px; border-radius: 15px; }
.pf-ach__tile b { font: 600 52px/1 var(--f-head); letter-spacing: -0.06em; color: var(--pink-2); }
.pf-ach__tile p { font-size: 14px; line-height: 1.45; color: var(--muted); }
/* deep end under the paragraph (bottom-left), so the small white text stays readable */
.pf-ach__tile--hot { background: linear-gradient(41deg, var(--pink-deep), var(--pink)); }
.pf-ach__tile--hot b, .pf-ach__tile--hot p { color: #fff; }
/* early career: three short clips on A2 */
.pf-early { margin-top: 64px; }
.pf-early__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pf-mini { position: relative; isolation: isolate; --cp: 18px; padding: 0 18px 20px; }
.pf-mini::before, .pf-first::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: box-shadow 0.5s, clip-path 0.9s var(--ease); }
.pf-mini::before { background: radial-gradient(70% 60% at 100% 100%, rgba(143, 29, 114, 0.4), transparent 70%), var(--bg-1); }
.pf-mini.is-active::before, .pf-first.is-active::before { box-shadow: inset 0 0 0 1px rgba(242, 68, 216, 0.45), 0 24px 60px rgba(242, 68, 216, 0.1); }
.pf-mini .pf-clip__bar { flex-wrap: wrap; row-gap: 4px; padding-block: 10px; }
.pf-mini .pf-clip__tc { font-size: 19px; }
.pf-mini .pf-dur { flex-basis: 100%; margin-left: 0; }
.pf-mini__role { font: 600 19px/1.2 var(--f-head); letter-spacing: -0.04em; }
.pf-mini .pf-clip__where, .pf-first .pf-clip__where { font-size: 14px; }
/* education: the first frame, with a magenta/black slate band */
.pf-first {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 40px; padding: 22px 28px 24px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "k deg tc" "h where tc"; column-gap: 28px; row-gap: 6px; align-items: end;
}
.pf-first::before { background: var(--bg-1); }
.pf-first__slate { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--pink) 0 14px, #000 14px 28px); transition: clip-path 0.9s var(--ease); }
.pf-first > .pf-k { grid-area: k; }
.pf-first > .pf-over { grid-area: h; margin: 0; font-size: 15px; }
.pf-first__deg { grid-area: deg; font: 600 24px/1.15 var(--f-head); letter-spacing: -0.05em; }
.pf-first > .pf-clip__where { grid-area: where; margin: 0; }
.pf-first__tc { grid-area: tc; align-self: center; font: 300 44px/1 var(--f-cond); letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* clips open from a slim bar into the full card (once, JS-gated) */
.pf-motion .pf-clip:not(.is-open) .pf-clip__bg { clip-path: inset(0 8% calc(100% - 44px) 8% round 12px); }
.pf-motion .pf-mini:not(.is-open)::before { clip-path: inset(0 8% calc(100% - 40px) 8% round 12px); }
.pf-motion .pf-first:not(.is-open)::before { clip-path: inset(0 8% calc(100% - 10px) 8%); }
.pf-motion .pf-clip:not(.is-open) .pf-band, .pf-motion .pf-mini:not(.is-open) .pf-band, .pf-motion .pf-first:not(.is-open) .pf-first__slate { clip-path: inset(0 8%); }
/* open = a clip region larger than the card, so the active glow (outer shadow) is not cut */
.pf-clip.is-open .pf-clip__bg, .pf-mini.is-open::before, .pf-first.is-open::before { clip-path: inset(-80px -80px -140px -80px round 0px); }

/* ---------- the dock (sticky while the section is on screen) ---------- */
.pf-dock {
  position: sticky; bottom: 0; z-index: 40; margin-top: 64px; padding: 10px 0 12px;
  background: rgba(10, 10, 10, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 var(--line);
}
/* script-built: shown only once profile.js has filled it (no empty, dead dock without JS) */
.pf-dock:not(.is-ready) { display: none; }
/* while the dock is on screen, paging / focus scrolling keeps content out from under it */
html.pf-docked { scroll-padding-bottom: 156px; }
.pf-dock__row { display: flex; align-items: center; gap: 14px; height: 34px; }
/* flex items: the label itself shrinks with an ellipsis (ellipsis on the flex container does nothing) */
.pf-dock__now { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.pf-dock__now .pf-dot { align-self: center; }
.pf-dock__label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 15px/1.2 var(--f-head); letter-spacing: -0.04em; }
.pf-dock__period { flex: none; font: 400 13px/1.2 var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.pf-rw { position: relative; display: inline-block; flex: none; width: 14px; height: 10px; color: var(--pink-2); animation: pf-blink 1.2s steps(2) infinite; }
.pf-rw::before, .pf-rw::after { content: ""; position: absolute; top: 0; width: 0; height: 0; border-style: solid; border-width: 5px 7px 5px 0; border-color: transparent currentColor transparent transparent; }
.pf-rw::before { left: 0; }
.pf-rw::after { left: 7px; }
@keyframes pf-blink { 0% { opacity: 1; } 100% { opacity: 0.35; } }
.pf-dock__yr { min-width: 2.2em; font: 300 28px/1 var(--f-cond); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pf-dock__hint { font-size: 12px; color: var(--dim); white-space: nowrap; }
.pf-dock__step { display: none; }
.pf-dock__tl { display: grid; grid-template-columns: 48px 1fr; gap: 10px; margin-top: 6px; }
.pf-dock__heads { display: grid; grid-template-rows: 16px repeat(4, 12px); row-gap: 4px; font: 500 10px/12px var(--f-body); letter-spacing: 0.02em; color: var(--dim); }
.pf-dock__heads li { position: relative; padding-left: 10px; }
.pf-dock__heads li.on { color: #fff; }
.pf-dock__heads li.on::before { content: ""; position: absolute; left: 0; top: 3.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px rgba(242, 68, 216, 0.8); }
.pf-dock__area { position: relative; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.pf-dock__tracks { display: grid; grid-template-rows: repeat(4, 12px); row-gap: 4px; margin-top: 4px; }
.pf-dock__track { position: relative; border-radius: 3px; background: rgba(255, 255, 255, 0.04); }
.pf-dclip {
  position: absolute; top: 0; bottom: 0; min-width: 6px; padding: 0 5px; border-radius: 3px; overflow: hidden;
  font: 500 10px/12px var(--f-body); letter-spacing: 0; color: #fff; white-space: nowrap; text-overflow: ellipsis; text-align: left; cursor: pointer; transition: filter 0.25s, box-shadow 0.25s;
}
.pf-dclip--v { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 10px), linear-gradient(var(--pink-2), var(--pink)); color: #000; }
.pf-dclip--a { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px), var(--pink-deep); }
.pf-dclip[aria-current="true"] { box-shadow: 0 0 0 1.5px #fff, 0 0 14px rgba(242, 68, 216, 0.7); }
.pf-dclip:hover { filter: brightness(1.15); }
.pf-dclip:focus-visible { outline-offset: 2px; }
.pf-mark { position: absolute; top: 1px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.3s, box-shadow 0.3s; }
.pf-mark.on { background: var(--pink); box-shadow: 0 0 8px rgba(242, 68, 216, 0.8); }
.pf-dock__ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--pink); box-shadow: 0 0 10px rgba(242, 68, 216, 0.7); pointer-events: none; will-change: transform; }
/* the year tag hangs on the left of the playhead: the timeline rewinds leftward and starts at the right edge */
.pf-dock__ph b { position: absolute; top: -2px; right: 4px; padding: 1px 4px; border-radius: 3px; background: var(--pink); font: 500 10px/1.2 var(--f-body); letter-spacing: 0; font-variant-numeric: tabular-nums; color: #000; }
.pf-dock__ph b:empty { display: none; }

/* ==========================================================================
   2.4 FILMS — screening monitor (cards rendered by main.js)
   ========================================================================== */
.pf-scr { --sw: min(880px, 62vw); }
.pf-scr__panel { margin-top: 0; }
.pf-scr__chrome { position: relative; display: flex; align-items: center; gap: 16px; min-height: 22px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.pf-scr__chrome span { display: inline-flex; align-items: center; gap: 8px; }
.pf-scr__chrome b { font: 500 15px/1.2 var(--f-head); letter-spacing: -0.04em; color: #fff; }
.pf-scr__rail {
  position: relative; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 6px 10px; min-height: calc(var(--sw) * 9 / 16 + 16px); cursor: grab; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.pf-scr__rail::-webkit-scrollbar { display: none; }
.pf-scr__rail::before, .pf-scr__rail::after { content: ""; flex: 0 0 calc((100% - var(--sw)) / 2 - 14px); }
.pf-scr__rail.dragging { scroll-snap-type: none; cursor: grabbing; }
.pf-scr__rail.dragging .vcard { pointer-events: none; }
.pf-scr__rail:focus-visible { outline-offset: -2px; }
.pf-scr .vcard, .pf-scr .vcard.is-v { flex: 0 0 var(--sw); aspect-ratio: 16 / 9; scroll-snap-align: center; will-change: scale; -webkit-user-drag: none; }
.js .pf-scr .vcard[data-reveal] { opacity: 1; transform: none; filter: none; }
/* every film whole: pillarbox / letterbox over a blurred fill of its own poster */
.pf-scr .vcard img, .pf-scr .vcard video { object-fit: contain; object-position: 50% 50% !important; }
.pf-scr .vcard::before { content: ""; position: absolute; inset: -12%; z-index: 0; background: var(--poster) center / cover; filter: blur(22px) brightness(0.45) saturate(1.2); }
/* centre-focus dimming: one black layer per card, only its opacity changes while the rail scrolls */
.pf-scr .vcard .pf-shade { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.pf-scr__ctrl { position: relative; display: grid; grid-template-columns: 44px 1fr auto 44px; align-items: center; gap: 14px; margin-top: 14px; }
/* arrows and counter only work once the cards are in (space kept, so nothing shifts) */
.pf-scr__panel:not(.is-ready) .pf-scr__ctrl { visibility: hidden; }
/* aria-disabled, not disabled: the arrow keeps keyboard focus at the first / last film */
.pf-scr .stc-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.pf-scr .stc-arrow[aria-disabled="true"]:hover { background: rgba(10, 10, 10, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pf-scr__ctrl .stc-track { margin: 0; }
.pf-scr__count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.pf-scr__count b { margin-right: 2px; font: 300 28px/1 var(--f-cond); letter-spacing: 0; font-variant-numeric: tabular-nums; color: #fff; vertical-align: -3px; }

/* ==========================================================================
   2.5 TOOLKIT — effects panel + audio mixer
   ========================================================================== */
.pf-kit__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: stretch; }
.pf-kit__grid > .svc-panel { margin-top: 0; }
.pf-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; padding: 30px; }
.pf-fx__grp { position: relative; min-width: 0; }
.pf-fx__h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 500 20px/1.15 var(--f-head); letter-spacing: -0.04em; }
.pf-fx__n { margin-left: auto; font: 300 20px/1 var(--f-cond); letter-spacing: 0; color: var(--dim); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips li { max-width: 100%; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font: 400 15px/1.2 var(--f-head); letter-spacing: -0.03em; overflow-wrap: anywhere; transition: translate 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pf-chips li:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px rgba(242, 68, 216, 0.55); }
.pf-mix { position: relative; overflow: hidden; padding: 26px; border-radius: 16px; }
.pf-mix::before { content: ""; position: absolute; left: -30%; bottom: -40%; width: 100%; height: 80%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 68, 216, 0.25), transparent); pointer-events: none; }
.pf-mix { isolation: isolate; }
.pf-strips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-strip { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px; border-radius: 12px; text-align: center; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pf-vu { gap: 4px; height: 200px; }
.pf-vu i { width: 10px; animation-duration: 0.9s; }
.pf-vu i + i { animation-duration: 1.3s; }
.pf-strip + .pf-strip .pf-vu i { animation-duration: 1.1s; }
.pf-strip + .pf-strip .pf-vu i + i { animation-duration: 1.6s; }
.pf-strip__lang { font: 600 30px/1 var(--f-head); letter-spacing: -0.05em; }
.pf-strip__lvl { margin-top: -4px; font: 400 15px/1.3 var(--f-body); color: var(--pink-2); }

/* ==========================================================================
   2.6 END CREDITS + Export
   ========================================================================== */
.pf-cred { padding-block: 0 var(--sec); }
.pf-cred__film {
  position: relative; isolation: isolate;
  clip-path: inset(0); /* the sticky layers have a -100svh margin and would paint past the film's end; clip-path keeps them sticky */
  --cg: radial-gradient(70% 55% at 70% 115%, rgba(242, 68, 216, 0.75), rgba(242, 68, 216, 0.22) 50%, transparent 75%), radial-gradient(50% 40% at 15% 0%, rgba(143, 29, 114, 0.35), transparent 70%), #000;
}
/* a fixed glow and fade masks that stay put while the credits roll past by native scroll */
.pf-cred__glow, .pf-cred__mask { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; background: var(--cg); }
.pf-cred__glow { z-index: 0; }
.pf-cred__glow::before, .pf-cred__mask::before { content: ""; position: absolute; inset: 0; background: var(--hatch); -webkit-mask-image: linear-gradient(0deg, #000, transparent 60%); mask-image: linear-gradient(0deg, #000, transparent 60%); }
/* the masks are the same glow, shown only at the top and bottom, so the lines fade into it */
.pf-cred__mask { z-index: 2; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 22%, transparent 78%, #000 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 22%, transparent 78%, #000 100%); }
.pf-cred__roll { position: relative; z-index: 1; max-width: 860px; padding-block: 26vh; padding-block: 26svh; text-align: center; }
/* the film's two ends fade to black (they scroll with it), so the glow never meets the next block with a seam */
.pf-cred__film::before, .pf-cred__film::after { content: ""; position: absolute; left: 0; right: 0; z-index: 3; height: 26vh; height: 26svh; pointer-events: none; }
.pf-cred__film::before { top: 0; background: linear-gradient(180deg, #000, transparent); }
.pf-cred__film::after { bottom: 0; background: linear-gradient(0deg, #000, transparent); }
.pf-cred__roll .h2 { margin-top: 14px; }
.pf-cred__h { margin: 72px 0 22px; font: 500 12px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-2); }
.pf-cred__list li { display: grid; grid-template-columns: minmax(0, 1.5fr) 14px minmax(0, 1fr); align-items: baseline; gap: 18px; margin-bottom: 16px; }
.pf-cred__list .pf-dot { justify-self: center; align-self: center; }
.pf-cred__t { text-align: right; font: 500 24px/1.2 var(--f-head); letter-spacing: -0.04em; }
.pf-cred__s { text-align: left; font: 300 18px/1.3 var(--f-body); color: var(--muted); }
.pf-cred__skills li { font: 500 28px/1.6 var(--f-head); letter-spacing: -0.04em; }
.pf-cred__end { margin-top: 80px; display: grid; gap: 6px; font-size: 16px; color: var(--muted); }
.pf-cred__name { font: 600 clamp(32px, 3.4vw, 48px)/1.05 var(--f-head); letter-spacing: -0.06em; color: #fff; }
.pf-export { position: relative; z-index: 1; display: grid; justify-items: start; gap: 16px; max-width: 560px; margin: 0 auto; padding: 22px; border-radius: 16px; }
.pf-export::before { content: ""; position: absolute; inset: -70px -20%; z-index: -1; background: radial-gradient(50% 50% at 50% 55%, rgba(242, 68, 216, 0.2), rgba(143, 29, 114, 0.12) 55%, transparent 75%); pointer-events: none; }
.pf-export__file { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 15px; }
.pf-export__ico { display: grid; place-items: center; flex: none; width: 40px; height: 52px; border-radius: 6px; background: linear-gradient(221deg, var(--pink-deep), var(--pink)); font: 600 14px/1 var(--f-cond); letter-spacing: 0.02em; }
.pf-export__pct { margin-left: auto; font: 300 26px/1 var(--f-cond); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pf-export__bar { position: relative; width: 100%; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.pf-export__bar i { position: absolute; inset: 0; background: var(--pink); transform-origin: left; }
.js .pf-export__bar i { transform: scaleX(0); }
.js .pf-export.in .pf-export__bar i { transform: scaleX(1); transition: transform 1.6s 0.1s var(--ease); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1099px) {
  /* tablets: copy on the left 46%, portrait kept inside the right 52% (no overlap) */
  .pf-mon__copy { width: min(520px, 46%); }
  .pf-mon__media { left: 48%; right: 0; }
  .pf-mon .hero-portrait { max-width: 100%; object-fit: contain; object-position: 50% 100%; }
  .pf-h1 { font-size: clamp(56px, 7.6vw, 90px); }
  .pf-clip__body { grid-template-columns: 1fr; gap: 26px; }
  .pf-dock__hint { display: none; }
  .pf-kit__grid { grid-template-columns: 1fr; }
  .pf-mix { max-width: 560px; }
}

@media (max-width: 809px) {
  /* hero */
  .pf-hero { min-height: 0; padding: 96px 0 48px; }
  .pf-ghost { top: 64px; font-size: 15vw; }
  /* 4:5 of the column width, but never taller than ~62% of the screen (tablets, landscape phones) */
  .pf-mon__stage { min-height: 0; height: min(calc((100vw - 2 * var(--pad)) * 1.25), max(62vh, 280px)); height: min(calc((100vw - 2 * var(--pad)) * 1.25), max(62svh, 280px)); }
  .pf-mon__media { left: 0; right: 0; height: 104%; }
  .pf-meters, .pf-seq, .pf-cue { display: none; }
  .pf-mon__copy { grid-area: 2 / 1; width: auto; margin-top: -6vw; padding: 0; }
  .pf-h1 { margin-top: 0; font-size: 17vw; }
  .pf-mon__copy .status { order: 3; margin-top: 18px; }
  .pf-statement { order: 4; font-size: 16px; }
  .pf-btns { order: 5; }
  .pf-role { font-size: 19px; }
  .pf-btns .btn, .pf-play { min-height: 44px; }
  /* summary */
  .pf-log__grid { display: flex; flex-direction: column; gap: 48px; }
  .pf-log__mon { width: 100%; }
  .pf-src { position: static; width: 100%; max-width: 420px; margin-inline: auto; }
  .pf-src__frame, .pf-io { width: 100%; }
  .pf-src__frame { transition: --bgp 1.8s cubic-bezier(0.45, 0, 0.25, 1); } /* phones: the blinds fill once when the photo comes into view */
  .pf-summary { font-size: 24px; line-height: 1.2; }
  .pf-bgtext { font-size: 17px; }
  .pf-meta > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .pf-meta dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .pf-bins { grid-template-columns: 1fr 1fr; }
  .pf-bins li { min-height: 72px; }
  /* experience cards */
  .pf-clip { --cp: 20px; }
  .pf-clip__bar { flex-wrap: wrap; row-gap: 4px; padding-block: 10px; }
  .pf-clip__tc { font-size: 20px; }
  .pf-clip .pf-dur { flex-basis: 100%; margin-left: 0; text-align: right; }
  .pf-band { height: 20px; margin-bottom: 22px; }
  .pf-band--sm { height: 16px; margin-bottom: 18px; }
  .pf-org-big { font-size: clamp(44px, 14vw, 72px); }
  .pf-clip__role { font-size: 22px; }
  .pf-ach__grid, .pf-early__grid { grid-template-columns: 1fr; }
  .pf-ach__tile { min-height: 150px; }
  .pf-first { grid-template-columns: 1fr; grid-template-areas: "k" "h" "deg" "where" "tc"; row-gap: 8px; padding: 26px 20px 22px; }
  .pf-first__tc { align-self: start; margin-top: 6px; font-size: 38px; }
  /* dock: strip + step buttons */
  .pf-dock { margin-top: 48px; padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
  .pf-dock__row { gap: 6px; height: 44px; }
  .pf-dock__step { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; font-size: 22px; line-height: 1; background: rgba(255, 255, 255, 0.06); }
  .pf-dock__step:active { background: var(--pink); }
  .pf-dock__yr, .pf-rw, .pf-dock__hint, .pf-dock__heads { display: none; }
  .pf-dock__now { justify-content: center; justify-content: safe center; gap: 6px; }
  html.pf-docked { scroll-padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .pf-dock__now .pf-dot { display: none; }
  .pf-dock__period { font-size: 12px; }
  .pf-dock__tl { grid-template-columns: 1fr; margin-top: 2px; }
  .pf-dock__area { padding-block: 6px; }
  .pf-dock__area .pf-ruler { height: 8px; }
  .pf-dock__area .pf-ruler span, .pf-dock__ph b { display: none; }
  .pf-mark { top: 0; width: 6px; height: 6px; margin-left: -3px; }
  .pf-dock__tracks { grid-template-rows: repeat(4, 5px); row-gap: 2px; }
  .pf-dock__track { border-radius: 2px; }
  .pf-dclip { padding: 0; font-size: 0; border-radius: 2px; pointer-events: none; }
  .pf-dock__ph { top: 6px; bottom: 6px; }
  /* films */
  /* 4:5 cards, capped so a whole card (and its chrome) fits the screen height */
  .pf-scr { --sw: min(76vw, (100vh - 200px) * 4 / 5); --sw: min(76vw, (100svh - 200px) * 4 / 5); }
  .pf-scr .vcard, .pf-scr .vcard.is-v { aspect-ratio: 4 / 5; }
  .pf-scr__rail { min-height: calc(var(--sw) * 5 / 4 + 16px); }
  .pf-scr__chrome { flex-wrap: wrap; gap: 4px 12px; }
  .pf-scr__chrome > span:first-child { flex-basis: 100%; }
  .pf-scr__ctrl { gap: 10px; }
  /* toolkit */
  .pf-fx { grid-template-columns: 1fr; gap: 26px; padding: 22px 18px 30px; }
  .pf-mix { padding: 22px 16px; }
  .pf-vu { height: 140px; }
  .pf-strip__lang { font-size: 26px; }
  /* credits: static list over the glow */
  .pf-cred__glow { position: absolute; inset: 0; height: auto; margin: 0; }
  .pf-cred__mask { display: none; }
  .pf-cred__roll { padding-block: var(--sec); }
  .pf-cred__film::before, .pf-cred__film::after { height: 80px; }
  .pf-cred__list li { display: block; margin-bottom: 18px; }
  .pf-cred__list .pf-dot { display: none; }
  .pf-cred__t { display: block; text-align: center; font-size: 20px; }
  .pf-cred__s { display: block; margin-top: 4px; text-align: center; font-size: 15px; }
  .pf-cred__skills li { font-size: 22px; }
  .pf-cred__end { margin-top: 60px; }
  .pf-export { max-width: none; }
  .pf-export::before { inset: -50px 0; }
  .pf-export .btn { width: 100%; }
  .pf-export .btn-in { flex: 1; justify-content: space-between; height: 36px; }
}

@media (max-width: 380px) {
  .pf-h1 { font-size: 16.4vw; }
  .pf-btns { flex-direction: column; align-items: stretch; }
  .pf-btns .btn-in { flex: 1; justify-content: space-between; }
  .pf-bins li { padding-inline: 12px; font-size: 14px; }
  .pf-clip__tc { font-size: 18px; }
  .pf-strip__lang { font-size: 22px; }
}

/* landscape phones: wide film cards, so a 16:9 film is seen whole on the short screen */
@media (max-width: 809px) and (orientation: landscape) {
  .pf-scr { --sw: min(76vw, (100vh - 160px) * 16 / 9); --sw: min(76vw, (100svh - 160px) * 16 / 9); }
  .pf-scr .vcard, .pf-scr .vcard.is-v { aspect-ratio: 16 / 9; }
  .pf-scr__rail { min-height: calc(var(--sw) * 9 / 16 + 16px); }
}

/* landscape phones and short screens: the dock does not stick (it would cover too much of the page) */
@media (max-height: 600px) {
  .pf-dock { position: relative; }
  html.pf-docked { scroll-padding-bottom: 0; }
}

/* ==========================================================================
   REDUCED MOTION — everything open and visible, no keyframes, no transitions
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pf-mon__lb { display: none; }
  .js .pf-seq__run { animation: none; }
  .pf-meters i, .pf-vu i { animation: none; transform: scaleY(0.7); }
  .pf-vu i + i { transform: scaleY(0.62); }
  .pf-cue i::after, .pf-rw { animation: none; }
  .pf-rec::after { display: none; }
  .pf-cue i::after { opacity: 1; }
  .pf-hero *, .pf-sec *, .pf-sec *::before, .pf-sec *::after { transition: none !important; }
  .js .pf-export__bar i { transform: none; }
}
