/* ============================================================
   Moor to Shore — a film in one scroll
   One fixed stage · master scroll timeline · camera rig ·
   letterbox intertitles · colour grade · particle weather
   Palette: night teal · dawn amber · sea sage · shell · clay
   ============================================================ */

:root {
  --shell:       #f5efe2;
  --paper:       #fbf7ee;
  --ink:         #15302d;
  --ocean:       #1a3f3a;
  --ocean-deep:  #0e2421;
  --night:       #0b1a22;
  --sage:        #6f9486;
  --sage-light:  #a9c2b5;
  --sand:        #e3d4b6;
  --clay:        #c75a39;
  --clay-soft:   #e08a6c;
  --dawn:        #e8b46a;
  --line:        rgba(21, 48, 45, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1180px;
  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--shell);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--clay); color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 95; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grain-jitter 0.9s steps(4) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0,0); } 25% { transform: translate(-30px,18px); }
  50% { transform: translate(22px,-26px); } 75% { transform: translate(-14px,-12px); }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--sage), var(--dawn), var(--clay));
  transform: scaleX(0); transform-origin: left center;
}

/* custom cursor */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 260; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor-dot { width: 7px; height: 7px; background: var(--clay-soft); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1.5px solid rgba(224,138,108,0.55);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
  }
  .cursor.is-link .cursor-ring { width: 54px; height: 54px; border-color: var(--sage-light); }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.015em; font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dawn); }
.section-num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.2rem; }
.light-num { color: var(--clay-soft) !important; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(245,239,226,0.85); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; will-change: transform;
  transition: background .25s, color .25s, box-shadow .35s var(--ease), border-color .25s;
}
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-clay { background: var(--clay); color: var(--paper); box-shadow: 0 8px 24px -10px rgba(199, 90, 57, 0.7); }
.btn-clay:hover { background: #b54e30; box-shadow: 0 14px 32px -10px rgba(199, 90, 57, 0.85); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0; color: var(--shell);
  transition: background .3s, box-shadow .3s, transform .45s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 26, 34, 0.66);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(245,239,226,0.08);
}
.site-header.hidden { transform: translateY(-110%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark path { fill: none; stroke: var(--sage-light); stroke-width: 2; stroke-linecap: round; }
.brand-mark path:nth-child(3) { stroke: var(--clay-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--clay-soft); font-size: 0.82em; margin: 0 1px; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-light); font-weight: 600; }

.nav { display: flex; gap: 30px; }
.nav a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--clay-soft); transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--shell); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ============================================================
   THE STORY — stage & scene
   ============================================================ */
