/* ============================================================
   CRC The Peridona — luxury static site. Mobile first.

   Colour rule: every section carries its own palette through a
   .zone-light / .zone-dark class. Nothing reads colour from a
   page-wide flag, so text can never land on a background of its
   own colour. New sections MUST get a zone class.
   ============================================================ */

@font-face { font-family: 'Italiana'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../assets/fonts/italiana-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-style: normal; font-display: swap;
  src: url(../assets/fonts/jost-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../assets/fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../assets/fonts/jost-latin-500-normal.woff2) format('woff2'); }

:root {
  --ink: #12100E;
  --ink-2: #1A1714;
  --ink-3: #26221E;
  --paper: #F7F3EC;
  --bone: #EFE8DC;
  --gold: #B8996A;
  --gold-lt: #D7C29A;
  --gold-dk: #7A6034;   /* 5.1:1 on paper — the only gold allowed for text on light */

  --wa: #25D366;
  --wa-mid: #128C7E;
  --wa-dk: #075E54;
  --wa-paper: #ECE5DD;

  --f-display: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --sec-pad: clamp(76px, 11vw, 168px);
  --max: 1320px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.zone-light {
  --bg: var(--paper);
  --fg: #1C1915;
  --fg-2: #5A5248;
  --accent: var(--gold-dk);
  --line: rgba(28, 25, 21, .14);
  --frame: rgba(255, 255, 255, .55);
  background: var(--bg);
  color: var(--fg);
}
.zone-light.alt { --bg: var(--bone); }

.zone-dark {
  --bg: var(--ink);
  --fg: #EFE8DC;
  --fg-2: #ACA294;
  --accent: var(--gold-lt);
  --line: rgba(239, 232, 220, .14);
  --frame: rgba(239, 232, 220, .4);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  background: var(--ink);
  color: #1C1915;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: .72em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-lt); color: var(--ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 900px; }

/* ---------- type ---------- */
h2 {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: .005em;
  margin-bottom: .45em;
}
h2 .num { font-family: var(--f-serif); font-variant-numeric: lining-nums; letter-spacing: 0; }
h2 em, h1 em { font-family: var(--f-serif); font-style: italic; color: var(--accent); }
h3 { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin-bottom: .6em; }

.eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.sec-index {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 1.6em;
}
.sec-index span {
  font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; letter-spacing: 0;
  color: var(--accent); text-transform: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 14px;
}
.sec-index span::after { content: ''; width: 44px; height: 1px; background: var(--accent); opacity: .6; }

.lede { font-size: clamp(1.06rem, 1.4vw, 1.22rem); font-weight: 300; line-height: 1.75; color: var(--fg-2); max-width: 40em; }
.zone-dark .lede { font-weight: 300; }
.quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.3; }
.micro { font-size: 12.5px; line-height: 1.6; color: var(--fg-2); margin-top: 1.2em; }
.micro a { color: var(--accent); }

.render-note {
  display: block;
  font-family: var(--f-sans); font-style: normal;
  font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 6px;
}

/* ---------- brand marks: one mask image, painted any colour ---------- */
.mark {
  display: inline-block;
  background-color: var(--gold-lt);
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.mark-word { --m: url(../assets/brand/wordmark-mask.png); height: 28px; aspect-ratio: 1200 / 273; }
.mark-mono { --m: url(../assets/brand/monogram-mask.png); height: 56px; aspect-ratio: 286 / 297; }
.mark-full { --m: url(../assets/brand/logo-mask.png); width: clamp(180px, 22vw, 250px); aspect-ratio: 1200 / 538; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  text-align: center;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-lt); color: var(--ink); border-color: var(--gold-lt); }
.btn-gold:hover { background: #E8D9B8; border-color: #E8D9B8; }
.btn-line { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 45%, transparent); background: transparent; }
.btn-line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-text {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.btn-text:hover { text-decoration-thickness: 2px; }
.ico { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  color: #EFE8DC;
  --fg: #EFE8DC; --bg: var(--ink);
  background: linear-gradient(rgba(18, 16, 14, .62), rgba(18, 16, 14, 0));
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, body.menu-open .site-header {
  background: rgba(18, 16, 14, .94);
  border-bottom-color: rgba(239, 232, 220, .08);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.scrolled { background: rgba(18, 16, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav { display: none; }
.nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: rgba(239, 232, 220, .86); padding: 12px 0;
  transition: color .3s;
}
.nav a:hover { color: var(--gold-lt); }
.head-actions { display: flex; align-items: center; gap: 12px; }
.head-tel { display: none; font-size: 13px; letter-spacing: .08em; text-decoration: none; color: rgba(239, 232, 220, .86); }
.head-wa span { display: none; }
.head-wa { padding: 0 12px; min-width: 44px; min-height: 44px; }
.menu-btn {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
  align-items: flex-end; background: none; border: 0; cursor: pointer; padding: 0 4px;
}
.menu-btn span { display: block; height: 1px; background: #EFE8DC; transition: transform .35s var(--ease), width .35s var(--ease); }
.menu-btn span:first-child { width: 28px; }
.menu-btn span:last-child { width: 18px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); width: 24px; }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); width: 24px; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  padding: calc(var(--head-h) + 28px) var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-display); font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.25;
  text-decoration: none; padding: 6px 0; color: var(--fg);
}
.menu nav a:hover { color: var(--accent); }
.menu-foot { display: grid; gap: 12px; max-width: 420px; }
body.menu-open { overflow: hidden; }

/* ---------- hero ----------
   Phones: the render sits on top (framed on the crown and sky garden), the
   copy follows on ink. Desktop (>=960px): render right, copy left. */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-media { position: relative; height: 58svh; min-height: 340px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 0%, rgba(18, 16, 14, .55) 22%, rgba(18, 16, 14, 0) 48%),
              linear-gradient(to bottom, rgba(18, 16, 14, .45), rgba(18, 16, 14, 0) 24%);
}
.hero-media .render-note {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--head-h) + 10px); margin: 0;
  color: rgba(239, 232, 220, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.kenburns { animation: kenburns 18s var(--ease) both; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero-copy { position: relative; z-index: 1; margin-top: -72px; padding: 0 var(--gutter) 40px; }
.hero .eyebrow { margin-bottom: 1.2em; }
.hero h1 { margin: 0 0 22px; }
.h1-name {
  display: block; font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2.35rem, 9.4vw, 5.4rem); line-height: 1; letter-spacing: .03em;
}
.h1-tag {
  display: block; margin-top: 14px;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 4.6vw, 2.4rem); line-height: 1;
  color: var(--accent);
}
.hero .lede { color: rgba(239, 232, 220, .84); max-width: 34em; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-facts div { padding: 14px 12px 12px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.hero-facts dd { margin: 0; font-family: var(--f-serif); font-variant-numeric: lining-nums; font-size: clamp(1.1rem, 3.6vw, 1.55rem); line-height: 1.15; }
.hero-facts small { font-family: var(--f-sans); font-size: 11px; color: var(--fg-2); letter-spacing: .04em; }
.hero .cta-row { margin-top: 26px; }
.hero .cta-row .btn { flex: 1 1 220px; }
.rera-line { margin-top: 22px; font-size: 12px; letter-spacing: .08em; color: var(--fg-2); }
.rera-line a { color: var(--accent); }

/* ---------- trust strip ---------- */
.strip { --bg: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.strip ul { display: flex; list-style: none; margin: 0; padding: 0; }
.strip li {
  display: flex; align-items: center; white-space: nowrap; padding: 18px 0;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2);
}
.strip li::after { content: '\2726'; color: var(--gold); margin: 0 30px; font-size: 9px; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: var(--sec-pad) 0; position: relative; }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 80px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.split-copy { max-width: 620px; }

.frame { position: relative; margin: 0; }
.frame img { width: 100%; outline: 1px solid var(--frame); outline-offset: -14px; background: var(--ink-3); }
.frame.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.frame figcaption, .g figcaption {
  font-family: var(--f-serif); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--fg-2);
  margin-top: 14px;
}

.ticks { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 26px; width: 16px; height: 1px; background: var(--accent); }

/* panorama */
.pano { position: relative; min-height: clamp(460px, 82vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.pano > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pano::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 14, .82), rgba(18, 16, 14, .1) 55%); }
.pano-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 72px; max-width: 980px; }
.pano .quote { color: #F4EEE4; font-size: clamp(1.7rem, 4vw, 3.3rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); max-width: 20ch; }
.pano > .render-note { position: absolute; z-index: 1; right: var(--gutter); bottom: 20px; margin: 0; color: rgba(239, 232, 220, .8); }

/* residences */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sizes { width: 100%; border-collapse: collapse; }
.sizes th, .sizes td { text-align: left; padding: 16px 10px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.sizes thead th { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); padding-bottom: 12px; }
.sizes tbody th { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.35rem, 3.4vw, 2.1rem); white-space: nowrap; font-variant-numeric: lining-nums; }
.sizes td { font-size: .95rem; }
.sizes small { font-family: var(--f-sans); font-size: 11px; color: var(--fg-2); letter-spacing: .04em; }
.sizes a { color: var(--accent); text-underline-offset: 4px; white-space: nowrap; }
.res-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: clamp(56px, 8vw, 110px); align-items: center; }
.res-note .quote { margin-bottom: .9em; color: var(--fg); }
.res-note p:not(.quote) { color: var(--fg-2); }

