/* ============================================================
   HRDW — Harrison R. Whelan
   Dark cinematic / kinetic-brutalist portfolio
   ============================================================ */

:root {
  /* Brand palette — stark monochrome from the HRDW wordmark */
  --bg:        #0a0a0a;
  --bg-soft:   #111111;
  --fg:        #f4f4f1;
  --fg-dim:    #8c8c88;
  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.06);
  --accent:    #e8ff3a;          /* acid highlight — used sparingly */
  --invert-bg: #f4f4f1;
  --invert-fg: #0a0a0a;

  /* Type */
  --display: "Anton", "Archivo", system-ui, sans-serif;
  --ui:      "Inter", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-scroll-locked="true"] { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }

/* Hide native cursor only where the custom one is active (pointer devices) */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
}

/* ============ GRAIN OVERLAY ============ */
.grain {
  position: fixed; inset: -50%;
  z-index: 9998; pointer-events: none;
  opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)}
}
@media (prefers-reduced-motion: reduce){ .grain{animation:none} }

/* ============ CUSTOM CURSOR ============ */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine){ .cursor{ display:block; } }
.cursor__dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%,-50%);
}
.cursor__ring {
  position: absolute; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--accent); transform: translate(-50%,-50%) scale(1);
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s var(--ease);
}
.cursor__label {
  position: absolute; transform: translate(-50%,-50%);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); opacity: 0; white-space: nowrap; transition: opacity .2s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; }
.cursor.is-label .cursor__ring { width: 78px; height: 78px; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center;
  transition: transform 1s var(--ease); will-change: transform;
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__inner { width: min(80vw, 520px); text-align: center; }
.preloader__mark {
  font-family: var(--display); font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: .04em; line-height: 1;
}
.preloader__bar { height: 2px; background: var(--line); margin: 1.5rem 0 .75rem; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width .2s linear; }
.preloader__count { font-family: var(--ui); font-size: .8rem; color: var(--fg-dim); letter-spacing: .1em; }
.preloader__count i { font-style: normal; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--pad);
  mix-blend-mode: difference;
  transition: transform .5s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.brand__logo { height: clamp(24px, 2.4vw, 34px); width: auto; }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.6rem); }
.nav__link {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  display: inline-flex; align-items: baseline; gap: .4rem; position: relative;
}
.nav__link span { font-size: .62rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__link:hover::after { width: 100%; }
@media (max-width: 820px){ .nav { display: none; } }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.menu-toggle span { display: block; height: 2px; width: 26px; background: var(--fg); transition: transform .3s var(--ease), width .3s var(--ease); }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ transform: translateY(-4px) rotate(-45deg); width: 26px; }
@media (max-width: 820px){ .menu-toggle { display: flex; } }

/* ============ MOBILE MENU ============ */
.menu {
  position: fixed; inset: 0; z-index: 850; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); transform: translateY(-100%);
  transition: transform .7s var(--ease); pointer-events: none;
}
.menu.is-open { transform: translateY(0); pointer-events: auto; }
.menu__list { list-style: none; }
.menu__link {
  font-family: var(--display); font-size: clamp(3rem, 16vw, 7rem); line-height: 1.05;
  display: block; padding: .3rem 0; position: relative; color: var(--fg);
}
.menu__link::before { content: attr(data-index); font-family: var(--ui); font-size: .8rem;
  color: var(--fg-dim); position: absolute; top: 1rem; left: -1.4rem; }
.menu__foot { display: flex; gap: 1.5rem; margin-top: 3rem; font-size: .85rem; color: var(--fg-dim); flex-wrap: wrap; }
.menu__foot a:hover { color: var(--fg); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--pad); padding-bottom: clamp(2rem, 6vh, 5rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__blossom {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  filter: grayscale(0.3) contrast(1.05) brightness(0.7);
  transform: scale(1.08); will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.2) 35%, rgba(10,10,10,.85) 100%);
}
/* Desktop: shift the portrait to the right so the wordmark doesn't cover the face,
   then ramp a dark gradient across the empty left space. */
@media (min-width: 768px){
  .hero__blossom { left: 32%; background-position: center 24%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(10,10,10,.6) 50%, rgba(10,10,10,.15) 70%, rgba(10,10,10,0) 86%),
      linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,0) 44%);
  }
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__scroll { z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; letter-spacing: .04em;
  color: var(--fg); margin-bottom: clamp(1rem,3vh,2rem); }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(232,255,58,.5)} 70%{box-shadow:0 0 0 10px rgba(232,255,58,0)} 100%{box-shadow:0 0 0 0 rgba(232,255,58,0)} }

.hero__title { font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 15vw, 16rem); line-height: 0.86; letter-spacing: .005em; text-transform: uppercase; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.hero.is-in .hero__title .word { transform: translateY(0); transition: transform 1s var(--ease); }
.hero.is-in .hero__title .line:nth-child(2) .word { transition-delay: .08s; }