.story { height: 1300vh; position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* skies */
.sky { position: absolute; inset: 0; }
.sky-night { background: linear-gradient(180deg, #07121a 0%, #0b1a22 55%, #122a30 100%); }
.sky-dawn {
  background:
    radial-gradient(ellipse 130% 60% at 30% 100%, rgba(232,180,106,0.5), transparent 60%),
    linear-gradient(180deg, #0b1a22 0%, #173741 45%, #2e5a52 75%, #6f9486 100%);
}
.sky-day {
  background:
    radial-gradient(ellipse 140% 70% at 50% 110%, rgba(245,239,226,0.22), transparent 60%),
    linear-gradient(180deg, #2d6b74 0%, #4d8d8b 55%, #8fb5a4 100%);
  opacity: 0;
}
.sky-dusk {
  background:
    radial-gradient(ellipse 120% 60% at 75% 95%, rgba(199,90,57,0.55), transparent 60%),
    linear-gradient(180deg, #16323e 0%, #34505a 45%, #b97a5a 85%, #e0a06c 100%);
  opacity: 0;
}

/* stars */
.stars { position: absolute; inset: 0; }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245,239,226,0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 8%, rgba(245,239,226,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, rgba(245,239,226,0.8), transparent 60%),
    radial-gradient(1px 1px at 61% 12%, rgba(245,239,226,0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 75% 26%, rgba(245,239,226,0.85), transparent 60%),
    radial-gradient(1px 1px at 88% 9%, rgba(245,239,226,0.7), transparent 60%),
    radial-gradient(1px 1px at 53% 33%, rgba(245,239,226,0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 19% 38%, rgba(245,239,226,0.6), transparent 60%);
}
.stars::after { transform: translate(34%, 10%) scale(1.3); opacity: 0.7; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: 0.35; } }

/* sun */
.sun {
  position: absolute; top: 0; left: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #f5e3bb 0%, rgba(232,180,106,0.85) 35%, rgba(232,180,106,0.25) 62%, transparent 75%);
  filter: blur(1px);
}
.sun::after {
  content: ""; position: absolute; inset: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,106,0.3), transparent 65%);
}

/* camera rig */
.camera { position: absolute; inset: 0; transform-origin: 50% 72%; will-change: transform; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* land */
.hill-far { fill: #1d4a47; }
.hill-mid { fill: #173a36; }
.hill-near { fill: #0f2724; }
.contours path { fill: none; stroke: rgba(169,194,181,0.22); stroke-width: 1.2; }

/* the lane */
.road-base { fill: none; stroke: rgba(11,26,34,0.55); stroke-width: 9; stroke-linecap: round; }
.road { fill: none; stroke: rgba(245,239,226,0.55); stroke-width: 2.4; stroke-dasharray: 10 12; stroke-linecap: round; }

/* cottage */
.cottage .walls { fill: #e9e0cb; }
.cottage .roof { fill: #4a4038; }
.cottage .chimney { fill: #4a4038; }
.cottage .door { fill: #1a3f3a; }
.cottage .window { fill: #2c4a46; transition: fill .6s; }
.cottage.lit .window { fill: #f2c97c; }
.cottage .puff { fill: rgba(245,239,226,0.5); opacity: 0; }
.cottage.smoking .puff { animation: puff-rise 3.2s ease-out infinite; }
.cottage.smoking .p2 { animation-delay: 1s; }
.cottage.smoking .p3 { animation-delay: 2s; }
@keyframes puff-rise {
  0% { opacity: 0; transform: translate(0, 6px) scale(0.6); }
  25% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(10px, -34px) scale(1.5); }
}

/* van */
.van-body { fill: #f5efe2; }
.van-cab { fill: #f5efe2; }
.van-win { fill: #2c4a46; }
.van-wheel { fill: #15302d; stroke: #4a4038; stroke-width: 2; }
.van-waves { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; }
.van-light { fill: rgba(245,227,187,0.4); }

/* gulls */
.gull { fill: none; stroke: rgba(245,239,226,0.8); stroke-width: 2; stroke-linecap: round; }
.g1 { transform: translate(380px, 250px); animation: gull-drift 17s linear infinite; }
.g2 { transform: translate(760px, 200px); animation: gull-drift 23s linear infinite reverse; }
.g3 { transform: translate(1050px, 290px); animation: gull-drift 20s linear infinite; }
@keyframes gull-drift {
  0% { translate: 0 0; } 25% { translate: 60px -18px; }
  50% { translate: 120px 6px; } 75% { translate: 60px 20px; } 100% { translate: 0 0; }
}

/* sea */
.sea-base { fill: #143c46; }
.seawave { animation: sea-roll 9s linear infinite; }
.sw1 { fill: rgba(169,194,181,0.4); }
.sw2 { fill: rgba(45,107,116,0.85); animation-duration: 13s; animation-direction: reverse; }
@keyframes sea-roll { to { transform: translateX(-120px); } }

/* particle canvas */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* sparkles (cleaning act) */
.sparkles { position: absolute; inset: 12% 18% 30% 18%; pointer-events: none; opacity: 0; }
.sparkles span {
  position: absolute; color: #f2c97c; font-size: 18px;
  animation: spark 2.4s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(242,201,124,0.8);
}
.sparkles span:nth-child(1) { left: 8%; top: 22%; animation-delay: 0s; }
.sparkles span:nth-child(2) { left: 24%; top: 64%; animation-delay: .4s; font-size: 13px; }
.sparkles span:nth-child(3) { left: 38%; top: 12%; animation-delay: .9s; }
.sparkles span:nth-child(4) { left: 47%; top: 70%; animation-delay: .2s; font-size: 12px; }
.sparkles span:nth-child(5) { left: 58%; top: 30%; animation-delay: 1.3s; }
.sparkles span:nth-child(6) { left: 67%; top: 58%; animation-delay: .7s; font-size: 14px; }
.sparkles span:nth-child(7) { left: 76%; top: 16%; animation-delay: 1.7s; }
.sparkles span:nth-child(8) { left: 87%; top: 48%; animation-delay: .5s; font-size: 13px; }
.sparkles span:nth-child(9) { left: 15%; top: 44%; animation-delay: 1.1s; font-size: 12px; }
.sparkles span:nth-child(10) { left: 52%; top: 48%; animation-delay: 1.9s; }
.sparkles span:nth-child(11) { left: 31%; top: 36%; animation-delay: 1.5s; font-size: 12px; }
.sparkles span:nth-child(12) { left: 93%; top: 28%; animation-delay: .3s; font-size: 15px; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(40deg); }
}

/* colour grade + cinema frame */
.grade { position: absolute; inset: 0; pointer-events: none; }
.grade-warm { background: linear-gradient(180deg, rgba(232,180,106,0.16), rgba(199,90,57,0.14)); mix-blend-mode: soft-light; opacity: 0; }
.grade-cool { background: linear-gradient(180deg, rgba(77,141,139,0.2), rgba(21,48,45,0.12)); mix-blend-mode: soft-light; opacity: 0; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(7,18,26,0.55) 100%);
}
.letterbox {
  position: absolute; left: 0; right: 0; height: 0; background: #050d13; z-index: 6; pointer-events: none;
}
.lb-top { top: 0; }
.lb-bot { bottom: 0; }

/* intertitles */
.intertitles { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.title-card {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 3.6rem); font-style: italic; font-weight: 400;
  color: var(--shell); opacity: 0; letter-spacing: 0.04em;
  text-shadow: 0 4px 40px rgba(7,18,26,0.8);
}
.title-card span {
  display: block; font-family: var(--font-body); font-style: normal; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--dawn); margin-bottom: 14px;
}

/* story clock */
.scene-clock {
  position: absolute; left: 26px; bottom: 26px; z-index: 8;
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(245,239,226,0.85); pointer-events: none;
}
.clock-time { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.clock-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-light); }

/* chapter rail */
.rail {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 8;
  display: flex; flex-direction: column; gap: 16px;
}
.rail li { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; cursor: pointer; }
.rail i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid rgba(245,239,226,0.5); background: transparent;
  transition: background .3s, border-color .3s, transform .3s;
}
.rail em {
  font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--shell); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s;
}
.rail li:hover em { opacity: 0.9; transform: none; }
.rail li.on i { background: var(--clay-soft); border-color: var(--clay-soft); transform: scale(1.3); }

/* ============================================================
   STORY PANELS — content woven into the film
   ============================================================ */
.panels { position: absolute; inset: 0; pointer-events: none; }
.panel {
  position: fixed; z-index: 60; max-width: 480px;
  opacity: 0; visibility: hidden; transform: translateY(34px);
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(7,18,26,0.55);
}
.panel.on { visibility: visible; pointer-events: auto; }
.panel h1, .panel h2 { margin-bottom: 14px; }
.panel p { color: rgba(245,239,226,0.86); }

.pos-c { left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 34px)); text-align: center; }
.pos-l { left: max(5vw, 24px); top: 24svh; }
.pos-r { right: max(5vw, 24px); top: 24svh; max-width: 440px; }

.panel-time {
  display: inline-block; font-family: var(--font-display); font-style: italic;
  font-size: 1.6rem; color: var(--dawn); margin-bottom: 8px;
}
.hero-title { margin-bottom: 18px; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-line-w {
  display: inline-block; opacity: 0; transform: translateY(110%) rotate(2deg);
  animation: word-rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 80ms + 250ms);
}
.hero-line-w.em { font-style: italic; color: var(--dawn); }
@keyframes word-rise { to { opacity: 1; transform: none; } }
#panel-hero .lede { max-width: 52ch; margin-inline: auto; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.hint-inline { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,239,226,0.65); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* services mini-grid */
.panel-wide { max-width: 760px; width: calc(100vw - 48px); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.mini-card {
  background: rgba(11, 26, 34, 0.62); border: 1px solid rgba(169,194,181,0.28);
  border-radius: 14px; padding: 18px 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), border-color .3s;
}
.mini-card:hover { transform: translateY(-4px); border-color: var(--clay-soft); }
.mini-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mini-card p { font-size: 0.88rem; color: rgba(245,239,226,0.75); }
.mini-card.star { border-color: var(--clay); background: rgba(199, 90, 57, 0.26); }

/* stats */
.stats-row { display: flex; gap: 26px; margin: 18px 0 14px; flex-wrap: wrap; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--dawn); line-height: 1; }
.stat-label { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--sage-light); font-weight: 600; letter-spacing: 0.04em; }
.stat-foot { font-size: 0.92rem; }

/* coverage buoys */
.town-buoys { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.town-buoys li {
  padding: 8px 16px; border-radius: 100px; font-weight: 600; font-size: 0.85rem;
  background: rgba(11,26,34,0.6); border: 1px solid rgba(169,194,181,0.35);
  backdrop-filter: blur(6px); animation: buoy 3.4s ease-in-out infinite;
}
.town-buoys li:nth-child(odd) { animation-delay: 1.2s; }
.town-buoys li:nth-child(3n) { animation-delay: 2.1s; }
.town-buoys li.hot { background: var(--clay); border-color: var(--clay); }
@keyframes buoy { 50% { transform: translateY(-5px) rotate(-1.2deg); } }

/* story quotes */
.story-quote {
  background: rgba(11,26,34,0.62); border-left: 3px solid var(--clay-soft);
  border-radius: 0 14px 14px 0; padding: 16px 18px; margin-top: 14px;
  backdrop-filter: blur(8px);
}
.story-quote blockquote { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.45; }
.story-quote figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--sage-light); }

/* finale */
.finale-h { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.em-i { font-style: italic; color: var(--dawn); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ocean-deep); color: var(--shell); overflow: hidden; padding: 18px 0;
  position: relative; z-index: 5; border-block: 1px solid rgba(169,194,181,0.15);
}
.marquee-track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.marquee-track span:nth-child(even) { color: var(--clay-soft); font-size: 0.8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   EPILOGUE — QUOTE
   ============================================================ */
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.quote {
  background: linear-gradient(180deg, #16323e 0%, #1d4a4e 60%, #143c46 100%);
  color: var(--paper); overflow: hidden; padding-bottom: 170px; z-index: 5;
}
.sea-cta { position: absolute; left: 0; right: 0; bottom: -4px; height: 130px; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave path { fill: rgba(169,194,181,0.16); }
.wave-1 { animation: wave-roll 14s linear infinite; }
.wave-2 { animation: wave-roll 9s linear infinite reverse; bottom: -16px; }
.wave-2 path { fill: rgba(224,138,108,0.12); }
@keyframes wave-roll { to { transform: translateX(-50%); } }

.quote-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote-copy h2 { margin: 14px 0 20px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.quote-copy p { color: rgba(245,239,226,0.82); max-width: 42ch; }
.quote-contacts { margin-top: 30px; display: grid; gap: 14px; }
.quote-contacts li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(169,194,181,0.22); }
.quote-contacts span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-light); font-weight: 600; }
.quote-contacts a { font-family: var(--font-display); font-size: 1.15rem; transition: color .25s; }
.quote-contacts a:hover { color: var(--clay-soft); }

.quote-form { background: var(--paper); border-radius: var(--r); padding: 30px; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(5,13,19,0.8); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ocean); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--shell); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(21,48,45,0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: var(--paper);
  box-shadow: 0 0 0 4px rgba(199,90,57,0.13);
}
.form-note { margin-top: 14px; font-size: 0.82rem; color: var(--sage); text-align: center; }
.form-note.ok { color: var(--clay); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #07121a; color: var(--shell); padding: 64px 0 28px; position: relative; z-index: 5; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; padding-bottom: 44px; border-bottom: 1px solid rgba(169,194,181,0.2); }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { margin-top: 12px; color: rgba(245,239,226,0.6); max-width: 32ch; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 16px; font-weight: 700; }
.footer-cols a { display: block; padding: 5px 0; color: rgba(245,239,226,0.78); font-size: 0.95rem; transition: color .25s, padding-left .25s; }
.footer-cols a:hover { color: var(--clay-soft); padding-left: 4px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 0.85rem; color: rgba(245,239,226,0.5); }
.footer-tag { color: var(--sage-light); }

/* ============================================================
   OPENING TITLES
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 280; background: #050d13;
  display: grid; place-content: center; text-align: center; gap: 12px;
  animation: intro-out 0.9s var(--ease) 3.4s forwards;
}
.intro-pre {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sage-light); opacity: 0; animation: intro-fade 0.9s var(--ease) 0.35s forwards;
}
.intro-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 7vw, 4.8rem);
  color: var(--shell); letter-spacing: 0.01em;
  opacity: 0; transform: scale(0.96); animation: intro-rise 1.1s var(--ease) 0.85s forwards;
}
.intro-title em { font-style: italic; font-weight: 400; color: var(--clay-soft); font-size: 0.8em; }
.intro-sub {
  font-family: var(--font-display); font-style: italic; color: var(--dawn); font-size: 1.05rem;
  opacity: 0; animation: intro-fade 0.9s var(--ease) 1.6s forwards;
}
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro.skip { animation: intro-out 0.35s ease forwards; }

/* ============================================================
   CINEMA EXTRAS — moon, clouds, washing, lighthouse, glitter
   ============================================================ */
.moon {
  position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -16px 9px 0 0 #ece5d2, 0 0 34px rgba(236,229,210,0.35);
  pointer-events: none;
}

.clouds { opacity: 0; }
.clouds ellipse { fill: rgba(245,239,226,0.45); }
.cloud { filter: blur(1px); }
.cl-a { animation: cloud-drift 70s ease-in-out infinite alternate; }
.cl-b { animation: cloud-drift 95s ease-in-out infinite alternate-reverse; }
.cl-c { animation: cloud-drift 80s ease-in-out infinite alternate; }
@keyframes cloud-drift { to { transform: translateX(90px); } }

g[data-story="hillsfar"] { filter: blur(1.6px); }

.washing .post { stroke: #4a4038; stroke-width: 3.5; stroke-linecap: round; }
.washing .wline { fill: none; stroke: rgba(245,239,226,0.75); stroke-width: 1.4; }
.washing .sheet {
  fill: #f3eddd; opacity: 0.95;
  transform-box: fill-box; transform-origin: top center;
  animation: sheet-flap 2.6s ease-in-out infinite;
}
.washing .s2 { animation-delay: 1.1s; animation-duration: 3.1s; }
@keyframes sheet-flap {
  0%, 100% { transform: skewX(0deg) scaleY(1); }
  50% { transform: skewX(7deg) scaleY(0.96); }
}

.lighthouse .rock { fill: #0d2226; }
.lighthouse .tower { fill: #ece5d3; }
.lighthouse .cap { fill: var(--clay); }
.lighthouse .lamp { fill: #f2c97c; filter: drop-shadow(0 0 6px rgba(242,201,124,0.9)); }
.beam {
  fill: rgba(242,201,124,0.18); opacity: 0;
  transform-box: fill-box; transform-origin: 100% 50%;
  animation: beam-swing 7.5s ease-in-out infinite;
}
@keyframes beam-swing {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-26deg); }
}

.glitter {
  position: absolute; bottom: 0; left: -70px; width: 140px; height: 26%;
  opacity: 0; pointer-events: none; filter: blur(0.6px);
  background: repeating-linear-gradient(180deg,
    rgba(245,227,187,0.5) 0 5px, rgba(245,227,187,0) 5px 13px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 35% 65%, transparent);
  mask: linear-gradient(90deg, transparent, #000 35% 65%, transparent);
  animation: glitter-shimmer 1.6s linear infinite;
}
@keyframes glitter-shimmer { to { background-position: 0 13px; } }

.dim { position: absolute; inset: 0; background: #050d13; opacity: 0; pointer-events: none; z-index: 5; }

/* panel content staggers in when its moment arrives */
.panel:not(#panel-hero) > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.panel:not(#panel-hero).on > * { opacity: 1; transform: none; }
.panel:not(#panel-hero).on > *:nth-child(1) { transition-delay: .05s; }
.panel:not(#panel-hero).on > *:nth-child(2) { transition-delay: .16s; }
.panel:not(#panel-hero).on > *:nth-child(3) { transition-delay: .27s; }
.panel:not(#panel-hero).on > *:nth-child(4) { transition-delay: .38s; }
.panel:not(#panel-hero).on > *:nth-child(5) { transition-delay: .49s; }

/* ============================================================
   STATIC FALLBACK — no-JS or reduced motion:
   the film flattens into a readable dark editorial page.
   ============================================================ */
html.no-js .story, html.story-static .story { height: auto; }
html.no-js .stage, html.story-static .stage { display: none; }
html.no-js .intro, html.story-static .intro { display: none; }
html.no-js .panel > *, html.story-static .panel > * { opacity: 1 !important; transform: none !important; }
html.no-js .panels, html.story-static .panels { position: static; }
html.no-js .panel, html.story-static .panel {
  position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  max-width: 720px; margin: 0 auto; padding: 64px 24px; text-align: left;
}
html.no-js .panel.pos-c, html.story-static .panel.pos-c { text-align: left; }
html.no-js .hero-line-w, html.story-static .hero-line-w { opacity: 1; transform: none; animation: none; }
html.no-js .panels, html.story-static .panels { padding-top: 90px; }
html.story-static .grain, html.no-js .grain { animation: none; }
html.story-static .reveal, html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .quote-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .rail em { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 4px; max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease); padding-inline: 24px;
    background: rgba(7, 18, 26, 0.94); backdrop-filter: blur(14px);
  }
  .mobile-nav.open { max-height: 380px; padding-block: 16px; }
  .mobile-nav a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid rgba(245,239,226,0.12); color: var(--shell); }
  .mobile-nav .btn { margin-top: 10px; }

  .story { height: 1200vh; }
  .scene { width: 220vw; left: 50%; transform: translateX(-50%); }
  .rail { right: 12px; gap: 12px; }
  .scene-clock { left: 16px; bottom: 14px; }
  .clock-time { font-size: 1.4rem; }

  /* panels become bottom sheets */
  .panel, .pos-c, .pos-l, .pos-r {
    left: 16px !important; right: 16px !important; top: auto !important; bottom: 64px;
    max-width: none; text-align: left; transform: translateY(34px);
    background: rgba(7,18,26,0.78); border: 1px solid rgba(169,194,181,0.25);
    border-radius: 16px; padding: 20px; backdrop-filter: blur(10px);
    max-height: 52svh; overflow: auto;
  }
  .pos-c { transform: translateY(34px); }
  #panel-hero { background: none; border: 0; backdrop-filter: none; bottom: 12svh; text-align: center; }
  .hero-cta { align-items: center; }
  .mini-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .title-card { font-size: 1.5rem; padding-inline: 24px; }
  .cursor { display: none !important; }
}
