/* ==========================================================================
   Axion: tokens
   Obsidian and basalt, marble text, antique gold leaf, and a deep Tyrian
   purple for dusk. Marcellus carries the inscriptional Greek feel; GFS Didot
   (made by the Greek Font Society) sets the actual Greek.
   ========================================================================== */
:root {
  --obsidian: #100e0c;
  --basalt: #16130f;
  --bronze: #221d17;
  --marble: #ebe5d9;
  --ash: #a39b8c;          /* 7.1:1 on obsidian */
  --gold: #c9a46a;         /* 8.4:1 on obsidian */
  --gold-bright: #e2c28a;
  --gold-line: rgba(201, 164, 106, 0.28);
  --tyrian: #5a1d3a;
  --error: #ff9e8f;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
  --font-greek: "GFS Didot", "Didot", Georgia, serif;

  /* Cinzel sets lowercase as small capitals, so it runs wide: the display steps are smaller */
  --step--1: 0.9375rem;
  --step-0: 1.1875rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.25rem, 1.2rem + 4.2vw, 5.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(5rem, 11vw, 10rem);
  --header-h: 4.25rem;
  --ground-h: clamp(4.5rem, 13svh, 7.5rem);

  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --dur-fast: 160ms;
  --dur-mid: 320ms;

  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23c9a46a' stroke-width='1.3'%3E%3Cpath d='M0 1.5H24M0 22.5H24M3 22.5V5H19V18H8V9H15V14'/%3E%3C/svg%3E");

  --z-header: 40;
  --z-nav: 50;
  --z-intro: 100;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--obsidian);
}
html.motion { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
/* Lenis does the smoothing; native smooth scroll would break ScrollTrigger's measurements */
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--marble);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
[lang="grc"] { font-family: var(--font-greek); }
strong { font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Custom cursor: shown only when main.js adds .has-cursor (mouse or trackpad,
   motion allowed). The native pointer is hidden except in text fields. */
.cursor-trail,
.cursor-ring,
.cursor-dot { display: none; }
html.has-cursor,
html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="radio"]):not([type="checkbox"]),
html.has-cursor textarea { cursor: text !important; }
html.has-cursor .cursor-trail {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 298;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
html.has-cursor .cursor-ring,
html.has-cursor .cursor-dot {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
html.has-cursor .cursor-ring {
  z-index: 299;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(201, 164, 106, 0.85);
  transition: opacity 0.3s ease, width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background-color 0.35s ease, border-color 0.35s ease, scale 0.15s ease;
}
html.has-cursor .cursor-dot {
  z-index: 300;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(244, 184, 98, 0.9);
}
.cursor-on .cursor-ring,
.cursor-on .cursor-dot { opacity: 1; }
.cursor-ring.is-link {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(201, 164, 106, 0.14);
  border-color: var(--gold-bright);
}
.cursor-on .cursor-dot.is-link { opacity: 0.4; }
.cursor-ring.is-down { scale: 0.78; }
.cursor-on .cursor-ring.is-text,
.cursor-on .cursor-dot.is-text { opacity: 0; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--obsidian);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Greek key band, used as a divider */
.meander {
  height: 24px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.button:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.button--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.875rem; }
.button--outline { background: transparent; color: var(--gold); }
.button--outline:hover { background: var(--gold); color: var(--obsidian); }
.button--block { width: 100%; }
.button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-underline-offset var(--dur-mid) var(--ease-out);
}
.link-quiet:hover { text-underline-offset: 0.5em; }

/* ==========================================================================
   Intro (first visit only; main.js runs it)
   ========================================================================== */
.intro { display: none; }
html.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  background: var(--obsidian);
  pointer-events: none;
  /* Safety net only: main.js replaces this with its own timeline */
  animation: intro-out 600ms var(--ease-in) 3500ms forwards;
}
.intro__mark {
  width: 5rem;
  height: 4rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.intro__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-right: -0.42em;
  opacity: 0;
}
.intro__greek {
  font-size: var(--step-1);
  color: var(--gold);
  opacity: 0;
}
.intro__count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 5vh, 3rem);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 5vw, 8rem);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  color: var(--gold);
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), transform 450ms var(--ease-out);
}
body.is-scrolled .site-header {
  background: rgba(16, 14, 12, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-line);
}
/* Tucks away while scrolling down, returns on any scroll up */
.site-header.is-hidden { transform: translateY(-100%); }
.nav-open .site-header.is-hidden { transform: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
}
.brand__mark {
  width: 2.1rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ash);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav__list a:not(.button):hover { color: var(--marble); }