.hero__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2rem; margin-top: clamp(1.2rem, 3vh, 2.2rem); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero__roles { font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 600; display: inline-flex; gap: .5ch; }
.hero__roles-static { color: var(--fg-dim); }
.hero__roles-rotator { position: relative; display: inline-grid; }
.hero__roles-rotator span { grid-area: 1/1; opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.hero__roles-rotator span.is-active { opacity: 1; transform: translateY(0); }
.hero__lede { max-width: 42ch; color: var(--fg); font-size: clamp(.95rem, 1.15vw, 1.05rem); }

.hero__scroll { position: absolute; right: var(--pad); bottom: clamp(2rem,6vh,5rem);
  display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg); }
.hero__scroll svg { animation: bob 2s var(--ease-in-out) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@media (prefers-reduced-motion: reduce){ .hero__scroll svg{animation:none} .hero__eyebrow .dot{animation:none} }
@media (max-width: 640px){ .hero__scroll{ position: static; margin-top: 2rem; } }

/* ============ MARQUEE ============ */
.marquee { border-block: 1px solid var(--line); padding: clamp(.9rem,1.4vw,1.4rem) 0;
  overflow: hidden; white-space: nowrap; background: var(--bg-soft); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.2rem; will-change: transform;
  animation: scroll-x 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(1.6rem,4vw,3rem);
  text-transform: uppercase; letter-spacing: .01em; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: 1.2rem; }
@keyframes scroll-x { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@media (prefers-reduced-motion: reduce){ .marquee__track{animation:none} }

/* ============ SECTION HEADS ============ */
.section-head { padding: clamp(4rem,10vh,9rem) var(--pad) clamp(1.5rem,4vh,3rem);
  max-width: var(--maxw); margin: 0 auto; }
.section-head__index { font-size: .8rem; color: var(--fg-dim); letter-spacing: .1em; margin-bottom: 1rem; }
.section-head__title { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 9rem); line-height: 0.9; }
.section-head__note { max-width: 40ch; color: var(--fg-dim); margin-top: 1.5rem; font-size: .98rem; }
.section-head__note a { color: var(--fg); border-bottom: 1px solid var(--line); }
.section-head__note a:hover { border-color: var(--accent); color: var(--accent); }

/* ============ WORK GRID ============ */
.work { border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 var(--pad) clamp(1.5rem,3vh,2.5rem);
  max-width: var(--maxw); margin: 0 auto; }
.filter { font-family: var(--ui); font-size: .82rem; font-weight: 500; color: var(--fg-dim);
  background: none; border: 1px solid var(--line); border-radius: 0; padding: .55rem 1.1rem;
  transition: color .2s, background .2s, border-color .2s; }
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.6rem, 1vw, 1rem);
  padding: 0 var(--pad) clamp(3rem,8vh,7rem); max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 980px){ .grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } }

.tile { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line-soft); display: block;
  transition: transform .5s var(--ease), opacity .4s var(--ease); }
@media (min-width: 980px){ .tile--lg { grid-column: span 2; aspect-ratio: 16/9; } }
.tile.is-hidden { display: none; }

.tile__media { position: absolute; inset: 0; background: #0e0e0e; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.18) contrast(1.02);
  transition: transform .7s var(--ease), filter .5s, opacity .5s; }
.tile:hover .tile__media img { transform: scale(1.04); opacity: .55; }

/* play affordance (these are all videos) */
.tile__play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 62px; height: 62px;
  transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.65); border-radius: 50%;
  display: grid; place-items: center; opacity: .92; transition: opacity .35s var(--ease), transform .35s var(--ease);
  backdrop-filter: blur(2px); }
.tile__play::after { content: ""; margin-left: 4px; border-left: 13px solid #fff;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.tile:hover .tile__play { opacity: 1; transform: translate(-50%,-50%) scale(1.1); border-color: var(--accent); }

/* generated "video poster" art per data-art type */
.tile__media::before, .tile__media::after { content: ""; position: absolute; inset: 0; }
.tile__media[data-art="grid"]::before {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .5; }
.tile__media[data-art="grid"]::after {
  background: radial-gradient(circle at 70% 30%, var(--accent, #fff) 0, transparent 42%); opacity: .22; mix-blend-mode: screen; }
.tile__media[data-art="bars"]::before {
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.06) 14px 16px); }
.tile__media[data-art="bars"]::after {
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,.08)); }
.tile__media[data-art="wave"]::before {
  background: repeating-radial-gradient(circle at 30% 120%, rgba(255,255,255,.05) 0 2px, transparent 2px 26px); }
.tile__media[data-art="scan"]::before {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 5px); }
.tile__media[data-art="dots"]::before {
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 18px 18px; }

.tile__body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(1rem,2vw,1.6rem);
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 55%); }
.tile__cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim);
  transition: color .3s; }
.tile__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95;
  font-size: clamp(1.5rem, 3vw, 2.6rem); margin: .35rem 0 .15rem; }
.tile__year { font-size: .78rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }

