/* =========================================================================
   Fitness template: design system (near-black + electric accent, huge type)
   The :root block is REPLACED at render time with the site's derived tokens
   (theme.ts). Everything else is the template.
   ========================================================================= */
:root {
  --bg: #0b0d10;
  --bg-rgb: 11, 13, 16;
  --surface: #14171c;
  --surface-2: #1d2128;
  --ink: #f4f4f2;
  --ink-rgb: 244, 244, 242;
  --ink-soft: #c6c7c3;
  --muted: #858880;
  --accent: #c8ff3d;
  --accent-rgb: 200, 255, 61;
  --accent-deep: #a8db22;
  --accent-soft: #1f2a12;
  --accent-ink: #0b0d10;
  --error: #ff6b5c;
  --line: rgba(var(--ink-rgb), 0.12);
  --display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -0.01em; text-transform: uppercase; }
h1 { font-size: clamp(4rem, 12vw, 10rem); }
h2 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: .01em; }
p { margin: 0 0 1rem; }
.accent-text { color: var(--accent); font-style: normal; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 1.4rem; height: 3px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--muted); }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section__head .lead { margin: .8rem 0 0; }
.section__link { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; border-bottom: 3px solid var(--accent); padding-bottom: .15rem; }
.section__link .ico { transition: transform .35s var(--ease); }
.section__link:hover .ico { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(var(--accent-rgb), .7); }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--ink); }
.btn--dark:hover { background: var(--surface-2); }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.nav.scrolled { background: rgba(var(--bg-rgb), .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding: 1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav.scrolled .nav__inner { padding-block: .7rem; }
.nav__logo { display: flex; align-items: baseline; gap: .3rem; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; flex-shrink: 0; line-height: 1; }
.nav__logo em { font-style: normal; color: var(--accent); }
.nav__logo img { height: 2.2rem; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); position: relative; padding: .3rem 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--ink); }
.nav__cta { padding: .7rem 1.3rem; font-size: .95rem; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease), opacity .35s; }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 26px; }
.nav__burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 6.5rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-2%); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__links { display: flex; flex-direction: column; gap: .6rem; }
.mobile-menu__links a { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 10vw, 4.2rem); line-height: 1; text-transform: uppercase; }
.mobile-menu__links a.is-active { color: var(--accent); }
.mobile-menu__links .btn { align-self: flex-start; margin-top: 1rem; font-size: 1.05rem; }
.mobile-menu__foot { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.mobile-menu__foot a { display: inline-flex; gap: .4rem; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- hero (full-bleed, huge type, ticker) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), .8) 0%, rgba(var(--bg-rgb), .45) 50%, rgba(var(--bg-rgb), .2) 100%), linear-gradient(180deg, rgba(var(--bg-rgb), .3) 0%, rgba(var(--bg-rgb), 0) 40%, rgba(var(--bg-rgb), 1) 100%); }
.hero__inner { position: relative; z-index: 1; padding: 9rem var(--gutter) clamp(2.5rem, 5vw, 4rem); max-width: var(--container); margin-inline: auto; width: 100%; }
.hero__title { margin: 0 0 1.2rem; max-width: 10ch; }
.hero__title .accent-text { -webkit-text-stroke: 2px var(--accent); color: transparent; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero__strip { position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); }
.hero__strip-inner { max-width: var(--container); margin-inline: auto; padding: 1.1rem var(--gutter); display: flex; gap: 3rem; flex-wrap: wrap; }
.hero__strip-inner div { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.hero__strip-inner strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; font-weight: 800; margin-bottom: .1rem; }
@media (max-width: 720px) { .hero__title .accent-text { -webkit-text-stroke: 1.5px var(--accent); } .hero__strip-inner { gap: 1.6rem 2rem; } }