.site-nav__cta { margin-left: 0.75rem; }

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  font-weight: 400;
}
.site-nav__toggle-bars,
.site-nav__toggle-bars::before {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--gold);
  transition: transform var(--dur-mid) var(--ease-out);
}
.site-nav__toggle-bars { position: relative; transform: translateY(-3px); }
.site-nav__toggle-bars::before { content: ""; position: absolute; top: 6px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars { transform: translateY(0) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 860px) {
  .site-nav__toggle,
  .brand { position: relative; z-index: calc(var(--z-nav) + 1); }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__list {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--header-h) var(--gutter) 2rem;
    background: var(--obsidian) var(--meander) repeat-x left bottom 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
  }
  .nav-open .site-nav__list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s;
  }
  .site-nav__list a:not(.button) {
    font-family: var(--font-display);
    font-size: var(--step-3);
    padding: 0;
    color: var(--marble);
  }
  .site-nav__cta { margin: 1.5rem 0 0; }
  .site-nav__cta .button { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }
  .nav-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   Hero: golden hour to nightfall
   --p (0 to 1) is set by main.js from scroll position.
   ========================================================================== */
.hero {
  --p: 0;
  position: relative;
  height: 100svh;
  background: var(--obsidian);
}
html.motion .hero { height: 230svh; }
html.reduced .hero { --p: 0.55; }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
}

.hero__sky { position: absolute; inset: 0; }
.hero__sky--day {
  background: linear-gradient(180deg, #14110e 0%, #241c15 38%, #5c4329 68%, #a67b45 86%, #c9a46a 100%);
}
.hero__sky--dusk {
  background: linear-gradient(180deg, #0e0b10 0%, #22122a 38%, #4f1a38 64%, #8f3b3a 84%, #b8653c 100%);
  opacity: clamp(0, calc(var(--p) * 2), 1);
}
.hero__sky--night {
  background: linear-gradient(180deg, #060609 0%, #0b0a12 45%, #16101e 75%, #2a1526 100%);
  opacity: clamp(0, calc((var(--p) - 0.5) * 2), 1);
}
.hero__stars {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 70%;
  fill: var(--marble);
  opacity: clamp(0, calc((var(--p) - 0.35) * 1.8), 1);
}
html.motion .hero__stars circle { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }

/* Helios */
.hero__sun {
  position: absolute;
  left: 68%;
  top: 14svh;
  width: clamp(12rem, 28vw, 26rem);
  aspect-ratio: 1;
  transform: translate(-50%, calc(var(--p) * 46svh));
}
.hero__disc {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f8e7c2 0%, #e9c98e 45%, #c99a58 100%);
  box-shadow: 0 0 80px 20px rgba(226, 194, 138, 0.35), 0 0 220px 60px rgba(201, 164, 106, 0.18);
}
.hero__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f2b27a 0%, #c9573a 70%, #8e2f33 100%);
  opacity: var(--p);
}
.hero__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--gold-bright);
  stroke-width: 0.6;
  opacity: calc(0.7 - var(--p) * 0.7);
}
html.motion .hero__rays { animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Distant ridge, ground, and the temple on the horizon */
.hero__land {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--ground-h) - 1px);
  width: 100%;
  height: clamp(5rem, 15svh, 10rem);
  fill: #120f0c;
}
.hero__ground {
  position: absolute;
  inset: auto 0 0;
  height: var(--ground-h);
  background: linear-gradient(180deg, #0d0b09, var(--obsidian));
  border-top: 1px solid rgba(201, 164, 106, 0.4);
}
.hero__temple {
  position: absolute;
  right: 7vw;
  bottom: calc(var(--ground-h) - 2px);
  height: clamp(10rem, 36svh, 23rem);
  width: auto;
  aspect-ratio: 400 / 262;
}
.temple > * {
  fill: #0d0b09;
  stroke: rgba(201, 164, 106, 0.6);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + clamp(2.5rem, 11svh, 7rem));
  max-width: min(46rem, 54vw);
  z-index: 2;
}
.hero__etym {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: var(--step-1);
}
.hero__etym-gloss {
  font-size: var(--step--1);
  color: var(--ash);
  letter-spacing: 0.04em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(16, 14, 12, 0.5);
}
.hero__lede {
  max-width: 32rem;
  margin-top: 1.5rem;
  color: #d9d2c4;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.hero__clock {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--ground-h) / 2);
  transform: translateY(50%);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  z-index: 2;
}
.hero__clock-label { font-size: var(--step--1); color: var(--ash); letter-spacing: 0.04em; }
.hero__clock-time {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  font-variant-numeric: tabular-nums lining-nums;
  min-width: 5.5ch;
}

