/* =============================================================
   ANDRÉS Snow & Ice — v2: storm night, ice blue, plow orange
   Layout: the ruled brutalist grid stays, but the hero, the storm
   section and the footer become a 4 AM winter sky with falling snow;
   icicles hang from the sticky bar; ice panels shimmer.
   ============================================================= */

/* 1. Tokens (deliberately single theme) */
:root {
  --frost: #f1f8fe;      /* page ground: frosted white */
  --paper: #ffffff;
  --ink: #0b1a33;        /* navy ink for every line */
  --steel: #4b6380;      /* secondary text */
  --ice: #d3ecfb;        /* pale celeste fill */
  --celeste: #7cc6f0;    /* celeste accent */
  --glacier: #1d5fa8;    /* glacier blue */
  --night: #081a3a;      /* 4 AM sky */
  --night-2: #0f3168;
  --on-night: #eaf6ff;
  --on-night-soft: rgba(234, 246, 255, 0.78);
  --beacon: #ff6a13;     /* plow beacon orange: the action color */
  --beacon-ink: #1a0d04;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --rule: 1px solid var(--ink);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* 2. Reset & base */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--frost);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-stretch: 70%; font-weight: 850; text-transform: uppercase; line-height: .9; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--beacon); outline-offset: 2px; }
::selection { background: var(--celeste); color: var(--ink); }
.num, .mono-num { font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: var(--frost); }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }
.tag { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--glacier); }

/* Snow and ice pieces */
.night {
  position: relative; isolation: isolate; color: var(--on-night);
  background:
    radial-gradient(120% 70% at 80% 0%, rgba(124, 198, 240, .28), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(29, 95, 168, .55), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, var(--glacier) 100%);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.flake-big {
  position: absolute; z-index: -1; pointer-events: none; fill: none; stroke: var(--celeste); stroke-width: 2.4; stroke-linecap: round;
  opacity: .35; animation: twirl 48s linear infinite;
}
.flake-big circle { fill: var(--celeste); stroke: none; }
.flake-a { width: clamp(120px, 26vw, 300px); right: -40px; top: 18px; }
.flake-b { width: clamp(70px, 12vw, 140px); left: 46%; top: 54%; opacity: .2; animation-duration: 70s; animation-direction: reverse; }
@keyframes twirl { to { transform: rotate(360deg); } }

/* 3. Header bar + ticker + icicles */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--frost); border-bottom: var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--frost); }
.bar-inner { display: flex; align-items: stretch; justify-content: space-between; padding-left: var(--gutter-l); min-height: 56px; }
.logo { display: flex; align-items: center; gap: .6rem; padding-right: 1rem; }
.logo-name { font-family: var(--display); font-stretch: 65%; font-weight: 900; font-size: 1.7rem; letter-spacing: .01em; line-height: 1; color: var(--ink); }
.logo-sub { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; color: var(--glacier); }
.bar-links { display: none; }
.bar-links a { display: flex; align-items: center; padding: 0 1.1rem; border-left: var(--rule); font-family: var(--mono); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; transition: background-color .15s, color .15s; }
.bar-links a:hover { background: var(--glacier); color: var(--on-night); }
.bar-actions { display: flex; }
.sq-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-width: 56px; padding: 0 1rem; border-left: var(--rule); font-family: var(--mono); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; transition: background-color .15s, color .15s; }
.sq-btn:hover { background: var(--glacier); color: var(--on-night); }
.sq-beacon { background: var(--beacon); color: var(--beacon-ink); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
.sq-beacon:hover { background: var(--ink); color: var(--beacon); }
.bar-num { display: none; }

.ticker { overflow: hidden; border-top: var(--rule); background: var(--glacier); color: var(--on-night); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { white-space: nowrap; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; padding-block: .45rem; padding-right: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.icicles { position: absolute; left: 0; right: 0; top: 100%; height: 30px; pointer-events: none; }
.icicles svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(11, 26, 51, .15)); }
.drip {
  position: absolute; left: var(--x); top: 14px; width: 5px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--celeste); opacity: 0; animation: drip 4.2s ease-in infinite; animation-delay: var(--d);
}
@keyframes drip {
  0%, 55% { transform: translateY(0) scale(.4); opacity: 0; }
  62% { opacity: .9; transform: translateY(2px) scale(1); }
  100% { transform: translateY(70px) scale(1); opacity: 0; }
}

