/* SLOW NORTH — site layout & components (built on brand.css tokens) */

:root {
  --eyebrow: var(--brand-primary);
  --numeral: var(--brand-primary-100);
  --section-alt: var(--brand-primary-50);
  --footer-bg: var(--brand-secondary);
  --footer-text: var(--brand-on-secondary);
  --on-dark: #F6F8F3;
  --scrim: 14, 32, 24;
}
[data-theme="dark"] {
  --eyebrow: var(--ui-link);
  --numeral: var(--ui-line);
  --section-alt: var(--ui-surface);
  --footer-bg: var(--brand-primary-950);
  --footer-text: #F6F8F3;
}

html { scroll-behavior: smooth; }
body { font-family: var(--brand-font-body); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ui-action); color: var(--ui-on-action);
  padding: 12px 16px; border-radius: var(--brand-radius-btn); font-weight: 700;
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- eyebrow (reference: short line + label) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 16px; font-size: var(--brand-size-small); font-weight: 700;
  color: var(--eyebrow);
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; flex: none; }
html[lang="en"] .eyebrow, .eyebrow.latin { letter-spacing: .16em; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header { background: var(--ui-bg); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 44px; padding-block: 24px; }
.brand { flex: none; display: block; line-height: 0; border-radius: var(--brand-radius-btn); }
.brand img { width: 88px; height: 88px; display: block; }
[data-theme="dark"] .brand { background: var(--brand-paper); padding: 8px; border-radius: var(--brand-radius); }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.main-nav a, .mobile-menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ui-text); text-decoration: none; border-radius: var(--brand-radius-btn);
}
.main-nav a:hover, .mobile-menu a:hover { color: var(--ui-link); text-decoration: underline; }
.main-nav a[aria-current="page"], .mobile-menu a[aria-current="page"] {
  color: var(--ui-link); font-weight: 700; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--ui-line); border-radius: var(--brand-radius-btn); padding: 2px; background: var(--ui-surface); }
.lang-switch button {
  min-width: 44px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ui-text); font: inherit; font-size: var(--brand-size-small); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ui-action); color: var(--ui-on-action); font-weight: 700; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--ui-line); border-radius: var(--brand-radius-btn);
  background: var(--ui-surface); color: var(--ui-text); font: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--ui-link); color: var(--ui-link); }
.theme-btn { padding: 0; width: 44px; }
.theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }

.plan-link { font-weight: 700; }
.plan-link[aria-current="page"] { border-color: var(--ui-link); color: var(--ui-link); }
.plan-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--ui-action); color: var(--ui-on-action);
  font-size: var(--brand-size-caption); font-weight: 700; display: inline-grid; place-items: center; line-height: 1;
}
.plan-count[hidden] { display: none; }

.menu-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--ui-line); background: var(--ui-bg); padding-block: 16px 24px; }
.mobile-menu ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { width: 100%; font-size: 20px; }
.mobile-tools { display: flex; gap: 8px; align-items: center; }

@media (max-width: 1080px) {
  .main-nav, .header-actions > .lang-switch, .header-actions > .theme-btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 16px; }
}
@media (max-width: 560px) {
  .plan-link .plan-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- buttons on top of brand.css ---------- */
.btn { text-align: center; }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost:hover { background: var(--brand-primary-50); text-decoration: underline; }
[data-theme="dark"] .btn-ghost:hover { background: var(--ui-surface); }
.btn-accent:hover { background: var(--brand-accent-400); text-decoration: underline; }
.btn-secondary:hover { background: var(--brand-secondary-400); text-decoration: underline; }
.btn-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-light:hover { background: rgba(246, 248, 243, .12); text-decoration: underline; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-add .ic-check { display: none; }
.btn-add.is-added { background: transparent; color: var(--ui-link); border-color: currentColor; }
.btn-add.is-added .ic-plus { display: none; }
.btn-add.is-added .ic-check { display: inline-flex; }
.btn-add span { display: inline-flex; }

/* ---------- hero (reference: full-bleed photo, headline left) ---------- */
.hero {
  position: relative; margin: 20px 20px 0; border-radius: var(--brand-radius); overflow: hidden;
  min-height: min(760px, calc(100svh - 156px)); display: flex; align-items: center;
  color: var(--on-dark); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--scrim), .86) 0%, rgba(var(--scrim), .74) 45%, rgba(var(--scrim), .18) 100%);
}
.hero-content { width: min(100% - 32px, 1200px); margin-inline: auto; padding-block: 80px; }
.hero-text { max-width: 600px; }
.hero .eyebrow { color: var(--on-dark); }
.hero .eyebrow::before { background: var(--brand-secondary); }
.hero h1 { font-size: var(--brand-size-display); color: var(--on-dark); margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero-lead { font-size: 20px; line-height: 1.6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; min-height: 44px;
  color: var(--on-dark); font-size: var(--brand-size-small); text-decoration: none;
}
.scroll-cue:hover { text-decoration: underline; }
.scroll-cue .icon { width: 18px; height: 18px; }
.hero-caption {
  position: absolute; right: 24px; bottom: 24px; margin: 0;
  background: rgba(var(--scrim), .78); color: var(--on-dark);
  padding: 8px 16px; border-radius: var(--brand-radius-btn);
  font-size: var(--brand-size-caption); letter-spacing: .18em; line-height: 1.6; text-align: right;
}
.hero :focus-visible { outline-color: var(--on-dark); }

/* ---------- section rail (reference: Start / 01 / 02 / 03) ---------- */
.section-rail { display: none; }
@media (min-width: 1440px) {
  .section-rail {
    display: block; position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 40;
    background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow); padding: 8px;
  }
  .section-rail ol { list-style: none; margin: 0; padding: 0; }
  .section-rail a {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    min-height: 44px; padding: 0 8px 0 12px; color: var(--ui-muted); text-decoration: none; font-size: var(--brand-size-small);
  }
  .section-rail a::after { content: ""; width: 2px; height: 24px; background: var(--ui-line); border-radius: 1px; }
  .section-rail a:hover { color: var(--ui-link); }
  .section-rail a.is-active { color: var(--ui-link); font-weight: 700; }
  .section-rail a.is-active::after { background: var(--ui-link); }
}

/* ---------- section headings ---------- */
.section { padding-block: 96px; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: var(--brand-size-h1); }

/* ---------- story blocks (reference: big numeral + zigzag image/text) ---------- */
.story { padding-block: 64px; overflow-x: clip; }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: center; }
.story-media { grid-column: 1 / span 6; position: relative; }
.story-body { grid-column: 8 / span 5; position: relative; z-index: 0; padding-top: 48px; }
.story.is-reverse .story-media { grid-column: 7 / span 6; order: 2; }
.story.is-reverse .story-body { grid-column: 1 / span 5; order: 1; }

.story-media img {
  position: relative; z-index: 1; display: block; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--brand-radius);
}
.story-media.wide img { aspect-ratio: 5 / 4; }
.blob {
  position: absolute; z-index: 0; inset: 14% -7% -7% 18%;
  background: var(--brand-gradient); opacity: .9;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
}
.is-reverse .blob { inset: 14% 18% -7% -7%; border-radius: 42% 58% 54% 46% / 56% 48% 52% 44%; }

.numeral {
  position: absolute; z-index: -1; top: -.18em; left: -.06em; margin: 0;
  font-family: var(--brand-font-heading); font-weight: 700; line-height: 1;
  font-size: clamp(96px, 12vw, 168px); color: var(--numeral); user-select: none; pointer-events: none;
}
.story-body h2 { font-size: var(--brand-size-h1); margin-bottom: 16px; }
.tagline { font-size: 20px; margin-bottom: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.story-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ui-link); font-weight: 700; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- values ---------- */
.values { background: var(--section-alt); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { padding: 32px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--brand-radius); }
.value .v-icon { width: 48px; height: 48px; color: var(--ui-link); margin-bottom: 16px; }
.value .v-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--ui-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-primary); color: var(--brand-on-primary);
  border-radius: var(--brand-radius); padding: 64px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { font-size: var(--brand-size-h1); color: var(--brand-on-primary); }
.cta-band p { margin: 0; max-width: 36em; }
.cta-band .leaf-art { position: absolute; right: -40px; bottom: -60px; width: 320px; height: 320px; z-index: -1; opacity: .35; }
.cta-band .leaf-art path { fill: none; stroke: var(--brand-secondary); stroke-width: 2; stroke-linecap: round; }
.cta-band :focus-visible { outline-color: var(--on-dark); }

/* ---------- inner page header ---------- */
.page-head { padding-block: 64px 48px; position: relative; overflow-x: clip; }
.page-head h1 { font-size: var(--brand-size-display); max-width: 18em; }
.page-head h1 span { display: block; }
.page-head .lead { font-size: 20px; max-width: 40em; margin: 0; }
.page-head .leaf-art { position: absolute; right: 0; top: 24px; width: 220px; height: 220px; opacity: .6; pointer-events: none; }
.page-head .leaf-art path { fill: none; stroke: var(--brand-secondary-600); stroke-width: 2; stroke-linecap: round; }
[data-theme="dark"] .page-head .leaf-art path { stroke: var(--ui-line); }
@media (max-width: 760px) { .page-head .leaf-art { display: none; } }

/* ---------- experiences ---------- */
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; margin-bottom: 32px; }
.toolbar fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: block; font-size: var(--brand-size-small); font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--ui-line); border-radius: var(--brand-radius-btn);
  background: var(--ui-surface); color: var(--ui-text); font: inherit; cursor: pointer;
}
.chip:hover { border-color: var(--ui-link); color: var(--ui-link); }
.chip[aria-pressed="true"] { background: var(--ui-action); border-color: var(--ui-action); color: var(--ui-on-action); font-weight: 700; }
.filters-right { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ui-muted); pointer-events: none; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0 16px; font: inherit; color: var(--ui-text);
  background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--brand-radius-btn);
}
.input::placeholder, .textarea::placeholder { color: var(--ui-muted); opacity: 1; }
.search-wrap .input { padding-left: 44px; width: 300px; max-width: 100%; }
.select { padding-right: 32px; cursor: pointer; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--ui-link); outline-offset: 1px; border-color: var(--ui-link); }

.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.results-bar h2 { font-size: var(--brand-size-h3); margin: 0; }
.result-count { color: var(--ui-muted); font-size: var(--brand-size-small); margin: 0; }

.exp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.exp-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.exp-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.exp-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.exp-body h3 { margin: 0; }
.exp-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exp-cat { font-size: var(--brand-size-small); font-weight: 700; color: var(--eyebrow); }
.badge.code { font-family: var(--brand-font-mono); font-weight: 400; }
.exp-short { margin: 0; }
.exp-meta { margin: 0; color: var(--ui-muted); font-size: var(--brand-size-small); }
.price { color: var(--ui-text); font-size: var(--brand-size-h3); font-weight: 700; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.card-actions .btn { flex: 1 1 auto; }

.empty-state {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--ui-line); border-radius: var(--brand-radius);
  background: var(--ui-surface);
}
.empty-state p { margin-bottom: 16px; }
.notes { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--ui-line); color: var(--ui-muted); font-size: var(--brand-size-small); }
.notes p { margin: 0 0 4px; }

/* dialog */
.detail-dialog {
  width: min(100% - 32px, 760px); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--brand-radius); background: var(--ui-surface); color: var(--ui-text); box-shadow: var(--brand-shadow);
}
.detail-dialog::backdrop { background: rgba(var(--scrim), .64); }
.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.dialog-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dialog-content { padding: 32px; }
.dialog-content h2 { margin-top: 12px; }
.dialog-content h3 { font-size: var(--brand-size-body); margin: 24px 0 8px; }
.detail-list { margin: 0 0 16px; padding-left: 1.2em; }
.note-box { margin: 16px 0; padding: 16px; border-radius: var(--brand-radius-btn); background: var(--ui-warning-bg); color: var(--ui-warning-text); }
.small-note { font-size: var(--brand-size-small); color: var(--ui-muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: center; }
.about-grid .about-text { grid-column: 1 / span 6; }
.about-grid .story-media { grid-column: 8 / span 5; }
.about-text p { font-size: 18px; }
.banner { margin: 0; }
.banner img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--brand-radius); }
.banner figcaption { margin-top: 8px; font-size: var(--brand-size-caption); color: var(--ui-muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 16px; max-width: 840px; }
.faq { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--brand-radius); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  min-height: 44px; padding: 24px; font-weight: 700; font-size: var(--brand-size-h3); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ui-link); }
.faq .q-num { font-family: var(--brand-font-mono); font-size: var(--brand-size-small); color: var(--eyebrow); font-weight: 400; flex: none; }
.faq .q-icon { margin-left: auto; transition: transform .2s ease; }
.faq[open] .q-icon { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 24px 64px; margin: 0; }
.faq-cta { margin-top: 64px; }

/* ---------- contact ---------- */
.map-section { margin-bottom: 48px; }
.map-frame {
  position: relative; overflow: hidden; min-height: 520px;
  border: 1px solid var(--ui-line); border-radius: var(--brand-radius);
  /* schematic shows while the live map loads (or if it is blocked) */
  background: var(--section-alt) url("../Assets/location-schematic.svg") center / cover no-repeat;
  box-shadow: var(--brand-shadow);
}
.map-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-card {
  /* bottom-left keeps Google's own place box (top-left) and zoom controls (bottom-right) visible */
  position: absolute; left: 24px; bottom: 24px; z-index: 1; width: min(380px, calc(100% - 48px));
  padding: 24px; background: var(--ui-surface); color: var(--ui-text);
  border: 1px solid var(--ui-line); border-radius: var(--brand-radius); box-shadow: var(--brand-shadow);
}
.map-card h2 { display: flex; align-items: center; gap: 12px; font-size: var(--brand-size-h2); margin-bottom: 8px; }
.map-card .small-note { margin-bottom: 16px; }
.pin {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ui-action); color: var(--ui-on-action);
}
.pin .icon { width: 22px; height: 22px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.card h2 { font-size: var(--brand-size-h2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list div { display: grid; gap: 2px; min-width: 0; }
.contact-list strong { font-size: 18px; overflow-wrap: anywhere; }
.ci-label { font-size: var(--brand-size-small); color: var(--ui-muted); }
.ci-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--brand-radius); background: var(--brand-primary-50); color: var(--ui-link);
}
[data-theme="dark"] .ci-icon { background: var(--ui-bg); }
.contact-note { margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.schematic { margin: 0; }
.schematic img { display: block; width: 100%; border-radius: var(--brand-radius-btn); }
.schematic figcaption { margin-top: 8px; font-size: var(--brand-size-caption); color: var(--ui-muted); }
.field { display: grid; gap: 8px; margin-bottom: 24px; }
.field label { font-weight: 700; }
.textarea { min-height: 160px; padding: 12px 16px; resize: vertical; line-height: 1.6; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--brand-error); }
[data-theme="dark"] .input[aria-invalid="true"], [data-theme="dark"] .textarea[aria-invalid="true"] { border-color: var(--ui-error-text); }
.field-error { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ui-error-text); font-size: var(--brand-size-small); }
.field-error[hidden] { display: none; }
.form-status { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: var(--brand-radius-btn); background: var(--ui-success-bg); color: var(--ui-success-text); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-note { margin-top: 16px; font-size: var(--brand-size-small); color: var(--ui-muted); }

/* ---------- plan ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.plan-grid h2 { font-size: var(--brand-size-h3); }
.plan-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.plan-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; }
.plan-item img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--brand-radius-btn); }
.plan-item h3 { margin: 8px 0 4px; }
.summary { position: sticky; top: 24px; }
.summary h2 { margin-bottom: 16px; }
.stepper-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ui-line); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper output { min-width: 2.5ch; text-align: center; font-size: var(--brand-size-h3); font-weight: 700; }
.sum-rows { margin: 0; }
.sum-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ui-line); }
.sum-rows dt { color: var(--ui-muted); }
.sum-rows dd { margin: 0; font-weight: 700; text-align: right; }
.sum-total { padding: 16px 0 8px; }
.sum-total .kpi-value { font-variant-numeric: tabular-nums; }
.summary .btn { width: 100%; margin-top: 12px; }
.summary .small-note { margin: 12px 0 0; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.more-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--brand-radius); }
.more-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--brand-radius-btn); }
.more-item div { display: grid; gap: 2px; }
.btn-compact { padding-inline: 14px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 24px);
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: var(--brand-ink); color: var(--brand-paper); border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
[data-theme="dark"] .toast { background: var(--brand-paper); color: var(--brand-ink); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-link { color: inherit; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.toast-link[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--footer-bg); color: var(--footer-text); padding-block: 64px 32px; }
.site-footer a { color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--brand-font-heading); font-weight: 700; font-size: var(--brand-size-h2); margin: 0 0 8px; letter-spacing: .04em; }
.footer-grid h2 { font-size: var(--brand-size-body); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom { margin-top: 48px; padding-top: 16px; border-top: 1px solid currentColor; font-size: var(--brand-size-small); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer :focus-visible { outline-color: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .story-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story-media, .story.is-reverse .story-media, .about-grid .story-media { grid-column: auto; order: 0; max-width: 560px; }
  .story-body, .story.is-reverse .story-body, .about-grid .about-text { grid-column: auto; order: 1; }
  .story-media img { aspect-ratio: 4 / 3; }
  .values-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { margin: 20px 16px 0; min-height: 0; }
  .hero::before { background: rgba(var(--scrim), .74); }
  .hero-content { padding-block: 56px 96px; }
  .hero-lead { font-size: 18px; }
  .hero h1, .page-head h1 { font-size: var(--brand-size-h1); }
  .hero-caption { left: 16px; right: 16px; bottom: 16px; text-align: center; }
  .section { padding-block: 64px; }
  .story { padding-block: 40px; }
  .story-body { padding-top: 40px; }
  .cta-band { padding: 40px 24px; }
  .page-head { padding-block: 40px 32px; }
  .search-wrap, .search-wrap .input, .filters-right > div { width: 100%; }
  .plan-item { grid-template-columns: 80px minmax(0, 1fr); }
  .plan-item img { width: 80px; height: 80px; }
  .plan-item .btn-remove { grid-column: 1 / -1; }
  .more-item { grid-template-columns: 56px minmax(0, 1fr); }
  .more-item img { width: 56px; height: 56px; }
  .more-item .btn { grid-column: 1 / -1; }
  .faq summary { padding: 20px 16px; font-size: 18px; }
  .faq .answer { padding: 0 16px 20px; }
  .dialog-content { padding: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .map-frame { min-height: 0; display: flex; flex-direction: column; }
  .map-embed { position: relative; height: 340px; flex: none; }
  .map-card { position: static; width: auto; border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; box-shadow: none; }
}
