/* =========================================================================
   Chi-Ping Shih — Monterey Peninsula
   Direction: "Cyanotype Survey" — blueprint ground, chalk line work,
   survey-brass accent. Photographs appear as plates in a survey report.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Ground: whiteprint paper (the diazo process that replaced cyanotype) */
  --ink:        #EDF1F3;   /* page */
  --ink-2:      #FFFFFF;   /* cards, raised panels */
  --ink-3:      #E2E9ED;   /* wells, alternating bands */
  --ink-4:      #0B1F33;   /* footer — the old ground, kept as an anchor */

  /* Marks */
  --chalk:      #0B1F33;   /* primary text: cyanotype navy becomes the ink */
  --fog:        #4C6274;
  --fog-dim:    #556878;

  /* Rules */
  --line:       rgba(11, 31, 51, 0.16);
  --line-soft:  rgba(11, 31, 51, 0.075);
  --line-firm:  rgba(11, 31, 51, 0.34);

  /* Accents — strict roles */
  --brass:      #7E610B;   /* structure, bearings, prices — AA on page and wells */
  --brass-lo:   #5E480A;
  --brass-glow: rgba(126, 97, 11, 0.12);
  --seal:       #C0392B;   /* ONLY the 史 seal mark */
  --cypress:    #2E6B57;   /* ONLY the Operate stage / "permitted" status */
  --warn:       #B3392A;   /* ONLY "not allowed" status and field errors */

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "Azeret Mono", "SFMono-Regular", Consolas, monospace;
  --han:     "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;

  /* Metrics */
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 66ch;
  --band: clamp(72px, 9vw, 132px);
  --radius: 2px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-size: clamp(16.5px, 1.05vw + 13px, 19px);
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The drafting grid — the ground everything is surveyed onto */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 100%);
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: inherit; }

::selection { background: var(--brass); color: #fff; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brass);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 0.72vw + 8px, 12px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 20px;
}
.eyebrow .sep { color: var(--brass); padding: 0 0.55em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 3.4vw, 52px); }
h3 { font-size: clamp(20px, 1.5vw + 14px, 28px); line-height: 1.12; }
h4 {
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  font-variation-settings: "wdth" 100;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(19px, 1.1vw + 15px, 24px);
  line-height: 1.5;
  color: var(--chalk);
}

.han { font-family: var(--han); line-height: 1.92; letter-spacing: 0.02em; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.dim { color: var(--fog); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.wrap--narrow { max-width: 900px; }

/* Single source of vertical rhythm. Nothing else sets section padding. */
.band { padding-block: var(--band); position: relative; }
.band + .band { border-top: 1px solid var(--line-soft); }
.band--tight { padding-block: calc(var(--band) * 0.62); }
.band--well { background: var(--ink-3); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Section headers carry a bearing label — the survey device */
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(36px, 4vw, 60px);
}
.band-head .eyebrow { margin-bottom: 0; }
.band-head p { color: var(--fog); max-width: 62ch; }
/* Headings carry no bottom margin, so the lede needs its own breathing room. */
.band-head h2 + p { margin-top: 20px; }

@media (min-width: 900px) {
  .band-head {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .band-head .eyebrow { padding-top: 10px; border-top: 1px solid var(--brass); }
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__seal {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  font-family: var(--han);
  font-size: 17px;
  line-height: 1;
  border-radius: 1px;
  padding-top: 1px;
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  display: block;
  margin-top: 2px;
}

.nav { display: none; gap: 4px; align-items: center; }
@media (min-width: 1040px) { .nav { display: flex; } }

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--chalk); background: rgba(234,240,244,0.05); }
.nav a[aria-current="page"] { color: var(--brass); }

/* Mobile nav */
.navtoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  color: var(--chalk);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 1040px) { .navtoggle { display: none; } }

.navdrawer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-3);
  padding: 8px var(--gutter) 22px;
}
.navdrawer a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.navdrawer a[aria-current="page"] { color: var(--brass); }
@media (min-width: 1040px) { .navdrawer { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}
.btn:hover { background: var(--brass); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--brass); color: #fff; }
.btn--solid:hover { background: #967212; border-color: #967212; }

.btn--ghost { border-color: var(--line-firm); color: var(--chalk); }
.btn--ghost:hover { background: var(--chalk); color: #fff; border-color: var(--chalk); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- HERO ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px); }

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) clamp(400px, 42vw, 560px); }
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-variation-settings: "wdth" 108;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-bottom: 14px;
}
.hero h1 .han {
  font-size: 0.66em;
  font-weight: 500;
  color: var(--fog);
  letter-spacing: 0.1em;
}

.hero__role {
  font-family: var(--mono);
  font-size: clamp(11px, 0.6vw + 9px, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  max-width: none;
}
.hero__role b { color: var(--chalk); font-weight: 500; }

/* The thesis — her own four words, the spine of the whole site */
.thesis { margin: 0 0 clamp(30px, 4vw, 42px); max-width: none; }
.thesis__word {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 118;
  font-size: clamp(38px, 7.6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--chalk);
  transition: color 0.3s;
}
.thesis__word .dot { color: var(--brass); }
.thesis__word.is-lit { color: var(--brass); }

.hero__note {
  font-size: clamp(17px, 0.7vw + 14px, 20px);
  line-height: 1.55;
  color: var(--fog);
  max-width: 44ch;
  margin-bottom: clamp(28px, 3vw, 36px);
}
.hero__note b { color: var(--chalk); font-weight: 400; }

/* ---------- The compass rose (signature) ---------- */
.rose { position: relative; }
.rose svg { width: 100%; height: auto; overflow: visible; }

.rose__ring     { fill: none; stroke: var(--line); stroke-width: 1; }
.rose__ring--in { stroke: var(--line-soft); }
.rose__tick     { stroke: var(--line); stroke-width: 1; }
.rose__tick--maj{ stroke: var(--line-firm); }

.rose__arc {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.25;
  opacity: 0.4;
  stroke-linecap: round;
}

.rose__needle {
  stroke: var(--brass);
  stroke-width: 1.5;
  transform-origin: 200px 200px;
  transition: transform 0.85s cubic-bezier(.19,1,.22,1);
}

.rose__hub { fill: var(--ink-2); stroke: var(--line-firm); stroke-width: 1; }

.rose__deg {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  fill: var(--brass);
  letter-spacing: 0.04em;
  text-anchor: middle;
}
.rose__degsub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  fill: var(--fog-dim);
  text-anchor: middle;
}