@media (max-width: 860px) {
  .hero__copy { max-width: none; right: var(--gutter); top: calc(var(--header-h) + 1.5rem); }
  .hero__sun { left: 50%; top: 46svh; width: min(70vw, 20rem); transform: translate(-50%, calc(var(--p) * 30svh)); }
  .hero__temple { right: 50%; transform: translateX(50%); height: auto; width: min(66vw, 21rem); }
  .hero__clock { justify-content: center; left: 0; right: 0; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .hero__sun { top: 54svh; width: min(52vw, 15rem); }
  .hero__temple { width: min(46vw, 15rem); }
}
/* Short landscape screens (phones turned sideways): temple to the right of the copy */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__stage { min-height: 0; }
  .hero__copy { right: auto; max-width: 56vw; top: calc(var(--header-h) + 0.75rem); }
  .hero__title { font-size: clamp(1.9rem, 5.2vw, 3.2rem); }
  .hero__lede { margin-top: 0.75rem; font-size: 1rem; }
  .hero__actions { margin-top: 1rem; }
  .hero__etym { margin-bottom: 0.5rem; }
  .hero__sun { left: 80%; top: 10svh; width: 34svh; transform: translate(-50%, calc(var(--p) * 40svh)); }
  .hero__temple { right: 3vw; transform: none; width: auto; height: 44svh; }
  .hero__clock { justify-content: flex-start; left: var(--gutter); right: auto; }
}

/* Hero copy waits for main.js to animate it in; shown anyway after 3s if scripts fail */
html.motion .hero__copy,
html.motion .hero__clock {
  visibility: hidden;
  animation: show-late 0s 3s forwards;
}
@keyframes show-late { to { visibility: visible; } }

/* Word-by-word mask reveals (spans are added by main.js) */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.split-word > span { display: inline-block; will-change: transform; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section-space);
}
.section-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.08;
  text-wrap: balance;
}
.section-intro {
  max-width: 34rem;
  color: var(--ash);
  line-height: 1.7;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__layout {
  display: grid;
  gap: 3rem;
}
.services__intro .section-intro { margin-top: 1.5rem; }
.service-list { border-top: 1px solid var(--gold-line); }
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--gold-line);
}
@media (min-width: 640px) {
  .service { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 2rem; }
}
.service__icon {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.service__tag {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.service__name {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
}
.service__desc {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: var(--ash);
}

@media (min-width: 1000px) {
  .services__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
  .services__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ==========================================================================
   Neighborhood marquee
   ========================================================================== */
.marquee {
  margin-top: clamp(4rem, 9vw, 8rem);
  overflow: hidden;
  border-block: 1px solid var(--gold-line);
  padding-block: clamp(1rem, 2.5vw, 2rem);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-right: clamp(1.25rem, 3vw, 2.75rem);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 4.5vw, 6rem);
  line-height: 1.15;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.marquee__group svg {
  width: 0.4em;
  height: 0.4em;
  flex: none;
  fill: var(--gold);
}

/* ==========================================================================
   Services background: Prometheus carries fire from Olympus to the village
   The scene stays fixed behind the services while they scroll past. Default
   styles show the finished scene (village lit); with motion, main.js plays
   it from darkness to light across the section.
   ========================================================================== */
.services { isolation: isolate; }
.services__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.services__bg-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.myth__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Keeps the services text readable over the scene */
.services__bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--obsidian) 0%, rgba(16, 14, 12, 0) 18%, rgba(16, 14, 12, 0) 82%, var(--obsidian) 100%),
    rgba(16, 14, 12, 0.25);
}
@media (max-width: 999px) {
  .services__bg-shade { background-color: rgba(16, 14, 12, 0.4); }
}
@media (max-width: 640px) {
  .services__bg-shade { background-color: rgba(16, 14, 12, 0.55); }
}
/* A soft dark backing behind each service so text stays crisp over the artwork */
.service-list,
.services__intro {
  text-shadow: 0 1px 14px rgba(16, 14, 12, 0.9);
}

