/* ==========================================================
   Home page: sky hero, rendered shelf scene, product grid
   ========================================================== */

.gl-zone { position: relative; }
.gl-canvas { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; }
/* hidden until scene.js has sized and placed it, so placing it is not a layout shift */
.gl-canvas { visibility: hidden; }
.gl-on .gl-canvas { visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding: 4px 0 20px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.sky {
  grid-column: 1 / span 9; position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: min(76vh, 700px); color: #fff;
  background: linear-gradient(180deg, #1e3f8a 0%, #3a68c8 30%, #6f98e2 58%, #a9c6f1 84%, #d3e2f8 100%);
}
.clouds { position: absolute; inset: -12% -6% -30%; width: 112%; height: 142%; max-width: none; pointer-events: none; will-change: transform; z-index: 0; }
/* Scrim over the clouds, under the words. The clouds drift, so without this the
   headline and the rotating city name lose contrast whenever one passes behind. */
.sky::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 24, 66, .66) 0%, rgba(10, 24, 66, .52) 42%, rgba(10, 24, 66, 0) 100%);
}
.sky-title, .sky-wm { z-index: 2; }
.sky-title {
  position: absolute; left: clamp(22px, 4.2%, 56px); top: clamp(24px, 6%, 56px); margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.025em;
}
.sky-wm { position: absolute; left: clamp(16px, 3.6%, 48px); bottom: clamp(4px, 2%, 22px); margin: 0; will-change: transform; }
.sky-wm .wm { font-size: clamp(4.4rem, 13.2vw, 12.4rem); letter-spacing: -.05em; }
.fly-anchor { position: absolute; right: 13%; top: 53%; width: clamp(120px, 13vw, 190px); aspect-ratio: 150 / 104; }

.promo {
  grid-column: 10 / span 3; border-radius: var(--r-lg); background: var(--navy); color: #fff;
  padding: 22px; display: flex; flex-direction: column;
}
.pill { align-self: flex-start; display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.pill--amber { background: var(--amber); color: var(--navy); }
.promo-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin: 14px 0 0; }
.promo-anchor { flex: 1; min-height: 200px; margin: 0 auto; width: 62%; }

@media (max-width: 900px) {
  .sky, .promo { grid-column: 1 / -1; }
  .sky { min-height: 540px; }
  .fly-anchor { right: 24%; top: 60%; width: 112px; }
  .promo { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "pill art" "title art" "btn btn"; gap: 8px 12px; }
  .promo .pill { grid-area: pill; }
  .promo-title { grid-area: title; margin: 0; }
  .promo-anchor { grid-area: art; width: 100%; min-height: 150px; }
  .promo .btn { grid-area: btn; margin-top: 8px; }
}