/* 4. Hero */
.hero { border-bottom: var(--rule); overflow: clip; }
.hero-type, .hero-side, .specs { position: relative; z-index: 1; }
.hero-type {
  display: grid; padding: 2.4rem var(--gutter-r) 1.6rem var(--gutter-l);
  font-size: clamp(3.8rem, 19vw, 13.5rem); line-height: .82; letter-spacing: -0.015em; font-stretch: 62%; font-weight: 900;
  color: var(--on-night); text-shadow: 0 0 28px rgba(124, 198, 240, .45);
}
.hero-type span { display: block; animation: drop .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero-type span:nth-child(2) { animation-delay: .08s; }
.hero-type span:nth-child(3) { animation-delay: .16s; }
@keyframes drop { from { transform: translateY(-14px); filter: blur(4px); } to { transform: none; filter: none; } }
.hero-type .beacon-text { color: var(--beacon); text-shadow: 0 0 30px rgba(255, 106, 19, .45); }
.hero-side { display: grid; gap: 1.2rem; align-content: end; padding: 1.2rem var(--gutter-r) 3.2rem var(--gutter-l); border-top: 1px solid rgba(234, 246, 255, .2); }
.hero-side p { font-size: 1.08rem; max-width: 42ch; color: var(--on-night-soft); }
.hero-ctas { display: grid; gap: .6rem; }
.block-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; padding: .7rem 1.1rem;
  border: var(--rule); background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em;
  transition: background-color .15s, color .15s;
}
.block-btn:hover { background: var(--glacier); color: var(--on-night); }
.block-beacon { background: var(--beacon); color: var(--beacon-ink); }
.block-beacon:hover { background: var(--ink); color: var(--beacon); }
.block-btn::after, .plan-season::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: sheen 5.5s ease-in-out infinite;
}
.block-btn:not(.block-beacon)::after { display: none; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.night .block-btn:not(.block-beacon) { background: rgba(234, 246, 255, .08); color: var(--on-night); border-color: rgba(234, 246, 255, .45); }
.night .block-btn:not(.block-beacon):hover { background: var(--on-night); color: var(--ink); }

/* Specs sit on the snowbank */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); border-top: var(--rule); }
.specs::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V22C80 6 150 4 230 16S380 30 470 14 640 2 730 16 900 30 990 12 1170 4 1260 18 1390 26 1440 14V34Z' fill='%23f1f8fe'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.specs > div { background: var(--frost); padding: 1rem var(--gutter-r) 1.1rem var(--gutter-l); display: grid; gap: .3rem; align-content: start; }
.specs > div:nth-child(even) { padding-left: 1rem; }
.specs dt { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1; color: var(--glacier); }
.specs dd { font-size: .88rem; color: var(--steel); }

/* 5. Blocks */
.block { border-bottom: var(--rule); }
.block-head { display: grid; gap: .6rem; padding: 2.6rem var(--gutter-r) 1.8rem var(--gutter-l); }
.block-head h2 { font-size: clamp(2.6rem, 11vw, 5.2rem); }
.block-sub { color: var(--steel); max-width: 52ch; }
.night .tag { color: var(--celeste); }
.night .block-sub { color: var(--on-night-soft); }

