/* ============================================================
   Dominik Senaj — portfolio
   Tokens first; components below. No raw colours in components.
   ============================================================ */

:root {
  /* colour */
  --ink: #131211;          /* night / screening room */
  --ink-raised: #1f1d1b;
  --paper: #ece6da;        /* print stock */
  --paper-raised: #e2dbcd;
  --bone: #f3eee4;         /* text on ink */
  --char: #131211;         /* text on paper */
  --muted-on-ink: #a39c90; /* 7.0:1 on ink */
  --muted-on-paper: #5b554c; /* 6.1:1 on paper */
  --tally: #e8432b;        /* camera tally light: the only accent */
  --line-on-ink: rgba(243, 238, 228, 0.18);
  --line-on-paper: rgba(19, 18, 17, 0.22);

  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-text: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --step--1: 0.8125rem;  /* 13 labels */
  --step-0: 1rem;        /* 16 body */
  --step-1: 1.25rem;     /* 20 */
  --step-2: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --step-3: clamp(2.5rem, 1.4rem + 5vw, 5rem);
  --step-4: clamp(4rem, 1rem + 13vw, 13rem);
  --step-hero: clamp(4.75rem, 0.5rem + 19.5vw, 21rem);

  /* space (spacious) */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(5rem, 3rem + 8vw, 10rem);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 1100ms;

  /* layers */
  --z-header: 40;
  --z-dialog: 100;

  --header-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: -4rem;
  z-index: calc(var(--z-dialog) + 1);
  background: var(--bone);
  color: var(--char);
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* section themes */
.on-ink { background: var(--ink); color: var(--bone); --muted: var(--muted-on-ink); --line: var(--line-on-ink); }
.on-paper { background: var(--paper); color: var(--char); --muted: var(--muted-on-paper); --line: var(--line-on-paper); }

.label {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted, var(--muted-on-ink));
}

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

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--bone);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}
.brand .tally-dot { width: 0.5rem; height: 0.5rem; background: var(--bone); }

.site-nav ul {
  display: flex;
  gap: clamp(0.75rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--header-h) var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 60svh;
}

.hero-name {
  position: relative;
  z-index: 2;
  font-size: var(--step-hero);
  line-height: 0.8;
  text-align: center;
  color: var(--bone);
  pointer-events: none;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-name .line > span { display: block; }

.hero-roles {
  position: relative;
  z-index: 2;
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted-on-ink);
}
/* roles sit on small ink chips so floating frames passing behind never collide with the text */
.hero-roles li { background: var(--ink); padding: 0.1rem 0.5rem; }

.hero-frames { position: absolute; inset: 0; z-index: 1; }

.hero-frame {
  position: absolute;
  margin: 0;
  width: var(--w);
  left: var(--x);
  top: var(--y);
  transform: translate3d(calc(var(--px, 0) * var(--depth) * 1px), calc(var(--py, 0) * var(--depth) * 1px), 0);
  transition: transform 900ms var(--ease-out);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  object-fit: cover;
  background: var(--ink-raised);
}
.hero-frame figcaption {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted-on-ink);
}

.hero-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(0, 2fr) 1fr;
  align-items: start;
  gap: var(--space-3);
  border-top: 1px solid var(--line-on-ink);
  padding: var(--space-3) 0 var(--space-4);
  font-size: var(--step--1);
}
.hero-bar p { margin: 0 auto; text-align: center; max-width: 52ch; font-size: 0.9375rem; }
.hero-bar .hero-meta { display: grid; gap: 0.15rem; color: var(--muted-on-ink); }
.hero-bar .hero-meta strong { color: var(--bone); font-weight: 500; display: inline-flex; gap: 0.5rem; align-items: center; }

.reel-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--bone);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.reel-button:hover { background: var(--bone); color: var(--char); }

/* hero load sequence: the one orchestrated motion moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-name .line > span {
    transform: translateY(105%);
    animation: rise var(--dur-slow) var(--ease-out) forwards;
  }
  .js .hero-name .line:nth-child(2) > span { animation-delay: 120ms; }
  .js .hero-frame img {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    animation: reveal 1200ms var(--ease-out) forwards;
    animation-delay: calc(500ms + var(--i, 0) * 110ms);
  }
  .js .hero-roles, .js .hero-bar { opacity: 0; animation: fade 800ms var(--ease-out) 900ms forwards; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes reveal { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- section scaffolding ---------- */
