/* ==========================================================================
   LORONG PUNTONG CONDO — "A botanical monograph for a mature estate"
   Design system per BRIEF §3. Cream paper, forest ink, 1px rules.
   NO shadows · NO border-radius on cards/buttons · NO gradients.
   ========================================================================== */

:root {
  --paper: #F0ECD8;
  --paper-2: #E9E4CB;
  --ink: #0C3312;
  --ink-70: rgba(12, 51, 18, .7);
  --ink-40: rgba(12, 51, 18, .4);
  --line: rgba(12, 51, 18, .9);
  --hairline: rgba(12, 51, 18, .25);
  --accent: #A8481A; /* deepened from #C4551F for WCAG AA 4.5:1 on --paper and --paper-2 */
  --cream-on-ink: #F0ECD8;

  --font-display: 'Fraunces', 'Noto Serif SC', serif;
  --font-body: 'Archivo', 'Noto Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans SC', monospace;

  --sidebar-w: 260px;
  --topbar-h: 60px;
  --content-max: 1080px;
  --pad-section: clamp(48px, 8vw, 96px);
  --pad-inline: clamp(20px, 5vw, 72px);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Chinese pages: serif display + sans body via token stacks; never italicise CJK */
html[lang="zh-Hans"] body { line-height: 1.8; }
html[lang="zh-Hans"] em,
html[lang="zh-Hans"] i { font-style: normal; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 68ch; }

strong { font-weight: 600; }

/* Mono eyebrow label — the monograph voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
  flex: none;
}
.eyebrow--light { color: rgba(240, 236, 216, .75); }
.eyebrow--light::before { background: rgba(240, 236, 216, .6); }

/* Numbered section header: "01 — Location" */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  flex: none;
}
.section-head .section-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
  align-self: center;
}
.section-head h2 { margin: 0; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream-on-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:hover { left: 0; color: var(--cream-on-ink); }

/* ---------- Layout shell ---------- */

.content {
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
}

/* ---------- Sidebar (desktop) / slide-down panel (mobile) ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--paper);
  border-right: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 28px 24px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; width: 40px; height: 40px; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-top: 3px;
}

/* Primary nav — mono index numbers, underline slide on hover */
.site-nav { padding: 22px 0; flex: 1 1 auto; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.nav-list li { border-bottom: 1px solid var(--hairline); }
.nav-list li:first-child { border-top: 1px solid var(--hairline); }
.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8.5px 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-40);
  flex: none;
  transition: color .2s ease;
}
.nav-label {
  position: relative;
  padding-bottom: 2px;
}
.nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover .nav-label::after { transform: scaleX(1); }
.nav-link:hover .nav-index { color: var(--accent); }
.nav-link.is-active,
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link.is-active .nav-index,
.nav-link[aria-current="page"] .nav-index { color: var(--accent); }
.nav-link.is-active .nav-label,
.nav-link[aria-current="page"] .nav-label::after { transform: scaleX(1); }

/* Sidebar tender chip */
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
}
.stat-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--ink-70);
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin: 0 0 14px;
}
.stat-chip strong {
  display: block;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ink);
}

/* ---------- Top bar + toggle (mobile only) ---------- */