/* Calculator */
#price { background: linear-gradient(180deg, var(--frost) 0%, #e4f3fd 100%); }
.calc { display: grid; }
.set { border: 0; padding: 0; min-width: 0; border-top: var(--rule); }
.set-legend { display: block; width: 100%; float: left; padding: .8rem var(--gutter-r) .8rem var(--gutter-l); border-bottom: var(--rule); }
.set-legend + * { clear: both; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); }
.size { position: relative; display: block; background: var(--frost); }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.size-card { display: grid; gap: .2rem; padding: 1rem; height: 100%; transition: background-color .15s, color .15s; }
.size-card svg { width: 64px; height: 48px; margin-bottom: .4rem; }
.size-card svg rect { fill: var(--paper); stroke: var(--glacier); stroke-width: 1.5; }
.size-card svg rect.car { fill: var(--ink); stroke: none; }
.size-card b { font-family: var(--display); font-stretch: 70%; font-weight: 850; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.size-card small { font-family: var(--mono); font-size: .75rem; color: var(--steel); }
.size-card em { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: .95rem; margin-top: .3rem; color: var(--glacier); }
.size:hover .size-card { background: var(--ice); }
.size input:checked + .size-card { background: var(--glacier); color: var(--on-night); }
.size input:checked + .size-card small, .size input:checked + .size-card em { color: var(--ice); }
.size input:checked + .size-card svg rect { fill: var(--ice); stroke: var(--on-night); }
.size input:checked + .size-card svg rect.car { fill: var(--beacon); }
.size input:focus-visible + .size-card { outline: 3px solid var(--beacon); outline-offset: -3px; }

.addons { display: grid; gap: 1px; background: var(--ink); }
.addon { position: relative; display: block; background: var(--frost); }
.addon input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.addon span { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter-r) 1rem var(--gutter-l); min-height: 56px; }
.addon span::before { content: ""; width: 22px; height: 22px; border: 2px solid var(--ink); flex: none; order: -1; background: var(--paper) center/80% no-repeat; }
.addon b { flex: 1; font-weight: 600; }
.addon em { font-style: normal; font-family: var(--mono); font-weight: 600; color: var(--glacier); }
.addon:hover span { background: var(--ice); }
.addon input:checked + span { background: var(--ice); }
.addon input:checked + span::before {
  background-color: var(--beacon);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%231a0d04' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E");
}
.addon input:focus-visible + span { outline: 3px solid var(--beacon); outline-offset: -3px; }

