/* ==========================================================================
   Excites Productions — design tokens
   ========================================================================== */
:root {
  --bg: #111319;
  --bg-2: #171a22;
  --surface: #1d212b;
  --line: rgba(243, 239, 232, 0.14);
  --text: #f3efe8;
  --muted: #b3ada4;          /* 7.9:1 on --bg */
  --accent: #f73326;         /* brand red-orange, 4.9:1 on --bg */
  --accent-hover: #ff5a45;
  --on-accent: #111319;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px; --space-9: 144px;

  --radius: 14px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 800ms;

  --z-nav: 40; --z-island: 30; --z-mobile: 45; --z-lightbox: 100; --z-intro: 1000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--font-display); font-style: italic; font-weight: 400; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--space-3); top: -60px; z-index: 2000;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-3); }

.eyebrow { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; touch-action: manipulation;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--line { border-color: var(--line); width: 100%; }
.btn--line:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.5; cursor: progress; }

.link-arrow { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color var(--dur-fast); }
.link-arrow:hover { border-color: var(--accent); }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center; background: var(--bg);
  transition: transform 700ms var(--ease-in) 0ms;
}
.intro__logo { width: min(420px, 70vw); opacity: 0; clip-path: inset(0 100% 0 0); animation: intro-draw 1100ms var(--ease-out) 150ms forwards; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  background: none; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 16px; cursor: pointer; color: var(--muted);
}
.intro.is-done { transform: translateY(-100%); }
.intro.is-gone, .no-intro .intro { display: none; }
@keyframes intro-draw { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 14px var(--gutter);
  transition: background-color var(--dur), backdrop-filter var(--dur), transform var(--dur) var(--ease-out);
}
.nav.is-scrolled { background: rgba(17, 19, 25, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { width: 124px; }
.nav__links { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 0.9375rem; color: var(--muted); padding: 10px 0; transition: color var(--dur-fast); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav__brand img { width: 104px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100dvh; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--space-7);
  padding: 120px var(--gutter) var(--space-7);
}
.hero__title { font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 9.5rem); line-height: 0.92; letter-spacing: -0.02em; margin: var(--space-3) 0 var(--space-4); }
.hero__title .line { display: block; }
.hero__title em { color: var(--accent); }
.hero__roles { display: flex; flex-wrap: wrap; gap: 0 0.4em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text); margin-bottom: var(--space-4); }
.hero__roles i { font-style: normal; color: var(--accent); margin-left: 0.15em; }
.hero__lede { color: var(--muted); max-width: 46ch; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.hero__media { position: relative; aspect-ratio: 2 / 3; max-height: 78vh; justify-self: end; width: 100%; max-width: 520px; }
.hero__frame { position: absolute; inset: 0; margin: 0; border-radius: var(--radius); overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity 1000ms var(--ease-out), transform 6000ms linear; }
.hero__frame.is-active { opacity: 1; transform: scale(1); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__count { position: absolute; left: -64px; bottom: 0; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__count b { color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-6); padding-top: 104px; min-height: auto; }
  .hero__media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 5; max-height: none; }
  .hero__count { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: var(--space-6); width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-style: italic; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-6); }