.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 110;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
}
.topbar-brand svg { width: 30px; height: 30px; }
.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle-icon {
  width: 14px;
  height: 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: inline-block;
}
body.nav-open .nav-toggle-icon { border-bottom: none; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vh, 80px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-title { margin-bottom: 26px; }
.hero-title .tight { display: block; }
.hero-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

/* Framed image, offset asymmetrically — image bleeds right of its 1px frame */
.hero-figure {
  position: relative;
  margin: 0;
  padding-bottom: 40px;
}
.hero-figure .hero-frame {
  position: absolute;
  top: -18px;
  bottom: 22px;
  left: -18px;
  right: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero-figure img {
  position: relative;
  width: calc(100% + 36px);
  max-width: none;
  margin-right: -36px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin-top: 14px;
}

/* Count-up stat band */
.stat-band {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(28px, 4vh, 48px);
}
.stat {
  padding: 22px 20px 0 0;
  border-right: 1px solid var(--hairline);
  margin-right: 20px;
}
.stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- Sections ---------- */

.section {
  border-bottom: 1px solid var(--line);
  padding: var(--pad-section) 0;
}
.section--alt { background: var(--paper-2); }

.section-copy p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

/* Internal text link with arrow */
.link-arrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link-arrow::after { content: " \2192"; text-decoration: none; }
.link-arrow:hover { text-decoration: none; }

.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; }

/* ---------- "Why this site matters" analysis band ---------- */

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.analysis-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
}
.analysis-cell .cell-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.analysis-cell h3 { margin-bottom: 10px; }
.analysis-cell p { font-size: 15px; color: var(--ink); margin: 0; }

.analysis-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.8;
  color: var(--ink-70);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-top: 32px;
  max-width: 64ch;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 30px 0 12px;
  border: 1px solid var(--line);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-70);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-70);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }
table.data .num,
table.data td.num,
table.data th.num {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.data tr.total td {
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.table-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-70);
  margin: 0 0 24px;
  max-width: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { color: var(--ink); }

.btn-primary { background: var(--ink); color: var(--cream-on-ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--cream-on-ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-on-ink); }

.btn-block { display: block; width: 100%; }

/* Underline text button */
.btn-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}
.btn-text:hover { text-decoration: none; color: var(--accent); }

/* CTA band on dark ink: invert */
.cta-band .btn-primary {
  background: var(--cream-on-ink);
  color: var(--ink);
  border-color: var(--cream-on-ink);
}
.cta-band .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--cream-on-ink); }
.cta-band .btn-ghost {
  color: var(--cream-on-ink);
  border-color: rgba(240, 236, 216, .8);
}
.cta-band .btn-ghost:hover { background: var(--cream-on-ink); color: var(--ink); }

/* ---------- Forms ---------- */

.lead-form { max-width: 640px; }

.field { margin-bottom: 26px; }
.field label,
.field .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 9px 2px 11px;
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; border: 1px solid var(--hairline); padding: 12px; }
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); border-color: var(--accent); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  cursor: pointer;
}
.choice input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-70);
  margin: 30px 0;
}
.consent input { accent-color: var(--accent); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.consent a { color: var(--ink); }

.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  line-height: 1.8;
  color: var(--ink-70);
  margin-top: 22px;
}
.form-fallback {
  display: none;
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-top: 26px;
  font-size: 14.5px;
}
.form-fallback.is-visible { display: block; }

/* ---------- FAQ blocks (static, editorial) ---------- */

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 26px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}
.faq-q .faq-num { display: none; }
.faq-q h3 { margin: 0; }
.faq-item p { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--cream-on-ink);
  padding: var(--pad-section) 0;
}
.cta-band a { color: var(--cream-on-ink); }
.cta-band a:not(.btn):hover { color: var(--cream-on-ink); text-decoration: none; }
.cta-title {
  color: var(--cream-on-ink);
  max-width: 18ch;
}
.cta-copy {
  color: rgba(240, 236, 216, .82);
  max-width: 58ch;
  margin-bottom: 30px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-70);
  padding: 22px 0 0;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--ink-40); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-70); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Page head (inner pages) ---------- */