.section { padding: var(--space-6) var(--gutter); }

.section-rule {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: var(--space-5);
}

.section-title {
  font-size: var(--step-4);
}

/* ---------- work ---------- */
.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.work-head p { color: var(--muted); margin: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}
.filter {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.filter:hover { border-color: currentColor; }
.filter[aria-pressed="true"] { background: var(--char); color: var(--paper); border-color: var(--char); }
.filter .count { opacity: 0.6; }

.category-blurb { margin: calc(var(--space-4) * -0.5) 0 var(--space-5); color: var(--muted); min-height: 1.6em; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* asymmetric rhythm: wide / narrow, then narrow / wide, offset vertically */
.work-grid > li { grid-column: span 12; }
@media (min-width: 768px) {
  .work-grid > li:nth-child(4n + 1) { grid-column: 1 / span 7; }
  .work-grid > li:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: 30%; }
  .work-grid > li:nth-child(4n + 3) { grid-column: 2 / span 4; }
  .work-grid > li:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: 12%; }
}

.card { display: block; text-decoration: none; }
.card-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.card[data-category="photography"] .card-media img { aspect-ratio: 4 / 5; }
.card:hover .card-media img { transform: scale(1.035); }

.card-play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
}
.card-title {
  font-size: var(--step-2);
  line-height: 0.95;
}
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.card-meta .label { align-self: start; padding-top: 0.25rem; text-align: right; }
.card-summary { grid-column: 1 / -1; margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }

.empty-note { color: var(--muted); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5) var(--gutter);
  align-items: start;
}
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.15); }
.about-portrait figcaption { margin-top: 0.5rem; }
.about-copy .section-title { margin-bottom: var(--space-4); }
.about-copy p { font-size: 1.0625rem; }

.about-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.about-lists h3 { font-size: var(--step-1); margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.about-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.9375rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-bottom: var(--space-5); }
.contact-lead { font-size: var(--step-1); max-width: 30ch; margin-bottom: var(--space-4); }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 0.5rem + 8.4vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 0.06em solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-email:hover { color: var(--tally); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.contact-row ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.contact-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.contact-row a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--gutter);
  font-size: var(--step--1);
  color: var(--muted-on-ink);
  border-top: 1px solid var(--line-on-ink);
}

/* ---------- project page ---------- */
.project-hero { padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-4); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted-on-ink);
}
.back-link:hover { color: var(--bone); }
.back-link svg { width: 1rem; height: 1rem; }

.project-title {
  font-size: clamp(3.5rem, 0.5rem + 14vw, 15rem);
  margin: var(--space-3) 0 var(--space-4);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-on-ink);
}
.project-meta dt { font-size: var(--step--1); color: var(--muted-on-ink); letter-spacing: 0.04em; }
.project-meta dd { margin: 0.2rem 0 0; font-weight: 500; }

.player-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--gutter);
  padding: 0 var(--gutter) var(--space-5);
}
.film { margin: 0; grid-column: span 1; }
.film-main { grid-column: 1 / -1; }
.film figcaption { margin-top: 0.75rem; }
.cover-still { width: 100%; height: auto; }
@media (max-width: 767px) { .film { grid-column: 1 / -1; } }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity var(--dur-med) var(--ease-out), transform 1200ms var(--ease-out); }
.player-poster:hover img { opacity: 1; transform: scale(1.02); }
.player-poster .play-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--bone);
  color: var(--char);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5) var(--gutter);
  padding: var(--space-5) var(--gutter);
}
.project-body .lead p { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }

.credits { margin: 0; display: grid; gap: 0; }
.credits div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.credits div:first-child { border-top: 1px solid var(--line); }
.credits dt { color: var(--muted); font-size: 0.875rem; }
.credits dd { margin: 0; font-weight: 500; font-size: 0.9375rem; }

.media-section { padding: var(--space-5) var(--gutter) var(--space-6); }
.media-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: var(--space-4);
}
.media-head h2 { font-size: var(--step-3); }