/* ---------- Rendered shelf scene ---------- */
.scene-sec { padding: 0 0 8px; }
.scene { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #dfe8f6; aspect-ratio: 1100 / 620; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-caption { position: absolute; left: 50%; top: 7%; width: min(560px, 88%); transform: translateX(-50%); text-align: center; z-index: 2; }
.scene-caption h2 { font-size: clamp(1.25rem, 2.6vw, 2.2rem); margin-bottom: .3em; }
.scene-caption p { margin: 0; font-size: clamp(.85rem, 1.25vw, 1.05rem); color: var(--muted); }
.scene-fallback { display: none; }
.no-gl .scene-fallback { display: block; position: absolute; left: 50%; bottom: 10%; width: 22%; transform: translateX(-50%); }
@media (max-width: 640px) {
  .scene { aspect-ratio: auto; height: calc((100vw - 2 * var(--gutter)) * 620 / 1100 + 120px); }
  .scene-canvas { top: auto; bottom: 0; height: calc(100% - 120px); }
  .scene-caption { top: 18px; }
}

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.product { display: block; text-decoration: none; text-align: center; padding-bottom: 8px; }
.product-img { position: relative; aspect-ratio: 6 / 5; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.product-img img.alt { opacity: 0; }
.product:hover .product-img img.main, .product:focus-visible .product-img img.main { opacity: 0; transform: scale(1.03); }
.product:hover .product-img img.alt, .product:focus-visible .product-img img.alt { opacity: 1; transform: scale(1.03); }
.product .tag { display: block; min-height: 1.4em; margin-top: 18px; color: var(--blue-ink); font-weight: 700; font-size: .85rem; }
.product h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.product .meta { color: var(--muted); margin: 0; }
.product .price-line { font-weight: 600; margin-top: 4px; }

/* ---------- Two-column tiles ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feature-grid > .big { grid-column: 1 / span 7; min-height: 560px; display: flex; flex-direction: column; }
.feature-grid > .stack { grid-column: 8 / span 5; display: grid; gap: 20px; }
@media (max-width: 900px) { .feature-grid > .big, .feature-grid > .stack { grid-column: 1 / -1; } .feature-grid > .big { min-height: 0; } }
.steps-big { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: s; }
.steps-big li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 6px; padding: 18px 0; border-top: 1px solid rgba(20, 35, 79, .12); font-size: 1.1rem; }
.steps-big li::before { content: counter(s); font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--blue); }
.steps-big strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.big .btn { margin-top: auto; align-self: flex-start; }
.tile.mini { display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 12px; min-height: 270px; }
.mini h3 { font-size: 1.55rem; }
.mini img { width: 100%; height: auto; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; gap: 28px; } }
.quotes figure { margin: 0; text-align: center; }
.quotes blockquote { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.quotes figcaption { color: var(--muted); font-size: .95rem; }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: center; min-height: 320px; }
.news > div { grid-column: 1 / span 6; }
.news > form, .news > .form-msg { grid-column: 8 / span 5; }
.news .form-msg { color: var(--amber); margin-top: -8px; }
@media (max-width: 860px) { .news > div, .news > form, .news > .form-msg { grid-column: 1 / -1; } }

/* ---------- Motion tuning panel (?tune) ---------- */
.tune {
  position: fixed; right: 16px; bottom: 16px; z-index: 100; width: 290px; max-height: 70vh; overflow: auto;
  background: rgba(20, 35, 79, .94); color: #fff; border-radius: 14px; padding: 14px 16px; font: 13px/1.4 var(--body);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.tune h4 { margin: 0 0 10px; font: 700 13px var(--body); letter-spacing: 0; }
.tune label { display: grid; grid-template-columns: 1fr 52px; gap: 6px; align-items: center; margin-bottom: 8px; }
.tune label span { grid-column: 1 / -1; color: #c5cfea; }
.tune input[type=range] { width: 100%; }
.tune output { text-align: right; font-variant-numeric: tabular-nums; }
.tune button { width: 100%; margin-top: 6px; height: 34px; border: 0; border-radius: 8px; background: var(--amber); color: var(--navy); font-weight: 700; cursor: pointer; }
.mini svg { width: 100%; height: auto; }

/* ---------- Hero: city name cycles ---------- */
.line > .rotator, .rotator { display: inline-grid; color: var(--amber); }
.rot-word { grid-area: 1 / 1; transform: translateY(110%); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.rot-word.is-on { transform: none; }
.rot-word.was-on { transform: translateY(-110%); }
@media (prefers-reduced-motion: reduce) { .rot-word { transition: none; } }

/* ---------- Product cards: tag + price on the photo ---------- */
.product { text-align: left; }
.product-img { background: var(--surface); }
.p-tag, .p-price { position: absolute; top: 16px; z-index: 2; font-size: .82rem; font-weight: 600; }
.p-tag { left: 16px; padding: 5px 12px; border: 1.5px solid var(--navy); border-radius: 999px; }
.p-price { right: 18px; top: 21px; }
.p-kicker { margin: 18px 0 2px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }
.p-name { font-size: 1.6rem; margin: 0 0 4px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .25s; }
.product:hover .p-name { text-decoration-color: var(--amber); }

/* ---------- Statement with explainers ---------- */
.statement { padding-block: clamp(40px, 6vw, 80px); }
.stmt { max-width: 22ch; margin: 0 auto; text-align: center; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; }
.term-wrap { position: relative; display: inline-block; }
.term {
  font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: help;
  text-decoration: underline dotted; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--amber);
}
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); width: min(300px, 80vw); z-index: 5;
  padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff; text-align: left;
  font: 500 .95rem/1.45 var(--body); letter-spacing: 0;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.term-wrap:hover .tip, .term-wrap:focus-within .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Route carousel ---------- */
.route-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.route-head h2 { margin: 0; }
.route-arrows { display: flex; gap: 10px; }
.route-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.route-arrows button:hover { background: var(--blue); }
.route-arrows button:disabled { opacity: .3; cursor: default; }
.route-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.route-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), (100vw - var(--max)) / 2) 8px; scroll-padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
}
.route-track::-webkit-scrollbar { display: none; }
.route-card {
  position: relative; flex: 0 0 clamp(260px, 28vw, 360px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; padding: 18px;
}
.route-card.tile--amber { background: var(--amber-soft); }
.route-card.tile--sky { background: var(--sky-soft); }
.route-card.tile--cream { background: var(--cream); }
.route-card img { width: 100%; height: auto; margin: auto 0 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.route-card:hover img { transform: translateY(-6px) rotate(-2deg); }
.route-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 4px 0 0; }
.r-pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: .82rem; font-weight: 600; }
.r-plus { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.r-plus span, .r-plus span::after { display: block; width: 14px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .35s; }
.r-plus span::after { content: ""; transform: rotate(90deg); }
.route-card.open .r-plus span { transform: rotate(135deg); }
.r-more {
  position: absolute; inset: 0; z-index: 2; padding: 70px 22px 22px; background: var(--navy); color: #fff;
  clip-path: circle(0% at calc(100% - 34px) 34px); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
  display: flex; flex-direction: column; justify-content: flex-end; font-size: 1.02rem;
}
.route-card.open .r-more { clip-path: circle(150% at calc(100% - 34px) 34px); }
.r-state { color: var(--amber); font-weight: 600; margin-bottom: 8px; }
.route-foot { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.route-progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.route-progress span { display: block; height: 100%; width: 20%; background: var(--navy); border-radius: 3px; transition: width .2s; }
@media (max-width: 640px) { .route-arrows { display: none; } }
.nw { white-space: nowrap; }
.nw .tip { white-space: normal; }

/* ---------- What's inside this month's box ---------- */
.inside-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.inside-head > div { grid-column: 1 / span 7; }
.inside-head h2 { margin: 14px 0 0; }
.inside-head .lead { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 860px) { .inside-head > div, .inside-head .lead { grid-column: 1 / -1; } }

.bx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media (max-width: 1080px) { .bx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .bx-grid { grid-template-columns: repeat(2, 1fr); } }

.bx-art {
  aspect-ratio: 1; border-radius: var(--r-md); background: var(--surface);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 14px;
}
.bx-art svg { width: 78%; height: 78%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bx-item:nth-child(6n+1) .bx-art { background: var(--g-cream); }
.bx-item:nth-child(6n+2) .bx-art { background: var(--g-sky); }
.bx-item:nth-child(6n+3) .bx-art { background: var(--g-amber); }
.bx-item:nth-child(6n+4) .bx-art { background: var(--g-sky); }
.bx-item:nth-child(6n+5) .bx-art { background: var(--g-cream); }
.bx-item:nth-child(6n)   .bx-art { background: var(--g-amber); }
.bx-item:hover .bx-art svg { transform: translateY(-5px) rotate(-3deg) scale(1.04); }

.bx-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 4px; }
.bx-name { font-size: 1.05rem; line-height: 1.2; margin: 0 0 3px; min-height: 2.4em; text-wrap: balance; }
.bx-maker { font-size: .9rem; color: var(--muted); margin: 0; }
.bx-note { margin: 28px 0 0; }
@media (prefers-reduced-motion: reduce) { .bx-art svg { transition: none; } }

/* ---------- "Open it, and the city comes out" ---------- */
.open-zone { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.open-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.open-head h2 { grid-column: 1 / span 7; margin: 0; }
.open-head .lead { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 860px) { .open-head h2, .open-head .lead { grid-column: 1 / -1; } }

/* The stage is tall so the scroll has room to drive the whole sequence. */
/* Tall stage, sticky canvas: the extra height is the scroll runway that drives
   the sequence, so the canvas stays pinned until the last box has fallen. */
.open-stage { position: relative; height: 260vh; margin-top: clamp(16px, 2vw, 28px); }
.open-canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; }
.open-fallback { display: none; }
.no-gl .open-canvas { display: none; }
.no-gl .open-fallback {
  display: block; max-width: 54ch; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter);
  text-align: center; color: var(--muted);
}
.no-gl .open-stage { height: auto; }
@media (max-width: 640px) {
  .open-stage { height: 220vh; }
  .open-canvas { height: 78vh; }
}
/* If the opening scene cannot start, show the written description instead. */
.open-failed .open-canvas { display: none; }
.open-failed .open-fallback { display: block; max-width: 54ch; margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter); text-align: center; color: var(--muted); }
.open-failed .open-stage { height: auto; }