.page-head {
  padding: clamp(36px, 6vw, 72px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 18px; }
.page-head .lede { margin-bottom: 0; }

/* ---------- Share row (calculator / blog) ---------- */

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
  margin: 40px 0;
}
.share-row .share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-right: 8px;
}
.share-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { background: var(--ink); color: var(--cream-on-ink); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: 36px;
}
.agent-block { border: 1px solid var(--line); padding: 22px 24px; max-width: 480px; }
.agent-block .agent-name {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 2px;
}
.agent-block .agent-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.9;
  color: var(--ink-70);
  margin: 8px 0 14px;
}
.agent-block .agent-meta [data-config="AGENT_TITLE"] {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
}
.agent-block .agent-contact { font-size: 14.5px; margin: 0; }
.footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 78ch;
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-70);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom a { color: var(--ink-70); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 404 ---------- */

.fourohfour {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fourohfour .big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* ---------- Figures ---------- */

figure.framed { margin: 34px 0; }
figure.framed img { border: 1px solid var(--line); }
figure.framed figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin-top: 12px;
}

/* ---------- Motion: count-up & single reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .nav-label::after { transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: 0; }
  .hero-figure { max-width: 640px; }
  .hero-figure img { width: 100%; margin-right: 0; }
  .hero-figure .hero-frame { right: -14px; left: -14px; }
}

@media (max-width: 960px) {
  .content { margin-left: 0; padding-top: var(--topbar-h); }
  .topbar { display: flex; }

  .sidebar {
    inset: var(--topbar-h) 0 auto 0;
    width: 100%;
    max-height: calc(100vh - var(--topbar-h));
    border-right: none;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  body.nav-open .sidebar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .stat-band { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .stat:nth-child(2n) { border-right: none; margin-right: 0; padding-right: 0; }
  .analysis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .stat-band { grid-template-columns: 1fr; }
  .stat { border-right: none; margin-right: 0; padding: 16px 0 0; }
  .cta-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- Print ---------- */

@media print {
  .sidebar, .topbar, .nav-toggle, .cta-band, .share-row, .skip-link, .hero-actions { display: none !important; }
  .content { margin-left: 0; padding-top: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .section, .page-head { border-color: #000; }
  .section { break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer { border-top: 1px solid #000; }
}

/* Agent verification links (footer) */
.agent-block .agent-links {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.agent-block .agent-links a { color: var(--ink); }

/* Blog byline + author box */
.page-head .byline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin: 20px 0 0;
}
.page-head .byline a { color: var(--ink); }
.author-box {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
  margin: 48px 0 0;
  max-width: 68ch;
}
.author-box .author-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.author-box .author-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-70);
  margin: 0 0 14px;
}
.author-box p { font-size: 15px; }
.author-box .author-links {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  margin: 0;
}

/* Source citations */
.sources {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.8;
  color: var(--ink-70);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 36px;
  max-width: none;
}
.sources a { color: var(--ink); }

/* Legal clause headings: semantic H2 at H3 visual size */
h2.clause-title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.25; }

/* Thomson Reserve VVIP preview: ticket-style lead CTA */
.vip-cta {
  display: grid;
  grid-template-columns: minmax(190px, 230px) 1fr;
  border: 1px solid var(--line);
}
.vip-date {
  position: relative;
  background: var(--ink);
  color: var(--cream-on-ink);
  padding: clamp(24px, 3vw, 36px) 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.vip-date::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 0;
  border-right: 1px dashed rgba(240, 236, 216, .5);
}
.vip-day {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.02em;
}
.vip-month {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .04em;
}
.vip-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(240, 236, 216, .4);
}
.vip-body { padding: clamp(24px, 3.5vw, 40px); }
.vip-body h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 14px;
}
.vip-points {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  max-width: 62ch;
}
.vip-points li {
  position: relative;
  padding: 0 0 8px 22px;
  line-height: 1.5;
}
.vip-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.vip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.vip-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.7;
  color: var(--ink-70);
  margin: 22px 0 0;
  max-width: 62ch;
}
@media (max-width: 720px) {
  .vip-cta { grid-template-columns: 1fr; }
  .vip-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 22px 20px 26px; }
  .vip-date::after { top: auto; left: 14px; right: 14px; bottom: 0; border-right: 0; border-bottom: 1px dashed rgba(240, 236, 216, .5); }
  .vip-day { font-size: 4.2rem; }
  .vip-count { flex-basis: 100%; margin-top: 6px; }
  .vip-actions .btn { width: 100%; }
}