.plans { display: grid; gap: 1px; background: var(--ink); border-top: var(--rule); }
.plan { position: relative; overflow: hidden; background: var(--paper); padding: 1.4rem var(--gutter-r) 1.5rem var(--gutter-l); display: grid; gap: .6rem; align-content: start; }
.plan-season {
  background:
    radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(140deg, #f0f9ff 0%, #c9e8fa 48%, #8fd0f3 100%);
}
.plan-season > * { position: relative; z-index: 1; }
.plan-season::after { width: 30%; animation-duration: 6.5s; z-index: 0; }
.flake-card { position: absolute !important; right: -26px; bottom: -26px; width: 150px; height: 150px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .75; animation: twirl 40s linear infinite; z-index: 0 !important; }
.flake-card circle { fill: #fff; stroke: none; }
.twinkle {
  position: absolute !important; left: var(--x); top: var(--y); width: 14px; height: 14px; z-index: 0 !important; pointer-events: none;
  background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0deg); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.plan .tag { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--ink); }
.badge { background: var(--beacon); color: var(--beacon-ink); padding: .15rem .45rem; font-size: .7rem; }
.plan-price { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(3.6rem, 16vw, 5.6rem); line-height: .9; color: var(--ink); }
.plan-season .plan-price { color: var(--glacier); text-shadow: 0 2px 0 #fff; }
.plan-price.is-flip { animation: flip .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes flip { from { transform: translateY(-8px); color: var(--celeste); filter: blur(2px); } to { transform: none; filter: none; } }
.plan-note { color: var(--steel); max-width: 40ch; }
.plan-season .plan-note { color: var(--ink); }
.compare { font-family: var(--mono); font-size: .85rem; font-weight: 500; padding: .6rem .7rem; background: rgba(255, 255, 255, .85); border: var(--rule); }
.plan .block-btn { margin-top: .4rem; }
.fine { font-family: var(--mono); font-size: .75rem; color: var(--steel); padding: .9rem var(--gutter-r) .9rem var(--gutter-l); border-top: var(--rule); background: var(--frost); }

/* Storm night */
#storm { border-bottom: var(--rule); overflow: clip; }
#storm .block-head, #storm .timeline { position: relative; z-index: 1; }
.timeline { display: grid; gap: 1px; background: rgba(234, 246, 255, .25); border-top: 1px solid rgba(234, 246, 255, .25); }
.timeline li {
  display: grid; gap: .4rem; padding: 1.3rem var(--gutter-r) 1.5rem var(--gutter-l); align-content: start;
  background: rgba(8, 26, 58, .55);
}
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .timeline li { background: rgba(8, 26, 58, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.step-n { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 3.2rem; line-height: .9; color: var(--beacon); }
.timeline h3 { font-size: 1.7rem; color: var(--on-night); }
.timeline p { color: var(--on-night-soft); max-width: 36ch; }

/* Storm-night player: a "video" drawn live, scrubbable and touchable */
#storm .sp, #storm .block-sub { position: relative; z-index: 1; }
.sp { margin: 0 var(--gutter-r) 2.2rem var(--gutter-l); max-width: 1080px; border: 1px solid rgba(234, 246, 255, .5); background: var(--night); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(124, 198, 240, .08); }
.sp-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: var(--night);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.sp:not([data-state="playing"]):not([data-state="ended"]) .sp-stage { cursor: ew-resize; }
.sp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-clock { position: absolute; left: 2.6cqw; top: 2.4cqw; display: grid; gap: .3em; pointer-events: none; }
.sp-time {
  font-family: var(--mono); font-weight: 600; font-size: clamp(16px, 4.4cqw, 44px); line-height: 1; color: var(--on-night);
  text-shadow: 0 0 18px rgba(124, 198, 240, .7); letter-spacing: .02em;
}
.sp-chap {
  justify-self: start; display: flex; align-items: center; gap: .5em; padding: .3em .6em; background: rgba(8, 26, 58, .7); border: 1px solid rgba(234, 246, 255, .4);
  font-family: var(--mono); font-weight: 600; font-size: clamp(10px, 1.6cqw, 15px); text-transform: uppercase; letter-spacing: .06em; color: var(--on-night);
}
.sp-chap b { color: var(--beacon); }
.sp-depth {
  position: absolute; right: 2.6cqw; top: 2.4cqw; display: grid; gap: .45em; min-width: 13em; padding: .55em .7em .65em; pointer-events: none;
  background: rgba(8, 26, 58, .72); border: 1px solid rgba(234, 246, 255, .4); color: var(--on-night);
  font-family: var(--mono); font-size: clamp(10px, 1.5cqw, 14px); text-transform: uppercase; letter-spacing: .06em; transition: border-color .2s, background-color .2s;
}
.sp-depth p { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.sp-depth b { font-size: 1.9em; line-height: 1; color: var(--celeste); text-transform: none; }
.sp-gauge { position: relative; display: block; height: 8px; background: rgba(234, 246, 255, .18); }
.sp-gauge > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--celeste), #fff); }
.sp-gauge em { position: absolute; left: 25%; top: -3px; bottom: -3px; border-left: 2px solid var(--beacon); padding-left: .4em; padding-top: 1.1em; font-style: normal; font-size: .72em; color: var(--beacon); white-space: nowrap; }
.sp-depth { padding-bottom: 1.6em; }
@container (max-width: 560px) { .sp-depth { padding-bottom: .5em; } }
.sp-depth.is-alert { border-color: var(--beacon); background: rgba(255, 106, 19, .28); animation: alert .5s steps(2) 3; }
@keyframes alert { 50% { background: rgba(255, 106, 19, .55); } }
.sp-text {
  position: absolute; left: 50%; top: 2.4cqw; display: flex; align-items: center; gap: .6em; max-width: min(62cqw, 420px); padding: .55em .8em .55em .55em;
  background: rgba(241, 248, 254, .96); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); border-left: 4px solid var(--beacon);
  font-size: clamp(10px, 1.6cqw, 15px); line-height: 1.3; pointer-events: none;
  opacity: 0; transform: translate(-50%, -140%); transition: opacity .3s, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.sp-text.is-on { opacity: 1; transform: translate(-50%, 0); }
.sp-text b { display: block; font-family: var(--mono); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--glacier); }
.sp-avatar { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; background: var(--beacon); color: var(--beacon-ink); font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 1.15em; }
.sp-stamp {
  position: absolute; left: 50%; top: 46%; display: grid; justify-items: center; padding: .25em .6em .3em; pointer-events: none;
  border: 4px solid var(--beacon); color: var(--beacon); background: rgba(8, 26, 58, .55);
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(30px, 9cqw, 92px); line-height: .85; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.7); transition: opacity .2s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
  text-shadow: 0 0 24px rgba(255, 106, 19, .55);
}
.sp-stamp b { font-family: var(--mono); font-weight: 600; font-size: .3em; letter-spacing: .08em; color: var(--on-night); text-shadow: none; }
.sp-stamp.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
.sp-hint {
  position: absolute; left: 50%; bottom: 2.6cqw; transform: translateX(-50%); padding: .4em .8em; pointer-events: none; white-space: nowrap;
  background: var(--beacon); color: var(--beacon-ink); font-family: var(--mono); font-weight: 600; font-size: clamp(10px, 1.6cqw, 14px); text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transition: opacity .3s;
}
.sp[data-state="paused"] .sp-hint { opacity: 1; }
.sp-big { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .7rem; color: var(--on-night); z-index: 2; }
.sp-big-icon {
  position: relative; display: grid; place-items: center; width: clamp(64px, 12cqw, 112px); aspect-ratio: 1; background: var(--beacon); color: var(--beacon-ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 40px rgba(255, 106, 19, .6); transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.sp-big-icon::before { content: ""; position: absolute; inset: -10px; border: 2px solid var(--beacon); animation: beam 1.6s ease-out infinite; }
@keyframes beam { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.sp-big-icon svg { width: 44%; height: 44%; fill: currentColor; }
.sp-big:hover .sp-big-icon { transform: scale(1.06); }
.sp-big-label { padding: .4rem .8rem; background: rgba(8, 26, 58, .8); border: 1px solid rgba(234, 246, 255, .5); font-family: var(--mono); font-weight: 600; font-size: clamp(.72rem, 1.8cqw, .95rem); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sp:not([data-state="poster"]) .sp-big { display: none; }
.sp-end {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 1rem; text-align: center;
  background: linear-gradient(180deg, rgba(8, 26, 58, .25), rgba(8, 26, 58, .82)); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
}
.sp-end-title { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(2.2rem, 9cqw, 6rem); line-height: .85; text-transform: uppercase; color: var(--on-night); text-shadow: 0 0 30px rgba(124, 198, 240, .6); }
.sp-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.sp-end-actions .block-btn { min-width: 12rem; }
.sp[data-state="ended"] .sp-end { opacity: 1; visibility: visible; transition: opacity .5s; }

.sp-bar { display: flex; align-items: stretch; border-top: 1px solid rgba(234, 246, 255, .5); background: rgba(8, 26, 58, .9); }
.sp-btn { display: grid; place-items: center; width: 56px; flex: none; background: var(--beacon); color: var(--beacon-ink); transition: background-color .15s, color .15s; }
.sp-btn:hover { background: var(--on-night); color: var(--ink); }
.sp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.sp-btn .i-pause, .sp[data-state="playing"] .sp-btn .i-play { display: none; }
.sp[data-state="playing"] .sp-btn .i-pause { display: block; }
.sp-track { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; padding-inline: 1rem; }
.sp-track input { -webkit-appearance: none; appearance: none; width: 100%; height: 52px; margin: 0; background: transparent; cursor: pointer; }
.sp-track input:focus-visible { outline: none; }
.sp-track input::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--beacon) var(--p, 0%), rgba(234, 246, 255, .22) var(--p, 0%)); }
.sp-track input::-moz-range-track { height: 6px; background: linear-gradient(90deg, var(--beacon) var(--p, 0%), rgba(234, 246, 255, .22) var(--p, 0%)); }
.sp-track input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 26px; margin-top: -10px; background: var(--on-night); border: 2px solid var(--ink); }
.sp-track input::-moz-range-thumb { width: 12px; height: 24px; border-radius: 0; background: var(--on-night); border: 2px solid var(--ink); }
.sp-track input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--beacon); outline-offset: 2px; }
.sp-tick { position: absolute; left: calc(1rem + (100% - 2rem) * var(--at)); top: 50%; width: 2px; height: 16px; margin-top: -8px; background: rgba(234, 246, 255, .55); pointer-events: none; }
.sp-tc { display: flex; align-items: center; padding: 0 1rem; border-left: 1px solid rgba(234, 246, 255, .3); font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--on-night); white-space: nowrap; }

