/* =========================================================
   URTHTONE MASTERCRAFT — museum / gallery landing
   Palette: umber, clay, moss, sand, cream, dusk indigo
   Acts: Hero → Elements → Seasons → Weather → Room → Waitlist
   ========================================================= */

:root {
  --umber: #5C4033;
  --clay: #A0785A;
  --moss: #6B7F5A;
  --moss-deep: #3F4F38;
  --sand: #C4A882;
  --sand-soft: #E8D5B7;
  --cream: #F4EDE3;
  --cream-dim: #EDE4D6;
  --dusk: #2C3A4A;
  --dusk-deep: #1A1F1C;
  --indigo: #3A4558;
  --warm-ink: #2A2420;
  --glow: rgba(232, 213, 183, 0.38);
  --glow-moss: rgba(107, 127, 90, 0.28);
  --glow-fire: rgba(196, 120, 70, 0.32);
  --glow-water: rgba(120, 150, 170, 0.28);

  /* Reactive ambience (mutated by JS / hover) */
  --amb-sky-a: rgba(58, 69, 88, 0.55);
  --amb-sky-b: rgba(92, 64, 51, 0.22);
  --amb-mist-a: rgba(196, 168, 130, 0.14);
  --amb-mist-b: rgba(107, 127, 90, 0.11);
  --amb-orb-a: var(--glow);
  --amb-orb-b: var(--glow-moss);
  --amb-horizon: rgba(90, 70, 50, 0.28);
  --amb-accent: var(--sand);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --header-h: 4.75rem;
  --max: 72rem;
  --narrow: 38rem;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(5.5rem, 12vw, 9rem);

  --pointer-x: 0.5;
  --pointer-y: 0.4;
  --scroll-p: 0;
  --chapter-p: 0;

  --radius-card: 1.25rem;
  --radius-pill: 999px;
  --border-soft: rgba(244, 237, 227, 0.1);
  --border-strong: rgba(244, 237, 227, 0.18);
}

