/* ═══════════════════════════════════════════════════════════
   СПАСЁМ ОЛЕГА — Editorial premium stylesheet
   Palette: dark editorial, film-grade, no neon gradients
═══════════════════════════════════════════════════════════ */

/* ─── Custom properties ─────────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --paper: #131315;
  --ink: #f5f3ef;
  --muted: #9a958b;
  --hairline: rgba(245, 243, 239, 0.08);
  --accent: #d4a574;
  --signal: #ff5b3a;

  --font-sans: 'Inter Tight', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --gap-section: clamp(5rem, 10vw, 9rem);

  --transition-base: 200ms ease;
  --transition-slow: 500ms ease;

  /* Stat bar height — used for scroll offset */
  --stat-bar-h: 56px;
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--stat-bar-h) + 2.25rem);
  -webkit-text-size-adjust: 100%;
}

/* Anchored sections get extra breathing room below the sticky stat-bar */
section[id] {
  scroll-margin-top: calc(var(--stat-bar-h) + 2.25rem);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Utility classes ───────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.serif {
  font-family: var(--font-serif);
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__photo {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════ */
.topbar {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  transition: opacity var(--transition-base), background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background-color: var(--signal);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--primary:active {
  opacity: 0.75;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn--ghost:hover {
  border-color: rgba(245, 243, 239, 0.25);
  background: rgba(245, 243, 239, 0.04);
}

.btn--sm {
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
}

.btn--large {
  font-size: 1rem;
  padding: 1.125rem 2.75rem;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Background photo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.7) sepia(0.15) contrast(1.05);
  transform-origin: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.5%, 1%); }
}

/* On narrow screens the hero photo is heavily cropped on the sides.
   Slowly pan object-position so the viewer eventually sees both faces. */
@media (max-width: 720px) {
  .hero__photo {
    animation: hero-pan-mobile 18s ease-in-out infinite alternate;
    /* scale slightly so the pan never reveals the edge of the image */
    transform: scale(1.08);
  }
}

@keyframes hero-pan-mobile {
  0%   { object-position: 22% 22%; }
  50%  { object-position: 50% 22%; }
  100% { object-position: 78% 22%; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 10, 11, 0.6) 0%,
      rgba(10, 10, 11, 0.05) 35%,
      rgba(10, 10, 11, 0.15) 60%,
      rgba(10, 10, 11, 0.92) 100%),
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(212, 165, 116, 0.07) 0%, transparent 70%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.hero__tag--live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--signal);
  border-color: rgba(255, 91, 58, 0.3);
}

/* LIVE pulse dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.live-dot--sm {
  width: 6px;
  height: 6px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 91, 58, 0.5); }
  50%       { opacity: 0.85; transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255, 91, 58, 0); }
}

/* Hero title */
.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  line-height: 0.93;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--wide {
  font-family: var(--font-sans);
  font-size: clamp(6rem, 18vw, 15rem);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  color: var(--ink);
  line-height: 0.9;
}

.hero__title-line--tight {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4.5vw, 3.75rem);
  font-weight: 500;
  font-variation-settings: 'wdth' 75;
  color: var(--ink);
  opacity: 0.85;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 0.3rem;
  max-width: 28ch;
}

.hero__sub {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.8125rem);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}

/* CTA row */
.hero__cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

/* Stats row in hero */
.hero__stats {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 1.75rem 0 0;
  margin-right: 1.75rem;
  border-right: 1px solid var(--hairline);
}

.hero__stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.625rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.hero__stat-currency {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.1rem;
}

.hero__stat-divider {
  display: none; /* handled via .hero__stat border-right */
}