.stills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  list-style: none;
  margin: 0; padding: 0;
}
.stills-grid li:first-child { grid-column: 1 / -1; }
.still-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-raised);
  cursor: zoom-in;
  overflow: hidden;
}
.still-btn img { width: 100%; aspect-ratio: var(--ratio, 2.39 / 1); object-fit: cover; transition: transform 900ms var(--ease-out); }
.still-btn:hover img { transform: scale(1.025); }

.gallery {
  columns: 3 18rem;
  column-gap: var(--gutter);
  margin: 0; padding: 0;
  list-style: none;
}
.gallery li { break-inside: avoid; margin-bottom: var(--gutter); }
.gallery .still-btn img { aspect-ratio: auto; }
.gallery .still-btn img.is-pending { aspect-ratio: 4 / 3; width: 100%; }

.gallery-status { color: var(--muted); margin-bottom: var(--space-3); }
.gallery-status[data-tone="error"] { color: var(--char); border-left: 3px solid var(--tally); padding-left: 0.9rem; }

.skeleton {
  background: linear-gradient(100deg, var(--paper-raised) 30%, var(--paper) 50%, var(--paper-raised) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.next-project {
  display: block;
  padding: var(--space-6) var(--gutter);
  text-decoration: none;
  border-top: 1px solid var(--line-on-ink);
}
.next-project .label { display: block; margin-bottom: var(--space-2); }
.next-project h2 { font-size: var(--step-4); transition: color var(--dur-fast) var(--ease-out); }
.next-project:hover h2 { color: var(--tally); }

.not-found { min-height: 80svh; display: grid; place-content: center; text-align: center; padding: var(--gutter); }
.not-found h1 { font-size: var(--step-4); margin-bottom: var(--space-3); }

/* ---------- dialogs: lightbox + reel ---------- */
dialog {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  background: rgba(10, 9, 8, 0.96);
  color: var(--bone);
}
dialog::backdrop { background: rgba(10, 9, 8, 0.96); }
dialog[open] { display: grid; }

@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: fade var(--dur-med) var(--ease-out); }
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--bone); }

.lightbox { grid-template-rows: auto 1fr auto; }
.lightbox-top { display: flex; align-items: center; min-height: 4.25rem; padding: 0 var(--gutter); font-size: var(--step--1); color: var(--muted-on-ink); }
.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 calc(var(--gutter) + 3.5rem);
  touch-action: pan-y;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  background: rgba(19, 18, 17, 0.6);
  cursor: pointer;
}
.lightbox-nav:hover { border-color: var(--bone); }
.lightbox-nav svg { width: 1.25rem; height: 1.25rem; }
.lightbox-nav.prev { left: var(--gutter); }
.lightbox-nav.next { right: var(--gutter); }
.lightbox-caption { padding: var(--space-2) var(--gutter) var(--space-3); font-size: var(--step--1); color: var(--muted-on-ink); text-align: center; min-height: 3.5rem; }

.reel { place-items: center; padding: 4.5rem var(--gutter) var(--gutter); }
.reel .player { width: min(100%, calc((100dvh - 7rem) * 16 / 9)); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .about-grid, .project-body { grid-template-columns: 1fr; }
  .about-portrait { max-width: 28rem; }
}

@media (max-width: 767px) {
  .hero-bar { grid-template-columns: 1fr auto; }
  .hero-bar p { grid-column: 1 / -1; grid-row: 1; text-align: left; margin: 0; }
  .work-head { grid-template-columns: 1fr; gap: var(--space-2); }
  .stills-grid { grid-template-columns: 1fr; }
  .about-lists { grid-template-columns: 1fr; }
  .lightbox-stage { padding: 0 var(--gutter); }
  .lightbox-nav { top: auto; bottom: -3.75rem; transform: none; }
  .lightbox-caption { padding-top: 1.25rem; }
  .site-nav ul { gap: 1rem; }
  .hero-frame.optional { display: none; }
  /* push the remaining frames to the corners so they never cover the name or roles */
  .hero-stage { min-height: 72svh; }
  .hero-frame figcaption { display: none; }
  .hero-frame:nth-child(1) { --x: 0% !important; --y: 2% !important; }
  .hero-frame:nth-child(3) { --x: 3% !important; --y: 77% !important; }
  .hero-frame:nth-child(4) { --x: 58% !important; --y: 85% !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-frame { transform: none !important; }
}