.timeline li { position: relative; cursor: pointer; transition: background-color .2s; }
.timeline li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--cp, 0%); background: var(--beacon); }
.timeline li.is-on { background: rgba(29, 95, 168, .5); box-shadow: inset 4px 0 0 var(--beacon); }
.timeline li:hover { background: rgba(124, 198, 240, .14); }
.tl-go {
  justify-self: start; display: inline-flex; gap: .5em; align-items: center; margin-top: .4rem; padding: .35rem .6rem; border: 1px solid rgba(234, 246, 255, .45);
  font-family: var(--mono); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-night);
}
.tl-go::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--beacon); }
.timeline li.is-on .tl-go { background: var(--beacon); color: var(--beacon-ink); border-color: var(--beacon); }
.timeline li.is-on .tl-go::before { border-left-color: var(--beacon-ink); }

@container (max-width: 560px) {
  .sp-chap { display: none; }
  .sp-depth { min-width: 0; gap: .3em; padding: .4em .55em .5em; }
  .sp-depth p > span, .sp-gauge em { display: none; }
  .sp-depth b { font-size: 1.5em; }
  .sp-gauge { width: 5.5em; height: 6px; }
  .sp-text { top: auto; bottom: 2.6cqw; max-width: 86cqw; transform: translate(-50%, 140%); }
  .sp-text.is-on { transform: translate(-50%, 0); }
  .sp-avatar { display: none; }
  .sp-hint { display: none; }
}