/* floor plans */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.plan-tabs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.plan-group { grid-column: 1; margin: 0; line-height: 1.5; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.plan-tabs button {
  min-height: 52px; padding: 8px 6px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 13px; letter-spacing: .04em; line-height: 1.25; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background-color .3s, color .3s, border-color .3s;
}
.plan-tabs button small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.plan-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-tabs button[aria-selected="true"] small { color: var(--gold-lt); }
.plan-stage { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.plan-zoom { display: block; width: 100%; padding: 0; border: 0; background: #FCF0E2; cursor: zoom-in; box-shadow: 0 30px 60px -40px rgba(28, 25, 21, .5); }
.plan-zoom img { width: 100%; height: auto; transition: opacity .25s; }
.plan-zoom img.loading { opacity: .35; }
.plan-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.plan-title span { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; font-variant-numeric: lining-nums; }
.plan-title em { font-family: var(--f-serif); font-size: 1.2rem; color: var(--accent); }
.plan-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 6px; border-top: 1px solid var(--line); }
.plan-figs div { padding: 12px 8px 12px 0; display: flex; flex-direction: column-reverse; gap: 2px; border-bottom: 1px solid var(--line); }
.plan-figs dt { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.plan-figs dd { margin: 0; font-family: var(--f-serif); font-variant-numeric: lining-nums; font-size: 1.3rem; }
.plan-stage .btn { margin-top: 18px; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
.chip {
  min-height: 42px; padding: 0 16px; background: transparent; border: 1px solid var(--line); cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { color: var(--fg); border-color: var(--fg-2); }
.chip[aria-pressed="true"] { background: var(--gold-lt); color: var(--ink); border-color: var(--gold-lt); }
.masonry { columns: 2; column-gap: 10px; }
.g { break-inside: avoid; margin: 0 0 18px; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden; }
.g-open img { width: 100%; transition: transform 1.2s var(--ease), opacity .4s; }
.g figcaption { font-size: .98rem; margin-top: 8px; }
.gal-note { margin-top: 28px; }

/* club / amenity lists */
.amen { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: am; border-top: 1px solid var(--line); }
.amen li { counter-increment: am; display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.amen li::before { content: counter(am, decimal-leading-zero); font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--accent); min-width: 22px; }

/* rooftop */
.roof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.roof-main img { aspect-ratio: 3 / 4; object-fit: cover; }
.roof-side { display: flex; flex-direction: column; gap: 34px; align-items: flex-start; }
.roof-side .amen { margin: 0; width: 100%; }
.frame.wide { width: 100%; }
.frame.wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }

/* greens */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 20px 14px 20px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); line-height: 1.5; }
.stats dd { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-variant-numeric: lining-nums; }
.stats small { font-family: var(--f-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.stats sup { color: var(--accent); }
.greens-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.aerials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }

/* makers */
.guardian { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: clamp(56px, 8vw, 100px); }
.guardian-photo { margin: 0; }
.guardian-photo img { width: 100%; filter: grayscale(1) contrast(1.04); outline: 1px solid var(--frame); outline-offset: -14px; }
.guardian-name { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: .2em; }
.guardian-sub { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--accent); }
.guardian p:not([class]) { color: var(--fg-2); max-width: 34em; }
.makers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.makers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.m-firm { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.2; }
.m-role { grid-column: 1; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.m-c { grid-column: 2; grid-row: 1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); align-self: center; }

/* location */
.times { list-style: none; padding: 0; margin: 10px 0 34px; border-top: 1px solid var(--line); }
.times li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.times .t { font-family: var(--f-serif); font-weight: 500; font-size: 1.6rem; color: var(--accent); line-height: 1; font-variant-numeric: lining-nums; }
.addr { font-style: normal; color: var(--fg-2); max-width: 32em; }
.plan-paper .g-open { background: #FCF0E2; }
.frame.tall.plan-paper img { object-fit: contain; background: #FCF0E2; padding: 18px 0; }

/* pricing */
.terms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.terms h3 { color: var(--fg); }
.terms h3:not(:first-child) { margin-top: 36px; }
.schedule, .plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schedule li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.schedule b { font-variant-numeric: lining-nums; font-family: var(--f-serif); font-weight: 500; font-size: 1.35rem; color: var(--accent); text-align: right; white-space: nowrap; }
.schedule b small { display: block; font-family: var(--f-sans); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--fg-2); white-space: normal; }
.plain li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font-family: var(--f-serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--accent);
  transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--fg-2); padding: 0 0 24px; max-width: 46em; }
.faq a { color: var(--accent); }
.faq-tail { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--fg-2); }