/* ---------- Ambience palettes (body[data-ambience]) ---------- */
body[data-ambience="earth"] {
  --amb-sky-a: rgba(92, 64, 51, 0.5);
  --amb-sky-b: rgba(60, 42, 32, 0.35);
  --amb-mist-a: rgba(160, 120, 90, 0.18);
  --amb-mist-b: rgba(92, 64, 51, 0.14);
  --amb-orb-a: rgba(196, 168, 130, 0.4);
  --amb-orb-b: rgba(92, 64, 51, 0.3);
  --amb-horizon: rgba(92, 64, 51, 0.4);
  --amb-accent: var(--umber);
}
body[data-ambience="air"] {
  --amb-sky-a: rgba(140, 165, 185, 0.4);
  --amb-sky-b: rgba(90, 120, 140, 0.25);
  --amb-mist-a: rgba(200, 220, 230, 0.14);
  --amb-mist-b: rgba(160, 180, 195, 0.1);
  --amb-orb-a: rgba(190, 210, 220, 0.35);
  --amb-orb-b: rgba(120, 150, 170, 0.25);
  --amb-horizon: rgba(100, 125, 145, 0.3);
  --amb-accent: #8CA5B9;
}
body[data-ambience="fire"] {
  --amb-sky-a: rgba(180, 90, 50, 0.35);
  --amb-sky-b: rgba(120, 50, 30, 0.28);
  --amb-mist-a: rgba(220, 140, 80, 0.16);
  --amb-mist-b: rgba(180, 90, 50, 0.12);
  --amb-orb-a: var(--glow-fire);
  --amb-orb-b: rgba(160, 80, 40, 0.3);
  --amb-horizon: rgba(140, 70, 40, 0.35);
  --amb-accent: #C47846;
}
body[data-ambience="water"] {
  --amb-sky-a: rgba(70, 110, 140, 0.45);
  --amb-sky-b: rgba(40, 70, 100, 0.3);
  --amb-mist-a: rgba(130, 170, 190, 0.16);
  --amb-mist-b: rgba(80, 120, 150, 0.12);
  --amb-orb-a: var(--glow-water);
  --amb-orb-b: rgba(70, 110, 140, 0.28);
  --amb-horizon: rgba(50, 80, 110, 0.35);
  --amb-accent: #6A8FA8;
}
body[data-ambience="spring"] {
  --amb-sky-a: rgba(120, 150, 100, 0.4);
  --amb-sky-b: rgba(90, 130, 90, 0.22);
  --amb-mist-a: rgba(180, 210, 150, 0.14);
  --amb-mist-b: rgba(107, 127, 90, 0.12);
  --amb-orb-a: rgba(170, 200, 130, 0.32);
  --amb-orb-b: var(--glow-moss);
  --amb-horizon: rgba(90, 120, 70, 0.3);
  --amb-accent: #8FA86A;
}
body[data-ambience="summer"] {
  --amb-sky-a: rgba(200, 160, 80, 0.35);
  --amb-sky-b: rgba(180, 120, 60, 0.22);
  --amb-mist-a: rgba(232, 200, 130, 0.16);
  --amb-mist-b: rgba(196, 168, 130, 0.12);
  --amb-orb-a: rgba(240, 200, 120, 0.38);
  --amb-orb-b: rgba(200, 140, 70, 0.25);
  --amb-horizon: rgba(160, 110, 60, 0.32);
  --amb-accent: #D4A85A;
}
body[data-ambience="autumn"] {
  --amb-sky-a: rgba(160, 90, 50, 0.4);
  --amb-sky-b: rgba(120, 60, 40, 0.28);
  --amb-mist-a: rgba(200, 120, 70, 0.15);
  --amb-mist-b: rgba(140, 80, 45, 0.12);
  --amb-orb-a: rgba(200, 110, 60, 0.35);
  --amb-orb-b: rgba(120, 60, 40, 0.28);
  --amb-horizon: rgba(130, 70, 40, 0.38);
  --amb-accent: #B86A3A;
}
body[data-ambience="winter"] {
  --amb-sky-a: rgba(100, 120, 140, 0.45);
  --amb-sky-b: rgba(60, 75, 95, 0.35);
  --amb-mist-a: rgba(180, 195, 210, 0.12);
  --amb-mist-b: rgba(120, 140, 160, 0.1);
  --amb-orb-a: rgba(180, 195, 210, 0.28);
  --amb-orb-b: rgba(90, 110, 130, 0.25);
  --amb-horizon: rgba(70, 85, 105, 0.4);
  --amb-accent: #8A9BB0;
}
body[data-ambience="mist"] {
  --amb-sky-a: rgba(140, 145, 140, 0.4);
  --amb-sky-b: rgba(100, 105, 100, 0.25);
  --amb-mist-a: rgba(200, 200, 190, 0.2);
  --amb-mist-b: rgba(160, 165, 155, 0.15);
  --amb-orb-a: rgba(210, 210, 200, 0.3);
  --amb-orb-b: rgba(140, 145, 135, 0.22);
  --amb-horizon: rgba(110, 115, 108, 0.3);
  --amb-accent: #A8ACA4;
}
body[data-ambience="storm"] {
  --amb-sky-a: rgba(50, 55, 70, 0.65);
  --amb-sky-b: rgba(30, 35, 50, 0.5);
  --amb-mist-a: rgba(80, 90, 110, 0.2);
  --amb-mist-b: rgba(40, 50, 70, 0.18);
  --amb-orb-a: rgba(120, 140, 180, 0.25);
  --amb-orb-b: rgba(60, 70, 100, 0.3);
  --amb-horizon: rgba(40, 45, 60, 0.5);
  --amb-accent: #7A8AB0;
}
body[data-ambience="clear"] {
  --amb-sky-a: rgba(160, 190, 210, 0.35);
  --amb-sky-b: rgba(120, 160, 190, 0.2);
  --amb-mist-a: rgba(220, 235, 245, 0.12);
  --amb-mist-b: rgba(180, 210, 230, 0.08);
  --amb-orb-a: rgba(230, 240, 250, 0.3);
  --amb-orb-b: rgba(140, 180, 210, 0.22);
  --amb-horizon: rgba(100, 140, 170, 0.25);
  --amb-accent: #A8C8DC;
}
body[data-ambience="dusk"],
body[data-ambience="umber"] {
  --amb-sky-a: rgba(58, 69, 88, 0.6);
  --amb-sky-b: rgba(44, 40, 50, 0.35);
  --amb-mist-a: rgba(90, 80, 100, 0.14);
  --amb-mist-b: rgba(58, 69, 88, 0.12);
  --amb-orb-a: rgba(100, 110, 140, 0.3);
  --amb-orb-b: rgba(70, 55, 45, 0.25);
  --amb-horizon: rgba(50, 55, 70, 0.4);
  --amb-accent: var(--indigo);
}
body[data-ambience="clay"] {
  --amb-sky-a: rgba(160, 120, 90, 0.4);
  --amb-sky-b: rgba(120, 85, 60, 0.28);
  --amb-mist-a: rgba(200, 160, 120, 0.15);
  --amb-orb-a: rgba(200, 150, 110, 0.35);
  --amb-accent: var(--clay);
}
body[data-ambience="moss"] {
  --amb-sky-a: rgba(80, 100, 70, 0.45);
  --amb-mist-a: rgba(120, 150, 100, 0.14);
  --amb-orb-a: var(--glow-moss);
  --amb-accent: var(--moss);
}
body[data-ambience="sand"] {
  --amb-sky-a: rgba(200, 175, 130, 0.35);
  --amb-mist-a: rgba(232, 213, 183, 0.16);
  --amb-orb-a: var(--glow);
  --amb-accent: var(--sand);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .layer, .orb, .grain, .topo path, .pointer-glow {
    transform: none !important;
  }
  .chapters-fill { transition: none !important; }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  color: var(--cream);
  background: var(--dusk-deep);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: --amb-accent 0.6s var(--ease-soft);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Scene ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 100%, #2a221c 0%, transparent 55%),
    linear-gradient(180deg, #1a1f1c 0%, #243038 42%, #3a3228 78%, #2a221c 100%);
}

.layer {
  position: absolute;
  inset: -10%;
  will-change: transform;
  transition:
    transform 0.7s var(--ease-soft),
    background 0.8s var(--ease-soft),
    opacity 0.8s var(--ease-soft);
}

.layer-sky {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--amb-sky-a) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 72% 18%, var(--amb-sky-b) 0%, transparent 50%);
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * -14px),
    calc((var(--pointer-y) - 0.5) * -10px + var(--scroll-p) * -24px),
    0
  );
}