/* Snowballs: click the night sky to throw one */
.snowball { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; z-index: 80; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0 35%, #d3ecfb 70%, #a9dcf7 100%); box-shadow: 0 4px 10px rgba(8, 26, 58, .35); }
.splat { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; z-index: 2; animation: splat 1.8s cubic-bezier(.16, 1, .3, 1) forwards; }
.splat svg { width: 100%; height: 100%; fill: #f4fbff; filter: drop-shadow(0 3px 0 rgba(124, 198, 240, .7)); }
@keyframes splat { 0% { transform: scale(.2); opacity: 1; } 12% { transform: scale(1.05); } 20% { transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1) translateY(14px); } }
.ice-bit { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #f4fbff; pointer-events: none; z-index: 2; animation: bit .6s ease-out forwards; }
@keyframes bit { to { transform: translate(var(--dx), var(--dy)) rotate(120deg) scale(.4); opacity: 0; } }
.size input:checked + .size-card svg rect.car { animation: park .55s cubic-bezier(.16, 1, .3, 1) both; }
.size input:checked + .size-card svg rect.car + rect.car { animation-delay: .08s; }
.size input:checked + .size-card svg rect.car + rect.car + rect.car { animation-delay: .16s; }
@keyframes park { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
.specs dt.is-flap { color: var(--beacon); }

/* Coverage */
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); border-top: var(--rule); }
.towns li { background: var(--frost); padding: .9rem 1rem; font-family: var(--mono); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; transition: background-color .15s, color .15s; }
.towns li:nth-child(odd) { padding-left: var(--gutter-l); }
.towns li:hover { background: var(--glacier); color: var(--on-night); }
.commercial {
  display: grid; gap: .5rem; padding: 1.6rem var(--gutter-r) 1.8rem var(--gutter-l); border-top: var(--rule);
  background: linear-gradient(140deg, #eef8ff, var(--ice));
}
.commercial h3 { font-size: 1.8rem; color: var(--glacier); }
.commercial p { max-width: 52ch; }

/* FAQ */
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem var(--gutter-r) 1.1rem var(--gutter-l); font-weight: 600; font-size: 1.05rem; transition: background-color .15s, color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "❄"; font-size: 1.1rem; color: var(--celeste); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary::after { transform: rotate(180deg); color: var(--beacon); }
.faq summary:hover { background: var(--glacier); color: var(--on-night); }
.faq details p { padding: 0 var(--gutter-r) 1.2rem var(--gutter-l); color: var(--steel); max-width: 64ch; }

/* Reserve form */
.reserve { display: grid; gap: 1px; background: var(--ink); border-top: var(--rule); }
.field { display: grid; gap: .3rem; background: var(--paper); padding: .9rem var(--gutter-r) 1rem var(--gutter-l); min-width: 0; }
.field span { font-family: var(--mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--glacier); }
.field input, .field textarea { font: inherit; font-size: 1.05rem; color: var(--ink); width: 100%; min-height: 44px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: .4rem 0; }
.field textarea { resize: vertical; }
.field input[readonly] { font-weight: 600; border-bottom-style: dashed; color: var(--glacier); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--celeste); box-shadow: 0 2px 0 var(--celeste); }
.reserve .block-btn { border: 0; min-height: 60px; font-size: 1rem; }
.form-ok { background: var(--ice); color: var(--ink); padding: 1rem var(--gutter-r) 1rem var(--gutter-l); font-family: var(--mono); font-weight: 600; border-left: 6px solid var(--beacon); }

/* Footer */
.foot { padding: 2rem var(--gutter-r) 1.4rem var(--gutter-l); display: grid; gap: 1.2rem; overflow: clip; }
.foot > :not(canvas) { position: relative; z-index: 1; }
.foot-word { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(4rem, 22vw, 12rem); line-height: .8; letter-spacing: -0.01em; color: var(--on-night); text-shadow: 0 0 34px rgba(124, 198, 240, .5); }
.foot-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-family: var(--mono); font-size: .85rem; font-weight: 500; }
.foot-row a:hover { color: var(--beacon); }
.demo-note { font-family: var(--mono); font-size: .72rem; color: var(--ice); opacity: .75; border-top: 1px solid rgba(234, 246, 255, .2); padding-top: 1rem; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink); gap: 1px; border-top: var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--frost); font-family: var(--mono); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.mobile-bar a:first-child { padding-left: env(safe-area-inset-left, 0px); }
.mobile-bar a:last-child { padding-right: env(safe-area-inset-right, 0px); }
.mobile-bar .mobile-bar-beacon { background: var(--beacon); color: var(--beacon-ink); }