.rose__node { cursor: pointer; }
.rose__node:focus { outline: none; }
.rose__dot {
  fill: var(--ink);
  stroke: var(--line-firm);
  stroke-width: 1.5;
  transition: fill 0.3s, stroke 0.3s, r 0.3s;
}
.rose__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  fill: var(--fog);
  text-anchor: middle;
  transition: fill 0.3s;
  pointer-events: none;
}
.rose__bearing {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  fill: var(--fog-dim);
  text-anchor: middle;
  pointer-events: none;
}
.rose__hit { fill: transparent; }

.rose__node:hover .rose__dot,
.rose__node:focus-visible .rose__dot,
.rose__node.is-active .rose__dot { fill: var(--brass); stroke: var(--brass); r: 9; }

.rose__node:hover .rose__label,
.rose__node:focus-visible .rose__label,
.rose__node.is-active .rose__label { fill: var(--chalk); }

.rose__node:focus-visible .rose__hit {
  stroke: var(--brass);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

/* Stage readout under the rose */
.readout {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 20px 22px;
  min-height: 170px;
}
.readout__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.readout__deg { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brass); }
.readout__name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.readout__han { font-family: var(--han); font-size: 13px; color: var(--fog); margin-left: auto; }
.readout__body { font-size: 15.5px; line-height: 1.6; color: var(--fog); margin: 0 0 12px; max-width: none; }
.readout__body b { color: var(--chalk); font-weight: 400; }
.readout__who {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.readout__who b { color: var(--brass); font-weight: 500; }

/* ---------- Stage bands (the four stages in depth) ---------- */
.stage {
  display: grid;
  gap: 24px;
  padding-block: clamp(30px, 3.4vw, 46px);
  border-top: 1px solid var(--line-soft);
}
.stage:last-child { border-bottom: 1px solid var(--line-soft); }

@media (min-width: 880px) {
  .stage { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 300px); gap: 44px; }
}

.stage__key { display: flex; align-items: baseline; gap: 12px; }
.stage__deg { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brass); }
.stage__name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 114;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.stage__han { font-family: var(--han); font-size: 13px; color: var(--fog); }

.stage__body p { color: var(--fog); font-size: 17px; }
.stage__body b { color: var(--chalk); font-weight: 400; }

.stage__partner {
  border-left: 1px solid var(--brass);
  padding-left: 18px;
}
.stage__partner .mono { display: block; margin-bottom: 8px; color: var(--brass); }
.stage__partner p { font-size: 15px; color: var(--fog); line-height: 1.55; }
.stage__partner a { color: var(--chalk); text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px)  { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.card h3 { font-size: clamp(19px, 1.1vw + 14px, 25px); }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--fog); }
.card__foot { margin-top: auto; padding-top: 6px; }

.speclist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--fog);
}
/* Marker is absolutely positioned, not a grid column: a grid here would turn
   every inline <b> into its own grid item and stack it one word per row. */
.speclist li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}
.speclist li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
}

/* ---------- Territory index ---------- */
.territory { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }

.terr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  background: var(--ink);
  padding: 20px 4px;
  text-decoration: none;
  transition: background 0.22s, padding 0.22s;
}
.terr:hover, .terr:focus-visible { background: var(--ink-2); padding-inline: 14px 18px; }

.terr__name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  font-size: clamp(21px, 1.6vw + 14px, 31px);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.terr__name .han { font-size: 0.55em; font-weight: 500; color: var(--fog); }
.terr:hover .terr__name { color: var(--brass); }

.terr__note {
  grid-column: 1 / 2;
  font-size: 15px;
  color: var(--fog);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0;
}
.terr__meta {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog-dim);
  white-space: nowrap;
  display: grid;
  gap: 5px;
}
.terr__meta b { color: var(--brass); font-weight: 500; }
@media (max-width: 660px) {
  .terr { grid-template-columns: minmax(0, 1fr); }
  .terr__meta { grid-row: auto; grid-column: 1; text-align: left; margin-top: 6px; }
}

/* ---------- Transactions table ---------- */
.deals { border-top: 1px solid var(--line); }
.deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.deal__addr {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(16px, 0.7vw + 14px, 19px);
  letter-spacing: 0.005em;
}
.deal__where {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.deal__where b { color: var(--fog); font-weight: 400; }
.deal__price {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: var(--mono);
  font-size: clamp(14px, 0.5vw + 12px, 17px);
  font-weight: 500;
  color: var(--brass);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .deal { grid-template-columns: minmax(0, 1fr); }
  .deal__price { grid-row: auto; grid-column: 1; text-align: left; margin-top: 4px; }
}

/* ---------- Bio + language toggle ---------- */
.langbar {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.langbar button {
  background: none;
  border: 0;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.langbar button + button { border-left: 1px solid var(--line); }
.langbar button:hover { color: var(--chalk); }
.langbar button[aria-selected="true"] { background: var(--brass); color: #fff; }
.langbar .han { font-size: 12px; letter-spacing: 0.1em; }

.bio__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .bio__grid { grid-template-columns: minmax(0, 1fr) 280px; } }

.bio__facts {
  display: grid;
  gap: 0;
  align-content: start;
  border-top: 1px solid var(--brass);
}
.bio__fact { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.bio__fact dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 5px;
}
.bio__fact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--chalk);
}
.bio__fact dd a { color: var(--brass); text-decoration: none; }
.bio__fact dd a:hover { text-decoration: underline; }

.pullquote {
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--brass);
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  font-size: clamp(19px, 1.2vw + 15px, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--chalk);
  max-width: 30ch;
}