.layer-mist {
  background:
    radial-gradient(ellipse 100% 42% at 50% 72%, var(--amb-mist-a) 0%, transparent 70%),
    radial-gradient(ellipse 70% 32% at 28% 64%, var(--amb-mist-b) 0%, transparent 60%);
  filter: blur(20px);
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * -32px),
    calc((var(--pointer-y) - 0.5) * -16px + var(--scroll-p) * -48px),
    0
  );
  opacity: 0.92;
}

.layer-bloom {
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%),
      color-mix(in srgb, var(--amb-accent) 18%, transparent) 0%,
      transparent 42%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
}

.layer-horizon {
  background:
    linear-gradient(
      180deg,
      transparent 46%,
      var(--amb-horizon) 58%,
      rgba(42, 34, 28, 0.55) 72%,
      rgba(26, 31, 28, 0.88) 100%
    );
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * -6px),
    calc(var(--scroll-p) * -12px),
    0
  );
}

.topo {
  position: absolute;
  inset: 16% -6% -12%;
  opacity: 0.24;
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * -44px),
    calc((var(--pointer-y) - 0.5) * -22px + var(--scroll-p) * -60px),
    0
  );
  transition: opacity 0.8s var(--ease-soft);
}

.topo path {
  fill: none;
  stroke: var(--amb-accent);
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: 0.5;
  transition: stroke 0.8s var(--ease-soft);
}

.topo path:nth-child(odd) {
  stroke: var(--moss);
  opacity: 0.38;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  mix-blend-mode: soft-light;
  opacity: 0.58;
  animation: drift 20s var(--ease-soft) infinite alternate;
  transition: background 0.8s var(--ease-soft);
}

.orb-a {
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  left: 6%;
  top: 10%;
  background: radial-gradient(circle, var(--amb-orb-a) 0%, transparent 70%);
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * 55px),
    calc((var(--pointer-y) - 0.5) * 32px),
    0
  );
}

.orb-b {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  right: 4%;
  top: 26%;
  background: radial-gradient(circle, var(--amb-orb-b) 0%, transparent 70%);
  animation-delay: -7s;
  animation-duration: 24s;
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * -38px),
    calc((var(--pointer-y) - 0.5) * 48px),
    0
  );
}

