/* Ember & Leaf scroll scenes on WordPress, scoped to .el-scenes. One device: glass coming into focus, driven by scroll. */
.el-scenes {
  --rainforest: #1F4D33; --basalt: #1E2326; --ember: #E3894C; --salt: #F4F4EF; --leaf: #2E6B45; --fresh: #8CC97A; --mist: #E2EBDF; --slate: #5B6268;
  --s-display: 'Gloock', Georgia, serif; --s-body: 'Hanken Grotesk', system-ui, sans-serif; --s-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  box-sizing: border-box; width: 100%; font: 400 17px/1.6 var(--s-body); color: var(--basalt);
}
.el-scenes *, .el-scenes *::before, .el-scenes *::after { box-sizing: border-box; }
.el-scenes img, .el-scenes video, .el-scenes canvas { display: block; max-width: 100%; }
.el-scenes .label { font: 500 12px/1.2 var(--s-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.el-scenes .display { font: 400 clamp(54px, 10vw, 132px)/0.92 var(--s-display); letter-spacing: -0.02em; margin: 0; color: var(--basalt); }
.el-scenes .h1 { font: 400 clamp(40px, 6vw, 72px)/0.98 var(--s-display); letter-spacing: -0.02em; margin: 10px 0 16px; color: inherit; }
.el-scenes .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 0 0 16px; max-width: 34em; }
.el-scenes .wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.el-scenes .pill { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 20px; border-radius: 999px; background: var(--ember); color: var(--basalt); font: 500 13px/1 var(--s-mono); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.el-scenes a:focus-visible, .el-scenes button:focus-visible { outline: 3px solid var(--fresh); outline-offset: 3px; }
.el-scenes .window { position: relative; background: var(--rainforest); border-radius: 28px; padding: 10px; overflow: hidden; }

/* Hero: a tall section; .pin sticks for its length while the sequence scrubs. */
.el-scenes.scene-hero { height: 320vh; position: relative; background: var(--salt); }
.el-scenes .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--gutter); display: grid; }
.el-scenes .window-hero { padding: 0; border: 10px solid var(--rainforest); height: 100%; }
.el-scenes .seq-poster, .el-scenes .seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 33% 45%; border-radius: 18px; }
.el-scenes .seq-canvas { opacity: 0; transition: opacity 0.3s; }
.el-scenes.is-ready .seq-canvas { opacity: 1; }
.el-scenes .hero-copy { position: absolute; left: clamp(20px, 5vw, 72px); top: clamp(28px, 9vh, 110px); right: 20px; max-width: 760px;
  opacity: calc(1 - var(--p, 0) * 3); transform: translateY(calc(var(--p, 0) * -60px)); }
.el-scenes .hero-copy .lead { color: var(--basalt); margin-top: clamp(16px, 2.4vw, 28px); }
.el-scenes .hero-end { position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(20px, 5vh, 56px); margin: 0; max-width: 28em;
  padding: 10px 14px; border-radius: 12px; background: rgba(244, 244, 239, 0.92); color: var(--basalt); opacity: calc((var(--p, 0) - 0.72) * 5); }
.el-scenes .hero-end .label { color: var(--rainforest); margin-right: 8px; }
.el-scenes .scroll-hint { position: absolute; right: calc(var(--gutter) + 24px); bottom: calc(var(--gutter) + 20px); margin: 0; color: var(--rainforest); opacity: calc(1 - var(--p, 0) * 8); }