/* ---------- Plates (photographs) ---------- */
.plate { position: relative; margin: 0; }
.plate__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
}
.plate__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) contrast(1);
  transition: filter 0.6s, transform 1.2s cubic-bezier(.19,1,.22,1);
}
.plate:hover .plate__frame img { filter: saturate(1.04) contrast(1.02); transform: scale(1.02); }

/* Cyanotype wash so photographs sit on the blueprint ground */
.plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(11,31,51,0.02), rgba(11,31,51,0.10));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.plate figcaption a { color: inherit; }

/* ---------- City hero ---------- */
.cityhero { padding-block: clamp(36px, 4.5vw, 64px) 0; }
.cityhero__grid { display: grid; gap: clamp(30px, 4vw, 52px); align-items: end; }
@media (min-width: 940px) { .cityhero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.cityhero h1 {
  font-size: clamp(40px, 6.2vw, 82px);
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin-bottom: 16px;
}
.cityhero__han {
  font-family: var(--han);
  font-size: clamp(19px, 1.4vw + 14px, 27px);
  color: var(--brass);
  letter-spacing: 0.14em;
  margin: 0 0 22px;
}
.cityhero .lede { color: var(--fog); }
.cityhero .lede b { color: var(--chalk); font-weight: 400; }

.cityhero .plate__frame { aspect-ratio: 4 / 3; }
@media (min-width: 940px) { .cityhero .plate__frame { aspect-ratio: 5 / 4; } }

/* At-a-glance data strip */
.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 48px);
}
.glance__cell { background: var(--ink-3); padding: 18px 20px; }
.glance__cell dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 7px;
}
.glance__cell dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  font-size: clamp(17px, 1vw + 13px, 22px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.glance__cell dd small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 6px;
  line-height: 1.4;
}

/* STR status colour coding — the one place colour carries data */
.glance__cell dd.is-no  { color: var(--warn); }
.glance__cell dd.is-yes { color: var(--cypress); }
.glance__cell dd.is-cap { color: var(--brass); }

/* ---------- Prose sections on city pages ---------- */
.prose { max-width: var(--measure); }
.prose h3 { margin: 0 0 14px; }
.prose h3 + p { margin-top: 0; }
.prose > * + h3 { margin-top: clamp(32px, 3.2vw, 44px); }
.prose p { color: var(--fog); }
.prose b, .prose strong { color: var(--chalk); font-weight: 600; }
.prose a { color: var(--brass); text-underline-offset: 3px; }

.twocol { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 940px) { .twocol { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

/* Callout — regulatory / investor notes */
.note {
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brass);
  border-radius: var(--radius);
  background: var(--ink-3);
  padding: 22px 24px;
}
.note .mono { display: block; color: var(--brass); margin-bottom: 10px; }
.note p { font-size: 15px; line-height: 1.6; color: var(--fog); }
.note a { color: var(--chalk); text-underline-offset: 3px; }

/* Neighborhood / landmark chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
}

/* ---------- Contact form ---------- */
.form { display: grid; gap: 18px; }
@media (min-width: 720px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }

.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
}
.field label .req { color: var(--brass); }

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.field select {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: var(--ink-3); color: var(--chalk); }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--fog-dim); opacity: 1; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-firm); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass);
  background: var(--ink-2);
  outline: none;
}

.field__err {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--warn);
  min-height: 0;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--warn); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.form__fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fog-dim);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}

.form__status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  background: var(--brass-glow);
  color: var(--chalk);
  line-height: 1.6;
}
.form__status a { color: var(--brass); }

.contact__grid { display: grid; gap: clamp(36px, 4vw, 60px); }
@media (min-width: 940px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }

.contact__lines { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--brass); }
.contact__line {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.contact__line span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 6px;
}
.contact__line strong {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  font-size: clamp(17px, 1vw + 13px, 21px);
  letter-spacing: -0.005em;
  color: var(--chalk);
}
a.contact__line:hover strong { color: var(--brass); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink-4);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 5vw, 72px) 36px;
  position: relative;
  z-index: 1;
}
.foot__grid { display: grid; gap: 36px; margin-bottom: 44px; }
@media (min-width: 780px) { .foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 44px; } }

.foot__grid h4 { color: var(--fog); margin-bottom: 16px; font-size: 10px; letter-spacing: 0.18em; font-family: var(--mono); font-weight: 500; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__links a { color: var(--fog); text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--brass); }

.foot__fine {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.85;
  color: var(--fog-dim);
}
.foot__fine p { max-width: 100ch; margin-bottom: 0.9em; }
.foot__fine a { color: var(--fog); }

.eho {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.eho svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ---------- Reveal on scroll ---------- */
/* Only hide content when JS is actually present to bring it back. With JS off,
   or if the observer never fires, everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(.19,1,.22,1), transform 0.8s cubic-bezier(.19,1,.22,1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rose__needle { transition: none; }
  .plate__frame img { transition: none; }
  .rose__arc-draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
}

/* =========================================================================
   Portrait — the one warm, human thing on a cold blueprint ground.
   Deliberately not duotoned: people need to see a real face.
   ========================================================================= */
.portrait {
  border-radius: 50%;
  border: 1px solid var(--line-firm);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--brass-lo);
  background: var(--ink-2);
}

/* Portrait leads the column, flush left, so the eyebrow, name and thesis all
   share one left edge. Sitting it inline with the h1 indented the name alone. */
.hero__portrait {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
}
.hero h1 { margin-bottom: 14px; }

.portraitplate { display: grid; gap: 16px; align-content: start; }
.portraitplate .portrait {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--line);
}
.portraitplate figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-dim);
  line-height: 1.7;
  max-width: 300px;
}
.portraitplate figcaption b { color: var(--fog); font-weight: 500; }