.myth__stars { fill: var(--marble); }
html.motion .myth__stars circle { animation: twinkle 4s ease-in-out infinite alternate; }
.myth__track {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 2 10;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}
.myth__sun-disc { fill: #f2d9a2; }
.myth__spark {
  fill: none;
  stroke: #f4b862;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.myth__mountain {
  fill: #110e0c;
  stroke: rgba(201, 164, 106, 0.55);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.myth__ridge { fill: #0b0908; stroke: rgba(201, 164, 106, 0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.myth__village > * {
  fill: #0d0b09;
  stroke: rgba(201, 164, 106, 0.6);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.myth__windows rect { fill: #f2c27a; }
.myth__windows .myth__cella { fill: #e9a457; opacity: 0.55; }
.myth__path {
  fill: none;
  stroke: #f4b862;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}
.myth__ember { display: none; }
html.motion .myth__ember { display: inline; }

/* ==========================================================================
   Quote
   ========================================================================== */
/* The quote sits centered between two golden laurel branches, one curving up each side */
.quote {
  position: relative;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(3.25rem, 11vw, 9rem);
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 0.95rem + 1.9vw, 2.5rem);
  line-height: 1.3;
  text-wrap: balance;
}
.laurel {
  position: absolute;
  top: 0;
  width: clamp(3rem, 10vw, 8rem);
  height: 100%;
  overflow: visible;
}
.laurel--left { left: 0; }
.laurel--right { right: 0; transform: scaleX(-1); }
.laurel__stem {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.laurel__leaf {
  fill: #c9a46a;
  stroke: #7a5d33;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
/* Distinct shades so each section's scroll reveal reads against the page */
.quote-band { background: var(--basalt); }
.pricing {
  --mx: 0;
  --my: 0;
  padding-top: clamp(4rem, 8vw, 7rem);
  background: #131110;
  isolation: isolate;
  overflow: hidden;
}
.packages {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}
@media (min-width: 1150px) {
  .packages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.package {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--gold-line);
  background: rgba(22, 19, 15, 0.55);
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
/* The hovered card clears a little so its image shows through */
.package.is-art-active { border-color: rgba(201, 164, 106, 0.7); background-color: rgba(22, 19, 15, 0.25); }
.package--featured.is-art-active {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 164, 106, 0.1), transparent 60%),
    linear-gradient(170deg, rgba(44, 20, 36, 0.45) 0%, rgba(23, 13, 20, 0.45) 100%);
}
.package--featured {
  position: relative;
  border-color: var(--gold);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 164, 106, 0.14), transparent 60%),
    linear-gradient(170deg, rgba(44, 20, 36, 0.8) 0%, rgba(23, 13, 20, 0.8) 100%);
}
.package--featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 24px;
  background: var(--meander) repeat-x;
  opacity: 0.6;
}
.package--featured .package__name { margin-top: 1rem; }
.package--custom { border-style: dashed; }
.package__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  letter-spacing: 0.06em;
}
.package__price { margin-top: 0.75rem; }
.package__amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}
.package__for { margin-top: 0.75rem; color: var(--ash); }
.package__list {
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--gold-line);
  list-style: none;
}
.package__list li {
  position: relative;
  padding-left: 1.5rem;
}
.package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.package .button { margin-top: auto; }

/* Greek line art behind the packages. The active one draws itself in and
   drifts with the pointer; the others fade away. */
.pricing__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Stays centered on screen while the packages scroll past */
.pricing__art-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art {
  grid-area: 1 / 1;
  width: min(96vw, 62rem, 125svh);
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(226, 194, 138, 0.35));
  transform:
    translate(calc(var(--mx) * -36px), calc(var(--my) * -24px))
    rotate(calc(var(--mx) * 1.5deg))
    scale(0.94);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.art * { vector-effect: non-scaling-stroke; }