/* Mobile: shrink the overlay text so long titles don't fill the thumbnail */
@media (max-width: 640px){
  .tile__body { padding: .75rem; }
  .tile__cat { font-size: .56rem; letter-spacing: .06em; }
  .tile__title { font-size: 1.02rem; line-height: 1; margin: .2rem 0 .1rem; }
  .tile__year { font-size: .64rem; }
}

/* hover: simply dull the thumbnail (opacity), no black flood/inversion */
@media (hover: none){ .tile:hover .tile__media img { opacity: 1; } }

/* ============ ABOUT ============ */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,5rem);
  padding: 0 var(--pad) clamp(4rem,9vh,8rem); max-width: var(--maxw); margin: 0 auto; align-items: start; }
@media (min-width: 900px){ .about__grid { grid-template-columns: 0.9fr 1.1fr; } }
.about__portrait { position: relative; background: linear-gradient(135deg,#1a1a1a,#000); overflow: hidden;
  border: 1px solid var(--line-soft); }
.about__portrait img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: center; filter: grayscale(.2) contrast(1.05); }
@media (max-width: 899px){ .about__portrait img { aspect-ratio: 1/1; object-position: center; } }
.about__tag { position: absolute; top: 1rem; left: 1rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bg); background: var(--accent); padding: .3rem .6rem; }
.about__lead { font-family: var(--ui); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.3; margin-bottom: 1.6rem; }
.about__text p { color: var(--fg-dim); max-width: 56ch; }
.capabilities { list-style: none; margin: 2.4rem 0; border-top: 1px solid var(--line); }
.capabilities li { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line); font-size: clamp(1.05rem,1.6vw,1.35rem); font-weight: 500;
  transition: padding-left .3s var(--ease), color .3s; }
.capabilities li span { font-size: .72rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.capabilities li:hover { padding-left: 1rem; color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; display: block; }
.stat span { font-size: .8rem; color: var(--fg-dim); letter-spacing: .04em; }

/* ============ REEL CTA ============ */
.reel { border-top: 1px solid var(--line); }
.reel__cta { display: block; text-align: center; padding: clamp(4rem,12vh,10rem) var(--pad);
  position: relative; transition: background .4s; }
.reel__cta:hover { background: var(--bg-soft); }
.reel__index { font-size: .8rem; color: var(--fg-dim); letter-spacing: .1em; margin-bottom: 1.5rem; }
.reel__title { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4rem, 22vw, 22rem); line-height: 0.82; }
.reel__title .line { display: block; overflow: hidden; }
.reel__title .word { display: inline-block; transition: transform .6s var(--ease); }
.reel__cta:hover .word { transform: translateX(0); }
.reel__sub { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.8rem;
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.reel__cta:hover .reel__sub { color: var(--fg); }
.reel__cta:hover .reel__sub svg { transform: translateX(8px); }
.reel__sub svg { transition: transform .4s var(--ease); }

/* ============ CONTACT / FOOTER ============ */
.contact { border-top: 1px solid var(--line); background: var(--bg-soft); }
.contact__email { display: block; font-family: var(--display); text-transform: none;
  font-size: clamp(1.6rem, 6vw, 5rem); line-height: 1; padding: 0 var(--pad) clamp(2rem,5vh,4rem);
  max-width: var(--maxw); margin: 0 auto; word-break: break-word; transition: color .3s; }
.contact__email:hover { color: var(--accent); }
.contact__cols { display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: clamp(2rem,5vh,4rem) var(--pad); max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--line); }
@media (min-width: 700px){ .contact__cols { grid-template-columns: repeat(3,1fr); } }
.contact__col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-dim);
  margin-bottom: 1rem; }
.contact__col a { display: block; padding: .35rem 0; font-size: 1.05rem; width: fit-content;
  transition: color .2s, transform .3s var(--ease); }
.contact__col a:hover { color: var(--accent); transform: translateX(6px); }
.contact__col p { color: var(--fg-dim); font-size: .95rem; line-height: 1.7; }
.contact__base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 2rem var(--pad); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--fg-dim); }
.contact__logo { height: 22px; width: auto; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  .hero__title .word{ transform:none !important; }
}

/* ============ VIDEO LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 10001; background: rgba(5,5,5,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 4rem); opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { width: min(1120px, 100%); margin: 0; }
.lightbox__frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__cap { margin-top: 1rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-dim); }
.lightbox__close { position: fixed; top: clamp(1rem,2vw,1.4rem); right: clamp(1rem,2vw,1.4rem);
  width: 48px; height: 48px; display: grid; place-items: center; background: none; color: var(--fg);
  border: 1px solid var(--line); transition: background .2s, color .2s; }
.lightbox__close:hover { background: var(--fg); color: var(--bg); }
@media (prefers-reduced-motion: reduce){ .lightbox, .lightbox__frame { transition: none; } .lightbox__frame{ transform:none; } }

/* focus visibility for keyboard users */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