.contact__id {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 4px;
}
.contact__id .portrait { width: 62px; height: 62px; flex: 0 0 62px; }
.contact__id p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--fog); }
.contact__id b { color: var(--chalk); font-weight: 400; display: block; font-family: var(--display); font-size: 17px; }

/* =========================================================================
   Track record — stats, filter, and the full closed-sales table
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.stat { background: var(--ink-3); padding: 22px 22px 20px; }
.stat dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 9px;
}
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brass);
}
.stat dd small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 9px;
  line-height: 1.5;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filterbar button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filterbar button:hover { color: var(--chalk); border-color: var(--line-firm); }
.filterbar button[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.filterbar button .n { opacity: 0.55; margin-left: 6px; }

.sales { border-top: 1px solid var(--line); }
.sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 22px;
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.sale__addr {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(15.5px, 0.6vw + 13.5px, 18px);
  letter-spacing: 0.005em;
  line-height: 1.25;
}
.sale__spec {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog-dim);
  line-height: 1.5;
}
.sale__spec b { color: var(--fog); font-weight: 400; }
.sale__price {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: var(--mono);
  font-size: clamp(13.5px, 0.45vw + 12px, 16px);
  font-weight: 500;
  color: var(--brass);
  text-align: right;
  white-space: nowrap;
}
.sale__price.is-undisclosed { color: var(--fog-dim); font-weight: 400; }
@media (max-width: 560px) {
  .sale { grid-template-columns: minmax(0, 1fr); }
  .sale__price { grid-row: auto; grid-column: 1; text-align: left; margin-top: 3px; }
}

.sale[hidden] { display: none; }

.sales__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 18px;
}

/* City-page variant: her closings in that one market */
.citysales { border-top: 1px solid var(--line); margin-top: 8px; }


/* ---------- Closed sales: progressive disclosure ---------- */
.js .sales.is-collapsed .sale:nth-of-type(n+13) { display: none; }

