/* ==========================================================================
   SHOTBYADDICT — base.css
   Design system: tokens, reset, type, layout, components.
   Dark only. Black / white / one accent (#fc0101). See /DESIGN.md + /partials.md
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* colour */
  --black: #000;
  --ink: #0b0b0b;          /* raised surface */
  --ink-2: #141414;        /* card / field */
  --ink-3: #1e1e1e;        /* hover surface */
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --white: #fff;
  --text: #f4f4f4;
  --muted: #a3a3a3;        /* 8.3:1 on black */
  --dim: #6f6f6f;          /* decorative only (4.2:1: never for text) */
  --faint: #8c8c8c;        /* quietest colour allowed for text: 6.3:1 on black */
  --red: #fc0101;
  --red-deep: #b30000;
  --red-glow: rgba(252, 1, 1, 0.35);
  /* functional colours — status + validation only, never decoration */
  --ok: #3ddc84;
  --warn: #ffb020;
  --danger: #ff5a52;

  /* tier tints */
  --tier-silver: #a9afb6;
  --tier-platinum: #e8edf0;
  --tier-diamond: #ffffff;
  --tier-champion: var(--red);

  /* type */
  --font-display: "Anton", "Arial Narrow", Impact, "Helvetica Neue", sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-2xs: 0.6875rem;   /* 11 */
  --fs-xs: 0.75rem;      /* 12 */
  --fs-sm: 0.875rem;     /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md: 1.125rem;     /* 18 */
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  --fs-3xl: clamp(3.25rem, 1.5rem + 8vw, 7.5rem);
  --fs-4xl: clamp(4rem, 1rem + 14vw, 12.5rem);

  /* space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 7.5rem);
  --maxw: 82.5rem;        /* 1320 */
  --maxw-text: 40rem;

  /* shape */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 6px;
  --r-pill: 999px;
  --notch: 12px;          /* cut corner on buttons/cards */

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --t-fast: 140ms;
  --t-med: 280ms;
  --t-slow: 700ms;
  --t-reveal: 900ms;

  /* layers */
  --z-bookbar: 90;
  --z-header: 100;
  --z-menu: 110;
  --z-toast: 300;
  --z-grain: 400;

  --header-h: 4rem;
  --bookbar-h: 4.25rem;
}
@media (min-width: 900px) {
  :root { --header-h: 4.75rem; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--black);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--black); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--red); }

/* film grain: one fixed, non-interactive layer above everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background: url("/assets/brand/grain.webp") 0 0 / 128px 128px;
  opacity: 0.07;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--white);
  text-wrap: balance;
}
.display { font-size: var(--fs-4xl); line-height: 0.86; }
h1, .h1 { font-size: var(--fs-3xl); line-height: 0.9; }
h2, .h2 { font-size: var(--fs-2xl); }
h3, .h3 { font-size: var(--fs-xl); line-height: 1; }
h4, .h4 {
  font-family: var(--font-text);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-md);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--text); max-width: var(--maxw-text); }
.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 1.1em; }
.prose a, .link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--t-fast);
}
.prose a:hover, .link:hover { color: var(--red); }
strong, b { font-weight: 700; color: var(--white); }
small, .small { font-size: var(--fs-sm); }

/* mono label — timecode / slate voice */
.eyebrow, .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.75em; }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--red); flex: none; }
.eyebrow--plain::before { display: none; }

.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
@supports not (-webkit-text-stroke: 1px #fff) { .outline-text { color: var(--white); } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 500;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(52rem + var(--gutter) * 2); }
.container--wide { max-width: none; }

main { display: block; }
/* pages without a full-bleed hero: push content below the fixed header */
.page { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.55); }
.section--line { border-top: 1px solid var(--line); }
.section--ink { background: var(--ink); }

.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.stack--sm { --stack: var(--s-2); }
.stack--lg { --stack: var(--s-6); }
.stack--xl { --stack: var(--s-8); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-3)); }
.cluster--between { justify-content: space-between; }