.art [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.art.is-active {
  opacity: 0.7;
  transform:
    translate(calc(var(--mx) * -36px), calc(var(--my) * -24px))
    rotate(calc(var(--mx) * 1.5deg))
    scale(1);
}
.art.is-active [pathLength] { stroke-dashoffset: 0; }
.art.is-active [pathLength]:nth-child(2) { transition-delay: 0.15s; }
.art.is-active [pathLength]:nth-child(3) { transition-delay: 0.3s; }
.art.is-active [pathLength]:nth-child(4) { transition-delay: 0.45s; }
.art.is-active [pathLength]:nth-child(5) { transition-delay: 0.6s; }
.art__bolt { fill: rgba(226, 194, 138, 0); transition: fill 600ms var(--ease-out) 1.2s; }
.art.is-active .art__bolt { fill: rgba(226, 194, 138, 0.35); }
.art__glow { fill: rgba(226, 194, 138, 0.12); }

/* Idle life, only with motion: the amphora sways, the ship rides the swell,
   the thunderbolt flickers, the sun pulses */
html.motion .art__sway { transform-origin: 200px 280px; animation: sway 6s ease-in-out infinite alternate; }
html.motion .art__bob { animation: bob 4.5s ease-in-out infinite alternate; }
html.motion .art.is-active .art__bolt { animation: flicker 3.2s steps(1) infinite; }
html.motion .art__glow { transform-origin: 96px 86px; animation: pulse 5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes bob { from { transform: translateY(-4px) rotate(-1deg); } to { transform: translateY(5px) rotate(1deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 62% { opacity: 0.3; } 66% { opacity: 1; } 70% { opacity: 0.5; } 74% { opacity: 1; } }
@keyframes pulse { from { transform: scale(0.94); } to { transform: scale(1.08); } }
/* ==========================================================================
   Yearly plan
   ========================================================================== */
.plan {
  padding-block: 0;
  background: var(--basalt);
}
/* The stage holds the seasons scene, with the plan text over it. On wide, tall
   screens main.js adds .is-story: the stage pins while the seasons turn.
   Otherwise it scrolls normally and shows spring. */
.plan__story { position: relative; }
.plan.is-story .plan__story { height: 220svh; }
.plan__stage {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
}
.plan.is-story .plan__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 1rem) 2rem;
}
.plan__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--basalt) 0%, rgba(22, 19, 15, 0) 16%, rgba(22, 19, 15, 0) 84%, var(--basalt) 100%),
    rgba(16, 14, 12, 0.72);
}
@media (min-width: 1000px) {
  /* Dark behind the plan text on the left, opening up toward the scene on the right */
  .plan__shade {
    background:
      linear-gradient(to bottom, var(--basalt) 0%, rgba(22, 19, 15, 0) 16%, rgba(22, 19, 15, 0) 84%, var(--basalt) 100%),
      linear-gradient(90deg, rgba(16, 14, 12, 0.93) 0%, rgba(16, 14, 12, 0.85) 40%, rgba(16, 14, 12, 0.35) 64%, rgba(16, 14, 12, 0.2) 100%);
  }
}
.plan__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  width: 100%;
}
@media (min-width: 1000px) {
  .plan__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); align-items: center; }
}
.plan__copy .section-intro { margin-top: 1.5rem; }
.plan__list {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .plan__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plan__item {
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-line);
}
.plan__name {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
}
.plan__item p { color: var(--ash); }
.plan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
}