.sales__more {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.sales__more button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
.sales__more button:hover { background: var(--brass); color: #fff; }
.sales__more .sales__count { margin: 0; }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  body::before,
  .site-head, .navdrawer, .navtoggle, .btn, .btn-row,
  .filterbar, .sales__more, .form, .rose, .readout, .skip { display: none !important; }
  .band { padding-block: 18pt; border: 0; }
  .band--well { background: transparent; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .js .sales.is-collapsed .sale:nth-of-type(n+13) { display: grid; }
  h1, h2, h3, h4 { color: #111; }
  .thesis__word, .stat dd, .sale__price, .terr__meta b { color: #7a5f00 !important; }
  p, .prose p, .sale__spec, .dim { color: #333; }
  a { color: #111; text-decoration: underline; }
  .plate, .portraitplate { break-inside: avoid; }
  .sale, .stat, .card { break-inside: avoid; }
  .site-foot { background: transparent; border-top: 1px solid #ccc; }
  .foot__fine { color: #555; }
}


/* ---------- Footer: the one dark panel, so its type inverts ---------- */
.site-foot { color: #EAF0F4; }
.site-foot .brand__name { color: #EAF0F4; }
.site-foot .brand__role,
.site-foot .eho,
.site-foot h4 { color: #93AABC; }
.site-foot p { color: #B9CAD6; }
.site-foot .foot__links a { color: #B9CAD6; }
.site-foot .foot__links a:hover { color: #D9B534; }
.site-foot .foot__fine { color: #8AA3B5; border-top-color: rgba(255,255,255,0.14); }
.site-foot .foot__fine a { color: #B9CAD6; }
.site-foot .foot__fine b { color: #EAF0F4; }
.site-foot .btn { color: #D9B534; border-color: #D9B534; }
.site-foot .btn:hover { background: #D9B534; color: var(--ink-4); }

/* =========================================================================
   Hero — 中文 panel. The same case, made in Chinese, above the fold rather
   than buried in an About toggle. Set on paper-white so it reads as a
   deliberate second voice, not an afterthought.
   ========================================================================= */
.herozh {
  margin-top: clamp(44px, 5vw, 72px);
  padding-top: clamp(32px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .herozh { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
}

.herozh__label { display: flex; align-items: center; gap: 14px; }
.herozh__label .eyebrow { margin: 0; letter-spacing: 0.3em; }
@media (min-width: 900px) {
  .herozh__label { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.herozh__seal {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border-radius: 1px;
  margin: 0;
  padding-top: 2px;
}

.herozh__body { max-width: 68ch; }
.herozh__body p { color: var(--fog); font-size: 16px; line-height: 1.95; max-width: none; }
.herozh__lede { color: var(--chalk) !important; font-size: 18px !important; }
.nowrap { white-space: nowrap; }

/* The four stages again, in Chinese — mirrors the English thesis */
.herozh__cycle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: 22px 0 !important;
}
.herozh__cycle span {
  font-size: clamp(17px, 1.1vw + 13px, 22px);
  font-weight: 600;
  color: var(--chalk);
  letter-spacing: 0.16em;
}
.herozh__cycle span + span::before {
  content: "→";
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 0.7em;
  vertical-align: 0.1em;
}

.herozh__cta { font-size: 15px !important; }
.herozh__cta a {
  color: var(--brass);
  font-weight: 600;
  text-underline-offset: 4px;
}
.herozh__cta a:hover { color: var(--chalk); }
.herozh__or { color: var(--fog-dim); padding: 0 0.4em; }

/* ---------- Rose: hairlines that read on a dark ground go weak on paper ---------- */
.rose__ring      { stroke: rgba(11,31,51,0.22); }
.rose__ring--in  { stroke: rgba(11,31,51,0.12); }
.rose__tick      { stroke: rgba(11,31,51,0.26); }
.rose__tick--maj { stroke: rgba(11,31,51,0.45); }
.rose__arc       { opacity: 0.75; stroke-width: 1.4; }
.rose__dot       { fill: var(--ink-2); stroke: rgba(11,31,51,0.45); }
.rose__label     { fill: var(--fog); }
.rose__bearing   { fill: var(--fog-dim); }
.rose__needle    { stroke-width: 1.8; }

/* =========================================================================
   Numbered steps. Used only where order genuinely carries meaning — you
   cannot repay before you list, or list before the work is done.
   ========================================================================= */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  gap: 10px 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 820px) {
  .step { grid-template-columns: 78px minmax(0, 1fr) minmax(0, 280px); gap: 36px; }
}
.step__n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass);
  padding-top: 5px;
}
.step h3 { font-size: clamp(19px, 1.1vw + 14px, 24px); margin-bottom: 10px; }
.step p { color: var(--fog); font-size: 16px; }
.step__aside {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--fog-dim);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.step__aside b { color: var(--brass); font-weight: 500; }

/* Covered-services columns */
.covered {
  display: grid;
  gap: 26px 40px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.covered h4 { color: var(--brass); margin-bottom: 12px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.16em; font-weight: 500; }
.covered ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.covered li { font-size: 15px; color: var(--fog); line-height: 1.45; }

/* ---------- Headline offer inside a partner card ---------- */
.offer {
  border: 1px solid var(--brass);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--brass-glow);
  padding: 16px 18px;
  margin: 2px 0 4px;
}
.offer__head {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  font-size: clamp(17px, 1vw + 13px, 21px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--chalk);
  margin: 0 0 8px;
}
.offer p { font-size: 14.5px; line-height: 1.55; color: var(--fog); margin: 0; }
.offer p + p { margin-top: 8px; }
.offer .fine {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--fog-dim);
  margin-top: 10px;
}

/* The financing line inside the 中文 hero panel — a highlighted aside, not a CTA */
.herozh__loan {
  border-left: 2px solid var(--brass);
  padding: 2px 0 2px 18px;
  margin: 22px 0 !important;
  font-size: 15.5px !important;
  line-height: 1.9;
  color: var(--fog);
}
.herozh__loan b { color: var(--chalk); font-weight: 600; }
.herozh__loan a { color: var(--brass); font-weight: 600; text-underline-offset: 4px; }
.herozh__loan .fine {
  display: block;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fog-dim);
  margin-top: 6px;
}

/* =========================================================================
   COLOUR, PART 1 — the four cycle stages each get a hue.
   Structural, not decorative: the colour tells you which bearing you are on,
   and it carries through the rose, the thesis words and the stage bands.
   ========================================================================= */
:root {
  --st-acquire:  #8A6A0C;  /* brass — finding the gap */
  --st-develop:  #A4521B;  /* terracotta — building */
  --st-operate:  #2E6B57;  /* cypress — running it */
  --st-reinvest: #2B5C8A;  /* deep water — rolling it forward */
}

.thesis__word[data-word="acquire"].is-lit  { color: var(--st-acquire); }
.thesis__word[data-word="develop"].is-lit  { color: var(--st-develop); }
.thesis__word[data-word="operate"].is-lit  { color: var(--st-operate); }
.thesis__word[data-word="reinvest"].is-lit { color: var(--st-reinvest); }

.rose__node[data-stage="acquire"].is-active  .rose__dot,
.rose__node[data-stage="acquire"]:hover      .rose__dot { fill: var(--st-acquire);  stroke: var(--st-acquire); }
.rose__node[data-stage="develop"].is-active  .rose__dot,
.rose__node[data-stage="develop"]:hover      .rose__dot { fill: var(--st-develop);  stroke: var(--st-develop); }
.rose__node[data-stage="operate"].is-active  .rose__dot,
.rose__node[data-stage="operate"]:hover      .rose__dot { fill: var(--st-operate);  stroke: var(--st-operate); }
.rose__node[data-stage="reinvest"].is-active .rose__dot,
.rose__node[data-stage="reinvest"]:hover     .rose__dot { fill: var(--st-reinvest); stroke: var(--st-reinvest); }

.stage:nth-of-type(1) .stage__deg, .stage:nth-of-type(1) .stage__partner .mono { color: var(--st-acquire); }
.stage:nth-of-type(2) .stage__deg, .stage:nth-of-type(2) .stage__partner .mono { color: var(--st-develop); }
.stage:nth-of-type(3) .stage__deg, .stage:nth-of-type(3) .stage__partner .mono { color: var(--st-operate); }
.stage:nth-of-type(4) .stage__deg, .stage:nth-of-type(4) .stage__partner .mono { color: var(--st-reinvest); }
.stage:nth-of-type(1) .stage__partner { border-left-color: var(--st-acquire); }
.stage:nth-of-type(2) .stage__partner { border-left-color: var(--st-develop); }
.stage:nth-of-type(3) .stage__partner { border-left-color: var(--st-operate); }
.stage:nth-of-type(4) .stage__partner { border-left-color: var(--st-reinvest); }

/* Market index rows pick up a hue too, so the seven cities read as seven places */
.terr:nth-child(1):hover .terr__name { color: var(--st-operate); }
.terr:nth-child(2):hover .terr__name { color: #1F6F63; }
.terr:nth-child(3):hover .terr__name { color: var(--st-develop); }
.terr:nth-child(4):hover .terr__name { color: var(--st-reinvest); }
.terr:nth-child(5):hover .terr__name { color: #0E6E8C; }
.terr:nth-child(6):hover .terr__name { color: #7A4E9B; }
.terr:nth-child(7):hover .terr__name { color: #9A5A12; }

/* =========================================================================
   COLOUR, PART 2 — the financing panel. The one saturated block on the page,
   in the navy and gold of Save Financial's own flyer.
   ========================================================================= */
.flyer {
  background-color: #0C2540;   /* solid base: the panel is never white */
  --f-navy: #0B1F33;
  --f-gold: #D9AE3C;
  --f-gold-lo: #B98E23;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(217,174,60,0.20), transparent 55%),
    linear-gradient(152deg, #0A1B2C 0%, #14395C 52%, #0C2540 100%);
  color: #EAF1F6;
  padding: clamp(28px, 4vw, 54px);
}
.flyer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(234,241,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,241,246,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 20% 0%, #000 20%, transparent 85%);
}
.flyer > * { position: relative; }

.flyer__eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 0.7vw + 8px, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--f-gold);
  margin: 0 0 14px;
  max-width: none;
}
.flyer__eyebrow .han { letter-spacing: 0.16em; text-transform: none; }

.flyer__top { display: grid; gap: 26px; align-items: start; margin-bottom: clamp(26px, 3vw, 38px); }
@media (min-width: 860px) { .flyer__top { grid-template-columns: minmax(0, 1fr) auto; } }

.flyer h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.03;
  margin: 0 0 14px;
}
.flyer h2 .gold { color: var(--f-gold); }
.flyer__sub {
  font-family: var(--han);
  font-size: clamp(17px, 1.2vw + 13px, 23px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 12px;
  max-width: none;
}
.flyer__lede { color: #B9CEDF; font-size: 15.5px; line-height: 1.75; max-width: 54ch; margin: 0; }

.flyer__badge {
  display: grid;
  place-content: center;
  text-align: center;
  width: clamp(104px, 11vw, 130px);
  height: clamp(104px, 11vw, 130px);
  border-radius: 50%;
  background: linear-gradient(145deg, #F0C550, var(--f-gold-lo));
  color: #12243A;
  box-shadow: 0 8px 28px rgba(0,0,0,0.30);
  justify-self: start;
}
.flyer__badge b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.flyer__badge span {
  display: block;
  font-family: var(--han);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.flyer__badge small {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  opacity: 0.72;
  margin-top: 3px;
}

.flyer__pair { display: grid; gap: 18px; }
@media (min-width: 780px) { .flyer__pair { grid-template-columns: 1fr 1fr; } }

.fcard {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(234,241,246,0.16);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fcard__head {
  background: linear-gradient(100deg, rgba(217,174,60,0.18), rgba(217,174,60,0.04));
  border-bottom: 1px solid rgba(217,174,60,0.32);
  padding: 15px 20px;
}
.fcard__head .zh {
  display: block;
  font-family: var(--han);
  font-size: clamp(18px, 1.1vw + 14px, 22px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.fcard__head .en {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--f-gold);
  margin-top: 5px;
}
.fcard ul {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  gap: 11px;
  flex: 1;
}
.fcard li {
  position: relative;
  padding-left: 27px;
  font-family: var(--han);
  font-size: 14.5px;
  line-height: 1.7;
  color: #CFE0EC;
}
.fcard li b { color: #fff; font-weight: 700; }
.fcard li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--f-gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}
.fcard__foot {
  border-top: 1px solid rgba(234,241,246,0.12);
  padding: 13px 20px;
  font-family: var(--han);
  font-size: 14px;
  font-weight: 600;
  color: var(--f-gold);
}

.flyer__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(234,241,246,0.14);
  border: 1px solid rgba(234,241,246,0.14);
  border-radius: 3px;
  overflow: hidden;
  margin-top: clamp(22px, 2.6vw, 32px);
}
.flyer__strip div { background: #0E2740; padding: 15px 16px; }
.flyer__strip dt {
  font-family: var(--han);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.flyer__strip dd {
  margin: 0;
  font-family: var(--han);
  font-size: 12.5px;
  line-height: 1.55;
  color: #9FBACE;
}

.flyer__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: clamp(22px, 2.6vw, 32px);
  padding-top: 20px;
  border-top: 1px solid rgba(234,241,246,0.14);
}
.flyer .btn { border-color: var(--f-gold); color: var(--f-gold); }
.flyer .btn:hover { background: var(--f-gold); color: #12243A; }
.flyer .btn--solid { background: var(--f-gold); color: #12243A; border-color: var(--f-gold); }
.flyer .btn--solid:hover { background: #F0C550; border-color: #F0C550; }
.flyer__fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: #93ADC1;
  max-width: 64ch;
  margin: 0;
}
.flyer__fine b { color: #C6D9E6; }

/* =========================================================================
   Bilingual support — 中文 explainer components on the financing page
   ========================================================================= */

/* A Chinese subtitle sitting under an English heading */
.zh-sub {
  font-family: var(--han);
  font-size: clamp(16px, 0.9vw + 13px, 20px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 10px 0 0 !important;
  max-width: none;
}

/* The ratio explainer — DSCR in one line of arithmetic */
.ratio {
  display: grid;
  gap: 14px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--st-operate);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  margin: 26px 0;
}
@media (min-width: 720px) { .ratio { grid-template-columns: auto auto auto 1fr; gap: 20px; } }

.ratio__part {
  font-family: var(--han);
  font-size: clamp(15px, 0.8vw + 12px, 18px);
  font-weight: 700;
  color: var(--chalk);
  text-align: center;
  line-height: 1.4;
}
.ratio__part small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 5px;
}
.ratio__op {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--brass);
  text-align: center;
  line-height: 1;
}
.ratio__note {
  font-family: var(--han);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--fog);
  margin: 0;
  max-width: none;
}
.ratio__note b { color: var(--chalk); }

/* Two-column "what is checked / what is not" */
.checks { display: grid; gap: 18px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }

.checkbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--ink-2);
}
.checkbox--no { border-left: 3px solid var(--warn); }
.checkbox--yes { border-left: 3px solid var(--st-operate); }
.checkbox h4 {
  font-family: var(--han);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--chalk);
  margin-bottom: 14px;
}
.checkbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checkbox li {
  position: relative;
  padding-left: 24px;
  font-family: var(--han);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fog);
}
.checkbox--no li::before  { content: "\00D7"; position: absolute; left: 0; top: 0; color: var(--warn); font-weight: 700; }
.checkbox--yes li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--st-operate); font-weight: 700; }

/* 中文 FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.faq__q {
  font-family: var(--han);
  font-size: clamp(16px, 0.7vw + 14px, 18.5px);
  font-weight: 700;
  color: var(--chalk);
  margin: 0 0 10px;
  max-width: none;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}
.faq__q::before {
  content: "Q";
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brass);
  padding-top: 3px;
}
.faq__a {
  font-family: var(--han);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--fog);
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}
.faq__a::before {
  content: "A";
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fog-dim);
  padding-top: 4px;
}
.faq__a b { color: var(--chalk); font-weight: 700; }
.faq__a a { color: var(--brass); text-underline-offset: 3px; }

/* 中文 process steps */
.zh-steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .zh-steps { grid-template-columns: repeat(5, 1fr); } }
.zh-step { background: var(--ink-2); padding: 20px; }
.zh-step b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 9px;
}
.zh-step span {
  display: block;
  font-family: var(--han);
  font-size: 16px;
  font-weight: 700;
  color: var(--chalk);
  margin-bottom: 6px;
}
.zh-step p {
  font-family: var(--han);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fog);
  margin: 0;
  max-width: none;
}


/* ---------- The four stages, bilingual ----------
   Each line is a flex row so the Chinese sits in its own column and cannot
   wrap underneath the English when the word is long (Reinvest / 再投資). */
.thesis__word {
  display: flex;
  align-items: baseline;
  gap: 0.34em;
}
.thesis__en { white-space: nowrap; }
.thesis__han {
  font-family: var(--han);
  font-style: normal;
  font-weight: 500;
  font-size: 0.235em;
  letter-spacing: 0.16em;
  color: var(--fog);
  white-space: nowrap;
  transition: color 0.3s;
  transform: translateY(-0.55em);
}
.thesis__word.is-lit .thesis__han { color: inherit; opacity: 0.8; }
@media (max-width: 620px) {
  .thesis__word { gap: 0.3em; }
  .thesis__han { font-size: 0.26em; letter-spacing: 0.1em; }
}

/* Chinese label on each compass bearing */
.rose__han {
  font-family: var(--han);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--fog);
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.3s;
}
.rose__node:hover .rose__han,
.rose__node:focus-visible .rose__han,
.rose__node.is-active .rose__han { fill: var(--chalk); }
.rose__node[data-stage="acquire"].is-active  .rose__han { fill: var(--st-acquire); }
.rose__node[data-stage="develop"].is-active  .rose__han { fill: var(--st-develop); }
.rose__node[data-stage="operate"].is-active  .rose__han { fill: var(--st-operate); }
.rose__node[data-stage="reinvest"].is-active .rose__han { fill: var(--st-reinvest); }


/* =========================================================================
   Hero cycle — English left, compass rose centre, 中文 right.
   The two word columns share one row grid so each pair lines up exactly.
   ========================================================================= */
.hero__id { display: block; margin-bottom: clamp(36px, 4.5vw, 64px); }
.hero__id .hero__portrait { margin-bottom: 26px; }
.hero__id .hero__role {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cyclegrid {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  grid-template-columns: auto auto;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .cyclegrid {
    grid-template-columns: minmax(0, auto) minmax(300px, 460px) minmax(0, auto);
    justify-content: center;
    gap: clamp(24px, 3.5vw, 56px);
  }
}

/* Both columns run on the SAME fixed row height, so Acquire lines up with
   收購 exactly rather than drifting as the two scripts set at different sizes. */
:root { --cyc-row: clamp(46px, 6.4vw, 84px); }

.cyclecol {
  display: grid;
  grid-auto-rows: var(--cyc-row);
  gap: clamp(4px, 0.8vw, 12px);
  margin: 0;
  max-width: none;
}
.cyclecol .thesis__word {
  display: block;
  line-height: var(--cyc-row);
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 116;
  font-size: clamp(30px, 5.4vw, 66px);
  letter-spacing: -0.03em;
  color: var(--chalk);
  transition: color 0.3s, opacity 0.3s;
}
.cyclecol--en .thesis__word { text-align: left; }
.cyclecol--zh .thesis__word { text-align: right; }
.cyclecol--zh .thesis__word {
  font-family: var(--han);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 0.12em;
  line-height: var(--cyc-row);
  color: var(--fog);
}
.cyclecol .thesis__word .dot { color: var(--brass); }

/* The lit stage takes its own colour in both languages at once */
.cyclecol .thesis__word[data-word="acquire"].is-lit  { color: var(--st-acquire); }
.cyclecol .thesis__word[data-word="develop"].is-lit  { color: var(--st-develop); }
.cyclecol .thesis__word[data-word="operate"].is-lit  { color: var(--st-operate); }
.cyclecol .thesis__word[data-word="reinvest"].is-lit { color: var(--st-reinvest); }

.cyclerose { grid-column: 1 / -1; order: 3; }
@media (min-width: 900px) { .cyclerose { grid-column: auto; order: 0; } }
.cyclerose .rose svg { width: 100%; height: auto; }

.hero .readout {
  max-width: 640px;
  margin-inline: auto;
  margin-top: clamp(26px, 3vw, 40px);
}

.hero__tail {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  margin-top: clamp(30px, 3.5vw, 46px);
}
.hero__tail .hero__note { max-width: 62ch; margin: 0; }
@media (max-width: 620px) {
  .hero__tail { justify-items: start; text-align: left; }
}

/* =========================================================================
   Programme cards — the two loan products, each in its own colour so they
   are never mistaken for each other. Investment reads as the flyer (navy /
   gold); primary residence reads as a home (cypress green).
   ========================================================================= */
.prog {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  color: #EAF1F6;
}
.prog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(234,241,246,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,241,246,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 95% 85% at 15% 0%, #000 18%, transparent 85%);
}
.prog > * { position: relative; }

/* Investment — DSCR */
.prog--dscr {
  background-color: #10345A;
  background:
    radial-gradient(110% 85% at 90% 6%, rgba(217,174,60,0.22), transparent 55%),
    linear-gradient(155deg, #0A1B2C 0%, #14395C 55%, #0C2540 100%);
  --p-accent: #D9AE3C;
}
/* Primary residence — no income, no job */
.prog--home {
  background-color: #14402E;
  background:
    radial-gradient(110% 85% at 90% 6%, rgba(126,198,170,0.20), transparent 55%),
    linear-gradient(155deg, #0E2A22 0%, #1B4D3E 55%, #10322A 100%);
  --p-accent: #7FC9A8;
}

.prog__head {
  padding: 22px clamp(20px, 2.2vw, 30px) 18px;
  border-bottom: 1px solid rgba(234,241,246,0.16);
  background: linear-gradient(100deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
}
.prog__tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 10px;
}
.prog__tag .han { letter-spacing: 0.12em; text-transform: none; font-size: 12px; }
.prog__head h3 {
  color: #fff;
  font-size: clamp(20px, 1.3vw + 15px, 27px);
  line-height: 1.12;
  margin: 0;
}
.prog__zh {
  font-family: var(--han);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--p-accent);
  margin: 9px 0 0 !important;
  max-width: none;
}

.prog__body { padding: 20px clamp(20px, 2.2vw, 30px) 4px; }
.prog__body p { color: #BCD2DF; font-size: 15.5px; line-height: 1.7; max-width: none; }
.prog__body p b { color: #fff; font-weight: 600; }

.prog ul {
  list-style: none;
  margin: 0;
  padding: 6px clamp(20px, 2.2vw, 30px) 22px;
  display: grid;
  gap: 11px;
  flex: 1;
}
.prog ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: #C3D7E4;
}
.prog ul li b { color: #fff; font-weight: 700; }
.prog ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--p-accent);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.prog__foot {
  border-top: 1px solid rgba(234,241,246,0.14);
  padding: 16px clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.prog__line {
  font-family: var(--han);
  font-size: 14px;
  font-weight: 600;
  color: var(--p-accent);
  margin: 0 !important;
  max-width: none;
}
.prog .btn { border-color: var(--p-accent); color: var(--p-accent); }
.prog .btn:hover { background: var(--p-accent); color: #0B1F33; }

/* The headline figure each programme is known by */
.prog__figure {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  text-align: right;
  line-height: 1;
}
.prog__figure b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 106;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.03em;
  color: var(--p-accent);
}
.prog__figure span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234,241,246,0.6);
  margin-top: 5px;
}
@media (max-width: 520px) { .prog__figure { position: static; text-align: left; margin-top: 12px; } }


/* Emphasis inside the flyer — defined next to the background it relies on */
.flyer__lede b, .flyer__sub b { color: #FFFFFF; font-weight: 700; }


/* =========================================================================
   The name block — why the Monterey Peninsula calls her 史老師.
   老師 means "teacher"; the seal on every page is the reason, not decoration.
   ========================================================================= */
.nameblock {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  margin-bottom: clamp(32px, 4vw, 48px);
}
@media (min-width: 720px) { .nameblock { grid-template-columns: auto minmax(0, 1fr); } }

.nameblock__mark {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.nameblock__seal {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  font-family: var(--han);
  font-size: 42px;
  line-height: 1;
  border-radius: 2px;
  padding-top: 2px;
}
.nameblock__gloss {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-dim);
  line-height: 1.6;
}
.nameblock h3 {
  font-size: clamp(20px, 1.3vw + 15px, 27px);
  margin-bottom: 12px;
}
.nameblock h3 .han { color: var(--seal); font-weight: 600; }
.nameblock p { color: var(--fog); font-size: 16px; line-height: 1.75; }
.nameblock p b { color: var(--chalk); font-weight: 600; }
.nameblock .han-body { font-family: var(--han); font-size: 15.5px; line-height: 1.9; }

/* Years-of-teaching figure */
.nameblock__years {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.nameblock__years b {
  font-family: var(--display);
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 800;
  font-variation-settings: "wdth" 106;
  letter-spacing: -0.03em;
  color: var(--seal);
  line-height: 1;
}


/* =========================================================================
   Service strip — her own Chinese positioning line, made navigable.
   貸款｜買房建房｜投資｜裝修｜短租房管理 — each cell links to the part of
   the site that answers it, so it works as a menu for Chinese visitors.
   ========================================================================= */
.services {
  margin-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(14px, 1.6vw, 20px);
}

.services__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-family: var(--han);
  font-size: clamp(15px, 0.9vw + 12px, 19px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--chalk);
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  max-width: none;
}
.services__title .bar { color: var(--brass); font-weight: 400; }
.services__title .en {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

/* Flex, not grid: five items never divide evenly into a grid, and the empty
   track showed as a stray cell. Flex lets the last row fill the width. */
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.services__list li {
  flex: 1 1 132px;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.services__list li:first-child { border-left: 0; }
.services__list li { border-top: 0; }
@media (max-width: 680px) {
  .services__list li { border-top: 1px solid var(--line-soft); }
  .services__list li:first-child, .services__list li:nth-child(2) { border-top: 0; }
}

.services__list a {
  display: block;
  padding: 15px 16px 14px;
  text-decoration: none;
  transition: background 0.22s;
  height: 100%;
}
.services__list a:hover { background: var(--ink-2); }

.services__zh {
  display: block;
  font-family: var(--han);
  font-size: clamp(16px, 0.9vw + 13px, 20px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--chalk);
  line-height: 1.3;
  transition: color 0.22s;
}
.services__list a:hover .services__zh { color: var(--brass); }
.services__en {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 7px;
  line-height: 1.5;
}

/* One hue per service, echoing the cycle stage it belongs to */
.services__list li:nth-child(1) a:hover .services__zh { color: var(--st-acquire); }
.services__list li:nth-child(2) a:hover .services__zh { color: var(--st-develop); }
.services__list li:nth-child(3) a:hover .services__zh { color: var(--st-reinvest); }
.services__list li:nth-child(4) a:hover .services__zh { color: var(--st-develop); }
.services__list li:nth-child(5) a:hover .services__zh { color: var(--st-operate); }