.marquee__track span::after { content: "+"; font-style: normal; color: var(--accent); font-family: var(--font-body); font-size: 1.25rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
section { position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.015em; }
.section-title sup { font-family: var(--font-body); font-size: 0.28em; color: var(--accent); vertical-align: super; margin-left: 0.2em; }
.section-sub { color: var(--muted); max-width: 52ch; margin: 0; }

/* ==========================================================================
   Work gallery + sorting island
   ========================================================================== */
.work { max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter) var(--space-9); }
.gallery { columns: 3 320px; column-gap: var(--space-4); }
.tile {
  break-inside: avoid; margin: 0 0 var(--space-4); position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0;
}
.tile img { width: 100%; height: auto; transition: transform 900ms var(--ease-out), filter var(--dur); }
.tile__label {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(17, 19, 25, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.8125rem; color: var(--text); opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.035); }
  .tile:hover .tile__label { opacity: 1; transform: none; }
}
.tile:focus-visible .tile__label { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
@media (max-width: 640px) {
  .gallery { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 10px; }
  .tile__label { display: none; }
}
.tile.is-entering { animation: tile-in 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.island {
  position: sticky; bottom: 24px; z-index: var(--z-island);
  margin: var(--space-5) auto 0; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: rgba(29, 33, 43, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.island::-webkit-scrollbar { display: none; }
.island__btn {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.island__btn sup { font-size: 0.7em; margin-left: 2px; opacity: 0.8; }
.island__btn:hover { color: var(--text); }
.island__btn.is-active { background: var(--text); color: var(--bg); }
@media (max-width: 760px) { .island { bottom: 84px; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  border-top: 1px solid var(--line);
}
.cta-band__text { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.05; margin: 0; }
.cta-band__text em { color: var(--accent); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg-2); padding: var(--space-9) var(--gutter); }
.services > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.card:hover { border-color: rgba(243, 239, 232, 0.32); }
.card__img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; object-position: center 22%; }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { font-family: var(--font-display); font-size: 1.875rem; }
.card__price { font-size: 2rem; font-weight: 500; letter-spacing: -0.01em; margin: 0; font-variant-numeric: tabular-nums; }
.card__price span { display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card__list { list-style: none; padding: 0; margin: 0 0 var(--space-3); color: var(--muted); font-size: 0.9375rem; flex: 1; }
.card__list li { padding: 8px 0; border-top: 1px solid var(--line); }
.card__list li::before { content: "+ "; color: var(--accent); }
.services__note { color: var(--muted); margin-top: var(--space-5); font-size: 0.9375rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process
   ========================================================================== */
.process { max-width: var(--max); margin: 0 auto; padding: var(--space-9) var(--gutter); }
.steps { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.step { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.step__num { color: var(--accent); font-size: 0.875rem; letter-spacing: 0.1em; }
.step h3 { font-family: var(--font-display); font-size: 2rem; margin: var(--space-3) 0; }
.step p { color: var(--muted); max-width: 36ch; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--space-9); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.review { margin: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.review figcaption { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.reviews__grid--single { grid-template-columns: 1fr; max-width: 760px; }
.reviews__grid--single .review blockquote { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.review figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.review figcaption a:hover { color: var(--accent); }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */
.about { max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter) var(--space-9); display: grid; grid-template-columns: 0.8fr 1fr; gap: var(--space-8); align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; }
.about__media img { width: 100%; }
.about__copy .section-title { margin-bottom: var(--space-5); }
.about__copy .section-title em { color: var(--accent); }
.about__lead { font-size: 1.375rem; line-height: 1.45; }
.about__copy p:not(.about__lead) { color: var(--muted); max-width: 58ch; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-5); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--space-6); } .about__media { max-width: 480px; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) var(--space-9); }
.faq__list { margin-top: var(--space-5); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-size: 1.1875rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.75rem; font-weight: 300; color: var(--accent); transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); max-width: 68ch; padding-bottom: 22px; margin: 0; }

/* ==========================================================================
   Booking form
   ========================================================================== */
.book {
  max-width: var(--max); margin: 0 auto; padding: var(--space-9) var(--gutter);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8);
  border-top: 1px solid var(--line);
}
.book__title { font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 6rem); line-height: 0.95; margin-bottom: var(--space-4); }
.book__title em { color: var(--accent); }
.book__intro > p { color: var(--muted); font-size: 1.125rem; max-width: 42ch; }
.book__contact { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.book__contact li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); }
.book__contact span { color: var(--muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; padding-top: 2px; }
.book__contact a { text-decoration: none; }
.book__contact a:hover { color: var(--accent); }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; padding: 0; }
.field abbr { color: var(--accent); text-decoration: none; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid rgba(243, 239, 232, 0.24);
  font: inherit; font-size: 1rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8d887f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247, 51, 38, 0.25); }
.field input[type="date"] { color-scheme: dark; }
.field__help { color: var(--muted); font-size: 0.875rem; margin: 0; }
.field__error { color: #ff8a7d; font-size: 0.875rem; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff8a7d; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid rgba(243, 239, 232, 0.24); font-size: 0.9375rem; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__error-summary { background: rgba(255, 138, 125, 0.1); border: 1px solid #ff8a7d; border-radius: 10px; padding: 14px 16px; font-size: 0.9375rem; }
.form__error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.form__error-summary a { color: #ffb3aa; }
.form__status { margin: 0; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.form__status.is-success { color: #8fe3a8; }
.hp { position: absolute; left: -9999px; }
.btn__spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) { .book { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: var(--space-8) var(--gutter) var(--space-6); border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.footer__big { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 9rem); line-height: 1; margin: 0 0 var(--space-7); }
.footer__big a { text-decoration: none; transition: color var(--dur); }
.footer__big a:hover { color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); }
.footer__logo { width: 150px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.footer__links a { text-decoration: none; color: var(--muted); display: inline-block; padding: 10px 0; }
.footer__links a:hover { color: var(--text); }
.footer__fine { color: var(--muted); font-size: 0.8125rem; margin-top: var(--space-5); }

/* ==========================================================================
   Mobile CTA
   ========================================================================== */
.mobile-cta {
  display: none; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: var(--z-mobile);
  min-height: 54px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; align-items: center; justify-content: center; gap: 0.5em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(140%); transition: transform var(--dur) var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
@media (max-width: 760px) {
  .mobile-cta { display: inline-flex; }
  .nav__cta { display: none; }
  .footer { padding-bottom: 100px; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(10, 11, 15, 0.96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: var(--space-5) 0; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); min-width: 0; }
.lightbox__img { max-height: calc(100dvh - 120px); max-width: 100%; width: auto; object-fit: contain; border-radius: 6px; animation: lb-in 360ms var(--ease-out); }
.lightbox__cap { color: var(--muted); font-size: 0.875rem; text-align: center; padding: 0 var(--space-3); }
.lightbox__close, .lightbox__nav { background: rgba(243, 239, 232, 0.08); border: 1px solid var(--line); color: var(--text); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.375rem; display: grid; place-items: center; justify-self: center; transition: background-color var(--dur-fast); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(243, 239, 232, 0.2); }
.lightbox__close { position: absolute; top: 16px; right: 16px; font-size: 1.75rem; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__figure { grid-column: 1; grid-row: 1; padding: 56px 12px 0; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__img { max-height: calc(100dvh - 190px); }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}