.orb-c {
  width: min(52vw, 520px);
  height: min(30vw, 300px);
  left: 22%;
  bottom: 8%;
  background: radial-gradient(ellipse, rgba(92, 64, 51, 0.35) 0%, transparent 70%);
  animation-delay: -12s;
  animation-duration: 28s;
  filter: blur(50px);
  transform: translate3d(
    calc((var(--pointer-x) - 0.5) * 20px),
    calc((var(--pointer-y) - 0.5) * -18px + var(--scroll-p) * 30px),
    0
  );
}

@keyframes drift {
  from { filter: blur(44px) saturate(1); }
  to { filter: blur(52px) saturate(1.15); }
}

#soil-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(1%, 1%); }
}

.pointer-glow {
  position: absolute;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  border-radius: 50%;
  left: calc(var(--pointer-x) * 100%);
  top: calc(var(--pointer-y) * 100%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--amb-accent) 22%, transparent) 0%, transparent 68%);
  opacity: 0.65;
  transition: background 0.6s var(--ease-soft);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, transparent 40%, rgba(10, 12, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 12, 11, 0.25) 0%, transparent 18%, transparent 75%, rgba(10, 12, 11, 0.45) 100%);
}

/* ---------- Site shell ---------- */
.site {
  position: relative;
  z-index: 1;
}

/* ---------- Chapter rail ---------- */
.chapters {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (min-width: 1100px) {
  .chapters { display: flex; }
}

.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chapters-list a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 237, 227, 0.4);
  transition: color 0.35s var(--ease-soft);
}

.chapters-list a:hover,
.chapters-list a:focus-visible,
.chapters-list a.is-active {
  color: var(--cream);
}

.ch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(244, 237, 227, 0.35);
  background: transparent;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
  order: 2;
}

.chapters-list a.is-active .ch-dot {
  background: var(--amb-accent);
  border-color: var(--amb-accent);
  transform: scale(1.25);
  box-shadow: 0 0 12px color-mix(in srgb, var(--amb-accent) 50%, transparent);
}

.ch-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  order: 1;
}

.chapters-list a:hover .ch-label,
.chapters-list a:focus-visible .ch-label,
.chapters-list a.is-active .ch-label {
  opacity: 1;
  transform: translateX(0);
}

.chapters-progress {
  position: absolute;
  right: 2px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(244, 237, 227, 0.12);
  pointer-events: none;
}

.chapters-fill {
  display: block;
  width: 100%;
  height: calc(var(--chapter-p) * 100%);
  background: linear-gradient(180deg, var(--sand), var(--moss));
  transition: height 0.15s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(16px) saturate(1.1);
  background: linear-gradient(180deg, rgba(26, 31, 28, 0.78) 0%, rgba(26, 31, 28, 0.45) 70%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(26, 31, 28, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.logo span {
  font-weight: 300;
  font-style: italic;
  color: var(--sand-soft);
  opacity: 0.9;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(244, 237, 227, 0.72);
}

@media (min-width: 860px) {
  .nav { display: flex; }
}

.nav a {
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--amb-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--cream) !important;
  background: rgba(244, 237, 227, 0.04);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(244, 237, 227, 0.1);
  border-color: var(--sand);
  box-shadow: 0 0 24px rgba(196, 168, 130, 0.15);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 1.35rem;
  background: var(--cream);
  margin-inline: auto;
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  background: rgba(26, 31, 28, 0.95);
  border-bottom: 1px solid var(--border-soft);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-soft);
  color: rgba(244, 237, 227, 0.85);
}

.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--sand-soft) 0%, var(--sand) 55%, var(--clay) 100%);
  color: var(--warm-ink);
  box-shadow: 0 8px 28px rgba(92, 64, 51, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(92, 64, 51, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--cream);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(244, 237, 227, 0.06);
  border-color: var(--sand);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ---------- Typography helpers ---------- */
.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 213, 183, 0.7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow-mark {
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--moss), var(--sand));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--cream);
  max-width: 16ch;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.section-lede {
  max-width: 38rem;
  color: rgba(244, 237, 227, 0.72);
  font-size: 1.05rem;
  font-weight: 300;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-label {
  margin-bottom: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(5rem, 10vw, 7rem);
}

.hero-inner {
  max-width: 46rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(3.8rem, 2rem + 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  color: var(--cream);
}

.wordmark .soft {
  font-style: italic;
  font-weight: 300;
  color: var(--sand-soft);
}

.tagline {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 237, 227, 0.78);
  max-width: 32rem;
  margin-bottom: 2.25rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8rem));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  max-width: 28rem;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--sand-soft);
  line-height: 1;
}