.grid { display: grid; gap: var(--gap, var(--s-5)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 17.5rem)), 1fr)); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--gap, var(--s-7)); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* horizontal snap scroller (mobile card rows) */
.scroller {
  display: flex;
  gap: var(--gap, var(--s-4));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-bottom: var(--s-2);
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: 0 0 min(82%, 21rem); }

/* ---------- Section heading ---------- */
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.section-head__index b { color: var(--red); font-weight: 700; }
.section-head__index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head__title { font-size: var(--fs-2xl); }
.section-head__text { color: var(--muted); max-width: 34rem; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .section-head--row .section-head__index { grid-column: 1 / -1; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  --btn-bg-hover: var(--red);
  --btn-fg-hover: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-0);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear, transform var(--t-med) var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.btn:active { transform: scale(0.96); transition-duration: 60ms; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn--primary { --btn-bg: var(--red); --btn-fg: var(--black); --btn-bg-hover: var(--white); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--white); --btn-bg-hover: var(--white); --btn-fg-hover: var(--black);
  clip-path: none;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); --btn-bg-hover: var(--white); --btn-fg-hover: var(--black); }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: var(--fs-xs); --notch: 9px; }
.btn--lg { min-height: 4rem; padding: 1rem 2.25rem; font-size: var(--fs-base); --notch: 16px; }
.btn--block { display: flex; width: 100%; }
.btn__arrow { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(0.3em); }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}
.link-arrow::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 2px;
  background: var(--red);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.link-arrow::after { content: "\2192"; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(0.3em); }
.link-arrow:hover::before { transform: scaleX(0.35); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: transform var(--t-med) var(--ease-out);
  view-transition-name: site-header;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--t-med) linear;
}
.site-header.is-scrolled::before, .site-header--solid::before, html:not(.js) .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative;
  height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: var(--white); }
.brand__mark { width: 1.75rem; height: auto; flex: none; transition: transform var(--t-med) var(--ease-snap); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.12); }
.brand__word { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__word span { color: var(--red); }

.nav { display: none; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.5rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }
.site-header__actions .btn__more { display: none; }

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bars, .nav-toggle__bars::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.5rem; height: 2px;
  margin-left: -0.75rem;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out);
}
.nav-toggle__bars { top: calc(50% - 5px); }
.nav-toggle__bars::before { top: 8px; }
.menu-open .nav-toggle__bars { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .site-header__actions .btn__more { display: inline; }
}

/* mobile menu (JS removes [hidden]; without JS the toggle jumps to the footer nav) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--black);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) linear, visibility 0s linear var(--t-med);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); transform: none; }
.menu-open .site-header::before { opacity: 0; }
.mobile-menu__list { display: grid; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.35rem;
  min-height: 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 13vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition: opacity var(--t-med) linear, transform var(--t-slow) var(--ease-out), color var(--t-fast);
}
.mobile-menu__link span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--red); width: 1.75rem; flex: none; }
.mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { color: var(--red); }
.menu-open .mobile-menu__link { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 45ms); }
.mobile-menu__foot { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom));
  background: var(--black);
  overflow: hidden;
}
.site-footer__top { display: grid; gap: var(--s-7); }
.site-footer__brand { display: grid; gap: var(--s-4); justify-items: start; }
.site-footer__brand .brand__word { font-size: clamp(2.5rem, 9vw, 4.5rem); }
.site-footer__tag { color: var(--muted); max-width: 24rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.site-footer__col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.site-footer__col a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.site-footer__col a:hover { color: var(--red); transform: translateX(4px); }
.site-footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* room for the sticky book bar on small screens */
@media (max-width: 899.98px) {
  body.has-bookbar .site-footer { padding-bottom: calc(var(--bookbar-h) + 2rem + env(safe-area-inset-bottom)); }
}

