/* LUMINARTUS — prototype v0.1 */
:root {
  --night: #0a0c0b;
  --night-2: #121614;
  --cream: #efe8dc;
  --cream-2: #e4dacb;
  --gold: #f2c97d;
  --glow: #fff2d4;
  --sage: #a9b897;
  --forest: #1f2d25;
  --on-dark: #ece6da;
  --on-dark-muted: rgba(236, 230, 218, 0.64);
  --on-light: #1b201c;
  --on-light-muted: rgba(27, 32, 28, 0.66);
  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-wide: "Unbounded", "Arial Black", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Film grain */
.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: 0.11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 15px 26px; border-radius: 999px;
  background: var(--gold); color: #1d1608;
  font: 600 15px/1 var(--f-body); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s;
}
.btn:hover { background: var(--glow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(236, 230, 218, 0.4); }
.btn--ghost:hover { background: rgba(236, 230, 218, 0.1); }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn--dark { background: var(--forest); color: var(--cream); }
.btn--dark:hover { background: #2c3f33; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--pad);
  color: var(--on-dark);
  transition: color 0.5s, background 0.5s;
}
.nav.is-light {
  color: var(--on-light);
  background: rgba(239, 232, 220, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* logo: outlined SVG (variant 3 — crown in a halo above the A, ART in gold); letters use currentColor */
.nav__logo { display: block; flex: none; line-height: 0; text-decoration: none; --logo-gold: var(--gold); }
.nav__logo svg { display: block; height: 26px; width: auto; overflow: visible; }
.nav.is-light .nav__logo { --logo-gold: #b8862f; }
.nav__links { display: flex; gap: 10px; font-size: 14px; }
/* menu variant 4 «halo of light»: the ring from the logo draws around the item on hover
   and stays around the section you are in (scroll-spy in main.js) */
.nav__links a { position: relative; padding: 9px 16px; text-decoration: none; opacity: 0.82; transition: opacity 0.3s; }
.nav__links a:hover, .nav__links a.is-on, .nav__links a:focus-visible { opacity: 1; outline: none; }
.nav__halo {
  position: absolute; left: -4px; top: -3px; width: calc(100% + 8px); height: calc(100% + 6px);
  overflow: visible; pointer-events: none;
}
.nav__halo ellipse {
  fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1;
  opacity: 0; /* hides the tiny dot left at the start of an undrawn ring */
  filter: drop-shadow(0 0 4px rgba(242, 201, 125, 0.75));
  transition: stroke-dashoffset 0.8s var(--ease), opacity 0.2s;
}
.nav.is-light .nav__halo ellipse { stroke: #b8862f; filter: none; }
.nav__links a:hover .nav__halo ellipse,
.nav__links a:focus-visible .nav__halo ellipse,
.nav__links a.is-on .nav__halo ellipse { stroke-dashoffset: 0; opacity: 1; }

/* ---------- Phone menu ---------- */
.nav__burger { display: none; }
.mnav { display: none; }
@media (max-width: 760px) {
  .nav__burger {
    position: relative; display: block; flex: none; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
    box-shadow: inset 0 0 0 1px currentColor;
  }
  .nav__burger i {
    position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
  }
  .nav__burger i:first-child { top: 16px; }
  .nav__burger i:last-child { top: 24px; }
  .nav.is-menu .nav__burger i:first-child { top: 20px; transform: rotate(45deg); }
  .nav.is-menu .nav__burger i:last-child { top: 20px; transform: rotate(-45deg); }

  /* while the menu is open the bar is always the dark version */
  .nav.is-menu { color: var(--on-dark); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-menu .nav__logo { --logo-gold: var(--gold); }
  .nav.is-menu .lang button.is-active { color: var(--night); background: var(--on-dark); }
  .nav.is-menu .lang__list { background: rgba(18, 22, 20, 0.97); color: var(--on-dark); }

  /* the menu opens as a circle of light growing from the burger */
  .mnav {
    position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: space-between;
    padding: 118px 26px calc(34px + env(safe-area-inset-bottom)); overflow: hidden;
    background: radial-gradient(ellipse at 70% 12%, #20261f 0%, var(--night) 62%); color: var(--on-dark);
    clip-path: circle(0 at calc(100% - 37px) 37px); visibility: hidden;
    transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s;
  }
  .mnav.is-open { clip-path: circle(150% at calc(100% - 37px) 37px); visibility: visible; transition: clip-path 0.75s var(--ease), visibility 0s; }
  /* a faint ring of light behind the items — the same motif as the intro */
  .mnav__ring {
    position: absolute; left: -30%; right: -30%; top: 30%; height: 34%; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(242, 201, 125, 0.22); box-shadow: 0 0 40px rgba(242, 201, 125, 0.12), inset 0 0 40px rgba(242, 201, 125, 0.08);
    transform: rotate(-8deg);
  }
  .mnav__links { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .mnav__link {
    position: relative; display: inline-flex; align-items: flex-start; gap: 12px; padding: 12px 24px 12px 18px;
    color: inherit; text-decoration: none; font: 600 clamp(36px, 11vw, 48px)/1 var(--f-display);
    text-transform: uppercase; letter-spacing: 0.01em;
    opacity: 0; transform: translateY(26px); transition: opacity 0.45s, transform 0.65s var(--ease);
  }
  .mnav__link b { font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--gold); padding-top: 4px; }
  .mnav.is-open .mnav__link { opacity: 1; transform: none; }
  .mnav.is-open .mnav__link:nth-child(1) { transition-delay: 0.18s; }
  .mnav.is-open .mnav__link:nth-child(2) { transition-delay: 0.25s; }
  .mnav.is-open .mnav__link:nth-child(3) { transition-delay: 0.32s; }
  .mnav__link .nav__halo { left: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
  .mnav__link.is-on .nav__halo ellipse, .mnav__link:active .nav__halo ellipse { stroke-dashoffset: 0; opacity: 1; }
  .mnav__foot {
    position: relative; opacity: 0; transform: translateY(16px); transition: opacity 0.45s, transform 0.65s var(--ease);
  }
  .mnav.is-open .mnav__foot { opacity: 1; transform: none; transition-delay: 0.4s; }
  .mnav__foot .btn { width: 100%; justify-content: center; padding: 17px 26px; font-size: 16px; }
  .mnav__note { margin: 18px 0 0; text-align: center; font: 500 10px/1.6 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); }
}
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang {
  position: relative; display: flex; padding: 3px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
}
.lang__list { display: flex; gap: 2px; }
.lang button {
  appearance: none; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--f-body); letter-spacing: 0.06em;
  padding: 5px 10px 5px 5px; border-radius: 999px; cursor: pointer; opacity: 0.75;
  transition: opacity 0.3s, background 0.3s, color 0.3s;
}
.lang button:hover { opacity: 1; }
.lang button.is-active { opacity: 1; color: var(--night); background: var(--on-dark); }
.nav.is-light .lang button.is-active { color: var(--cream); background: var(--on-light); }
.lang__current { display: none !important; }
.lang__chev {
  width: 7px; height: 7px; margin: -3px 2px 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
/* Language flags (round). 'uk' = Ukrainian. */
.flag {
  flex: none; display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' stroke='%23C8102E' stroke-width='2'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.flag--uk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='1' fill='%230057B7'/%3E%3Crect y='1' width='3' height='1' fill='%23FFD700'/%3E%3C/svg%3E"); }
.flag--de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='1' fill='%23000'/%3E%3Crect y='1' width='5' height='1' fill='%23DD0000'/%3E%3Crect y='2' width='5' height='1' fill='%23FFCE00'/%3E%3C/svg%3E"); }
.flag--es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23AA151B'/%3E%3Crect y='0.5' width='3' height='1' fill='%23F1BF00'/%3E%3C/svg%3E"); }
/* RU: neutral mark, no state flag (awaiting Artem's decision) */
.flag--ru { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.6; }

/* Narrower screens: one button with the current flag, the rest in a dropdown */
@media (max-width: 1180px) {
  .lang { padding: 0; box-shadow: none; }
  .lang__current {
    display: inline-flex !important; opacity: 1 !important; padding: 6px 11px 6px 6px !important;
    box-shadow: inset 0 0 0 1px currentColor;
  }
  .lang__list {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
    flex-direction: column; gap: 2px; min-width: 116px; padding: 6px; border-radius: 16px;
    background: rgba(18, 22, 20, 0.97); color: var(--on-dark); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  }
  .nav.is-light .lang__list { background: rgba(251, 249, 245, 0.98); color: var(--on-light); box-shadow: 0 20px 50px rgba(60, 50, 30, 0.2); }
  .lang.is-open .lang__list { display: flex; }
  .lang__list button { padding: 9px 12px 9px 9px; font-size: 13px; }
}
.nav.is-light .btn--small { background: var(--forest); color: var(--cream); }

/* Shared */
.section-label {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.section-label--dark { color: #8a6a2c; }
.kicker {
  font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}

/* 1. Opening */
.opening { position: relative; }
.opening__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.intro { position: absolute; inset: 0; }
html.js .intro { opacity: 0; }

.beam {
  position: absolute; left: 50%; top: -4%; width: 50vw; height: 48%;
  margin-left: -25vw;
  filter: blur(26px);
}
.beam::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255, 240, 210, 0), rgba(255, 236, 196, 0.1) 55%, rgba(255, 236, 196, 0.22));
  clip-path: polygon(46% 0, 54% 0, 84% 100%, 16% 100%);
}
.halo {
  position: absolute; left: 50%; top: 42%;
  width: min(82vw, 1200px);
  margin-left: calc(min(82vw, 1200px) / -2);
  margin-top: calc(min(82vw, 1200px) * -0.15);
  overflow: visible;
}
.wordmark {
  position: absolute; left: 0; right: 0; top: 42%;
  margin: -0.6em 0 0; padding-left: 0.42em;
  text-align: center;
  font: 500 clamp(22px, 3.3vw, 52px)/1.2 var(--f-display);
  letter-spacing: 0.42em;
  color: var(--glow);
  text-shadow: 0 0 28px rgba(255, 222, 160, 0.5);
}
.wordmark span { display: inline-block; position: relative; }
.wordmark .wm-art { color: var(--gold); text-shadow: 0 0 28px rgba(242, 201, 125, 0.55); }
/* the same gold glint as in the contact wordmark; main.js fires it (.is-glint) on every word change of the rotator */
.wordmark .wm-art::after {
  content: attr(data-ch); position: absolute; left: 0; top: 0; pointer-events: none;
  color: transparent; text-shadow: none;
  background: linear-gradient(100deg, rgba(255, 250, 235, 0) 0%, rgba(255, 250, 235, 0) 34%, rgba(255, 252, 242, 0.9) 45%, #ffffff 50%, rgba(255, 252, 242, 0.9) 55%, rgba(255, 250, 235, 0) 66%, rgba(255, 250, 235, 0) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 9px rgba(255, 233, 180, 0.9)); /* the bright band glows a little */
}
.wordmark.is-glint .wm-art::after { animation: wm-shine 1.35s ease-in-out both; animation-delay: calc(0.12s + var(--k, 0) * 0.12s); }
@keyframes wm-shine { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .wordmark .wm-art::after { animation: none; display: none; } }
/* crown in a halo above the A; the glyph centre sits 0.21em left of the span centre (letter-spacing) */
.wm-crown {
  position: absolute; left: calc(50% - 0.21em); top: -0.34em; width: 1.12em; height: auto;
  transform: translateX(-50%); color: var(--gold); overflow: visible;
  filter: drop-shadow(0 0 6px rgba(242, 201, 125, 0.75));
}
.intro__kicker {
  position: absolute; left: var(--pad); right: var(--pad); top: 16%;
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  text-align: center; color: var(--on-dark-muted);
}
/* «Артём Акуленко — WELLNESS & LIFESTYLE COACH»: the name like a signature, the role in small gold caps */
.ik__name { font: italic 500 clamp(20px, 1.6vw, 25px)/1.1 var(--f-serif); letter-spacing: 0.02em; color: #efe8dc; }
.ik__sep { display: inline-block; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(242, 201, 125, 0), var(--gold), rgba(242, 201, 125, 0)); }
.ik__role { font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.mnav__note .ik__name { font-size: 18px; }
.mnav__note .ik__sep { display: block; margin: 6px 0; }
.mnav__note .ik__role { display: block; font-size: 10px; letter-spacing: 0.22em; }
.headline {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh;
  margin: 0; text-align: center;
  font: 700 clamp(44px, 8.4vw, 150px)/0.92 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--on-dark);
}
.headline__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.headline__inner { display: inline-block; }
.rotator {
  position: relative; display: inline-block; vertical-align: bottom;
  height: 1.08em; overflow: hidden; text-align: left;
}
.rotator__word {
  position: absolute; left: 0; bottom: 0.06em;
  white-space: nowrap; line-height: 1;
}
.w-serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; text-transform: none; color: var(--gold); font-size: 1.14em; letter-spacing: 0; padding-right: 0.08em; }
.w-serif2 { font-family: var(--f-serif); font-style: italic; font-weight: 600; text-transform: none; color: var(--glow); font-size: 1.14em; letter-spacing: 0; padding-right: 0.08em; text-shadow: 0 0 30px rgba(255, 222, 160, 0.55); }
.w-display { font-family: var(--f-display); font-weight: 700; color: var(--gold); }
.w-wide { font-family: var(--f-wide); font-weight: 700; color: var(--sage); font-size: 0.74em; letter-spacing: -0.02em; bottom: 0.12em; }
.w-mono { font-family: var(--f-mono); font-weight: 500; text-transform: lowercase; color: #e8b48c; font-size: 0.8em; letter-spacing: -0.04em; bottom: 0.1em; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: 7vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 10px/1 var(--f-mono); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--on-dark-muted); writing-mode: vertical-rl;
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hero { position: absolute; inset: 0; clip-path: ellipse(34% 0% at 50% 42%); }
html.js .hero { opacity: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 9, 0.85) 0%, rgba(8, 10, 9, 0.35) 42%, rgba(8, 10, 9, 0.05) 70%),
    linear-gradient(to right, rgba(8, 10, 9, 0.5), rgba(8, 10, 9, 0) 55%);
}
.hero__content { position: absolute; left: var(--pad); right: var(--pad); bottom: 9vh; max-width: 780px; }
.hero__title {
  margin: 0; font: 700 clamp(46px, 7vw, 116px)/0.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--on-dark);
}
.hero__sub {
  margin: 14px 0 30px; font: italic 500 clamp(24px, 2.7vw, 42px)/1.15 var(--f-serif); color: var(--gold);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* 2. Past life */
.past { position: relative; background: var(--night); }
.past__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.past .section-label { margin: 0 0 clamp(12px, 2.6vh, 28px); }
.past__text { position: absolute; left: var(--pad); top: 52%; width: min(40vw, 560px); transform: translateY(-50%); }
.past__years {
  position: relative; height: 1em; overflow: hidden;
  font: 700 clamp(80px, min(13vw, 21vh), 220px)/1 var(--f-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 230, 218, 0.55);
  letter-spacing: -0.01em; margin-bottom: clamp(14px, 2.4vh, 28px);
}
.past__years span { position: absolute; left: 0; top: 0; }
/* chapters share one grid cell: the box is as tall as the longest text */
.past__chapters { display: grid; }
.chapter { grid-area: 1 / 1; }
.chapter__title { margin: 0 0 12px; font: italic 600 clamp(30px, 3.2vw, 48px)/1.05 var(--f-serif); color: var(--glow); }
.chapter__text { margin: 0; color: var(--on-dark-muted); font: 500 clamp(17px, min(1.15vw, 2.6vh), 20px)/1.45 var(--f-serif); font-variant-numeric: lining-nums; max-width: 46ch; }
.chapter__text p { margin: 0 0 0.75em; }
.chapter__text p:last-child { margin-bottom: 0; color: var(--cream); }
.nowrap { white-space: nowrap; }

.past__photos { position: absolute; inset: 0; pointer-events: none; }
.photo {
  position: absolute; left: var(--l); top: var(--t); width: var(--w);
  margin: 0; rotate: var(--r);
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.06) brightness(0.9); }
.past__turn {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%;
  margin: 0; transform: translateY(-50%); text-align: center;
  font: italic 500 clamp(36px, 5.4vw, 92px)/1.05 var(--f-serif); color: var(--glow);
  text-shadow: 0 0 40px rgba(255, 222, 160, 0.35);
}
html.js .past__turn { opacity: 0; }

/* 3. Dawn */
.dawn {
  position: relative; height: 150vh; overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, #191c17 26%, #4b4a3b 52%, #b3a78e 76%, var(--cream) 100%);
}
.dawn__sun {
  position: absolute; left: 50%; top: 62%; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 196, 0.85) 0%, rgba(255, 222, 160, 0.35) 22%, rgba(255, 222, 160, 0) 60%);
  filter: blur(10px);
}
.dawn__text {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; margin: 0;
  text-align: center; font: italic 500 clamp(30px, 4vw, 64px)/1.1 var(--f-serif); color: var(--glow);
}

/* 4. Today — see assets/css/today.css */
.today { position: relative; background: var(--paper, #fbf9f5); }

/* 5. Next (stub) */
.next { background: var(--cream-2); color: var(--on-light); padding: 16vh var(--pad); text-align: center; }
.next__title { margin: 22px 0 14px; font: 700 clamp(40px, 6vw, 96px)/0.95 var(--f-display); text-transform: uppercase; color: var(--forest); }
.next__text { margin: 0 auto; max-width: 52ch; color: var(--on-light-muted); }

/* Footer */
.footer {
  background: var(--forest); color: #efe8dc; border-top: 1px solid rgba(242, 201, 125, 0.25);
  padding: clamp(30px, 5vh, 48px) var(--pad); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px 40px;
}
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.footer__mark {
  flex: none; width: clamp(46px, 4vw, 58px); height: auto; will-change: transform;
  border-radius: 50%; background: var(--forest); /* a solid coin: covers the text while it rolls over it */
  position: relative; z-index: 1;
}
.footer { position: relative; overflow: hidden; }
/* armed by main.js (not for reduced motion): the line is hidden until the emblem rolls past */
.footer.is-armed .footer__note { clip-path: inset(0 0 0 100%); } /* opened frame by frame by main.js */
.footer.is-armed .footer__copy { opacity: 0; transform: translateY(6px); transition: opacity 1.1s ease 0.75s, transform 1.1s ease 0.75s; }
.footer.is-armed.is-rolled .footer__copy { opacity: 1; transform: none; }
.footer.is-rolled .footer__mark { animation: footer-glint 1.8s ease 2.9s both; }
@keyframes footer-glint {
  0% { filter: drop-shadow(0 0 0 rgba(242, 201, 125, 0)); }
  35% { filter: drop-shadow(0 0 16px rgba(242, 201, 125, 0.7)); }
  100% { filter: drop-shadow(0 0 5px rgba(242, 201, 125, 0.28)); }
}
.footer__note { max-width: 44ch; font: italic 500 clamp(18px, 1.45vw, 22px)/1.35 var(--f-serif); color: #efe8dc; }
.footer__link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(242, 201, 125, 0.35); transition: border-color 0.3s; }
.footer__link:hover, .footer__link:focus-visible { border-bottom-color: var(--gold); outline: none; }
.footer__copy { font: 500 11px/1.6 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@media (max-width: 760px) {
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__copy { white-space: normal; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav { padding: 16px 16px; }
  .nav__links { display: none; }
  .nav__logo svg { height: 23px; }
  .nav .btn--small { display: none; }
  .halo { top: 40%; }
  .wordmark { top: 40%; letter-spacing: 0.32em; padding-left: 0.32em; }
  .wm-crown { left: calc(50% - 0.16em); }
  .intro__kicker { top: 20%; flex-direction: column; gap: 7px; }
  .intro__kicker .ik__sep { width: 26px; }
  .intro__kicker .ik__role { font-size: 10px; letter-spacing: 0.24em; }
  .headline { bottom: 20vh; font-size: clamp(40px, 13vw, 64px); }  .scroll-hint { bottom: 3vh; right: 50%; margin-right: -5px; writing-mode: horizontal-tb; flex-direction: column-reverse; }
  .scroll-hint span { display: none; }
  .hero__img { object-position: 48% 40%; } /* Artem stands at 48.7% of the photo width: this keeps him in the centre on phones */
  .hero__content { bottom: 6vh; }

  .past__text { top: 11vh; transform: none; width: auto; right: var(--pad); }
  .past__years { font-size: 72px; margin-bottom: 12px; }
  .chapter__text { font-size: 16.5px; }
  .photo { left: var(--ml); top: var(--mt); width: var(--mw); }
}

/* Short phones: a little tighter so long chapter text clears the photos */
@media (max-width: 760px) and (max-height: 780px) {
  .past__years { font-size: 60px; margin-bottom: 8px; }
  .chapter__title { font-size: 26px; margin-bottom: 8px; }
  .chapter__text { font-size: 15.5px; line-height: 1.4; }
  .photo { top: calc(var(--mt) + 3%); width: calc(var(--mw) * 0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint i { animation: none; }
}