.hero-stats dd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 237, 227, 0.5);
  margin-top: 0.35rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 227, 0.4);
}

.scroll-hint .line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--sand), transparent);
  animation: descend 2.4s var(--ease-soft) infinite;
}

@keyframes descend {
  0% { transform: scaleY(0.3); opacity: 0; transform-origin: top; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: top; }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.act::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(100% - 2.5rem, var(--max));
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
  opacity: 0.8;
}

.hero.act::before { display: none; }

/* ---------- Elements / pillar cards ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

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

@media (min-width: 1000px) {
  .pillar-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
}

.pillar-card {
  position: relative;
  padding: 1.65rem 1.4rem 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(160deg, rgba(244, 237, 227, 0.05) 0%, rgba(244, 237, 227, 0.015) 100%);
  backdrop-filter: blur(8px);
  cursor: default;
  overflow: hidden;
  transition:
    border-color 0.45s var(--ease-soft),
    transform 0.45s var(--ease-out),
    background 0.45s,
    box-shadow 0.45s;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, color-mix(in srgb, var(--amb-accent) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.pillar-card:hover,
.pillar-card:focus-visible {
  border-color: color-mix(in srgb, var(--amb-accent) 45%, var(--border-strong));
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  outline: none;
}

.pillar-card:hover::before,
.pillar-card:focus-visible::before {
  opacity: 1;
}

.pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sand-soft);
  margin-bottom: 1.35rem;
  opacity: 0.85;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(232, 213, 183, 0.45);
  margin-bottom: 0.5rem;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.pillar-card p:last-child {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(244, 237, 227, 0.68);
  line-height: 1.55;
}

/* ---------- Seasons ---------- */
.season-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

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

@media (min-width: 1100px) {
  .season-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .season-card {
    border-radius: 0;
    border-left: 0;
  }
  .season-card:first-child {
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    border-left: 1px solid var(--border-soft);
  }
  .season-card:last-child {
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
  }
}

.season-card {
  position: relative;
  padding: 2rem 1.5rem 2.1rem;
  border: 1px solid var(--border-soft);
  background: rgba(26, 31, 28, 0.35);
  backdrop-filter: blur(10px);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  transition: background 0.45s, border-color 0.45s, transform 0.45s var(--ease-out);
}

.season-card:hover,
.season-card:focus-visible {
  background: rgba(244, 237, 227, 0.05);
  border-color: color-mix(in srgb, var(--amb-accent) 40%, var(--border-soft));
  outline: none;
  z-index: 1;
}

.season-mark {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amb-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--amb-accent) 55%, transparent);
  transition: background 0.5s, box-shadow 0.5s;
}

.season-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(232, 213, 183, 0.45);
  margin-bottom: 1.5rem;
}

.season-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.season-epithet {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--amb-accent) 85%, var(--cream));
  margin-bottom: 1rem;
  transition: color 0.5s;
}

.season-card p:last-child {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(244, 237, 227, 0.65);
  line-height: 1.55;
}

/* ---------- Weather ---------- */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

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

.weather-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: linear-gradient(120deg, rgba(244, 237, 227, 0.04), transparent 60%);
  min-height: 8.5rem;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s, background 0.45s;
}

.weather-card:hover,
.weather-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--amb-accent) 40%, var(--border-strong));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  outline: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--amb-accent) 8%, transparent), transparent 65%);
}