/* ---------- "This month's city is..." reveal ---------- */
.open-caption {
  position: sticky; top: 0; height: 100vh; margin-top: -100vh;
  display: grid; align-content: end; justify-items: center;
  padding-bottom: clamp(44px, 9vh, 104px); pointer-events: none; z-index: 2;
}
.open-reveal { margin: 0; text-align: center; display: grid; }
.open-reveal > span { grid-area: 1 / 1; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }

.or-ask {
  font-family: var(--mono); font-size: clamp(.82rem, 1.5vw, 1rem);
  letter-spacing: .04em; color: var(--muted); align-self: end;
}
.or-dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: 1px; }
.or-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: or-pulse 1.4s infinite; }
.or-dots i:nth-child(2) { animation-delay: .18s; }
.or-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes or-pulse { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.or-city {
  font-family: var(--display); font-weight: 900; letter-spacing: -.025em;
  font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.05; color: var(--navy);
  opacity: 0; transform: translateY(18px);
  text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 5px; text-underline-offset: 10px;
}
.open-stage[data-phase="reveal"] .or-ask { opacity: 0; transform: translateY(-10px); }
.open-stage[data-phase="reveal"] .or-city { opacity: 1; transform: none; }

/* No WebGL, or the scene failed: show the whole line, no animation. */
.no-gl .open-caption, .open-failed .open-caption { position: static; height: auto; margin-top: 0; padding: 0 0 24px; }
.no-gl .or-ask, .open-failed .or-ask { position: static; opacity: 1; transform: none; }
.no-gl .or-city, .open-failed .or-city { opacity: 1; transform: none; }
.no-gl .open-reveal, .open-failed .open-reveal { display: block; }

@media (prefers-reduced-motion: reduce) {
  .open-reveal > span { transition: none; }
  .or-dots i { animation: none; opacity: .6; }
}

/* Mobile hero card: the gift link gets its own row under the button.
   Lives here, not styles.css, because home.css sets the areas and loads later. */
@media (max-width: 900px) {
  .promo { grid-template-areas: "pill art" "title art" "btn btn" "gift gift"; }
  .promo-gift { grid-area: gift; justify-self: center; margin-top: 4px; }
}

/* ---------- What's inside: each item tells a small story ----------
   main.js adds .bx-ready (start positions) and then .is-in when the row is on
   screen. Without JS, or with reduced motion, neither class is added and every
   item simply shows its finished state. */
.bx-art svg * { transform-box: fill-box; }
.ani-lid { transform-origin: 0% 100%; }
.ani-drop, .ani-pin { transform-origin: 50% 100%; }
.ani-flame { transform-origin: 50% 100%; }
.ani-glow { transform-origin: 50% 50%; }
.ani-shake { transform-origin: 50% 100%; }
.ani-ring { transform-origin: 50% 50%; }
.ani-wind { transform-origin: 50% 50%; }
.ani-unfold { transform-origin: 50% 50%; }
.ani-write { stroke-dasharray: 26; }

.bx-ready:not(.is-in) .ani-drop,
.bx-ready:not(.is-in) .ani-pin { opacity: 0; }
.bx-ready:not(.is-in) .ani-flame,
.bx-ready:not(.is-in) .ani-ring { transform: scale(0); }
.bx-ready:not(.is-in) .ani-write { stroke-dashoffset: 26; }
.bx-ready:not(.is-in) .ani-unfold { transform: scaleX(.12); }

.is-in .bx-item { --t: calc(var(--i, 0) * 140ms + 200ms); }
.is-in .ani-lid    { animation: bx-lid .9s cubic-bezier(.3, 1.4, .5, 1) var(--t) both; }
.is-in .ani-drop   { animation: bx-drop .6s cubic-bezier(.3, 1.5, .5, 1) calc(var(--t) + 320ms + var(--k) * 120ms) both; }
.is-in .ani-flame  { animation: bx-light .5s ease-out var(--t) both, bx-flicker 1.6s ease-in-out calc(var(--t) + .5s) infinite; }
.is-in .ani-glow   { animation: bx-glow 2.4s ease-in-out calc(var(--t) + .4s) infinite; }
.is-in .ani-shake  { animation: bx-shake .8s ease-in-out var(--t) both; }
.is-in .ani-write  { animation: bx-write .45s ease-out calc(var(--t) + var(--k) * 160ms) both; }
.is-in .ani-ring   { animation: bx-ring .55s cubic-bezier(.3, 1.4, .5, 1) calc(var(--t) + var(--k) * 110ms) both; }
.is-in .ani-wind   { animation: bx-wind 1.3s cubic-bezier(.2, .8, .2, 1) calc(var(--t) + .2s) both; }
.is-in .ani-unfold { animation: bx-unfold .8s cubic-bezier(.3, 1.3, .5, 1) var(--t) both; }
.is-in .ani-pin    { animation: bx-drop .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--t) + .6s) both; }