/* contact */
.contact { position: relative; padding: var(--sec-pad) 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(18, 16, 14, .96) 25%, rgba(18, 16, 14, .7)); }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.contact .mark-mono { margin-bottom: 30px; }
.contact-direct { display: flex; flex-direction: column; margin-top: 30px; }
.contact-direct a { font-family: var(--f-serif); font-weight: 500; font-variant-numeric: lining-nums; font-size: clamp(1.8rem, 4vw, 2.6rem); text-decoration: none; line-height: 1.1; }
.contact-direct span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2); margin-top: 6px; }

.lead { background: rgba(18, 16, 14, .78); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); position: relative; }
.form-title { font-family: var(--f-display); font-size: 1.9rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 4px; }
.field label small { text-transform: none; letter-spacing: .02em; font-size: 11px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid rgba(239, 232, 220, .35); border-radius: 0;
  padding: 10px 0; min-height: 46px;
  transition: border-color .3s;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold-lt); }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-lt) 50%), linear-gradient(135deg, var(--gold-lt) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { color: #1C1915; }
.tel-wrap { display: flex; align-items: center; gap: 10px; }
.tel-wrap span { color: var(--fg-2); padding-top: 2px; }
.field-error { min-height: 0; margin: 6px 0 0; font-size: 12.5px; color: #F0A88F; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead .btn-block { margin-top: 10px; }
.form-success, .form-fallback { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--gold); font-size: 14.5px; }
.form-fallback .cta-row { margin-top: 14px; }

/* footer */
.site-footer { --bg: #0D0C0A; padding: clamp(64px, 9vw, 110px) 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-bottom: 44px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; font-size: 14.5px; color: var(--fg-2); }
.foot-cols p { margin: 0 0 .4em; overflow-wrap: anywhere; }
.foot-cols .eyebrow { margin-bottom: .8em; }
.foot-cols a { color: var(--fg); text-underline-offset: 4px; }
.legal { border-top: 1px solid var(--line); padding-top: 30px; font-size: 13px; line-height: 1.75; color: var(--fg-2); }
.legal a { color: var(--accent); }
.legal .disclose { font-size: 14.5px; color: var(--fg); }


/* ---------- hero additions: pedigree line, keyword sub-line, quick form ---------- */
.h1-sub {
  display: block; margin-top: 12px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(239, 232, 220, .78); line-height: 1.6;
}
.hero-pedigree {
  margin: 22px 0 0; padding: 14px 0 14px 18px; border-left: 2px solid var(--gold);
  font-size: 15px; line-height: 1.6; color: rgba(239, 232, 220, .86); max-width: 34em;
}
.hero-pedigree span { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.hero-pedigree strong { font-family: var(--f-serif); font-weight: 500; font-size: 1.3rem; color: #F4EEE4; }
.hero .lede { margin-top: 18px; }
.hero-form { margin-top: 26px; padding: 20px; border: 1px solid var(--line); background: rgba(26, 23, 20, .72); }
.hero-form-title { font-family: var(--f-serif); font-size: 1.35rem; margin-bottom: 10px; }
.hero-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.hero-form .field { margin-bottom: 12px; }
.hero-form .micro { margin-top: 10px; }
.hero-alt { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-2); }
.hero-alt a { color: var(--accent); text-underline-offset: 4px; }
@media (min-width: 600px) { .hero-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- downloads (lead magnets) ---------- */
.downloads { --bg: var(--ink-2); padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.dl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dl-grid li { border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-kind { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.2; margin: 0; }
.dl-desc { color: var(--fg-2); font-size: 14.5px; margin: 0 0 8px; flex: 1; }
.dl-grid .btn { align-self: flex-start; }
.dl-grid .btn small { font-size: 10px; opacity: .75; letter-spacing: .1em; }
@media (min-width: 860px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- download gate / popup ---------- */
.gate {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 34px 28px 26px; border: 1px solid rgba(239, 232, 220, .16); background: var(--ink); color: var(--fg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.gate::backdrop { background: rgba(8, 7, 6, .72); backdrop-filter: blur(3px); }
.gate .mark-mono { height: 44px; margin-bottom: 14px; }
.gate-title { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 8px; }
.gate-sub { color: var(--fg-2); font-size: 14.5px; margin-bottom: 18px; }
.gate-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--fg); font-size: 26px; cursor: pointer; }

/* ---------- mobile contact bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
  border-top: 1px solid rgba(239, 232, 220, .12);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.mbar-call { color: #EFE8DC; }
.mbar-wa { background: var(--wa-dk); color: #fff; }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

/* ---------- WhatsApp widget ---------- */
.wa-widget { position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 55; }
.wa-launch {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
}
.wa-launch svg { width: 30px; height: 30px; }
.wa-launch::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: halo 2.6s ease-out infinite; pointer-events: none;
}
@keyframes halo { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.wa-nudge {
  position: absolute; right: 0; bottom: 68px; width: 230px; padding: 12px 34px 12px 14px;
  background: #fff; color: #1C1915; font-size: 13.5px; line-height: 1.45; border-radius: 10px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .4);
}
.wa-nudge-x { position: absolute; right: 2px; top: 2px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; color: #5A5248; }
.wa-panel {
  position: absolute; right: 0; bottom: 68px; width: min(360px, calc(100vw - 32px));
  max-height: calc(100svh - var(--head-h) - 156px); display: flex; flex-direction: column;
  background: #fff; color: #1C1915; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
  font-size: 14px; line-height: 1.45;
}
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; background: var(--wa-dk); color: #fff; }
.wa-avatar { width: 38px; height: 38px; background-color: var(--gold-lt); flex: none; }
.wa-title { margin: 0; font-weight: 500; }
.wa-sub { margin: 0; font-size: 12px; opacity: .8; }
.wa-close { margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.wa-body {
  padding: 16px; overflow-y: auto;
  background-color: var(--wa-paper);
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-bubble { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 0 10px 10px 10px; margin: 0 0 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wa-chips button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--wa-dk); border: 1px solid rgba(18, 140, 126, .35); font-size: 13px;
}
.wa-chips button[aria-pressed="true"] { background: var(--wa-mid); color: #fff; border-color: var(--wa-mid); }
.wa-label { display: block; margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5A5248; }
.wa-body textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; margin-bottom: 12px; resize: vertical;
  border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px; background: #fff;
}
.wa-preview {
  margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--f-sans); font-size: 13px;
  background: #DCF8C6; padding: 10px 12px; border-radius: 10px 0 10px 10px; color: #1C1915;
}
.wa-foot { padding: 12px 16px 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.wa-send {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px;
  background: var(--wa); color: #062E22; font-weight: 500; text-decoration: none; letter-spacing: .04em;
}
.wa-foot p { margin: 8px 0 0; font-size: 12px; color: #5A5248; text-align: center; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 9, 8, .97); color: #EFE8DC;
  --fg: #EFE8DC; --fg-2: #ACA294; --accent: var(--gold-lt);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; padding: 56px 12px 16px; max-width: 100%; }
.lb-img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; margin-top: 14px; max-width: 60ch; }
.lb-cap { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; }
.lb-note { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 4px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 1px solid rgba(239, 232, 220, .25);
  background: rgba(18, 16, 14, .6); color: #EFE8DC; font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- links from home sections to the guide pages ---------- */
.more-link { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 22px 0 0; }

/* ---------- menu: guide list under the section list ---------- */
.menu-guides { margin-top: 4px; }
.menu-guides .eyebrow { margin-bottom: 4px; }
.menu .menu-guides a { font-family: var(--f-sans); font-size: 15px; letter-spacing: .04em; line-height: 1.4; padding: 8px 0; color: var(--fg-2); }
.menu .menu-guides a:hover, .menu a[aria-current="page"] { color: var(--accent); }

/* ---------- footer: guide links ---------- */
.foot-guides { border-top: 1px solid var(--line); padding: 26px 0 28px; }
.foot-guides .eyebrow { margin-bottom: .6em; }
.foot-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-guides a { display: inline-block; padding: 7px 0; font-size: 14px; color: var(--fg); text-underline-offset: 4px; }

/* ============================================================
   Guide pages (/<slug>/) — generated by scripts/build_pages.py
   ============================================================ */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 86svh, 860px); overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 16, 14, .96) 6%, rgba(18, 16, 14, .72) 42%, rgba(18, 16, 14, .3) 72%, rgba(18, 16, 14, .5));
}
.page-hero.plain { min-height: 0; background: var(--ink); }
.page-hero.plain::after { display: none; }
.page-hero-copy { position: relative; z-index: 1; padding-top: calc(var(--head-h) + 48px); padding-bottom: clamp(44px, 7vw, 84px); }
.page-hero h1 {
  font-family: var(--f-display); font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: .005em;
  margin: 0 0 .4em; max-width: 15ch; color: #F4EEE4;
}
.page-hero .eyebrow { color: var(--gold-lt); }
.page-hero .lede { color: rgba(239, 232, 220, .9); max-width: 44em; }
.page-hero .cta-row { margin-top: 28px; }
.page-hero > .render-note {
  position: absolute; z-index: 1; right: var(--gutter); top: calc(var(--head-h) + 10px); margin: 0;
  color: rgba(239, 232, 220, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 232, 220, .7); }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--gold); }
.crumbs a { color: #EFE8DC; text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--gold-lt); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 1.5em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a, .sec .rv > a:not(.btn):not(.btn-text) { color: var(--accent); text-underline-offset: 4px; }
.table-wrap + .prose, .sizes + .prose { margin-top: 40px; }
.nowrap { white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); line-height: 1.5; }
.facts dd { margin: 0; font-family: var(--f-serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.facts small { font-family: var(--f-sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }

/* unit plans */
.unit-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); }
.unit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.unit h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-variant-numeric: lining-nums; margin-bottom: .5em; }
.unit-copy > p:not(.eyebrow):not(.micro) { color: var(--fg-2); margin-top: 18px; }
.unit .plan-figs, .mini .plan-figs { margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-zoom { display: block; width: 100%; padding: 0; border: 0; background: #FCF0E2; cursor: zoom-in; box-shadow: 0 30px 60px -40px rgba(28, 25, 21, .5); }
.g-zoom img { width: 100%; height: auto; }
.rooms { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.rooms th, .rooms td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rooms th { font-weight: 400; color: var(--fg); }
.rooms td { color: var(--fg-2); white-space: nowrap; font-variant-numeric: lining-nums; text-align: right; padding-right: 0; }

.mini-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.mini h3 { margin: 18px 0 10px; font-variant-numeric: lining-nums; }
.mini p { color: var(--fg-2); margin-top: 14px; }
.mini a { color: var(--accent); text-underline-offset: 4px; }
.sizes.cmp tbody th { font-family: var(--f-sans); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); white-space: normal; }
.sizes.cmp td { font-family: var(--f-serif); font-size: 1.15rem; font-variant-numeric: lining-nums; }

.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; border-top: 1px solid var(--line); max-width: 860px; }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.chapters li::before { content: counter(ch, decimal-leading-zero); grid-row: span 2; font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.chapters b { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.chapters span { color: var(--fg-2); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; max-width: 760px; border-top: 1px solid var(--line); }
.steps li { counter-increment: st; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 50%; font-family: var(--f-serif); font-size: 1.1rem; color: var(--accent); }
.steps a { color: var(--accent); }

.cta-band { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.cta-band .lede { margin-top: 4px; }

.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.guide-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 22px; border: 1px solid var(--line); text-decoration: none; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.guide-cards a:hover { border-color: var(--accent); background: rgba(239, 232, 220, .03); }
.guide-cards b { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--fg); }
.guide-cards span { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.rel-home { margin-top: 26px; }

/* 404 */
.nf { padding: 0; }
.nf-main { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; }
.nf .mark-mono { margin-bottom: 28px; }
.nf-title { font-family: var(--f-display); font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.08; margin-bottom: .4em; }
.nf .lede { margin: 0 auto; }
.nf .cta-row { justify-content: center; }
.nf-guides { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; max-width: 760px; }
.nf-guides a { display: inline-block; padding: 8px 0; color: var(--accent); text-underline-offset: 4px; }

@media (min-width: 700px) {
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 56px); }
}
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .unit { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .unit .g-zoom { position: sticky; top: calc(var(--head-h) + 20px); }
  .page-hero-copy { padding-bottom: clamp(56px, 8vw, 100px); }
}
@media (min-width: 1100px) {
  .guide-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- render only what is near the screen ----------
   Below-the-fold sections skip style and layout until they come close, which
   cut the home page's main-thread work on a mid-range phone. "auto" keeps the
   last rendered height, so anchors and the scrollbar stay stable. */
@supports (content-visibility: auto) {
  main > section:not(.hero):not(.page-hero), main > .pano, .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

/* ---------- reveal (calm) ----------
   JS adds .rv-on to <html> only once it is running, so content is
   visible if the script never loads. The transition lives on the
   REVEALED state only: on the base state it would make blocks fade
   out and back in when the class is first applied. */
.rv-on .rv:not(.in) { opacity: 0; transform: translateY(22px); }
.rv.in { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }

@media (max-width: 400px) {
  .sizes th, .sizes td { padding-right: 6px; }
  .sizes td { font-size: .88rem; }
  .sizes td small { display: none; }
}

/* ============================================================
   Larger screens
   ============================================================ */
@media (min-width: 600px) {
  .btn { white-space: nowrap; }
  .masonry { column-gap: 18px; }
  .g { margin-bottom: 26px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .makers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .amen { columns: 2; column-gap: 40px; border-top: 0; }
  .amen li { break-inside: avoid; }
  .amen li:first-child, .amen li:nth-child(6) { border-top: 1px solid var(--line); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-wa span { display: inline; }
  .head-wa { padding: 0 16px; }
}

@media (min-width: 760px) {
  :root { --head-h: 72px; }
  .mark-word { height: 32px; }
  .res-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
  .guardian { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); }
  .mbar { display: none; }
  body { padding-bottom: 0; }
  .wa-widget { bottom: 24px; right: 24px; }
  .wa-panel { max-height: calc(100svh - var(--head-h) - 110px); }
  .aerials { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .hero { flex-direction: row; justify-content: flex-start; }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; height: auto; min-height: 0; }
  .hero-media::after { background: linear-gradient(to right, rgba(18, 16, 14, .55), rgba(18, 16, 14, 0) 26%); }
  .hero-media img { object-position: 50% 42%; }
  .hero-copy {
    width: 46%; min-height: 100svh; margin-top: 0; padding: calc(var(--head-h) + 6vh) clamp(32px, 4.5vw, 80px) 56px var(--gutter);
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero .cta-row .btn { flex: 0 0 auto; }
  .h1-name { font-size: clamp(2.8rem, 4.4vw, 4.6rem); }
  /* the quick form floats over the render, so the copy column fits one screen */
  .hero-copy { position: static; padding-top: calc(var(--head-h) + 3vh); padding-bottom: 40px; }
  .hero-form {
    position: absolute; z-index: 3; right: var(--gutter); bottom: 100px; width: min(400px, 36vw); margin: 0;
    background: rgba(18, 16, 14, .82); border-color: rgba(239, 232, 220, .2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .hero-fields { grid-template-columns: minmax(0, 1fr); }
  .hero-pedigree { margin-top: 18px; }
  .hero-facts { margin-top: 20px; }

  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
  .split.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .masonry { columns: 3; column-gap: 24px; }
  .plans { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .plan-tabs { display: flex; flex-direction: column; gap: 0; position: sticky; top: calc(var(--head-h) + 24px); }
  .plan-group { margin: 22px 0 6px; }
  .plan-group:first-child { margin-top: 0; }
  .plan-tabs button {
    flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left;
    min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); font-size: 15px;
  }
  .plan-tabs button[aria-selected="true"] { background: var(--ink); }
  .plan-stage { grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: clamp(24px, 3vw, 44px); }
  .plan-zoom img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; }
  .plan-figs { grid-template-columns: minmax(0, 1fr); }
  .roof-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats div { padding-right: 20px; }
  .greens-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .terms { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
  .contact-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(48px, 8vw, 140px); align-items: center; }
  .foot-top { grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
  .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-close { top: 18px; right: 24px; }
}

@media (min-width: 1180px) {
  .nav { display: flex; gap: clamp(18px, 2vw, 30px); }
  .menu-btn { display: none; }
  .makers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1360px) {
  .head-tel { display: inline; }
}

/* thumb-sized targets for the stand-alone text links */
@media (pointer: coarse) {
  .sizes a, .foot-cols a { display: inline-block; padding: 11px 0; margin: -11px 0; }
}

@media (hover: hover) {
  .g-open:hover img { transform: scale(1.035); }
}

/* Calm build: everything still appears and fades, nothing travels. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kenburns { animation: none; }
  /* a still ticker: one line, swipeable, fading out at the edge */
  .strip-track {
    animation: none; width: auto; padding-left: var(--gutter);
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .strip-track::-webkit-scrollbar { display: none; }
  .strip ul[aria-hidden="true"] { display: none; }
  .wa-launch::before { animation: none; display: none; }
  .rv-on .rv:not(.in) { transform: none; }
  .rv.in { transition: opacity .8s ease; }
  .g-open img { transition: none; }
}