/* ---------- Sticky mobile "Book a shoot" bar ---------- */
.book-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-bookbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--bookbar-h);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid var(--line-strong);
  view-transition-name: book-bar;
  transition: transform var(--t-slow) var(--ease-out);
}
.js .book-bar:not(.is-visible) { transform: translateY(110%); }
.menu-open .book-bar { transform: translateY(110%); }
.book-bar__text { display: grid; line-height: 1.2; min-width: 0; }
.book-bar__text b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); }
.book-bar__text span { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-bar .btn { flex: none; }
@media (min-width: 900px) { .book-bar { display: none; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color var(--t-med) linear, transform var(--t-slow) var(--ease-out);
}
a.card:hover, .card--hover:hover { border-color: var(--line-strong); transform: translate3d(0, -4px, 0); }
.card__title { font-size: var(--fs-xl); }
.card__text { color: var(--muted); }
.card--flat { background: transparent; }

/* viewfinder corner brackets — the signature frame. Put on any positioned box. */
.frame { position: relative; }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 1.125rem; height: 1.125rem;
  pointer-events: none;
  border: 2px solid var(--white);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-fast);
}
.frame::before { top: 0.625rem; left: 0.625rem; border-right: 0; border-bottom: 0; }
.frame::after { right: 0.625rem; bottom: 0.625rem; border-left: 0; border-top: 0; }
a.frame:hover::before, .frame--hover:hover::before { transform: translate(-4px, -4px); border-color: var(--red); }
a.frame:hover::after, .frame--hover:hover::after { transform: translate(4px, 4px); border-color: var(--red); }

/* ---------- Tier / package card ---------- */
.tier {
  --tier-color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t-med) linear, transform var(--t-slow) var(--ease-out);
}
.tier::before {           /* top rule in the tier colour */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tier-color);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.tier:hover, .tier:focus-within { border-color: var(--line-strong); transform: translate3d(0, -6px, 0); }
.tier:hover::before, .tier:focus-within::before { transform: scaleX(1); }
.tier[data-tier="silver"] { --tier-color: var(--tier-silver); }
.tier[data-tier="platinum"] { --tier-color: var(--tier-platinum); }
.tier[data-tier="diamond"] { --tier-color: var(--tier-diamond); }
.tier[data-tier="champion"] { --tier-color: var(--tier-champion); }
.tier__head { display: flex; align-items: center; gap: var(--s-3); }
.tier__kind.text-red { color: var(--red); }
.tier__kind { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tier__name { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); line-height: 1; }
.tier__price { font-family: var(--font-display); font-size: clamp(3.25rem, 2.6rem + 2.4vw, 4.5rem); line-height: 0.9; color: var(--white); letter-spacing: 0; }
.tier__meta { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier__meta b { color: var(--white); font-weight: 500; }
.tier__list { display: grid; gap: 0.6rem; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; color: var(--text); flex: 1; align-content: start; }
.tier__list li { position: relative; padding-left: 1.25rem; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 2px; background: var(--red); }
.tier__flag {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; background: var(--red); color: var(--black); font-weight: 700;
}
.tier .btn { margin-top: auto; }

/* tier mark: site.js fills empty .tier-mark[data-tier] with the SVG (markup in partials.md) */
.tier-mark { display: inline-flex; flex: none; width: 3.25rem; height: 3.25rem; color: var(--tier-color, var(--white)); }
.tier-mark[data-tier="silver"] { color: var(--tier-silver); }
.tier-mark[data-tier="platinum"] { color: var(--tier-platinum); }
.tier-mark[data-tier="diamond"] { color: var(--tier-diamond); }
.tier-mark[data-tier="champion"] { color: var(--tier-champion); }
.tier-mark--sm { width: 2rem; height: 2rem; }
.tier-mark--lg { width: 5rem; height: 5rem; }
.tier-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: miter; stroke-linecap: square; overflow: visible; }
.tier-mark svg .fill { fill: currentColor; stroke: none; }
.tier-mark svg .thin { stroke-width: 1.5; }
.tier:hover .tier-mark svg .hex { animation: tier-spin 900ms var(--ease-out); transform-origin: 32px 32px; }