/* hover replays the item's story (a different keyframe name restarts it) */
.is-in .bx-item:hover .ani-lid    { animation: bx-lid-2 .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-in .bx-item:hover .ani-shake  { animation: bx-shake-2 .8s ease-in-out both; }
.is-in .bx-item:hover .ani-wind   { animation: bx-wind-2 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.is-in .bx-item:hover .ani-pin    { animation: bx-drop-2 .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.is-in .bx-item:hover .ani-flame  { animation: bx-flicker .5s ease-in-out infinite; }

@keyframes bx-lid { 0% { transform: none; } 35% { transform: translateY(-12px) rotate(-18deg); } 100% { transform: none; } }
@keyframes bx-lid-2 { 0% { transform: none; } 35% { transform: translateY(-12px) rotate(-18deg); } 100% { transform: none; } }
@keyframes bx-drop { 0% { opacity: 0; transform: translateY(-34px); } 100% { opacity: 1; transform: none; } }
@keyframes bx-drop-2 { 0% { opacity: 0; transform: translateY(-34px); } 100% { opacity: 1; transform: none; } }
@keyframes bx-light { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bx-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.9, 1.1) skewX(4deg); } 50% { transform: scale(1.05, .94) skewX(-3deg); } 75% { transform: scale(.95, 1.06) skewX(2deg); } }
@keyframes bx-glow { 0%, 100% { opacity: .12; transform: scale(.9); } 50% { opacity: .3; transform: scale(1.12); } }
@keyframes bx-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes bx-shake-2 { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes bx-write { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
@keyframes bx-ring { from { transform: scale(0); } to { transform: none; } }
@keyframes bx-wind { from { transform: rotate(-200deg); } to { transform: none; } }
@keyframes bx-wind-2 { from { transform: rotate(-200deg); } to { transform: none; } }
@keyframes bx-unfold { from { transform: scaleX(.12); } to { transform: none; } }

/* route cards link to their city page */
.route-card h3 a { color: inherit; text-decoration: none; }
.route-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* How it works: the Savannah example under each part of the box */
.ex-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-ink); margin: 14px 0 8px; }
.bx-grid--mini { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.bx-grid--mini .bx-art { margin-bottom: 8px; }
.bx-grid--mini .bx-cat { display: none; }
.bx-grid--mini .bx-name { font-size: .88rem; min-height: 0; }
.bx-grid--mini .bx-maker { font-size: .8rem; }
.rule-list .bx-item, .rule-list .bx-item:last-child { padding: 0; border: 0; }
@media (min-width: 861px) { .split > div:has(> #inside-title) { position: sticky; top: 110px; } }
