/* Trainmap v2 design brochure. Private; see serve.mjs. The brochure wears the app's own
   materials: paper, warm inks, claret, Source Serif 4 for voice and Inter for instrument. */

@import url("/vendor/fonts/fonts.css");
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/SourceSerif4-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/SourceSerif4-Italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/Jost-Medium.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Jost-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/Jost-Bold.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/Jost-MediumItalic.woff2) format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/JosefinSans-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/JosefinSans-Bold.woff2) format("woff2"); }
@font-face { font-family: "Poiret One"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/PoiretOne-Regular.woff2) format("woff2"); }

:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --paper-3: #fbf8f1;
  --ink: #221d18;
  --soft: #6f675c;
  --faint: #9a9184;
  --rule: rgba(34, 29, 24, 0.14);
  --claret: #990f3d;
  --night: #191816;
  --night-2: #23211d;
  --night-ink: #ece6da;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--claret); }
button { font: inherit; color: inherit; }
::selection { background: rgba(153, 15, 61, 0.18); }

/* The app panel's paper grain, laid over the whole brochure very faintly */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05; mix-blend-mode: multiply;
  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)'/%3E%3C/svg%3E"); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--claret); }
.eyebrow .n { color: var(--faint); margin-right: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; margin: 18px 0 0; }
h2 em, h1 em { font-style: italic; font-weight: 400; }
h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.lede { font: 300 clamp(19px, 1.7vw, 23px)/1.5 var(--serif); color: var(--soft); max-width: 44ch; margin: 26px 0 0; }
.small { font-size: 13px; color: var(--soft); }
.meta { font: 500 11px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
code, .mono { font: 500 0.86em/1 ui-monospace, "SF Mono", Menlo, monospace; }

section.chapter { padding: clamp(96px, 13vw, 180px) 0 0; position: relative; }
section.chapter:last-of-type { padding-bottom: 120px; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px 64px; align-items: end; }
.chapter-head .lede { margin: 0; }
@media (max-width: 860px) { .chapter-head { grid-template-columns: 1fr; } .chapter-head .lede { margin-top: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: rgba(244, 239, 228, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule); transform: translateY(-100%); transition: transform 0.5s var(--ease); }
.topbar.show { transform: none; }
.topbar .brand { font: 400 19px/1 var(--serif); white-space: nowrap; }
.topbar .brand b { font-weight: 600; }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { font: 500 12.5px/1 var(--sans); color: var(--soft); text-decoration: none; padding: 8px 11px; border-radius: 99px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.topbar nav a:hover { color: var(--ink); background: rgba(34, 29, 24, 0.06); }
.topbar nav a.on { color: var(--paper-3); background: var(--ink); }
.topbar .demo { font: 600 12.5px/1 var(--sans); color: var(--paper-3); background: var(--claret); padding: 9px 14px; border-radius: 99px; text-decoration: none; white-space: nowrap; }
@media (max-width: 700px) { .topbar .brand { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--paper-2); color: var(--ink); }
.hero .livemap { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(244, 239, 228, 0.96) 0%, rgba(244, 239, 228, 0.78) 30%, rgba(244, 239, 228, 0) 62%),
              linear-gradient(0deg, rgba(244, 239, 228, 0.9) 0%, rgba(244, 239, 228, 0) 30%); }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 11vh, 120px); max-width: min(720px, 88vw); }
.hero h1 { font-size: clamp(56px, 10vw, 150px); line-height: 0.9; letter-spacing: -0.035em; }
.hero h1 em { color: var(--claret); }
.hero .lede { color: #4d453c; max-width: 36ch; }
.hero .now { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(56px, 11vh, 120px); text-align: right; }
.hero .now .name { font: 400 clamp(26px, 3vw, 40px)/1 var(--serif); display: block; transition: opacity 0.5s; }
.hero .now .group { margin-top: 10px; display: block; }
.hero .dots { display: flex; gap: 7px; justify-content: flex-end; margin-top: 16px; }
.hero .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(34, 29, 24, 0.2); transition: background 0.4s, transform 0.4s; }
.hero .dots i.on { background: var(--claret); transform: scale(1.35); }
.hero .scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 46px; background: var(--rule); overflow: hidden; }
.hero .scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.hero .topline { position: absolute; z-index: 2; top: 24px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.hero .topline .brand { font: 400 22px/1 var(--serif); }
.hero .topline .brand b { font-weight: 600; }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(0deg, rgba(244, 239, 228, 0.97) 0%, rgba(244, 239, 228, 0.85) 42%, rgba(244, 239, 228, 0) 70%); }
  .hero .now { left: var(--gutter); right: auto; top: 70px; bottom: auto; text-align: left; }
  .hero .topline .meta { display: none; }
  .hero .dots { justify-content: flex-start; }
}

/* ---------- Numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: clamp(64px, 8vw, 110px); }
.numbers div { padding: 28px 22px 26px 0; border-right: 1px solid var(--rule); }
.numbers div:last-child { border-right: 0; }
.numbers b { display: block; font: 300 clamp(40px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -0.03em; }
.numbers span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--soft); max-width: 20ch; }
.numbers div + div { padding-left: 22px; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } .numbers div { border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .numbers div:nth-child(2n) { border-right: 0; padding-left: 18px !important; } .numbers div:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.principle { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.principle .art { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper-2); }
.principle .copy { padding: 24px 26px 28px; }
.principle .copy p { margin: 10px 0 0; color: var(--soft); font-size: 15.5px; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr; } }
/* Art 1: a journey drawing itself over quiet country */
.art-journey svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-journey .route { fill: none; stroke: var(--claret); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.in .art-journey .route { animation: draw 3.6s var(--ease) 0.3s forwards, redraw 9s 4s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes redraw { 0%, 70% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: -700; } 85.01% { stroke-dashoffset: 700; } 100% { stroke-dashoffset: 0; } }
.art-journey .stop { fill: var(--paper-3); stroke: var(--claret); stroke-width: 3; }
.art-journey .ctx { fill: none; stroke: rgba(34, 29, 24, 0.12); stroke-width: 1.2; }
.art-journey text { font: 500 11px var(--sans); fill: #8b8274; }
/* Art 2: paper, not glass */
.art-paper { background: linear-gradient(135deg, #e7a94f, #d95f36 45%, #4d7fb3 46%, #3c6b9c); }
.art-paper .sheet { position: absolute; left: 12%; top: 14%; width: 56%; bottom: -8%; border-radius: 18px; padding: 22px;
  background: rgba(250, 247, 240, 0.92); box-shadow: 0 16px 40px rgba(40, 25, 10, 0.25); transform: rotate(-4deg); transition: transform 0.8s var(--ease); }
.principle:hover .art-paper .sheet { transform: rotate(0deg) translateY(-6px); }
.art-paper .sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.art-paper .sheet b { display: block; font: 400 21px/1.1 var(--serif); position: relative; }
.art-paper .sheet i { display: block; height: 9px; border-radius: 5px; background: rgba(34, 29, 24, 0.1); margin-top: 12px; position: relative; }
.art-paper .sheet i.w { width: 62%; } .art-paper .sheet i.c { width: 44%; background: var(--claret); height: 26px; border-radius: 8px; margin-top: 18px; }
.art-paper .glass { position: absolute; right: 7%; top: 28%; width: 34%; height: 50%; border-radius: 16px; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center;
  font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.95); text-align: center; }
.art-paper .glass s { opacity: 0.9; }
/* Art 3: one name, many voices */
.art-voices { display: grid; place-items: center; background: var(--paper-2); transition: background 0.6s; }
.art-voices .word { font-size: 44px; transition: opacity 0.35s, transform 0.35s; text-align: center; }
.art-voices .word small { display: block; margin-top: 14px; font: 500 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.art-voices .word.out { opacity: 0; transform: translateY(8px); }

/* ---------- The collection ---------- */
.group-title { display: flex; align-items: baseline; gap: 18px; margin: 72px 0 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.group-title h3 { font-size: 34px; }
.group-title p { margin: 0; color: var(--soft); font-size: 15px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards3 { grid-template-columns: 1fr; } }
.style-card { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.zoomstack { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.zoomstack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.6s, transform 1.2s var(--ease); }
.zoomstack img.on { opacity: 1; transform: none; }
.zoomstack .seg { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(251, 248, 241, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(40, 30, 20, 0.12); }
.zoomstack .seg button { border: 0; background: none; font: 500 11.5px/1 var(--sans); padding: 7px 10px; border-radius: 99px; cursor: pointer; color: var(--soft); }
.zoomstack .seg button.on { background: var(--ink); color: var(--paper-3); }
.style-card .body { padding: 20px 22px 22px; }
.style-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.style-card h4 { margin: 0; font: 400 26px/1.1 var(--serif); }
.style-card .chips { display: flex; gap: 5px; }
.style-card .chips i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); }
.style-card p { margin: 10px 0 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; }
.style-card .type { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--faint); }
.style-card .type b { color: var(--ink); font-weight: 500; }
.style-card.classic .inspo { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.style-card.classic .inspo img { width: 76px; height: 100px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(40, 30, 20, 0.2); }
.style-card.classic .inspo span { font-size: 12px; color: var(--faint); line-height: 1.45; }

/* Explorer: a live map with the nine styles */
.explorer { margin-top: 90px; border-radius: 26px; overflow: hidden; position: relative; background: var(--night); color: var(--night-ink); }
.explorer .livemap { height: min(76vh, 760px); min-height: 480px; }
.explorer .panel { position: absolute; z-index: 3; left: 18px; top: 18px; width: min(340px, calc(100% - 36px)); padding: 18px; border-radius: 18px;
  background: rgba(250, 247, 240, 0.93); color: var(--ink); box-shadow: 0 10px 30px rgba(20, 12, 6, 0.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.explorer .panel .meta { margin-bottom: 10px; }
.explorer .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.explorer .chips button { border: 1px solid var(--rule); background: #fff; border-radius: 99px; padding: 7px 11px; font: 500 12.5px/1 var(--sans); cursor: pointer; transition: all 0.2s; }
.explorer .chips button.on { background: var(--claret); border-color: var(--claret); color: #fff; }
.explorer .zooms { display: flex; gap: 2px; margin-top: 14px; padding: 3px; border-radius: 99px; background: rgba(34, 29, 24, 0.07); }
.explorer .zooms button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 99px; font: 500 12px/1 var(--sans); cursor: pointer; color: var(--soft); }
.explorer .zooms button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.explorer .toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--soft); cursor: pointer; }
.explorer .toggle .sw { width: 38px; height: 22px; border-radius: 99px; background: rgba(34, 29, 24, 0.2); position: relative; transition: background 0.2s; flex: none; }
.explorer .toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.explorer .toggle.on .sw { background: var(--claret); }
.explorer .toggle.on .sw::after { transform: translateX(16px); }
.explorer .note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--soft); min-height: 3em; }
.explorer .hint { position: absolute; z-index: 3; left: 18px; bottom: 16px; font: 500 11px/1 var(--sans); color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.35); padding: 7px 10px; border-radius: 99px; }
@media (max-width: 700px) { .explorer .panel { position: relative; left: 0; top: 0; width: auto; border-radius: 0; } .explorer .livemap { height: 70vh; } }

/* ---------- Typography ---------- */
.specimens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
@media (max-width: 960px) { .specimens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .specimens { grid-template-columns: 1fr; } }
.specimen { position: relative; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; }
.specimen .sea { position: absolute; inset: 0; }
.specimen .land { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 62%, 84% 70%, 70% 64%, 58% 78%, 44% 72%, 30% 86%, 12% 80%, 0 88%); }
.specimen .lk { position: absolute; left: 56%; top: 30%; width: 22%; height: 12%; border-radius: 50% 40% 55% 45%; transform: rotate(-12deg); }
.specimen .lbl { position: absolute; white-space: nowrap; line-height: 1; }
.specimen .mk { display: inline-block; vertical-align: middle; margin-right: 6px; }
.specimen .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; display: flex; justify-content: space-between; font: 500 11px/1.3 var(--sans);
  background: rgba(251, 248, 241, 0.9); color: var(--soft); }
.specimen .foot b { color: var(--ink); font-weight: 600; }
.specimen.legend { background: var(--paper-3); border: 1px solid var(--rule); padding: 22px 24px; }
.specimen.legend ol { list-style: none; margin: 14px 0 0; padding: 0; }
.specimen.legend li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.specimen.legend li:first-child { border-top: 0; }
.specimen.legend em { font: 400 12px/1 var(--sans); color: var(--faint); font-style: normal; }
.type-ladder { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-top: 20px; }
@media (max-width: 960px) { .specimen.legend { background: var(--paper-3); border: 1px solid var(--rule); padding: 22px 24px; }
.specimen.legend ol { list-style: none; margin: 14px 0 0; padding: 0; }
.specimen.legend li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.specimen.legend li:first-child { border-top: 0; }
.specimen.legend em { font: 400 12px/1 var(--sans); color: var(--faint); font-style: normal; }
.type-ladder { grid-template-columns: 1fr; } }
.ladder, .pair { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 20px; padding: 28px 30px; }
.ladder .rung { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ladder .rung:first-of-type { border-top: 0; }
.ladder .rung .meta { letter-spacing: 0.04em; }
.pair .voice { font: 300 54px/1 var(--serif); letter-spacing: -0.02em; }
.pair .voice + .meta { margin-top: 12px; }
.pair .instr { font: 500 22px/1.2 var(--sans); margin-top: 34px; }
.pair .instr span { color: var(--soft); font-weight: 400; }

/* ---------- Colour ---------- */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 60px; }
@media (max-width: 860px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.swatch { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-3); }
.swatch .c { aspect-ratio: 1 / 1; position: relative; }
.swatch .c.grain::after { content: ""; position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E"); }
.swatch .t { padding: 12px 14px 14px; }
.swatch .t b { display: block; font-weight: 500; font-size: 14px; }
.swatch .t span { font: 500 11.5px/1.4 ui-monospace, Menlo, monospace; color: var(--faint); }
.routes-ribbon { margin-top: 20px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: 20px; padding: 28px 30px; }
.routes-ribbon svg { width: 100%; height: auto; display: block; margin-top: 18px; }
.palettes { margin-top: 20px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
@media (max-width: 960px) { .palettes { grid-template-columns: repeat(3, 1fr); } }
.palette { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-3); }
.palette .bars { display: grid; grid-template-rows: 3fr 2fr 1fr; height: 150px; }
.palette .bars i { display: block; }
.palette .t { padding: 9px 10px 11px; font: 500 12px/1.3 var(--sans); }
.palette .t span { display: block; color: var(--faint); font: 400 10.5px/1.5 ui-monospace, Menlo, monospace; }

/* ---------- Layers ---------- */
.layers { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-top: 70px; }
@media (max-width: 960px) { .layers { grid-template-columns: 1fr; } }
.stack3d { aspect-ratio: 1 / 1; perspective: 1400px; position: relative; }
.stack3d .plane { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; border-radius: 14px; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(var(--z, 0px)); transition: transform 1.4s var(--ease), opacity 0.6s; box-shadow: 0 30px 60px rgba(40, 30, 20, 0.12); }
.stack3d.explode .plane.p1 { --z: 0px; } .stack3d.explode .plane.p2 { --z: 90px; } .stack3d.explode .plane.p3 { --z: 180px; }
.stack3d .p1 { background: #f7f3ea; overflow: hidden; }
.stack3d .p2 { background: transparent; box-shadow: none; }
.stack3d .p3 { background: transparent; box-shadow: none; }
.stack3d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stack3d .tag { position: absolute; font: 600 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--paper-3);
  border: 1px solid var(--rule); padding: 7px 10px; border-radius: 99px; opacity: 0; transition: opacity 0.6s 0.6s; white-space: nowrap; }
.stack3d.explode .tag { opacity: 1; }
.layer-steps { counter-reset: s; }
.layer-steps li { list-style: none; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--rule); }
.layer-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; font: 500 13px/1 var(--sans); color: var(--soft); }
.layer-steps li b { display: block; font: 400 21px/1.2 var(--serif); }
.layer-steps li span { color: var(--soft); font-size: 15px; }
.layer-steps { padding: 0; margin: 0; }
.lakes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 90px; align-items: stretch; }
@media (max-width: 960px) { .lakes { grid-template-columns: 1fr; } }
.lakes .frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); position: relative; }
.lakes .frame img { width: 100%; height: 100%; object-fit: cover; }
.lakes .names { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 20px; padding: 28px 30px; }
.lakes .names ul { list-style: none; margin: 18px 0 0; padding: 0; columns: 2; column-gap: 20px; }
.lakes .names li { font: italic 400 18px/1.9 var(--serif); color: #4f7482; break-inside: avoid; }
.lakes .names li small { font: 400 11.5px/1 var(--sans); color: var(--faint); font-style: normal; margin-left: 6px; }

/* ---------- The panel ---------- */
.devices { margin-top: 70px; display: grid; grid-template-columns: 1fr; gap: 28px; }
.desktop { position: relative; border-radius: 16px; background: #1b1a18; padding: 34px 12px 12px; box-shadow: 0 40px 80px rgba(40, 30, 20, 0.22); }
.desktop::before { content: ""; position: absolute; top: 13px; left: 16px; width: 44px; height: 9px;
  background: radial-gradient(circle at 4.5px 4.5px, #ff5f57 4.5px, transparent 5px), radial-gradient(circle at 21.5px 4.5px, #febc2e 4.5px, transparent 5px), radial-gradient(circle at 38.5px 4.5px, #28c840 4.5px, transparent 5px); }
.desktop .screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #ddd; }
.desktop .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s; }
.desktop .screen img.on { opacity: 1; }
.callout { position: absolute; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--claret); color: #fff;
  font: 600 13px/1 var(--sans); box-shadow: 0 0 0 5px rgba(153, 15, 61, 0.2); cursor: default; transition: transform 0.25s; }
.callout::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(153, 15, 61, 0.5); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.callout:hover, .callout.hl { transform: scale(1.15); }
.anatomy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 960px) { .anatomy { grid-template-columns: 1fr 1fr; } }
.anatomy div { border-top: 2px solid var(--rule); padding-top: 14px; transition: border-color 0.3s; }
.anatomy div.hl { border-color: var(--claret); }
.anatomy b { display: flex; gap: 10px; align-items: center; font: 400 19px/1.2 var(--serif); }
.anatomy b i { font: 600 11px/1 var(--sans); font-style: normal; color: #fff; background: var(--claret); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.anatomy span { display: block; margin-top: 8px; font-size: 14px; color: var(--soft); }
.style-tabs { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.style-tabs button { border: 1px solid var(--rule); background: var(--paper-3); border-radius: 99px; padding: 8px 14px; font: 500 12.5px/1 var(--sans); cursor: pointer; }
.style-tabs button.on { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }
.phones { display: flex; gap: clamp(14px, 3vw, 40px); justify-content: center; margin-top: 70px; flex-wrap: wrap; }
.phone { width: min(260px, 42vw); aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px; background: #1b1a18; position: relative; box-shadow: 0 30px 60px rgba(40, 30, 20, 0.25); }
.phone:nth-child(2) { transform: translateY(-36px); }
/* The screen is a phone browser. The map runs up under a transparent status bar, as in
   Safari; the screenshot (390 x 764) keeps its controls below the status bar, and Safari's
   address bar sits at the foot, so nothing meets the notch or the rounded corners. Sizes are in points of a 390 pt wide screen (--pt). */
.phone { container-type: inline-size; }
.phone .screen { --pt: calc((100cqw - 20px) / 390); width: 100%; height: 100%; border-radius: 33px; overflow: hidden; position: relative; background: #f6f2e7;
  display: grid; grid-template-rows: calc(54 * var(--pt)) 1fr calc(80 * var(--pt)); }
.phone .screen img { grid-row: 1 / 3; grid-column: 1; }
.phone .status { grid-row: 1; grid-column: 1; position: relative; z-index: 1; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; min-height: 0; }
.phone .status { display: flex; justify-content: space-between; align-items: center; padding: calc(6 * var(--pt)) calc(34 * var(--pt)) 0 calc(44 * var(--pt));
  font: 600 calc(16 * var(--pt))/1 -apple-system, "SF Pro Text", Inter, sans-serif; color: #1b1a18; }
.phone .status i { display: flex; gap: calc(5 * var(--pt)); align-items: center; }
.phone .status i::before { content: ""; width: calc(17 * var(--pt)); height: calc(11 * var(--pt)); background: linear-gradient(90deg, currentColor 0 20%, transparent 20% 27%, currentColor 27% 47%, transparent 47% 54%, currentColor 54% 74%, transparent 74% 81%, currentColor 81%);
  clip-path: polygon(0 70%, 20% 70%, 20% 50%, 47% 50%, 47% 30%, 74% 30%, 74% 0, 100% 0, 100% 100%, 0 100%); }
.phone .status i::after { content: ""; width: calc(22 * var(--pt)); height: calc(11 * var(--pt)); border-radius: calc(3 * var(--pt)); background: linear-gradient(90deg, currentColor 70%, transparent 70%);
  border: calc(1 * var(--pt)) solid rgba(27, 26, 24, 0.45); padding: calc(1.5 * var(--pt)); box-sizing: border-box; background-clip: content-box; }
.phone .safari { display: grid; justify-items: center; align-content: start; gap: calc(12 * var(--pt)); padding-top: calc(8 * var(--pt)); background: #f6f2e7; border-top: 1px solid rgba(27, 26, 24, 0.08); }
.phone .safari span { width: calc(340 * var(--pt)); height: calc(40 * var(--pt)); border-radius: calc(20 * var(--pt)); background: #fffdf8; box-shadow: 0 1px 3px rgba(27, 26, 24, 0.12);
  display: grid; place-items: center; font: 400 calc(15 * var(--pt))/1 -apple-system, "SF Pro Text", Inter, sans-serif; color: #1b1a18; }
.phone .safari::after { content: ""; width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 9px; background: #1b1a18; }
.phone::after { content: ""; position: absolute; z-index: 2; top: calc(10px + 11 * (100cqw - 20px) / 390); left: 50%; transform: translateX(-50%); width: calc(120 * (100cqw - 20px) / 390); height: calc(34 * (100cqw - 20px) / 390); border-radius: 99px; background: #1b1a18; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; }
@media (max-width: 620px) { .phone:nth-child(2) { transform: none; } .phone { width: 72vw; } .phones { gap: 64px; } }
.grain-zoom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 110px; }
@media (max-width: 860px) { .grain-zoom { grid-template-columns: 1fr; } }
.grain-zoom .loupe { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--rule); }
.grain-zoom .loupe img { position: absolute; max-width: none; width: 300%; left: -12%; top: -8%; transition: transform 6s linear; }
.grain-zoom .loupe:hover img { transform: translate(-3%, -3%); }
.grain-zoom .words { background: var(--paper-3); border: 1px solid var(--rule); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.grain-zoom .words dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 18px 0 0; font-size: 14px; }
.grain-zoom .words dt { color: var(--faint); }
.grain-zoom .words dd { margin: 0; }

/* ---------- Sharing ---------- */
.dark-band { background: var(--night); color: var(--night-ink); margin-top: clamp(96px, 13vw, 180px); padding: clamp(96px, 12vw, 160px) 0; }
.dark-band section.chapter { padding-top: 0; }
.dark-band .eyebrow { color: #f29db8; }
.dark-band .lede, .dark-band .small { color: #b4ac9f; }
.share-stage { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
@media (max-width: 960px) { .share-stage { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 10px; }
.steps .step { padding: 18px 20px; border-radius: 16px; background: var(--night-2); border: 1px solid rgba(255, 255, 255, 0.06); opacity: 0.45; transition: opacity 0.5s, background 0.5s, border-color 0.5s; }
.steps .step.on { opacity: 1; background: #2c2924; border-color: rgba(242, 157, 184, 0.35); }
.steps .step b { display: block; font: 400 20px/1.2 var(--serif); color: var(--night-ink); }
.steps .step span { font-size: 14px; color: #b4ac9f; }
.steps .step code { color: #f29db8; }
.phone-chat { justify-self: center; width: min(380px, 100%); border-radius: 34px; background: #0f0e0d; padding: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.phone-chat .inner { border-radius: 26px; background: #f2f2f7; min-height: 560px; padding: 54px 14px 18px; position: relative; overflow: hidden; color: #111; font: 400 15px/1.35 -apple-system, "SF Pro Text", Inter, sans-serif; }
.phone-chat .inner::before { content: "Maja"; position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 13px; color: #111; }
.bubble { max-width: 78%; padding: 8px 13px; border-radius: 18px; margin: 6px 0; opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.5s, transform 0.5s var(--ease); }
.bubble.in { opacity: 1; transform: none; }
.bubble.them { background: #e5e5ea; }
.bubble.me { background: #0a84ff; color: #fff; margin-left: auto; }
.bubble.card { padding: 0; overflow: hidden; background: #e5e5ea; margin-left: auto; max-width: 84%; }
.bubble.card .img { aspect-ratio: 1200 / 630; background: #d9d4c8; position: relative; overflow: hidden; }
.bubble.card .img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s; }
.bubble.card .img img.on { opacity: 1; }
.bubble.card .img .drawing { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--sans); color: #6f675c; transition: opacity 0.4s; }
.bubble.card .img .drawing i { display: block; width: 46%; height: 3px; border-radius: 3px; background: rgba(0,0,0,.1); margin: 10px auto 0; overflow: hidden; position: relative; }
.bubble.card .img .drawing i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--claret); }
.bubble.card.drawing .img .drawing i::after { animation: fill 2.6s linear forwards; }
@keyframes fill { to { width: 100%; } }
.bubble.card .txt { padding: 9px 13px 11px; }
.bubble.card .txt b { display: block; font-size: 14px; }
.bubble.card .txt span { font-size: 12.5px; color: #6c6c70; }
.card-wall { margin-top: 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .card-wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-wall { grid-template-columns: 1fr; } }
.card-wall figure { margin: 0; }
.card-wall img { border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--ease); }
.card-wall figure:hover img { transform: translateY(-4px) rotate(-0.4deg); }
.card-wall figcaption { margin-top: 10px; font-size: 12.5px; color: #b4ac9f; }
.trust { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust div { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; }
.trust b { font: 400 20px/1.2 var(--serif); display: block; }
.trust span { font-size: 14.5px; color: #b4ac9f; }

/* ---------- Formats ---------- */
.formats { margin-top: 64px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .formats { grid-template-columns: 1fr; } }
.morph-wrap { height: min(66vh, 640px); display: grid; place-items: center; background: var(--paper-2); border-radius: 24px; position: relative; overflow: hidden; }
.morph { position: relative; width: var(--w); height: var(--h); border-radius: var(--r, 10px); overflow: hidden; box-shadow: 0 24px 60px rgba(40, 30, 20, 0.25);
  transition: width 1s var(--ease), height 1s var(--ease), border-radius 1s var(--ease); background: #ddd; }
.morph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s; }
.morph img.on { opacity: 1; }
.morph-wrap .dim { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; }
.format-list { display: grid; gap: 4px; }
.format-list button { text-align: left; border: 0; background: none; padding: 16px 18px; border-radius: 14px; cursor: pointer; display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: center; transition: background 0.3s; }
.format-list button:hover { background: rgba(34, 29, 24, 0.05); }
.format-list button.on { background: var(--paper-3); box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule); }
.format-list .ratio { display: grid; place-items: center; height: 48px; }
.format-list .ratio i { display: block; border: 1.5px solid var(--ink); border-radius: 3px; }
.format-list b { display: block; font: 400 20px/1.2 var(--serif); }
.format-list span { font-size: 13.5px; color: var(--soft); }

/* ---------- Under the hood ---------- */
.diagram { margin-top: 64px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: 24px; padding: clamp(16px, 3vw, 36px); overflow-x: auto; }
.diagram svg { width: 100%; min-width: 760px; height: auto; display: block; }
.diagram .box { fill: #fff; stroke: rgba(34, 29, 24, 0.22); }
.diagram .box.accent { stroke: var(--claret); stroke-width: 1.5; }
.diagram .t1 { font: 400 17px var(--serif); fill: var(--ink); }
.diagram .t2 { font: 400 11.5px var(--sans); fill: var(--soft); }
.diagram .t3 { font: 600 9.5px var(--sans); fill: var(--faint); letter-spacing: 0.1em; }
.diagram .wire { fill: none; stroke: rgba(34, 29, 24, 0.25); stroke-width: 1.4; stroke-dasharray: 4 5; }
.diagram .wire.solid { stroke-dasharray: none; }
.diagram .pkt { fill: var(--claret); }
.diagram .zone { fill: rgba(153, 15, 61, 0.04); stroke: rgba(153, 15, 61, 0.25); stroke-dasharray: 3 4; }
.facts { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts b { display: block; font: 400 19px/1.25 var(--serif); }
.facts span { font-size: 14px; color: var(--soft); }

/* ---------- Inspiration & close ---------- */
.inspiration { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
@media (max-width: 860px) { .inspiration { grid-template-columns: 1fr 1fr; } }
.inspiration figure { margin: 0; }
.inspiration img { width: 100%; border-radius: 6px; box-shadow: 0 18px 40px rgba(40, 30, 20, 0.22); transition: transform 0.6s var(--ease); }
.inspiration figure:nth-child(odd) img { transform: rotate(-1.2deg); }
.inspiration figure:nth-child(even) img { transform: rotate(1deg) translateY(-18px); }
.inspiration figure:hover img { transform: none; }
.inspiration figcaption { margin-top: 14px; font-size: 12.5px; color: var(--soft); line-height: 1.45; }
.inspiration figcaption b { display: block; color: var(--ink); font: 400 16px/1.3 var(--serif); }
.closing { text-align: center; padding: clamp(110px, 14vw, 200px) var(--gutter) 60px; }
.closing h2 { font-size: clamp(48px, 8vw, 120px); }
.closing .cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 16px 26px; border-radius: 99px; background: var(--claret); color: #fff;
  font: 600 15px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 30px rgba(153, 15, 61, 0.3); transition: transform 0.3s var(--ease); }
.closing .cta:hover { transform: translateY(-2px); }
.credits { max-width: 820px; margin: 80px auto 0; padding: 24px var(--gutter) 0; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.7; }

/* Live maps share these */
.livemap { position: relative; background: var(--paper-2); }
.livemap .maplibregl-ctrl-attrib { font-size: 10px; }
.livemap .maplibregl-ctrl-bottom-right { z-index: 3; }

/* ---------- Every map, its own line (colour chapter) ---------- */
.lines9-head { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 48px; align-items: end; }
.lines9-head .small { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .lines9-head { grid-template-columns: 1fr; } }
/* twelve lines: two rows of six, three of four, four of three; never one left over */
.lines9 { margin-top: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1100px) { .lines9 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .lines9 { grid-template-columns: repeat(3, 1fr); } }
.lines9 figure { margin: 0; }
.lines9 .crop { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.lines9 .crop img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; transform: scale(1.9); transform-origin: 58% 38%; }
.lines9 figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--soft); }
.lines9 figcaption b { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Moving around ---------- */
.filmstrip { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .filmstrip { grid-template-columns: 1fr 1fr; } }
.filmstrip figure { margin: 0; position: relative; }
.filmstrip img { border-radius: 12px; box-shadow: 0 14px 34px rgba(40, 30, 20, 0.16); border: 1px solid var(--rule); }
.filmstrip figure:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 28%; font: 400 20px/1 var(--serif); color: var(--faint); }
@media (max-width: 960px) { .filmstrip figure::after { display: none; } }
.filmstrip figcaption, .arrivals figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.filmstrip figcaption b, .arrivals figcaption b { display: block; color: var(--ink); font: 400 17px/1.3 var(--serif); margin-bottom: 2px; }
.kept { margin-top: 90px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .kept { grid-template-columns: 1fr; } }
.kept-list { list-style: none; margin: 18px 0 0; padding: 0; }
.kept-list li { border-top: 1px solid var(--rule); padding: 14px 0; font-size: 15.5px; color: var(--soft); }
.kept-list li b { color: var(--ink); font-weight: 500; }
.kept-panel { margin: 0; justify-self: center; width: min(420px, 100%); }
.kept-panel img { border-radius: 22px; box-shadow: 0 24px 60px rgba(40, 30, 20, 0.2); }
.undo-frame { margin: 56px 0 0; }
.undo-frame img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(40, 30, 20, 0.14); }
.undo-frame figcaption { margin-top: 12px; text-align: center; }

/* ---------- The intro ---------- */
.arrivals { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .arrivals { grid-template-columns: 1fr; } }
.arrivals figure { margin: 0; }
.arrivals img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 14px 34px rgba(40, 30, 20, 0.14); }
.trust.light div { border-top-color: var(--rule); }
.trust.light span { color: var(--soft); }

/* Hero: two stacked maps, the next style fading in once fully drawn (brochure.js hero) */
.hero .livemap .buf { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero .livemap .buf.on { opacity: 1; }