/* 6. Responsive */
@media (min-width: 540px) {
  .sizes { grid-template-columns: repeat(4, 1fr); }
  .hero-ctas { grid-template-columns: 1fr 1fr; }
  .towns { grid-template-columns: repeat(4, 1fr); }
  .towns li:nth-child(odd) { padding-left: 1rem; }
  .towns li:nth-child(4n + 1) { padding-left: var(--gutter-l); }
}
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .reserve { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .reserve .field:nth-of-type(2) { padding-left: 1rem; }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .specs > div:not(:first-child) { padding-left: 1rem; }
  .addons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .bar-links { display: flex; margin-left: auto; }
  .bar-num { display: inline; }
  .hero { display: grid; grid-template-columns: 8fr 4fr; }
  .hero-type { border-right: 1px solid rgba(234, 246, 255, .2); padding-block: 2.8rem 3.4rem; }
  .hero-side { border-top: 0; padding-left: 1.6rem; padding-bottom: 3.4rem; }
  .hero-ctas { grid-template-columns: 1fr; }
  .specs { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .block-split { display: grid; grid-template-columns: 5fr 7fr; }
  .block-split .block-head { border-right: var(--rule); grid-row: span 2; }
  .block-split .towns { border-top: 0; }
  .block-reserve { display: grid; grid-template-columns: 5fr 7fr; }
  .block-reserve .block-head { border-right: var(--rule); }
  .block-reserve .reserve { border-top: 0; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 1140px) {
  .sp { margin-inline: auto; }
}

/* 7. Reduced motion: snow is drawn once and the loops stop */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .flake-big, .flake-card, .twinkle, .drip, .block-btn::after, .plan-season::after, .sp-big-icon::before, .sp-depth.is-alert { animation: none; }
  .drip { display: none; }
}