/* Hero progress */
.hero__progress {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.hero__progress-pct {
  font-size: 0.6875rem;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

/* Progress bar shared */
.progress-track {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.progress-track--slim {
  height: 2px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════════════════════════════════════════════════
   STICKY STAT BAR
═══════════════════════════════════════════════════════════ */
.stat-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--stat-bar-h);
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar.is-visible {
  transform: translateY(0);
}

.stat-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-bar__progress {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.stat-bar__pct {
  font-size: 0.6875rem;
  color: var(--muted);
  flex-shrink: 0;
}

.stat-bar__info {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-shrink: 0;
}

.stat-bar__raised {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.stat-bar__sep {
  font-size: 0.6875rem;
  color: var(--muted);
}

.stat-bar__goal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-bar__timer {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}

.stat-bar__timer-label {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-bar__timer-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

/* hide some stat-bar elements on small screens */
@media (max-width: 639px) {
  .stat-bar__timer,
  .stat-bar__info {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION SHARED PATTERNS
═══════════════════════════════════════════════════════════ */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-heading__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.4em;
}

.section-sub {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

/* ═══════════════════════════════════════════════════════════
   STORY
═══════════════════════════════════════════════════════════ */
.story {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 960px) {
  .story__grid {
    grid-template-columns: 280px 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
  }
}

/* Aside — static on mobile, sticky only on desktop */
.story__aside {
  position: static;
}

@media (min-width: 960px) {
  .story__aside {
    position: sticky;
    top: calc(var(--stat-bar-h) + 3.25rem);
  }
}

.story__aside-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.story__chapter-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.story__pullquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.story__pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink);
}

.story__pullquote-attr {
  display: block;
  margin-top: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.story__aside-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.story__aside-meta-item {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Story main body */
.story__header {
  margin-bottom: 2.5rem;
}

.story__heading {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.story__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}

.story__text.serif {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story__text p {
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.78;
  color: rgba(245, 243, 239, 0.82);
  max-width: 66ch;
}

.story__section-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -0.75rem;
  padding-top: 0.5rem;
}

/* Mama quote */
.story__mama-quote {
  margin-top: 1rem;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-left: 3px solid var(--accent);
  position: relative;
}

.story__mama-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem) !important;
  line-height: 1.65;
  color: var(--ink) !important;
  max-width: none !important;
}

.story__mama-text::first-letter {
  font-size: 3.2em;
  font-weight: 600;
  float: left;
  line-height: 0.75;
  margin-right: 0.12em;
  margin-top: 0.1em;
  color: var(--accent);
  font-family: var(--font-serif);
}

.story__mama-attr {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.gallery > .container {
  margin-bottom: 2.5rem;
}

/* Asymmetric cinematic grid */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
  }

  .gallery__item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1; }
  .gallery__item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 3; }
  .gallery__item:nth-child(3) { grid-column: 1 / 5;  grid-row: 2; }
  .gallery__item:nth-child(4) { grid-column: 5 / 8;  grid-row: 2; }
  .gallery__item:nth-child(5) { grid-column: 1 / 13; grid-row: 3; }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.gallery__frame {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}

@media (min-width: 640px) {
  .gallery__item:nth-child(1) .gallery__frame { min-height: 420px; }
  .gallery__item:nth-child(2) .gallery__frame { min-height: 520px; }
  .gallery__item:nth-child(3) .gallery__frame { min-height: 280px; }
  .gallery__item:nth-child(4) .gallery__frame { min-height: 280px; }
  .gallery__item:nth-child(5) .gallery__frame { min-height: 320px; }
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.15) contrast(1.05);
  transition: transform 600ms ease, filter 400ms ease;
}

/* Second photo (Sept 2025) — show left side so the subject is on the left */
.gallery__item:nth-child(2) .gallery__img {
  object-position: 18% center;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.025);
  filter: saturate(0.85) sepia(0.1) contrast(1.05);
}

.gallery__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.875rem;
  background: linear-gradient(to top, rgba(10,10,11,0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gallery__cap-date {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.gallery__cap-place {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(245, 243, 239, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   TREATMENT
═══════════════════════════════════════════════════════════ */
.treatment {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.treatment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (min-width: 640px) {
  .treatment__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .treatment__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.treatment__card {
  background: var(--bg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color var(--transition-base);
}

.treatment__card:hover {
  background: color-mix(in srgb, var(--paper) 80%, var(--bg) 20%);
}

.treatment__card--highlight {
  background: var(--paper);
}

.treatment__card-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.treatment__card-origin {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.treatment__card-name {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.treatment__card-desc {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.treatment__card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.treatment__card-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.treatment__card-price-val {
  font-family: var(--font-mono);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--accent);
}

.treatment__card-price-unit {
  font-size: 0.6875rem;
  color: var(--muted);
}

.treatment__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.treatment__progress-track {
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.treatment__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.treatment__progress-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Scroll reveal for treatment cards */
.treatment__card[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease, background-color var(--transition-base);
}

.treatment__card[data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   LIVE BLOCK
═══════════════════════════════════════════════════════════ */
.live-block {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.live-block > .container:first-child {
  margin-bottom: 2.5rem;
}

.live-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 960px) {
  .live-block__grid {
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
  }
}

.live-block__sub-heading {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Comments feed */
.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: opacity var(--transition-base);
}

.comment:first-child {
  border-top: 1px solid var(--hairline);
}

.comment--new {
  animation: slide-in-from-top 300ms ease forwards;
}

@keyframes slide-in-from-top {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--avatar-hue, 200) 40% 25%);
  color: rgba(245, 243, 239, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  user-select: none;
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.comment__name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.comment__time {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.comment__text {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.78);
}

/* Donation ticker */
.live-block__ticker {
  position: sticky;
  top: calc(var(--stat-bar-h) + 1.5rem);
}

.live-block__ticker-head {
  margin-bottom: 0;
}

.donation-ticker {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--hairline);
  background: var(--paper);
  overflow: hidden;
}

.ticker-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--transition-base);
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item:hover {
  background: color-mix(in srgb, var(--paper) 60%, var(--bg) 40%);
}

.ticker-item--new {
  animation: slide-in-from-top 300ms ease forwards;
}

.ticker-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.ticker-item__name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.ticker-item__amount {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.ticker-item__msg {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(245, 243, 239, 0.6);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.faq__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color var(--transition-base), background-color var(--transition-base);
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 250ms ease, color var(--transition-base);
  line-height: 1;
}

.faq__item[open] > .faq__question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq__item[open] > .faq__question {
  color: var(--accent);
}

.faq__question:hover {
  background: rgba(245, 243, 239, 0.025);
}

.faq__answer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
}

.faq__answer p {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.72;
  color: rgba(245, 243, 239, 0.72);
  padding-top: 1rem;
}

.faq__link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 165, 116, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-base);
}

.faq__link:hover {
  text-decoration-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════════════════ */
.final-cta {
  padding-block: clamp(5rem, 12vw, 10rem);
  border-top: 1px solid var(--hairline);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 165, 116, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.final-cta__overline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.final-cta__heading {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.final-cta__body {
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 42ch;
}

.final-cta__days {
  color: var(--accent);
}

.final-cta__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding-block: 3rem;
}

.footer__divider {
  height: 1px;
  background: var(--hairline);
  margin-bottom: 2.5rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.footer__fund {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__disclaimer {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer__disclaimer p {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(154, 149, 139, 0.6);
  text-align: center;
}

.footer__credit {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  width: 100%;
  max-width: 480px;
}

.footer__credit a {
  color: var(--accent);
  transition: color var(--transition-base);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 1px;
}

.footer__credit a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
#toast-root {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

.toast {
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.5rem;
  border-radius: 2px;
  pointer-events: auto;
  animation: toast-in 250ms ease forwards;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.toast--exit {
  animation: toast-out 250ms ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL (gallery items, generic)
═══════════════════════════════════════════════════════════ */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   BEFORE / AFTER COMPARE
═══════════════════════════════════════════════════════════ */
.ba {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--hairline);
}

.ba__compare {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ba__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 760px;
  margin-inline: auto;
  max-height: 88vh;
  overflow: hidden;
  user-select: none;
  background: #000;
  cursor: ew-resize;
}

@media (min-width: 720px) {
  .ba__frame { aspect-ratio: 4 / 5; max-width: 880px; }
}

@media (min-width: 1100px) {
  .ba__frame { aspect-ratio: 1 / 1; max-width: 1040px; }
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(0.78) sepia(0.1) contrast(1.04);
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba__img--base {
  z-index: 1;
  filter: saturate(0.55) sepia(0.18) contrast(1.08) brightness(0.92);
}

.ba__after-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 50%;
  overflow: hidden;
  will-change: width;
}

.ba__img--reveal {
  width: 100%;
  max-width: none;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  background: transparent;
  border: none;
  padding: 0;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.ba__handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ba__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(245, 243, 239, 0.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 0 32px rgba(0,0,0,0.5);
}

.ba__handle-knob {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.2);
  transition: transform var(--transition-base);
}

.ba__handle:hover .ba__handle-knob,
.ba__handle:active .ba__handle-knob {
  transform: scale(1.06);
}

.ba__label {
  position: absolute;
  bottom: 1rem;
  z-index: 4;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.85);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(245, 243, 239, 0.15);
  pointer-events: none;
}

.ba__label--left { left: 1rem; }
.ba__label--right { right: 1rem; }

.ba__caption {
  margin-top: 1.5rem;
  max-width: 720px;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   SPONSOR SPLASH MODAL
═══════════════════════════════════════════════════════════ */
.splash[hidden] { display: none; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  animation: splash-in 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.splash--closing {
  animation: splash-out 240ms ease forwards;
}

@keyframes splash-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes splash-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.splash__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(14px) saturate(0.6);
  -webkit-backdrop-filter: blur(14px) saturate(0.6);
}

.splash__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.65);
  animation: splash-panel-in 480ms cubic-bezier(0.16, 1, 0.3, 1) 60ms backwards;
}

@keyframes splash-panel-in {
  from { transform: translateY(16px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@media (min-width: 720px) {
  .splash__panel {
    grid-template-columns: 5fr 6fr;
    max-height: min(620px, calc(100vh - 4rem));
  }
}

.splash__media {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 320px;
}

@media (min-width: 720px) {
  .splash__media {
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
  }
}

.splash__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.splash__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.04) saturate(1.05);
}

.splash__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.splash__overline {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.splash__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.splash__title-accent {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash__title em {
  font-style: italic;
  font-weight: 400;
}

.splash__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -0.25rem;
}

.splash__note {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--hairline);
  margin-top: 0.5rem;
}

.splash__cta {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.splash__cta:hover { opacity: 0.88; }
.splash__cta:active { transform: translateY(1px); }

.splash__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 8, 9, 0.55);
  color: var(--ink);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  backdrop-filter: blur(6px);
}

.splash__close:hover {
  background: rgba(20, 20, 22, 0.85);
  color: var(--accent);
}

.splash__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.splash__credit {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition-base);
}

.splash__credit span {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 1px;
}

.splash__credit:hover {
  color: var(--ink);
}

.splash__credit:hover span {
  border-bottom-color: var(--accent);
}

/* prevent body scroll while splash is open */
body.has-splash-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   JS STATE CLASSES (entering / hiding)
═══════════════════════════════════════════════════════════ */
/* Live feed items animate in from above when JS prepends them.
   The --entering state is set before insertion, then removed via
   double-rAF so the transition runs. */
.ticker-item,
.comment {
  transition:
    opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color var(--transition-base);
}

.ticker-item--entering,
.comment--entering {
  opacity: 0;
  transform: translateY(-12px);
}

/* Toast: JS toggles --hiding to fade it out */
.toast--hiding {
  animation: toast-out 250ms ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS
═══════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--hairline);
    padding-top: 1.25rem;
  }

  .hero__stat {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .hero__stat:nth-child(odd) {
    border-right: 1px solid var(--hairline);
    padding-right: 1rem;
  }

  .hero__title-line--wide {
    font-size: clamp(4.5rem, 20vw, 6rem);
  }

  .hero__title-line--tight {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  /* On mobile, ticker goes before comments (reorder) */
  @media (max-width: 959px) {
    .live-block__grid {
      display: flex;
      flex-direction: column;
    }
    .live-block__ticker {
      order: -1;
      position: static;
    }
  }

  .faq__question {
    padding: 1.125rem 1rem;
  }

  .faq__answer {
    padding: 0 1rem 1.25rem;
  }

  .treatment__card {
    padding: 1.375rem 1.125rem 1.25rem;
  }
}

@media (max-width: 959px) {
  .live-block__ticker {
    position: static;
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS via animation-timeline where supported
═══════════════════════════════════════════════════════════ */
@supports (animation-timeline: scroll()) {
  .gallery__item {
    animation: fade-slide-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  @keyframes fade-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