/* Outside is Ember: Basalt ground, a muted loop that plays only on screen. */
.el-scenes.scene-ember { background: var(--basalt); color: var(--salt); padding: clamp(72px, 12vh, 140px) 0; }
.el-scenes.scene-ember .lead { color: #D9DCD8; }
.el-scenes .ember-label { color: var(--ember); }
.el-scenes .two { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.el-scenes .window-ember { background: #2B3236; margin: 0; padding: 10px; }
.el-scenes .window-ember video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: #2B3236; }
.el-scenes .window-ember figcaption { position: absolute; left: 24px; bottom: 22px; color: var(--salt); opacity: 0.8; }
.el-scenes .video-toggle { position: absolute; right: 22px; bottom: 18px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(30, 35, 38, 0.72); color: var(--salt); cursor: pointer; }

/* Price window: the lines come into focus one by one as they scroll in. */
.el-scenes.scene-price { padding: clamp(72px, 12vh, 140px) 0; background: var(--salt); }
.el-scenes.scene-price.ground-mist { background: var(--mist); }
.el-scenes .two-card { grid-template-columns: 1fr 1fr; }
.el-scenes .window-price { max-width: 560px; width: 100%; justify-self: end; }
.el-scenes .window-inner { background: var(--salt); border-radius: 18px; padding: clamp(18px, 3vw, 28px); color: var(--basalt); }
.el-scenes .window-inner > .label { color: var(--slate); }
.el-scenes .lines { list-style: none; margin: 14px 0; padding: 0; }
.el-scenes .lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; margin: 0; border-bottom: 1px solid #E3E7E0; font-size: 18px; }
.el-scenes .lines li span:last-child, .el-scenes .total strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-scenes .total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.el-scenes .total strong { font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.el-scenes .fine { color: var(--slate); font-size: 15px; margin: 10px 0 0; }
.el-scenes .pill-leaf { background: var(--leaf); color: var(--salt); }
.el-scenes .reveal { filter: blur(8px); opacity: 0.25; transition: filter 0.9s ease-out, opacity 0.9s ease-out; }
.el-scenes .reveal.is-in { filter: none; opacity: 1; }
@supports (animation-timeline: view()) {
  .el-scenes .reveal, .el-scenes .reveal.is-in { transition: none; animation: el-focus-in linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
}
@keyframes el-focus-in { from { filter: blur(8px); opacity: 0.25; } to { filter: none; opacity: 1; } }

/* Steps: they scroll past a pinned window whose pane follows the active step. */
.el-scenes.scene-steps { padding: clamp(72px, 12vh, 140px) 0 clamp(48px, 8vh, 96px); background: var(--mist); }
.el-scenes .steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: 24px; }
.el-scenes .steps { list-style: none; margin: 0; padding: 0; }
.el-scenes .step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; margin: 0; opacity: 0.35; transition: opacity 0.4s; }
.el-scenes .step.is-active { opacity: 1; }
.el-scenes .step .num { font: 400 clamp(54px, 7vw, 88px)/1 var(--s-display); color: var(--rainforest); }
.el-scenes .step h3 { font: 600 26px/1.2 var(--s-body); margin: 10px 0 6px; color: var(--basalt); }
.el-scenes .step p { margin: 0; max-width: 24em; font-size: 18px; }
.el-scenes .steps-pin { position: sticky; top: 12vh; height: 76vh; align-self: start; display: grid; align-items: center; }
.el-scenes .window-steps .window-inner { position: relative; min-height: 360px; }
.el-scenes .pane { position: absolute; inset: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; filter: blur(8px); transition: opacity 0.6s, filter 0.9s ease-out; }
.el-scenes .pane.is-active { opacity: 1; filter: none; }
.el-scenes .pane .label { color: var(--slate); }
.el-scenes .pane-big { font: 400 clamp(48px, 6vw, 80px)/0.95 var(--s-display); letter-spacing: -0.02em; margin: 0; color: var(--basalt); }
.el-scenes .pane-note { margin: 0; color: var(--slate); }
.el-scenes .pane-quote { margin: 0; padding: 14px; border: 1px solid #D6DDD3; border-radius: 12px; background: #fff; }
.el-scenes .pane-button { align-self: flex-start; padding: 12px 18px; border-radius: 12px; background: var(--leaf); color: var(--salt); font: 500 12px/1 var(--s-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.el-scenes .slot { padding: 12px 14px; border: 1px solid #D6DDD3; border-radius: 12px; background: #fff; }
.el-scenes .slot.is-picked { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); font-weight: 600; }
.el-scenes .steps-cta { margin-top: 8px; }

@media (max-width: 899px) {
  .el-scenes .two { grid-template-columns: 1fr; }
  .el-scenes.scene-hero { height: 260vh; }
  .el-scenes .two-card, .el-scenes .steps-grid { grid-template-columns: 1fr; }
  .el-scenes .window-price { justify-self: stretch; }
  .el-scenes .steps-pin { order: -1; top: 0; height: auto; z-index: 1; background: var(--mist); padding: 10px 0 14px; }
  .el-scenes .window-steps .window-inner { min-height: 264px; }
  .el-scenes .step { min-height: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
  .el-scenes.scene-hero { height: auto; }
  .el-scenes .pin { position: relative; height: 88vh; }
  .el-scenes .hero-copy { opacity: 1; transform: none; }
  .el-scenes .hero-end, .el-scenes .scroll-hint { display: none; }
  .el-scenes .reveal, .el-scenes .reveal.is-in, .el-scenes .pane, .el-scenes .pane.is-active { animation: none; filter: none; opacity: 1; transition: none; }
  .el-scenes .steps-pin { display: none; }
  .el-scenes .step { min-height: 0; padding: 18px 0; opacity: 1; }
}

/* Towns strip above the home quote: the motion kit's marquee drifts it; without the kit it is a wrapped list. */
.el-scenes.scene-strip { padding: 40px 0 72px; background: var(--salt); border-top: 1px solid #D6DDD3; text-align: center; }
.el-scenes .strip-label { color: var(--slate); margin: 0 0 18px; }
.el-scenes .strip-towns { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 2.5rem; }
.el-scenes .strip-towns li { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--s-display); color: var(--leaf); white-space: nowrap; }
.mk-on .el-scenes .mk-belt .strip-towns li::after { content: "\00B7"; content: "\00B7" / ""; margin-left: 2.5rem; color: var(--ember); }
.el-scenes.scene-strip .mk-pause { right: var(--gutter); bottom: -44px; color: var(--slate); }
.mk-on .el-scenes .mk-belt > .strip-towns { flex-wrap: nowrap; padding: 0 2.5rem 0 0; }