/* The seasons scene, in the hero's gold-line style. Defaults show spring. */
.seasons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.seasons__sky--winter { opacity: 0; }
.seasons__sky--spring { opacity: 1; }
.seasons__rays { stroke: var(--gold-bright); stroke-width: 0.6; opacity: 0.6; }
html.motion .seasons__rays > g { transform-box: fill-box; transform-origin: center; animation: spin 120s linear infinite; }
.seasons__pomegranate { opacity: 0; }
.seasons__pomegranate > * {
  fill: #0d0b09;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.seasons__pomegranate .seasons__cut { fill: #2a0c14; }
.seasons__seeds { stroke: none !important; }
.seasons__seeds ellipse { fill: #d2405a; filter: drop-shadow(0 0 4px rgba(226, 80, 100, 0.8)); }
.seasons__far { fill: #17110f; }
.seasons__near {
  fill: #0f0c0a;
  stroke: rgba(201, 164, 106, 0.45);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.seasons__temple > * {
  fill: #0d0b09;
  stroke: rgba(201, 164, 106, 0.6);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.seasons__chasm {
  fill: #050405;
  stroke: rgba(230, 110, 60, 0.9);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(230, 110, 60, 0.7));
  opacity: 0;
}
.seasons__wheat {
  fill: none;
  stroke: rgba(201, 164, 106, 0.8);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.seasons__wheat ellipse { fill: #c9a46a; stroke: none; }
.seasons__flowers .petal { fill: #d98a96; }
.seasons__flowers .bud { fill: var(--gold-bright); }
.seasons__snow { fill: #e8ecf2; opacity: 0; }
html.motion .seasons__snow circle { animation: snowfall linear infinite; }
@keyframes snowfall { to { transform: translateY(1900px); } }


/* ==========================================================================
   Booking form
   ========================================================================== */
.book {
  background:
    radial-gradient(90% 60% at 85% 100%, rgba(90, 29, 58, 0.55), transparent 65%),
    radial-gradient(60% 40% at 10% 0%, rgba(201, 164, 106, 0.08), transparent 70%),
    var(--obsidian);
  color-scheme: dark;
}
.book__layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .book__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .book__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.book__intro .section-intro { margin-top: 1.5rem; }
.book__contact { margin-top: 1.5rem; color: var(--ash); }
.book__contact a { color: var(--marble); text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

.form {
  display: grid;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--gold-line);
  background: rgba(16, 14, 12, 0.6);
}
.form__group {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form__legend {
  margin-bottom: 0.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
}
.form__optional { font-family: var(--font-body); font-size: var(--step--1); color: var(--ash); }

.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field label { font-weight: 400; font-size: 0.95rem; }
.req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(235, 229, 217, 0.22);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.0625rem;
  font-weight: 400;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(235, 229, 217, 0.45); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__hint { font-size: var(--step--1); color: var(--ash); }
.field__error {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--error);
}
.field__error:empty { display: none; }
.field__error:not(:empty)::before { content: "Error: "; }

.choice-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 1rem;
  border: 1px solid rgba(235, 229, 217, 0.22);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.choice__name { font-family: var(--font-display); }
.choice__price { color: var(--ash); font-variant-numeric: tabular-nums; }
.choice:hover .choice__body { border-color: rgba(235, 229, 217, 0.5); }
.choice input:checked + .choice__body {
  border-color: var(--gold);
  background: rgba(201, 164, 106, 0.1);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.choice input:checked + .choice__body .choice__price { color: var(--gold); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--gold); outline-offset: 3px; }

.check-grid {
  display: grid;
  gap: 0.25rem 1rem;
}
@media (min-width: 640px) {
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.form__summary {
  padding: 1rem 1.25rem;
  border: 1px solid var(--error);
  background: rgba(255, 158, 143, 0.06);
}
.form__summary-title { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
.form__summary ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.form__summary a { color: var(--error); }
.form__status:empty { display: none; }
.form__status {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 164, 106, 0.06);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  --mark-size: clamp(4rem, 22vw, 22rem);
  position: relative;
  padding-bottom: 2rem;
  background: var(--obsidian);
  color: var(--ash);
  font-size: 0.95rem;
}
/* The view from the terrace, behind everything in the footer */
.site-footer { overflow: hidden; }
.footer-view {
  position: absolute;
  inset: 24px 0 0;
  z-index: 0;
  pointer-events: none;
}
.footer-view svg { display: block; width: 100%; height: 100%; }
.site-footer > .meander,
.site-footer__inner,
.site-footer__mark { position: relative; z-index: 1; }

/* Clouds drift slowly left to right, each starting where it's drawn and
   leaving the frame before it loops */
.view-cloud--1 { --from: -560px; --to: 1560px; }
.view-cloud--2 { --from: -1220px; --to: 820px; }
.view-cloud--3 { --from: -860px; --to: 1160px; }
.view-cloud--4 { --from: -1520px; --to: 470px; }
html.motion .view-cloud { animation: drift linear infinite; }
html.motion .view-cloud--1 { animation-duration: 160s; animation-delay: -42s; }
html.motion .view-cloud--2 { animation-duration: 220s; animation-delay: -132s; }
html.motion .view-cloud--3 { animation-duration: 140s; animation-delay: -60s; }
html.motion .view-cloud--4 { animation-duration: 190s; animation-delay: -145s; }
@keyframes drift {
  from { transform: translateX(var(--from)); }
  to { transform: translateX(var(--to)); }
}

/* One centered column above the big AXION; side padding keeps it clear of the lanterns */
.site-footer__inner {
  padding-inline: max(var(--gutter), calc(1.2vw + var(--mark-size) * 0.3 + 1rem));
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-top: 4rem;
  text-align: center;
}
.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.3em;
  margin-right: -0.3em; /* trailing letter-spacing would push it off center */
  text-transform: uppercase;
  color: var(--marble);
  line-height: 1;
}
.site-footer__etym { margin-top: 0.75rem; }
.site-footer__etym [lang="grc"] { color: var(--gold); font-size: 1.1em; }
.site-footer a { color: var(--marble); text-decoration-color: var(--gold); text-underline-offset: 0.25em; display: inline-block; padding-block: 0.2rem; }
.site-footer__fine { margin-top: 0.5rem; font-size: var(--step--1); }
/* AXION across the bottom, with a bronze lampstand at each edge of the screen */
.site-footer__mark {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--mark-size);
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
}
.site-footer__word {
  position: relative;
  z-index: 1;
  display: inline-flex;
  letter-spacing: 0.04em;
  margin-right: -0.04em;
}.site-footer__word span {
  display: inline-block;
  background: linear-gradient(180deg, #f6dfae 0%, var(--gold-bright) 30%, var(--gold) 60%, #6e5530 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hanging lanterns at the screen edges. Each hangs from the Greek key band on
   a cord wrapped in gold leaves, with the lantern about halfway down to the
   AXION baseline. The leaves repeat at a fixed shape, so only the cord's
   length changes with the footer's height. */
.lamp {
  position: absolute;
  z-index: 2;
  top: 24px;
  /* the lantern's bottom sits halfway between the band and the AXION baseline */
  bottom: calc(50% + (2rem + var(--mark-size) * 0.082 - 24px) / 2);
  width: calc(var(--mark-size) * 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  pointer-events: none;
}
.lamp--left { left: clamp(0.25rem, 1.2vw, 1.5rem); }
.lamp--right { right: clamp(0.25rem, 1.2vw, 1.5rem); }
.lamp__vine {
  flex: 1;
  width: 62%;
  min-height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='56' viewBox='0 0 40 56'%3E%3Cpath d='M20 0 V56' stroke='%23c9a46a' stroke-width='1.5'/%3E%3Cpath d='M20 15 C12 5 4 7 2 13 C9 19 15 19 20 15 Z' fill='%23c9a46a'/%3E%3Cpath d='M20 15 L7 12' stroke='%23100e0c' stroke-width='0.8'/%3E%3Cpath d='M20 43 C28 33 36 35 38 41 C31 47 25 47 20 43 Z' fill='%23c9a46a'/%3E%3Cpath d='M20 43 L33 40' stroke='%23100e0c' stroke-width='0.8'/%3E%3Cpath d='M20 29 C15 25 13 21 15 17 C19 20 21 24 20 29 Z' fill='%23a8874f'/%3E%3C/svg%3E") center top / 100% auto repeat-y;
}
.lamp__lantern {
  display: block;
  width: 100%;
  height: auto;
  flex: none;
  overflow: visible;
}
.lamp__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lamp__flame {
  transform-origin: 40px 62px;
  filter: drop-shadow(0 0 10px rgba(244, 184, 98, 0.8));
}
/* A slow swing from the band, the two lanterns out of step */
html.motion .lamp { animation: swing 5.5s ease-in-out infinite alternate; }
html.motion .lamp--right { animation-delay: -2.75s; }
@keyframes swing {
  from { transform: rotate(-1.6deg); }
  to { transform: rotate(1.6deg); }
}html.motion .lamp__flame { animation: lamp-flicker 0.9s ease-in-out infinite alternate; }
html.motion .lamp--right .lamp__flame { animation-duration: 1.1s; animation-delay: -0.4s; }
@keyframes lamp-flicker {
  0% { transform: scale(0.92, 0.86) skewX(-3deg); }
  40% { transform: scale(1.04, 1.08) skewX(2deg); }
  100% { transform: scale(0.97, 1.14) skewX(-1deg); }
}

/* ==========================================================================
   Reduced motion: no movement. main.js still does short opacity fades.
   ========================================================================== */
html.reduced *,
html.reduced *::before,
html.reduced *::after {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
}