/* ---------- ticker ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: .9rem 0; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.program { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: flex-end; }
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.program:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.program::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb), .92)); }
.program__body { position: relative; z-index: 1; padding: 1.6rem; }
.program__body h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .4rem; }
.program__body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.program__tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: .3rem .6rem; border-radius: 2px; margin-bottom: .8rem; }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } .program { aspect-ratio: 16 / 9; } }

/* ---------- schedule ---------- */
.day-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.day-tabs button { padding: .6rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.day-tabs button.active, .day-tabs button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day-tabs button small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; font-weight: 600; opacity: .7; }
.day { display: none; }
.day.active { display: block; }
.day__empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.session { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 1rem 2rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.session__time { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; }
.session__time small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: .2rem; }
.session__name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; text-transform: uppercase; }
.session__meta { color: var(--muted); font-size: .88rem; }
.session__coach { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.session__coach img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.session__spots { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); white-space: nowrap; }
.session__spots--full { color: var(--muted); }
.session .btn { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 760px) { .session { grid-template-columns: 90px 1fr; } .session__coach, .session__spots { grid-column: 2; } .session .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- memberships ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; position: relative; }
.plan--hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -40px rgba(var(--accent-rgb), .5); }
.plan__tag { position: absolute; top: -.8rem; left: 1.8rem; background: var(--accent); color: var(--accent-ink); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: .35rem .7rem; border-radius: 2px; }
.plan h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.plan__price { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; }
.plan__price small { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-left: .4rem; }
.plan__desc { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.plan__perks { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; color: var(--ink-soft); flex: 1; }
.plan__perks li { display: flex; gap: .6rem; align-items: baseline; }
.plan__perks li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; transform: rotate(45deg) translateY(-.15em); }
.plan .btn { margin-top: 1.2rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ---------- coaches ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.team__card { position: relative; }
.team__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: .9rem; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.team__card:hover .team__photo img { filter: grayscale(0) contrast(1.05); transform: scale(1.04); }
.team__photo--empty { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 4rem; color: var(--accent); background: var(--accent-soft); }
.team__name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.team__title { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: .4rem; }
.team__bio { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); gap: .9rem; } .team__name { font-size: 1.3rem; } }

/* ---------- band ---------- */
.band { position: relative; min-height: clamp(420px, 66vh, 720px); display: grid; align-items: center; overflow: hidden; }
.band img, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), .85), rgba(var(--bg-rgb), .3)); }
.band__inner { position: relative; z-index: 1; padding: 4rem var(--gutter); max-width: var(--container); margin-inline: auto; width: 100%; }
.band__inner h2 { font-size: clamp(3.4rem, 9vw, 8rem); max-width: 12ch; }
.band__inner p { margin-top: 1.2rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: .6rem; }
.gal__tile { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; cursor: zoom-in; padding: 0; text-align: left; }
.gal__tile--tall { grid-row: span 2; }
.gal__tile--wide { grid-column: span 2; }
.gal__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal__tile:hover img { transform: scale(1.05); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: 0; transition: opacity .4s var(--ease); }
.gal__tile:hover .gal__cap { opacity: 1; }
@media (max-width: 760px) { .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* ---------- results / quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { background: var(--surface); border-left: 4px solid var(--accent); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; border-radius: var(--radius); }
.quote__text { font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.quote__name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: auto; }
.stars { color: var(--accent); letter-spacing: .12em; font-size: .85rem; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.hours li.today { color: var(--accent); }
.hours li span:last-child { color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hours li.today span:last-child { color: var(--accent); }
.visit__details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.visit__details a, .visit__details p { display: flex; align-items: center; gap: .6rem; margin: 0; }
.visit__details .ico { color: var(--accent); }
.map-frame { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame--empty { display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); font-family: var(--display); font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- cta ---------- */
.cta { background: var(--accent); color: var(--accent-ink); padding: clamp(4rem, 9vw, 7rem) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.cta .eyebrow { color: var(--accent-ink); justify-content: center; }
.cta h2 { font-size: clamp(3.4rem, 10vw, 9rem); }
.cta p { max-width: 50ch; margin: 1.2rem auto 2.2rem; font-size: 1.1rem; }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer__brand { font-family: var(--display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.footer__brand em { font-style: normal; color: var(--accent); }
.footer__brand img { height: 2.2rem; width: auto; }
.footer__blurb { color: var(--ink-soft); max-width: 34ch; margin-top: .8rem; font-size: .95rem; }
.footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .45rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in, html.reveal-all .reveal { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-in > *, html.reveal-all .reveal-stagger > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .35s; }
html:not(.js) .reveal, html:not(.js) .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; padding: 2rem; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 6px; object-fit: contain; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }
