/* tamanwahyu.com — “The lakeside guide, in an advisor's hand.”
   One stylesheet. Tokens first, then base, layout, components, pages.
   Readability rules: body never below 16px, measure ≤ 68ch, contrast ≥ 7:1 for body text. */

/* ───────────── Fonts (SIL OFL 1.1 — see /fonts/*.txt) ───────────── */
@font-face {
  font-family: "Wahyu Sans";
  src: url("/fonts/wahyu-sans-var.8eff481078.woff2") format("woff2");
  font-weight: 380 720;
  font-stretch: 95% 125%;
  font-display: swap;
}
/* The same file, limited to letters and digits, for Chinese pages: CJK punctuation
   (——, “”, …, ·) then comes from the reader's Chinese system font. */
@font-face {
  font-family: "Wahyu Sans Latin";
  src: url("/fonts/wahyu-sans-var.8eff481078.woff2") format("woff2");
  font-weight: 380 720;
  font-stretch: 95% 125%;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00B6, U+00B8-00FF, U+0100-017F, U+2212;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.c8dd7a0b9b.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ───────────── Tokens ───────────── */
:root {
  --paper: #f3eee6;
  --paper-2: #e9e2d6;
  --card: #faf7f2;
  --white: #fffdfa;
  --ink: #141b20;
  --ink-2: #2d363c;
  --ink-3: #56616a;
  --lake: #22404d;
  --lake-2: #3a5a69;
  --mist: #d5dede;
  --dusk: #b45f37;
  --dusk-ink: #8a4220;
  --night: #0e161c;
  --night-2: #16222a;
  --on-dark: #f2ede4;
  --on-dark-2: rgba(242, 237, 228, 0.78);
  --line: rgba(20, 27, 32, 0.13);
  --line-2: rgba(20, 27, 32, 0.26);
  --line-dark: rgba(242, 237, 228, 0.18);
  --wa: #1d9e52;

  --sans: "Wahyu Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --hand: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  --t-hero: clamp(2.45rem, 1.35rem + 3.6vw, 4.6rem);
  --t-h1: clamp(2.2rem, 1.3rem + 2.9vw, 3.9rem);
  --t-h2: clamp(1.85rem, 1.2rem + 2vw, 3.05rem);
  --t-h3: clamp(1.28rem, 1.1rem + 0.6vw, 1.62rem);
  --t-lead: clamp(1.12rem, 1.02rem + 0.38vw, 1.34rem);
  --t-body: clamp(1.03rem, 0.99rem + 0.16vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-cap: 0.8125rem;
  --t-label: 0.78rem;

  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --max: 1320px;
  --measure: 66ch;
  --section: clamp(4.5rem, 3rem + 6vw, 9.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(20, 27, 32, 0.06), 0 12px 40px -12px rgba(20, 27, 32, 0.22);
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  font-stretch: 100%;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(zh) body, body:lang(zh) { font-family: "Wahyu Sans Latin", var(--cjk); }
img, svg, video { display: block; max-width: 100%; height: auto; }
picture.pic { display: block; background: var(--ph, var(--paper-2)); }
picture.pic img { width: 100%; height: 100%; object-fit: cover; }
.place picture.pic, .advisor__img picture.pic, .story__imgs picture.pic, .result picture.pic { position: relative; }
.place picture.pic img, .advisor__img picture.pic img, .story__imgs picture.pic img, .result picture.pic img { position: absolute; inset: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 520; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(180, 95, 55, 0.22); }
:focus-visible { outline: 2px solid var(--dusk); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── Type ───────────── */
.display, .h1, .h2, .h3 { font-family: var(--sans); color: var(--ink); }
.display { font-size: var(--t-hero); line-height: 1.02; font-weight: 520; font-stretch: 114%; letter-spacing: -0.024em; }
.h1 { font-size: var(--t-h1); line-height: 1.04; font-weight: 520; font-stretch: 112%; letter-spacing: -0.022em; }
.h2 { font-size: var(--t-h2); line-height: 1.07; font-weight: 510; font-stretch: 110%; letter-spacing: -0.018em; }
.h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 560; font-stretch: 104%; letter-spacing: -0.008em; }
.display em, .h1 em, .h2 em, .h3 em, .hand {
  font-family: var(--hand); font-style: italic; font-weight: 400; font-stretch: 100%;
  letter-spacing: -0.005em; color: var(--lake);
}
.display em, .h1 em, .h2 em { font-size: 1.07em; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.label {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-size: var(--t-label); line-height: 1.3; font-weight: 600; font-stretch: 114%;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dusk-ink);
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.label--plain::before { display: none; }
.small { font-size: var(--t-small); line-height: 1.55; }
.cap { font-size: var(--t-cap); line-height: 1.45; color: var(--ink-3); overflow-wrap: break-word; }
figcaption, .hero__cap, .place p, .service p, .quote q { overflow-wrap: break-word; }
.cap a { color: inherit; }
.muted { color: var(--ink-3); }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.15em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose a, .link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line-2); transition: color 0.2s, text-decoration-color 0.2s; }
.prose a:hover, .link:hover { color: var(--dusk-ink); text-decoration-color: currentColor; }
.num { font-variant-numeric: lining-nums; }

/* Chinese: no italics, roomier leading, no width stretch, gentler tracking */
:lang(zh) .display, :lang(zh) .h1, :lang(zh) .h2, :lang(zh) .h3 { font-family: "Wahyu Sans Latin", var(--cjk); font-stretch: 100%; letter-spacing: 0.01em; font-weight: 600; line-height: 1.22; }
:lang(zh) .display em, :lang(zh) .h1 em, :lang(zh) .h2 em, :lang(zh) .hand, :lang(zh) .h3 em { font-family: var(--cjk); font-style: normal; font-weight: 600; font-size: 1em; color: var(--lake); }
:lang(zh) body { line-height: 1.85; letter-spacing: 0.02em; }
:lang(zh) .lead { line-height: 1.8; }
:lang(zh) .label { letter-spacing: 0.08em; font-stretch: 100%; }
:lang(zh) .prose { max-width: 38em; }
:lang(zh) p, :lang(zh) li, :lang(zh) dd { line-break: strict; word-break: normal; overflow-wrap: anywhere; text-align: start; }
:lang(zh) .quote q, :lang(zh) .note__text { font-family: var(--hand), var(--cjk); }
:lang(ms) .display { font-size: clamp(2.3rem, 1.3rem + 3.3vw, 4.25rem); }

/* ───────────── Layout ───────────── */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(900px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.62) 0; }
.section--sand { background: var(--paper-2); }
.section--card { background: var(--card); }
.section--night { background: var(--night); color: var(--on-dark-2); }
.section--night .h1, .section--night .h2, .section--night .h3, .section--night h2, .section--night h3 { color: var(--on-dark); }
.section--night .label { color: #d9956f; }
.section--night .display em, .section--night .h2 em, .section--night .hand { color: #9fc0cc; }
.section--night .cap { color: rgba(242, 237, 228, 0.66); }
.section--night .lead, .section--night p { color: var(--on-dark-2); }
.head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); max-width: 52rem; }
.head--split { max-width: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; column-gap: clamp(2rem, 5vw, 6rem); }
.head--split .lead { margin: 0; }
@media (max-width: 900px) { .head--split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.split > *, .getting > *, .decide > *, .advisor > *, .mapwrap > *, .faq > *, .intro > *, .story > *, .head--split > *, .plan > *, .homes > *, .places > * { min-width: 0; }

/* ───────────── Buttons & links ───────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.7em 1.45em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 1rem; line-height: 1.2; font-weight: 580; font-stretch: 106%; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; text-align: center; text-wrap: balance; max-width: 100%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { --bg: var(--lake); --bd: var(--lake); }
.btn:active { transform: translateY(1px); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--line:hover { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: var(--white); --bd: var(--white); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--on-dark); --bd: rgba(242, 237, 228, 0.5); }
.btn--ghost:hover { --bg: rgba(242, 237, 228, 0.08); --bd: var(--on-dark); --fg: var(--on-dark); }
.btn--sm { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.9375rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .wa-dot { width: 1.25em; height: 1.25em; color: var(--wa); }
.btn--line .wa-dot, .btn--light .wa-dot { color: var(--wa); }
.btn:not(.btn--line):not(.btn--light) .wa-dot { color: #7ee2a3; }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.more {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 580; font-stretch: 106%;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s, gap 0.25s var(--ease);
}
.more:hover { border-color: var(--ink); gap: 0.8em; }
.more svg { width: 1em; height: 1em; }
.section--night .more { color: var(--on-dark); border-color: var(--line-dark); }
.section--night .more:hover { border-color: var(--on-dark); }

/* ───────────── Header ───────────── */
.site-head {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(243, 238, 230, 0.97); border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
/* Blur only where no fixed menu panel lives inside the header (a backdrop-filter
   would become the containing block of the panel and trap it in the header). */
@media (min-width: 1081px) {
  .site-head { background: rgba(243, 238, 230, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
html.menu-open .site-head { background: var(--paper) !important; border-color: var(--line) !important; color: var(--ink) !important; }
html.menu-open .site-head .brand, html.menu-open .site-head .menu__btn { color: var(--ink) !important; border-color: var(--line-2) !important; }
.site-head__in { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand__name { font-size: 1.06rem; font-weight: 600; font-stretch: 120%; letter-spacing: 0.005em; line-height: 1; }
.brand__sub { display: block; font-size: 0.7rem; font-weight: 520; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(1rem, 1.8vw, 1.9rem); }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 520; font-stretch: 104%; color: var(--ink-2); padding: 0.4rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--dusk); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.langs { display: flex; gap: 0.1rem; align-items: center; font-size: 0.82rem; font-weight: 560; }
.langs a, .langs span { padding: 0.35rem 0.45rem; border-radius: 6px; text-decoration: none; color: var(--ink-3); line-height: 1; }
.langs [aria-current] { color: var(--ink); background: rgba(20, 27, 32, 0.07); }
.langs a:hover { color: var(--ink); }
.head-cta { display: inline-flex; align-items: center; gap: 0.55rem; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 0.9rem; font-weight: 580; font-stretch: 106%; transition: background 0.25s; }
.head-cta:hover { background: var(--lake); }
.head-cta .ava { width: 32px; height: 32px; }
.ava { display: block; border-radius: 50%; overflow: hidden; flex: none; background: #8b8f8f; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.menu { display: none; }

/* transparent header over a full-bleed hero (only once JS has confirmed it can switch back) */
.js .site-head--over:not(.is-solid) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.js .site-head--over:not(.is-solid) .brand, .js .site-head--over:not(.is-solid) .nav a, .js .site-head--over:not(.is-solid) .langs a { color: rgba(255, 255, 255, 0.92); }
.js .site-head--over:not(.is-solid) .brand__sub { color: rgba(255, 255, 255, 0.72); }
.js .site-head--over:not(.is-solid) .langs [aria-current] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.js .site-head--over:not(.is-solid) .head-cta { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); }
.js .site-head--over:not(.is-solid) .menu__btn { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.js body.has-over { --over: 1; }
.js body.has-over .site-head { position: fixed; left: 0; right: 0; }

@media (max-width: 1080px) {
  .nav, .site-head__in > .langs { display: none; }
  .head-cta { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 1080px) and (min-width: 521px) { .menu { margin-left: 0.25rem; } }
@media (max-width: 520px) {
  .head-cta { display: none; }
  .menu { margin-left: auto; }
  .brand__sub { display: none; }
}

/* Mobile menu: a native disclosure — opens without script, cannot get stuck */
.menu__btn {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 42px; padding: 0 0.95rem; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.92rem; font-weight: 580; font-stretch: 106%; color: var(--ink); user-select: none;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn svg { width: 18px; height: 18px; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu__panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) calc(6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ink);
}
.menu__panel nav ul { list-style: none; }
.menu__panel nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.45rem; font-weight: 520; font-stretch: 110%; letter-spacing: -0.01em; color: var(--ink); }
:lang(zh) .menu__panel nav a { font-stretch: 100%; font-size: 1.3rem; }
.menu__panel nav a small { font-size: 0.8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; font-stretch: 100%; }
.menu__panel nav a[aria-current="page"] { color: var(--dusk-ink); }
.menu__foot { margin-top: 1.75rem; display: grid; gap: 1rem; }
.menu__foot .langs { font-size: 1rem; }
.menu__foot .langs a, .menu__foot .langs span { padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; }
.menu__foot .btns .btn { flex: 1 1 auto; }
html.menu-open { overflow: hidden; }

/* ───────────── Hero: the image, and the guide laid over it ───────────── */
.hero { position: relative; background: var(--paper); }
.hero__media { position: relative; height: clamp(560px, 88svh, 1000px); overflow: hidden; background: var(--night); }
.hero__media picture.pic, .hero__media picture.pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; background: linear-gradient(180deg, rgba(8, 13, 18, 0.62), rgba(8, 13, 18, 0)); pointer-events: none; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; background: linear-gradient(0deg, rgba(8, 13, 18, 0.38), rgba(8, 13, 18, 0)); pointer-events: none; }
.hero--short .hero__media { height: clamp(460px, 70svh, 780px); }
.hero__cap { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; margin: 0; max-width: 52ch; text-align: right; font-size: 0.75rem; line-height: 1.4; color: rgba(255, 255, 255, 0.86); letter-spacing: 0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.hero__cap a { color: inherit; }
.hero__panel {
  position: relative; z-index: 3; margin-top: calc(-1 * clamp(150px, 21vh, 250px));
  width: min(760px, 100%); background: var(--paper);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1.5rem, 0.8rem + 3vw, 3.5rem) 0;
}
.hero__panel .label { margin-bottom: 1.25rem; }
.hero__panel .display, .hero__panel .h1 { margin-bottom: 1.3rem; }
.hero__panel .lead { margin-bottom: 1.9rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.6rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.9rem; color: var(--ink-3); }
.hero__facts li { display: flex; gap: 0.45rem; align-items: baseline; }
.hero__facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .hero__media { height: clamp(430px, 66svh, 640px); }
  .hero--short .hero__media { height: clamp(360px, 52svh, 520px); }
  .hero__panel { margin-top: -64px; padding: 1.6rem 1.25rem 0; width: calc(100% - 2 * max(0px, var(--gutter) - 1.25rem)); }
  .hero__cap { left: var(--gutter); right: var(--gutter); bottom: 76px; text-align: left; max-width: none; }
  .hero__panel .btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media picture.pic img { animation: settle 2.4s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.045); } to { transform: scale(1); } }
}

/* Page head for inner pages without a full-bleed image */
.page-head { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-head .label { margin-bottom: 1.2rem; }
.page-head .h1 { margin-bottom: 1.2rem; max-width: 18ch; }
:lang(zh) .page-head .h1 { max-width: 20em; }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ───────────── Intro (the guide's voice + the advisor's note) ───────────── */
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro__text { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.9rem); line-height: 1.45; color: var(--ink); font-weight: 430; font-stretch: 102%; letter-spacing: -0.008em; max-width: 34em; }
:lang(zh) .intro__text { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.75; letter-spacing: 0.02em; }
.intro__text strong { font-weight: 600; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.note { position: relative; padding: 1.5rem 0 0; border-top: 1px solid var(--line-2); }
.note__text { font-family: var(--hand); font-style: italic; font-size: clamp(1.28rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.38; color: var(--lake); margin: 0 0 1.1rem; }
:lang(zh) .note__text { font-style: normal; font-size: 1.15rem; line-height: 1.8; }
.note__by { display: flex; align-items: center; gap: 0.75rem; font-size: 0.86rem; color: var(--ink-3); line-height: 1.35; }
.note__by .ava { width: 40px; height: 40px; }
.note__by b { display: block; color: var(--ink); font-weight: 600; }
.section--night .note { border-color: var(--line-dark); }
.section--night .note__text { color: #b9d2da; }
.section--night .note__by, .section--night .note__by b { color: var(--on-dark-2); }

/* ───────────── Map ───────────── */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
@media (max-width: 1000px) { .mapwrap { grid-template-columns: 1fr; } }
.map { position: relative; background: #eee8dd; overflow: hidden; border: 1px solid var(--line); }
.map__v { position: relative; }
.map__v--tall { display: none; }
@media (max-width: 700px) { .map__v--wide { display: none; } .map__v--tall { display: block; } }
.map__v picture.pic img { object-fit: fill; }
.map svg.map__ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__rail { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; }
.map__rail-dash { fill: none; stroke: #f5f1ea; stroke-width: 1.5; stroke-dasharray: 7 7; }
.map__mrt { fill: none; stroke: #7c8a92; stroke-width: 3; stroke-linecap: round; opacity: 0.8; }
.map__site { fill: rgba(34, 64, 77, 0.2); stroke: var(--lake); stroke-width: 1.6; transition: fill 0.35s var(--ease), stroke 0.35s var(--ease); }
.map__site[data-on="1"], .map__site.is-on { fill: rgba(180, 95, 55, 0.34); stroke: var(--dusk); stroke-width: 2.2; }
.map__route { fill: none; stroke: var(--dusk); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 7; opacity: 0; transition: opacity 0.35s var(--ease); }
.map__route.is-on { opacity: 1; }
.map__route--park { stroke: var(--lake-2); }
.map__stn circle.o { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.map__stn circle.i { fill: var(--ink); }
.map__stn--here circle.o { stroke: var(--dusk); stroke-width: 3.6; }
.map__stn--here circle.i { fill: var(--dusk); }
.map__lbl { position: absolute; transform: translate(-50%, -50%); font-size: 0.78rem; line-height: 1.2; font-weight: 600; font-stretch: 108%; color: var(--ink); white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #eee8dd, 0 0 6px #eee8dd, 0 0 10px #eee8dd; }
.map__lbl--l { transform: translate(0, -50%); }
.map__lbl--r { transform: translate(-100%, -50%); }
.map__lbl--water { color: #3a6070; font-weight: 520; font-style: normal; letter-spacing: 0.02em; }
.map__lbl--park { color: #4d6147; font-weight: 520; }
.map__lbl--stn { background: var(--ink); color: #fff; text-shadow: none; padding: 5px 9px; border-radius: 999px; font-size: 0.74rem; }
.map__lbl--here { background: var(--dusk); }
.map__lbl--res { background: var(--white); color: var(--ink); text-shadow: none; padding: 5px 9px; border-radius: 4px; box-shadow: var(--shadow); font-size: 0.76rem; }
.map__lbl--mrt { background: #4f5b63; color: #fff; text-shadow: none; padding: 4px 8px; border-radius: 999px; font-size: 0.7rem; }
.map__attr { position: absolute; left: 8px; bottom: 6px; font-size: 0.68rem; color: var(--ink-3); background: rgba(238, 232, 221, 0.85); padding: 2px 6px; border-radius: 3px; }
.map__attr a { color: inherit; }
.map__keys { display: grid; gap: 0.6rem; margin: 0 0 1.4rem; }
.map__key {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.25rem 0.9rem; align-items: center; text-align: left;
  width: 100%; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.map__key:hover { border-color: var(--line-2); }
.map__key[aria-pressed="true"] { border-color: var(--dusk); background: var(--white); box-shadow: var(--shadow); }
.map__key .dot { width: 12px; height: 12px; border-radius: 3px; background: rgba(34, 64, 77, 0.3); border: 1.5px solid var(--lake); }
.map__key[aria-pressed="true"] .dot { background: rgba(180, 95, 55, 0.45); border-color: var(--dusk); }
.map__key b { font-weight: 600; color: var(--ink); font-size: 1rem; }
.map__key .walk { font-size: 0.9rem; color: var(--ink-2); text-align: right; }
.map__key > * { min-width: 0; }
.map__key .walk strong { font-weight: 640; color: var(--ink); }
.map__key small { grid-column: 2 / -1; font-size: 0.84rem; color: var(--ink-3); line-height: 1.4; }
.map__note { font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }

/* ───────────── Place cards (real photographs) ───────────── */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
@media (max-width: 900px) { .places { grid-template-columns: 1fr; } }
.place { display: grid; gap: 1rem; align-content: start; }
.place picture.pic { aspect-ratio: 4 / 3; overflow: hidden; }
.place h3 { font-size: 1.2rem; font-weight: 580; font-stretch: 104%; line-height: 1.25; }
.place p { font-size: 0.98rem; line-height: 1.6; margin: 0; color: var(--ink-2); }
.place .cap { margin-top: -0.4rem; }
.place__stat { font-size: 0.86rem; color: var(--dusk-ink); font-weight: 600; letter-spacing: 0.02em; }

/* ───────────── Residence cards ───────────── */
.homes { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.home-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s; }
.home-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.home-card--lead { grid-row: span 2; }
.home-card__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.home-card__img picture.pic, .home-card__img .site-drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-card--lead { grid-template-rows: 1fr auto; }
.home-card--lead .home-card__img { aspect-ratio: auto; min-height: 420px; }
.home-card__img picture.pic img { transition: transform 1.2s var(--ease); }
.home-card:hover .home-card__img picture.pic img { transform: scale(1.03); }
.home-card__img .tag { position: absolute; left: 14px; top: 14px; z-index: 2; }
.home-card__img .cap { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; color: rgba(255, 255, 255, 0.92); font-size: 0.72rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.home-card__body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: 0.85rem; align-content: start; }
.home-card__body .h3 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.85rem); font-stretch: 110%; font-weight: 540; letter-spacing: -0.012em; }
.home-card--lead .home-card__body .h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.home-card__by { font-size: 0.88rem; color: var(--ink-3); margin-top: -0.4rem; }
.home-card__body p { margin: 0; color: var(--ink-2); }
.home-card__facts { list-style: none; display: grid; gap: 0.45rem; margin: 0.2rem 0 0.4rem; padding: 0.9rem 0 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.home-card__facts li { display: flex; justify-content: space-between; gap: 1rem; }
.home-card__facts span { color: var(--ink-3); }
.home-card__facts b { color: var(--ink); font-weight: 580; text-align: right; }
.home-card .more { justify-self: start; margin-top: 0.3rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.38em 0.8em; border-radius: 999px; font-size: 0.72rem; font-weight: 640; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; background: var(--paper); color: var(--ink); }
.tag--new { background: var(--dusk); color: #fff; }
.tag--done { background: var(--white); color: var(--lake); }
:lang(zh) .tag { letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .homes { grid-template-columns: 1fr; }
  .home-card--lead { grid-row: auto; }
  .home-card--lead { grid-template-rows: auto 1fr; }
  .home-card--lead .home-card__img { aspect-ratio: 4 / 3; min-height: 0; }
}
.homes--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .homes--two { grid-template-columns: 1fr; } }
.site-drawing { position: relative; width: 100%; height: 100%; background: #eee8dd; }
.site-drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───────────── Feature band (dark, cinematic) ───────────── */
.feature { position: relative; background: var(--night); color: var(--on-dark-2); overflow: hidden; }
.feature__media { position: relative; height: clamp(520px, 86svh, 900px); }
.feature__media picture.pic, .feature__media picture.pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 21, 0.9) 0%, rgba(10, 16, 21, 0.62) 38%, rgba(10, 16, 21, 0) 70%), linear-gradient(0deg, rgba(10, 16, 21, 0.6), rgba(10, 16, 21, 0) 40%); }
.feature__in { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.feature__copy { max-width: 36rem; }
.feature__copy .label { color: #e0a17c; margin-bottom: 1.3rem; }
.feature__copy .h1 { color: var(--on-dark); margin-bottom: 1.3rem; }
.feature__copy .h1 em { color: #a9c8d3; }
.feature__copy p { color: var(--on-dark-2); font-size: var(--t-lead); line-height: 1.55; }
.feature__specs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1.8rem 0 2.2rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line-dark); }
.feature__specs li { display: grid; gap: 0.2rem; }
.feature__specs span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 237, 228, 0.62); font-weight: 560; font-stretch: 110%; }
:lang(zh) .feature__specs span { letter-spacing: 0.04em; }
.feature__specs b { font-size: 1.06rem; font-weight: 560; color: var(--on-dark); }
.feature .hero__cap { bottom: 16px; }
@media (max-width: 860px) {
  .feature__media { height: auto; }
  .feature__media picture.pic { position: relative; aspect-ratio: 4 / 5; height: auto; }
  .feature__media picture.pic img { position: absolute; }
  .feature__media::after { background: linear-gradient(0deg, rgba(10, 16, 21, 1) 0%, rgba(10, 16, 21, 0.3) 30%, rgba(10, 16, 21, 0) 55%); }
  .feature__in { position: relative; inset: auto; display: block; padding: 0 0 var(--section); margin-top: -2px; background: var(--night); }
  .feature__copy { max-width: none; padding-top: 2rem; }
  .feature .hero__cap { top: 14px; bottom: auto; }
}

/* ───────────── Rail line ───────────── */
.line { list-style: none; position: relative; display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); margin: 0 0 1rem; padding: 0; }
.line::before { content: ""; position: absolute; left: calc(50% / var(--n, 10)); right: calc(50% / var(--n, 10)); top: 11px; height: 3px; background: var(--ink); border-radius: 2px; }
.line li { position: relative; display: grid; justify-items: center; text-align: center; gap: 0.6rem; padding-top: 0; }
.line .stop { width: 25px; height: 25px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); position: relative; z-index: 1; }
.line .here .stop { background: var(--dusk); border-color: var(--dusk); box-shadow: 0 0 0 6px rgba(180, 95, 55, 0.2); }
.line .xchg .stop { background: var(--white); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px #6f7c84; }
.line .nm { font-size: 0.88rem; font-weight: 580; line-height: 1.25; color: var(--ink); max-width: 9em; }
.line .here .nm { color: var(--dusk-ink); font-size: 0.95rem; }
.line .cd { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.06em; }
.line .x { font-size: 0.7rem; color: #fff; background: #4f5b63; border-radius: 999px; padding: 2px 7px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.line .n { font-size: 0.72rem; color: var(--dusk-ink); font-weight: 640; }
.line .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.45rem; align-items: center; }
@media (max-width: 860px) {
  .line { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .line::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .line li { grid-template-columns: 25px 1fr auto; justify-items: start; align-items: center; text-align: left; gap: 0 1rem; padding: 0.55rem 0; }
  .line .nm { max-width: none; }
  .line .meta { display: flex; gap: 0.5rem; align-items: center; }
}
.getting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); margin-top: clamp(2.5rem, 4vw, 4rem); }
@media (max-width: 900px) { .getting { grid-template-columns: 1fr; } }
.roads { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.roads li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.roads span { color: var(--ink-2); }
.roads b { color: var(--ink); font-weight: 600; text-align: right; }
.roads li > span { flex: 1 1 auto; min-width: 0; }
.roads li > b { flex: 0 1 auto; max-width: 62%; }
.figure { margin: 0; display: grid; gap: 0.7rem; }
.figure picture.pic { overflow: hidden; }

/* ───────────── Decision helper ───────────── */
.decide { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
@media (max-width: 960px) { .decide { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 1rem; padding: 0; border: 0; }
.chips legend { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 0.9rem; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.55rem 1.05rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 0.95rem; font-weight: 540; color: var(--ink-2); transition: all 0.2s var(--ease); cursor: pointer; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); transition: all 0.2s; flex: none; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { border-color: var(--paper); background: var(--dusk); box-shadow: inset 0 0 0 3px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--dusk); outline-offset: 3px; }
.results { list-style: none; display: grid; gap: 0.75rem; counter-reset: r; }
.result { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: start; padding: 1rem; background: var(--card); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.result picture.pic, .result .site-drawing { width: 76px; height: 76px; overflow: hidden; }
.result h3 { font-size: 1.08rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.result h3 a { text-decoration: none; }
.result h3 a:hover { text-decoration: underline; }
.result .score { font-size: 0.78rem; font-weight: 640; color: var(--dusk-ink); letter-spacing: 0.04em; white-space: nowrap; }
.result ul { list-style: none; margin: 0.35rem 0 0; display: grid; gap: 0.2rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.result li::before { content: "·"; margin-right: 0.45em; color: var(--ink-3); }
.result li.yes::before { content: "✓"; color: var(--dusk); font-weight: 700; }
.result li.ask::before { content: "?"; color: var(--ink-3); font-weight: 700; }
.result li.part::before { content: "–"; color: var(--dusk); font-weight: 700; }
.result li.no { color: var(--ink-3); }
.result li.no::before { content: "×"; color: var(--ink-3); }
.result.is-top { border-color: var(--dusk); box-shadow: var(--shadow); }
.results[data-state="idle"] .score { visibility: hidden; }
.decide__cta { margin-top: 1.4rem; display: grid; gap: 0.7rem; justify-items: start; }

/* ───────────── Kevin ───────────── */
.advisor { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
@media (max-width: 960px) { .advisor { grid-template-columns: 1fr; } }
.advisor__img { position: relative; }
.advisor__img picture.pic { aspect-ratio: 3 / 2.2; overflow: hidden; }
.advisor__img picture.pic img { object-position: 60% 30%; }
.advisor__id { display: grid; gap: 0.3rem; margin: 1.1rem 0 1.4rem; font-size: 0.95rem; color: var(--ink-2); }
.advisor__id b { color: var(--ink); font-weight: 600; }
.advisor .h1 { margin: 1rem 0 0.4rem; }
.langs-spoken { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0 0 1.6rem; }
.langs-spoken li { padding: 0.35em 0.8em; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.86rem; color: var(--ink-2); }
.section--night .langs-spoken li { border-color: var(--line-dark); color: var(--on-dark-2); }
.section--night .advisor__id, .section--night .advisor__id b { color: var(--on-dark-2); }
.section--night .advisor__id b { color: var(--on-dark); }

/* Testimonials: verbatim, text only */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.9rem; margin-top: 1rem; scrollbar-width: thin; }
.quote { scroll-snap-align: start; display: grid; gap: 1.2rem; align-content: space-between; padding: 1.6rem; background: var(--card); border: 1px solid var(--line); margin: 0; }
.quote q { font-family: var(--hand); font-style: italic; font-size: 1.24rem; line-height: 1.42; color: var(--ink); quotes: "“" "”"; }
.quote figcaption { font-size: 0.86rem; color: var(--ink-3); line-height: 1.4; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.section--night .quote { background: var(--night-2); border-color: var(--line-dark); }
.section--night .quote q { color: var(--on-dark); }
.section--night .quote figcaption { color: rgba(242, 237, 228, 0.66); }
.section--night .quote figcaption b { color: var(--on-dark); }
@media (min-width: 1100px) { .quotes--grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* ───────────── FAQ ───────────── */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.qa { border-top: 1px solid var(--line-2); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding: 1.25rem 0; font-size: 1.1rem; font-weight: 560; font-stretch: 102%; color: var(--ink); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 0.4em; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform 0.3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 0 1.4rem; max-width: 62ch; color: var(--ink-2); }
.qa .a p:last-child { margin-bottom: 0; }

/* ───────────── Closing call to action ───────────── */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(420px, 60svh, 640px); background: var(--night); color: var(--on-dark-2); }
.closing__copy { padding: var(--section) var(--gutter); display: grid; align-content: center; gap: 1.3rem; max-width: 40rem; justify-self: end; width: 100%; }
.closing__copy .h1 { color: var(--on-dark); }
.closing__copy .h1 em { color: #a9c8d3; }
.closing__copy .label { color: #e0a17c; }
.closing__media { position: relative; min-height: 320px; }
.closing__media picture.pic, .closing__media picture.pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__media .hero__cap { bottom: 12px; }
.closing .contact-lines { display: grid; gap: 0.4rem; font-size: 0.95rem; }
.closing .contact-lines a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.closing .contact-lines a:hover { border-color: var(--on-dark); }
@media (max-width: 860px) {
  .closing { grid-template-columns: 1fr; }
  .closing__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .closing__copy { justify-self: stretch; }
}

/* ───────────── Footer ───────────── */
.site-foot { background: var(--night); color: rgba(242, 237, 228, 0.74); border-top: 1px solid var(--line-dark); padding: clamp(3.5rem, 6vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.site-foot a { color: rgba(242, 237, 228, 0.86); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: var(--on-dark); }
.foot-brand .brand__sub { color: rgba(242, 237, 228, 0.6); }
.foot-brand p { margin: 1.2rem 0 0; max-width: 38ch; line-height: 1.6; }
.site-foot h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 237, 228, 0.56); font-weight: 600; font-stretch: 112%; margin-bottom: 1rem; }
:lang(zh) .site-foot h2 { letter-spacing: 0.06em; }
.site-foot ul { list-style: none; display: grid; gap: 0.6rem; }
.foot-legal { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; font-size: 0.86rem; color: rgba(242, 237, 228, 0.62); }
.foot-legal p { margin: 0; max-width: 72ch; }
.foot-legal p a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgba(242, 237, 228, 0.4); }
.foot-legal .langs a, .foot-legal .langs span { color: rgba(242, 237, 228, 0.7); }
.foot-legal .langs [aria-current] { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ───────────── WhatsApp dock (persistent, context-aware) ───────────── */
.dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 12px; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.dock.is-hidden, .dock.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.dock__pill {
  display: inline-flex; align-items: center; gap: 0.65rem; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px -10px rgba(14, 22, 28, 0.55), 0 2px 6px rgba(14, 22, 28, 0.18);
  text-decoration: none; font-size: 0.95rem; font-weight: 580; font-stretch: 106%; cursor: pointer; line-height: 1.15;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.dock__pill:hover { background: var(--lake); }
.dock__pill .ava { width: 42px; height: 42px; position: relative; }
.dock__pill .wa-badge { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; border: 2px solid var(--ink); }
.dock__pill .wa-badge svg { width: 10px; height: 10px; color: #fff; }
.dock__pill small { display: block; font-size: 0.74rem; font-weight: 500; opacity: 0.72; letter-spacing: 0.01em; }
@media (max-width: 520px) {
  .dock__pill { padding: 5px 14px 5px 5px; font-size: 0.9rem; }
  .dock__pill .ava { width: 40px; height: 40px; }
  .dock__pill small { display: none; }
}
.dock__panel {
  width: min(360px, calc(100vw - 32px)); background: var(--white); color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 24px 70px -20px rgba(14, 22, 28, 0.45); border-radius: 18px; overflow: hidden;
  transform-origin: bottom right; animation: pop 0.28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.dock__panel[hidden] { display: none; }
.dock__who { display: flex; gap: 0.85rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--night); color: var(--on-dark-2); }
.dock__who .ava { width: 52px; height: 52px; }
.dock__who b { display: block; color: var(--on-dark); font-size: 1.05rem; font-weight: 600; }
.dock__who span { font-size: 0.82rem; line-height: 1.4; display: block; }
.dock__close { margin-left: auto; align-self: flex-start; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 0; color: var(--on-dark); cursor: pointer; }
.dock__close svg { width: 16px; height: 16px; }
.dock__list { list-style: none; padding: 0.6rem; display: grid; gap: 0.25rem; }
.dock__list a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.8rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 540; line-height: 1.3; transition: background 0.2s; }
.dock__list a:hover, .dock__list a:focus-visible { background: var(--paper); }
.dock__list a svg { width: 20px; height: 20px; flex: none; color: var(--wa); }
.dock__list a .ic-tel { color: var(--lake); }
.dock__fine { padding: 0 1.2rem 1rem; font-size: 0.76rem; color: var(--ink-3); line-height: 1.45; margin: 0; }
body.menu-open .dock { opacity: 0; pointer-events: none; }

/* ───────────── Han-Ya: at a glance, story, plans, gallery, deck ───────────── */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.glance > div { padding: 1.3rem 1.2rem 1.3rem 0; display: grid; gap: 0.3rem; align-content: start; }
.glance > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.glance > div:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.glance > div:nth-child(n + 5) { border-top: 1px solid var(--line); }
.glance dt { font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; font-stretch: 112%; }
:lang(zh) .glance dt { letter-spacing: 0.04em; }
.glance dd { margin: 0; font-size: 1.08rem; color: var(--ink); font-weight: 560; line-height: 1.35; }
.glance dd small { display: block; font-size: 0.84rem; color: var(--ink-3); font-weight: 450; margin-top: 0.2rem; }
@media (max-width: 900px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(n) { padding-left: 1.2rem; border-left: 1px solid var(--line); border-top: 0; }
  .glance > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .glance > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; }
.story__imgs { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; align-items: end; }
.story__imgs a { display: block; position: relative; overflow: hidden; background: var(--paper-2); }
.story__imgs picture.pic { position: absolute !important; inset: 0; height: 100%; }
.story__imgs .a { aspect-ratio: 4 / 5; }
.story__imgs .b { aspect-ratio: 1 / 1; margin-bottom: 18%; }
.kanji { display: flex; gap: 1.5rem; margin: 1.6rem 0; }
.kanji div { display: grid; gap: 0.2rem; }
.kanji b { font-family: var(--cjk); font-size: 2.2rem; font-weight: 500; color: var(--lake); line-height: 1; }
.kanji span { font-size: 0.86rem; color: var(--ink-3); line-height: 1.4; max-width: 18ch; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

.plans { display: grid; gap: 1.5rem; }
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; display: grid; gap: 0.15rem; justify-items: start; text-align: left; min-width: 150px; padding: 0.9rem 1.1rem; border: 1px solid var(--line-2); background: transparent; cursor: pointer; border-radius: 0; transition: all 0.25s var(--ease); }
.tab b { font-size: 1.1rem; font-weight: 620; font-stretch: 110%; color: var(--ink); }
.tab span { font-size: 0.86rem; color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] b { color: var(--paper); }
.tab[aria-selected="true"] span { color: rgba(243, 238, 230, 0.75); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.plan[hidden] { display: none; }
.plan__img { background: #fff; border: 1px solid var(--line); padding: clamp(0.75rem, 2vw, 2rem); display: block; cursor: zoom-in; position: relative; }
.plan__img picture.pic { background: #fff; }
.plan__img picture.pic img { object-fit: contain; max-height: 640px; margin: 0 auto; }
.plan__img .zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 580; background: var(--ink); color: var(--paper); padding: 0.45rem 0.8rem; border-radius: 999px; }
.plan__img .zoom svg { width: 14px; height: 14px; }
.plan__info { display: grid; gap: 1rem; align-content: start; }
.plan__info .h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.specs { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px solid var(--line-2); }
.specs > div { display: contents; }
.specs dt, .specs dd { padding: 0.72rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--ink-3); font-size: 0.95rem; }
.specs dd { text-align: right; color: var(--ink); font-weight: 580; }
.specs .tot dt, .specs .tot dd { color: var(--ink); font-weight: 640; }
.plan__info .fine { font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; }
.showunit { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: var(--lake); background: rgba(34, 64, 77, 0.08); padding: 0.4rem 0.8rem; border-radius: 999px; justify-self: start; }
.showunit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dusk); }
.no-js .plan[hidden] { display: grid; }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.gallery a picture.pic { height: 100%; }
.gallery a picture.pic img { transition: transform 1s var(--ease); }
.gallery a:hover picture.pic img { transform: scale(1.035); }
.gallery a .gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.8rem; background: linear-gradient(0deg, rgba(10, 16, 21, 0.7), rgba(10, 16, 21, 0)); color: #fff; font-size: 0.86rem; font-weight: 560; line-height: 1.3; }
.gallery a .gcap small { display: block; font-size: 0.72rem; font-weight: 450; opacity: 0.82; }
.g-1 { grid-column: span 7; aspect-ratio: 16 / 10; }
.g-2 { grid-column: span 5; aspect-ratio: 5 / 5.23; }
.g-3 { grid-column: span 4; aspect-ratio: 4 / 3; }
.g-4 { grid-column: span 8; aspect-ratio: 16 / 7.9; }
.g-5 { grid-column: span 4; aspect-ratio: 16 / 10.5; }
@media (max-width: 760px) {
  .gallery { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .gallery a { scroll-snap-align: start; aspect-ratio: 4 / 3.2 !important; grid-column: auto !important; }
}
.swipe-hint { display: none; font-size: 0.82rem; color: var(--ink-3); margin-top: 0.8rem; }
@media (max-width: 760px) { .swipe-hint { display: block; } }

.deck { position: relative; overflow-x: auto; background: #f7f2ea; border: 1px solid var(--line); scrollbar-width: thin; }
.deck a { display: block; min-width: 900px; cursor: zoom-in; }
.deck picture.pic { background: #f7f2ea; }
.zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.zones div { border-top: 2px solid var(--dusk); padding-top: 0.9rem; }
.zones b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }
.zones span { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .zones { grid-template-columns: 1fr 1fr; } }

.ticks { list-style: none; display: grid; gap: 0.9rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.8rem; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 0.1em; border-radius: 50%; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23b45f37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; border: 1px solid var(--line-2); }
.ticks b { color: var(--ink); font-weight: 600; }
.section--night .ticks li::before { background-color: var(--night-2); border-color: var(--line-dark); }
.section--night .ticks b { color: var(--on-dark); }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px; background: linear-gradient(90deg, var(--ink) 0 34%, var(--line-2) 34% 100%); }
.timeline li { position: relative; display: grid; gap: 0.35rem; padding-top: 2.1rem; padding-right: 1rem; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li.done::before { background: var(--ink); }
.timeline li.next::before { border-style: dashed; border-color: var(--ink-3); }
.timeline b { color: var(--ink); font-weight: 620; font-size: 1.05rem; }
.timeline span { font-size: 0.92rem; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline::before { top: 9px; bottom: 9px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--ink) 0 34%, var(--line-2) 34% 100%); }
  .timeline li { padding: 0 0 0 2.2rem; }
}

/* ───────────── Compare table ───────────── */
.compare { overflow-x: auto; border-top: 1px solid var(--line-2); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 1.1rem; font-weight: 600; color: var(--ink); padding-top: 1.2rem; }
.compare thead th small { display: block; font-size: 0.82rem; font-weight: 450; color: var(--ink-3); margin-top: 0.2rem; }
.compare tbody th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; font-stretch: 110%; width: 18%; }
:lang(zh) .compare tbody th { letter-spacing: 0.04em; font-size: 0.9rem; }
.compare td { color: var(--ink); }
.compare td small { display: block; color: var(--ink-3); font-size: 0.84rem; margin-top: 0.2rem; line-height: 1.4; }
.compare td.ask { color: var(--ink-3); }
.compare th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.section--sand .compare th:first-child { background: var(--paper-2); }
.best { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dusk-ink); margin-left: 0.4rem; }

/* ───────────── Forms (WhatsApp composer — nothing is sent to this website) ───────────── */
.composer { display: grid; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.composer .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .composer .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: 0.9rem; font-weight: 580; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--ink-3); }
.field select, .field input, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgba(34, 64, 77, 0.15); }
.composer .fine { font-size: 0.84rem; color: var(--ink-3); margin: 0; }
.composer .btns .btn { min-width: 220px; }

/* ───────────── Lightbox ───────────── */
.lb { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 13, 17, 0.96); color: #fff; }
.lb::backdrop { background: rgba(9, 13, 17, 0.96); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; padding: 0 clamp(8px, 5vw, 80px); }
.lb__stage img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; }
.lb__stage.is-light { background: transparent; }
.lb__stage.is-light img { background: #fff; padding: 10px; }
.lb__cap { padding: 12px 20px 18px; text-align: center; font-size: 0.9rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); min-height: 3.2em; }
.lb__cap a { color: inherit; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, 0.14); }
.lb button svg { width: 20px; height: 20px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; } }

/* ───────────── Misc ───────────── */
.inline-cta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--card); border: 1px solid var(--line); }
.inline-cta p { margin: 0; max-width: 44ch; color: var(--ink); font-size: 1.08rem; }
.pill-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--ink-3); }
.two-col { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 800px) { .two-col { columns: 1; } }
.two-col > * { break-inside: avoid; }
.checklist { list-style: none; counter-reset: c; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(c, decimal-leading-zero); font-size: 0.86rem; font-weight: 640; color: var(--dusk-ink); letter-spacing: 0.06em; padding-top: 0.2em; }
.checklist b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service { display: grid; gap: 0.8rem; align-content: start; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--card); border: 1px solid var(--line); }
.service h3 { font-size: 1.25rem; font-weight: 580; font-stretch: 106%; }
.service p { margin: 0; }
.service .more { justify-self: start; margin-top: 0.3rem; }
.legal .prose h2 { font-size: 1.35rem; font-weight: 600; margin: 2.2rem 0 0.8rem; }
.legal .prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 0.6rem; }
.credits { list-style: none; display: grid; gap: 0.8rem; font-size: 0.92rem; }
.credits li { padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }

/* Reveal on scroll — only when script runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .dock, .menu, .closing__media, .hero__media::before, .hero__media::after { display: none !important; }
  body { background: #fff; }
  .hero__panel { margin-top: 0; }
}