/* ---------- Media tile ---------- */
.media-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  overflow: hidden;
  color: var(--white);
  text-align: left;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.media-tile--portrait { aspect-ratio: 4 / 5; }
.media-tile--square { aspect-ratio: 1; }
.media-tile--reel { aspect-ratio: 9 / 16; }
.media-tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), opacity var(--t-slow) linear;
}
.media-tile:hover .media-tile__img, .media-tile:focus-visible .media-tile__img { transform: scale(1.08); }
.media-tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 3.5rem clamp(0.9rem, 2.5vw, 1.5rem) clamp(0.8rem, 2.5vw, 1.5rem); display: grid; gap: 0.25rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.media-tile__title { font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1.02; text-transform: uppercase; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.media-tile__sub { font-size: var(--fs-sm); line-height: 1.35; color: var(--text); opacity: 0.85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.media-tile__tag { position: absolute; z-index: 2; top: 0.75rem; right: 0.75rem; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.5rem; background: rgba(0, 0, 0, 0.7); color: var(--white); }
.media-tile__play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  width: 4rem; height: 4rem;
  margin: -2rem 0 0 -2rem;
  display: grid; place-items: center;
  background: var(--red);
  color: var(--black);
  border-radius: 50%;
  transform: scale(0.82);
  opacity: 0.92;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-med) linear;
}
.media-tile__play::before { content: ""; margin-left: 4px; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.media-tile:hover .media-tile__play, .media-tile:focus-visible .media-tile__play { transform: scale(1); opacity: 1; }
/* brackets on tiles: add class "frame" (uses both pseudo-elements) */
.media-tile.frame::before, .media-tile.frame::after { z-index: 3; }
/* no-poster tile: typographic slate */
.media-tile--slate { background: repeating-linear-gradient(135deg, var(--ink-2) 0 14px, var(--ink) 14px 28px); }

/* ---------- Marquee ---------- */
.marquee {
  --marquee-duration: 30s;
  --marquee-gap: 2.5rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
  min-width: 100%;
  animation: marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}
.marquee[data-marquee-reverse] .marquee__track { animation-direction: reverse; }
.marquee.is-paused .marquee__track, .marquee:hover .marquee__track[data-pause-hover] { animation-play-state: paused; }
html:not(.js) .marquee { overflow-x: auto; }
.marquee__item { flex: none; }
.marquee--text { font-family: var(--font-display); font-size: clamp(2.5rem, 9vw, 6.5rem); line-height: 1; text-transform: uppercase; color: var(--white); padding-block: 0.15em; }
.marquee--text .marquee__sep { color: var(--red); font-size: 0.5em; transform: translateY(-0.2em); }
.marquee--sm { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); --marquee-gap: 1.5rem; padding-block: 0.9rem; border-block: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.label { font-size: var(--fs-xs); font-weight: 700; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.label .optional { font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.input, .textarea, .select {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  background: var(--ink-2);
  color: var(--white);
  font-size: 1rem;           /* ≥16px: no iOS zoom */
  line-height: 1.4;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-0);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--dim); opacity: 1; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--white); background: var(--ink-3); box-shadow: 0 2px 0 0 var(--red); }
.textarea { min-height: 8rem; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - 0.95rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.select option { background: var(--ink-2); color: var(--white); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--white); box-shadow: 0 0 0 100px var(--ink-2) inset; caret-color: var(--white); }
.field__help { font-size: var(--fs-sm); color: var(--muted); }
.field__error { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }
.field__error::before { content: "! "; font-family: var(--font-mono); }
.field--error .field__error, .field__error.is-shown { display: block; }
.field--error .input, .field--error .textarea, .field--error .select,
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }

.check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; min-height: 2.75rem; padding-block: 0.5rem; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 1.5rem; height: 1.5rem;
  margin: 0.05rem 0 0;
  background: var(--ink-2);
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check input::after { content: ""; width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--black); border-bottom: 2.5px solid var(--black); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease-snap); }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 0.6rem; height: 0.6rem; border: 0; background: var(--black); border-radius: 50%; transform: scale(0); }
.check input[type="radio"]:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.check__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--text); padding-top: 0.1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* no-script fallbacks: .nojs shows only without the html.js class (scripts off, or site.js never loaded); .js-only is the reverse */
.js .nojs { display: none !important; }
html:not(.js) .js-only { display: none !important; }
.nojs { display: grid; gap: var(--s-4); }
.notice { padding: 1rem 1.125rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--white); background: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.notice--error { border-left-color: var(--danger); }
.notice--ok { border-left-color: var(--ok); }
.notice--warn { border-left-color: var(--warn); }
.notice--red { border-left-color: var(--red); }

/* ---------- Badges / status pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.badge--red { background: var(--red); border-color: var(--red); color: var(--black); font-weight: 700; }
.badge--solid { background: var(--white); border-color: var(--white); color: var(--black); font-weight: 700; }
.status {
  --status: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.3rem 0.7rem 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--status);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; flex: none; }
.status[data-status="pending_payment"] { --status: var(--warn); }
.status[data-status="requested"], .status[data-status="new"] { --status: var(--white); }
.status[data-status="requested"]::before, .status[data-status="new"]::before { background: var(--red); animation: blink 1.4s steps(2, jump-none) infinite; }
.status[data-status="confirmed"], .status[data-status="paid"], .status[data-status="replied"] { --status: var(--ok); }
.status[data-status="declined"], .status[data-status="cancelled"] { --status: var(--danger); }
.status[data-status="expired"], .status[data-status="archived"], .status[data-status="closed"] { --status: var(--dim); }
.status[data-status="completed"] { --status: var(--muted); }

/* ---------- Modal / lightbox (native <dialog>) ---------- */
.modal {
  width: min(100% - 2rem, 34rem);
  max-height: min(100dvh - 2rem, 48rem);
  margin: auto;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line-strong);
  overflow: auto;
}
html:has(dialog.modal[open]) { overflow: hidden; }
.modal::backdrop { background: rgba(0, 0, 0, 0.86); }
.modal[open] { animation: modal-in var(--t-slow) var(--ease-out); }
.modal[open]::backdrop { animation: fade-in var(--t-med) linear; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 1rem 1rem 1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ink); z-index: 1; }
.modal__title { font-size: var(--fs-xl); }
.modal__body { padding: 1.25rem; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3); padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.modal__close {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: var(--white);
  border: 1px solid var(--line-strong);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.modal__close::before { content: "\2715"; font-size: 1rem; line-height: 1; }
.modal__close:hover { background: var(--white); color: var(--black); transform: rotate(90deg); }
.modal--wide { width: min(100% - 2rem, 56rem); }
/* media lightbox */
.modal--media { width: min(100% - 1.5rem, 72rem); max-height: calc(100dvh - 1.5rem); background: var(--black); border-color: var(--line); overflow: hidden; }
.modal--media .modal__head { border: 0; background: transparent; position: static; padding: 0.5rem 0.5rem 0.5rem 1rem; }
.modal--media .modal__title { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 7rem); background: var(--black); margin-inline: auto; }
.modal__stage[data-ratio="portrait"] { aspect-ratio: 9 / 16; width: auto; height: calc(100dvh - 7rem); max-width: 100%; }
.modal__stage > iframe, .modal__stage > video, .modal__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(100% - 2rem, 26rem);
  display: grid; gap: var(--s-2);
  pointer-events: none;
}
body.has-bookbar .toast-region { bottom: calc(var(--bookbar-h) + 1rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-bookbar .toast-region { bottom: 1.5rem; } }
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  color: var(--black);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  border-left: 4px solid var(--black);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: toast-in var(--t-slow) var(--ease-out);
}
.toast--error { border-left-color: var(--red); }
.toast--ok { border-left-color: #0a8f47; }
.toast.is-leaving { opacity: 0; transform: translate3d(0, 0.75rem, 0); transition: opacity var(--t-med) linear, transform var(--t-med) var(--ease-in-out); }

/* ---------- Skeleton / loading ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: transparent !important;
  min-height: 1em;
  user-select: none;
  pointer-events: none;
}
.skeleton > * { visibility: hidden; }
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.4s linear infinite;
}
.skeleton--text { height: 1em; border-radius: var(--r-1); }
.skeleton--tile { aspect-ratio: 16 / 9; }
.spinner { display: inline-block; width: 1.5rem; height: 1.5rem; border: 2px solid var(--line-strong); border-top-color: var(--red); border-radius: 50%; animation: spin 0.7s linear infinite; }
.empty { padding: clamp(2rem, 6vw, 4rem) var(--s-5); border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }

/* ---------- Table (admin) ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 40rem; font-size: var(--fs-sm); line-height: 1.4; }
.table th {
  position: sticky; top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background-color var(--t-fast); }
.table tbody tr:hover { background: var(--ink); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table--clickable tbody tr { cursor: pointer; }

/* definition rows (booking summary etc.) */
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex: none; }
.kv dd { text-align: right; font-weight: 600; color: var(--white); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Scroll reveal (driven by site.js; fails open) ---------- */
[data-reveal] {
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 2rem, 0); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }
.js [data-reveal="left"]:not(.is-in) { transform: translate3d(-2.5rem, 0, 0); }
.js [data-reveal="right"]:not(.is-in) { transform: translate3d(2.5rem, 0, 0); }
.js [data-reveal="scale"]:not(.is-in) { transform: scale(0.92); }
.js [data-reveal="rise"]:not(.is-in) { opacity: 1; transform: none; }
/* "rise": words slide up out of a mask (site.js splits the text) */
.rise-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rise-w > span { display: inline-block; transition: transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + var(--w, 0) * 55ms); }
.js [data-reveal="rise"]:not(.is-in) .rise-w > span { transform: translate3d(0, 110%, 0); }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
::view-transition-group(site-header), ::view-transition-group(book-bar) { animation-duration: 0s; }
/* JS fallback for browsers without cross-document view transitions */
.is-leaving main, .is-leaving .site-footer { opacity: 0; transform: translate3d(0, -0.75rem, 0); transition: opacity 180ms linear, transform 180ms var(--ease-in-out); }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.15; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translate3d(0, 1.5rem, 0) scale(0.98); } }
@keyframes toast-in { from { opacity: 0; transform: translate3d(0, 1rem, 0); } }
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -1rem, 0); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 1.5rem, 0); } }
@keyframes tier-spin { from { transform: rotate(-60deg); } }

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal]:not(.is-in), .js [data-reveal="rise"]:not(.is-in) .rise-w > span { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .skeleton::after { display: none; }
}

@media print {
  .site-header, .book-bar, .mobile-menu, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Page head (inner pages) + error page ---------- */
.page-head { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 8vw, 6rem)); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head__inner { display: grid; gap: var(--s-4); }
.page-head__title { font-size: var(--fs-3xl); }
.page-head__text { font-size: var(--fs-lg); line-height: 1.45; color: var(--muted); max-width: var(--maxw-text); }

.error-page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; overflow: hidden; isolation: isolate; }
.error-page__inner { display: grid; gap: var(--s-5); justify-items: start; }
.error-page__code { font-size: clamp(6rem, 34vw, 22rem); line-height: 0.82; }
.error-page__mark { position: absolute; z-index: -1; right: -12%; bottom: -12%; width: min(72vw, 34rem); opacity: 0.1; pointer-events: none; }