.weather-visual {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.wv-fog,
.wv-bolt,
.wv-sun,
.wv-moon {
  display: block;
  position: relative;
}

.wv-fog {
  width: 70%;
  height: 2px;
  background: rgba(220, 220, 210, 0.55);
  box-shadow: 0 -10px 0 rgba(220, 220, 210, 0.35), 0 10px 0 rgba(220, 220, 210, 0.25);
  border-radius: 2px;
}

.wv-bolt {
  width: 14px;
  height: 28px;
  background: linear-gradient(180deg, #c8d4f0, #7a8ab0);
  clip-path: polygon(40% 0, 100% 0, 55% 42%, 85% 42%, 0 100%, 35% 52%, 10% 52%);
  opacity: 0.85;
}

.wv-sun {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4ede3, #c4a882 60%, transparent 70%);
  box-shadow: 0 0 24px rgba(232, 213, 183, 0.45);
}

.wv-moon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #c8c4d4;
  box-shadow: inset -6px -2px 0 0 #2c3a4a, 0 0 16px rgba(140, 150, 180, 0.35);
}

.weather-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.weather-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(244, 237, 227, 0.65);
  line-height: 1.5;
}

/* ---------- Room ---------- */
.room-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .room-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.room-copy p {
  color: rgba(244, 237, 227, 0.72);
  font-weight: 300;
  margin-bottom: 1.1rem;
  max-width: 36rem;
}

.room-quote {
  margin-top: 2rem;
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 2px solid var(--moss);
  max-width: 28rem;
}

.room-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--sand-soft);
  margin: 0;
}

.tones {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tone-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: rgba(244, 237, 227, 0.03);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}

.tone-card:hover,
.tone-card:focus-visible {
  border-color: color-mix(in srgb, var(--amb-accent) 35%, var(--border-strong));
  background: rgba(244, 237, 227, 0.06);
  transform: translateX(4px);
  outline: none;
}

.swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.swatch-umber { background: linear-gradient(145deg, #7a5644, #5C4033); }
.swatch-clay { background: linear-gradient(145deg, #b89270, #A0785A); }
.swatch-moss { background: linear-gradient(145deg, #849872, #6B7F5A); }
.swatch-sand { background: linear-gradient(145deg, #d4b894, #C4A882); }
.swatch-dusk { background: linear-gradient(145deg, #455468, #2C3A4A); }

.tone-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.tone-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(244, 237, 227, 0.58);
  margin: 0;
}

/* ---------- Waitlist ---------- */
.waitlist {
  padding-bottom: clamp(6rem, 12vw, 9rem);
}

.waitlist-card {
  max-width: 32rem;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius-card) + 0.35rem);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(165deg, rgba(244, 237, 227, 0.07) 0%, rgba(26, 31, 28, 0.55) 45%, rgba(42, 34, 28, 0.4) 100%);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.waitlist-card .section-title {
  max-width: none;
  margin-inline: auto;
}

.waitlist-card .lede {
  color: rgba(244, 237, 227, 0.7);
  font-weight: 300;
  margin: 0 auto 2rem;
  max-width: 28rem;
}

.form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form.is-hidden { display: none; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
  color: rgba(244, 237, 227, 0.8);
}

.optional {
  opacity: 0.5;
  font-weight: 400;
}

.field input {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-soft);
  background: rgba(10, 12, 11, 0.45);
  color: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field input::placeholder {
  color: rgba(244, 237, 227, 0.35);
}

.field input:hover {
  border-color: var(--border-strong);
}

.field input:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.18);
  background: rgba(10, 12, 11, 0.55);
}

.field input.is-invalid {
  border-color: #c47846;
  box-shadow: 0 0 0 3px rgba(196, 120, 70, 0.18);
}

.field-error {
  min-height: 1.25rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #e8b896;
}

.form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244, 237, 227, 0.45);
  margin-top: 0.15rem;
}

.success {
  display: none;
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.success.is-visible { display: block; }

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  color: var(--sand-soft);
}

.success-icon svg { width: 100%; height: 100%; }

.success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.success p {
  color: rgba(244, 237, 227, 0.68);
  font-weight: 300;
  max-width: 24rem;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent, rgba(10, 12, 11, 0.45));
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.footer-tag {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(244, 237, 227, 0.55);
  margin-bottom: 0.75rem;
}

.footer-meta {
  font-size: 0.78rem;
  color: rgba(244, 237, 227, 0.4);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
  color: rgba(244, 237, 227, 0.6);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cream);
}

.socials a {
  font-size: 0.88rem;
  color: var(--sand);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.socials a:hover,
.socials a:focus-visible {
  border-bottom-color: var(--sand);
  color: var(--sand-soft);
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

::selection {
  background: rgba(196, 168, 130, 0.35);
  color: var(--cream);
}
