/* =============================================================
   SNN Kannur Road — "Ledger" theme
   Authored for this site; SNN Estates' first microsite.

   Design intent: warm, classical, centre-weighted. Serif display over
   an ivory ground derived from the brand gold, gold hairlines, and
   near-black statement bands that carry the numbers. Rounded soft
   surfaces rather than the hard grid of a spec sheet.

   Palette from builders/snn-estates.json.
   Contrast note: --brand-primary #ddb249 is only 1.99:1 on white and is
   therefore DECORATIVE ONLY — rules, fills, and large display over dark.
   Every piece of gold text on a light ground uses --brand-secondary
   #7a5c14 (6.23:1). Gold-on-near-black (#ddb249 on #171717) is 9.3:1.
   ============================================================= */

:root {
  /* The nine canonical brand tokens (builders/snn-estates.json) */
  --brand-primary:   #ddb249;
  --brand-secondary: #7a5c14;
  --brand-tertiary:  #d3d4d6;
  --dark-primary:    #171717;
  --dark-secondary:  #4a4a4a;
  --dark-tertiary:   #d8d8d8;
  --light-primary:   #f8f8f8;
  --light-secondary: #ffffff;
  --light-tertiary:  #eeeeee;

  /* Form state */
  --state-success: #166534;
  --state-error:   #991b1b;

  /* Semantic aliases — all derived from the nine above */
  --ink:      var(--dark-primary);
  --ink-soft: var(--dark-secondary);
  --line:     var(--dark-tertiary);
  --hairline: color-mix(in srgb, var(--brand-primary) 34%, transparent);
  --ivory:    color-mix(in srgb, var(--brand-primary) 7%, var(--light-primary));
  --ivory-deep: color-mix(in srgb, var(--brand-primary) 13%, var(--light-primary));
  --surface:  var(--light-secondary);
  --gold-ink: var(--brand-secondary);
  --night:    var(--dark-primary);

  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --shell:  1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --rhythm: clamp(3.5rem, 7.5vw, 6rem);
  --navh:   72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; padding: 10px 16px;
  background: var(--night); color: var(--brand-primary); z-index: 2000; border-radius: var(--radius);
}

/* ---------- shell + bands ---------------------------------- */

.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.band { padding-block: var(--rhythm); }
.band--tint { background: var(--ivory-deep); }
.band--wash { background: var(--surface); }
.band--dark { background: var(--night); color: color-mix(in srgb, var(--light-secondary) 88%, transparent); }
.band--dark .sec-title, .band--dark h3 { color: var(--light-secondary); }
.band--dark .eyebrow, .band--dark .sec-index { color: var(--brand-primary); }
.band--dark .sec-lede { color: color-mix(in srgb, var(--light-secondary) 78%, transparent); }
.band--dark .prose p, .band--dark .prose li { color: color-mix(in srgb, var(--light-secondary) 82%, transparent); }
.band--dark .prose strong { color: var(--light-secondary); }
/* `:not(.btn)` matters: this rule is (0,1,1) and would otherwise out-specify
   `.btn--light` (0,1,0), painting gold on the white pill at 1.99:1. */
.band--dark .prose a, .band--dark a:not(.btn) { color: var(--brand-primary); text-decoration: underline; text-underline-offset: .18em; }
.band--dark .rule { border-color: color-mix(in srgb, var(--brand-primary) 60%, transparent); }

/* ---------- type ------------------------------------------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.008em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; }

.eyebrow {
  display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}
.sec-head { max-width: 64ch; margin-inline: auto; text-align: center; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.sec-head--wide { max-width: none; margin-inline: 0; text-align: left; }
.sec-index {
  display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .8rem;
}
.sec-title { margin-bottom: .9rem; }
.sec-title em { font-style: italic; color: var(--gold-ink); }
.band--dark .sec-title em { color: var(--brand-primary); }
.sec-lede { color: var(--ink-soft); font-size: 1.05rem; }
.sec-head:not(.sec-head--wide) .sec-lede { margin-inline: auto; }
.rule {
  width: 72px; height: 0; border-top: 1px solid var(--brand-primary);
  border-bottom: 3px solid var(--brand-primary); margin: 1rem 0 1.3rem;
}
.sec-head:not(.sec-head--wide) .rule { margin-inline: auto; }

.page-updated { margin: .75rem 0 1.2rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.4; }
.page-updated time { font-weight: 600; }
.hero .page-updated, .page-hero .page-updated { color: color-mix(in srgb, var(--light-secondary) 84%, transparent); }

/* ---------- prose ------------------------------------------ */

.prose > * + * { margin-top: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose h3 { color: var(--ink); margin-top: 2.1rem; }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose ul { list-style: none; padding-left: 1.3rem; }
.prose ul > li { position: relative; margin-top: .55rem; }
.prose ul > li::before {
  content: "◆"; position: absolute; left: -1.3rem; top: 0;
  color: var(--brand-primary); font-size: .68em; line-height: 2.4;
}
.prose ol { list-style: decimal; padding-left: 1.35rem; }
.prose ol > li { margin-top: .55rem; }
.prose ol > li::marker { color: var(--gold-ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--brand-primary); padding: .4rem 0 .4rem 1.15rem;
  font-family: var(--font-display); font-size: 1.12rem; color: var(--ink);
}

.table-wrap { overflow-x: auto; margin-top: 1.5rem; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  font-variant-numeric: tabular-nums; min-width: 460px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.data-table th, .data-table td { text-align: left; padding: .78rem 1rem; vertical-align: top; }
.data-table thead th {
  font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--light-secondary); background: var(--night); white-space: nowrap;
}
.data-table tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.data-table td:first-child { color: var(--ink); font-weight: 600; }
/* The developer-comparison tables lead with a blank corner header, so their
   first column is marked up as `<th scope="row">`. Keep it reading as the data
   column it is — the dark `thead th` treatment must not leak into the body. */
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table tbody tr + tr th { border-top: 1px solid color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.band--dark .data-table { background: color-mix(in srgb, var(--light-secondary) 6%, transparent); border-color: color-mix(in srgb, var(--brand-primary) 40%, transparent); }
.band--dark .data-table td { color: color-mix(in srgb, var(--light-secondary) 84%, transparent); }
.band--dark .data-table td:first-child, .band--dark .data-table tbody th { color: var(--light-secondary); }
.band--dark .data-table thead th { background: color-mix(in srgb, var(--brand-primary) 88%, transparent); color: var(--night); }

/* ---------- buttons ---------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .88rem; font-weight: 650; letter-spacing: .02em; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--solid { background: var(--brand-primary); color: var(--night); border-color: var(--brand-primary); }
.btn--solid:hover { background: var(--night); color: var(--brand-primary); transform: translateY(-1px); }
/* The ghost button changes ink per surface — deep gold on ivory, bright gold on
   anything dark. Those context rules set `--ghost-ink` and NEVER `color`.
   That is load-bearing. A context rule like `.hero__actions .btn--ghost` is
   (0,2,0) — the same weight as `.btn--ghost:hover` — so if it declared `color`
   it would win on source order alone and repaint the hovered pill's text back
   to gold, on the gold background the hover just filled in: 1.00:1, a button
   with no readable label and no audit that catches it (axe never hovers).
   Routing every surface override through the custom property leaves exactly two
   `color` declarations on this button, and `:hover` outranks both. */
.btn--ghost { background: transparent; color: var(--ghost-ink, var(--gold-ink)); border-color: var(--brand-primary); }
.btn--ghost:hover { background: var(--brand-primary); color: var(--night); }
.btn--light { background: var(--light-secondary); color: var(--night); border-color: var(--light-secondary); }
.btn--light:hover { background: transparent; color: var(--light-secondary); border-color: var(--light-secondary); }
.band--dark .btn { text-decoration: none; }
.band--dark .btn--ghost { --ghost-ink: var(--brand-primary); border-color: var(--brand-primary); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.75rem, 3vw, 2.4rem); }
.cta-row--center { justify-content: center; }

/* ---------- navigation ------------------------------------- */

.site-head { position: sticky; top: 0; z-index: 900; }
.nav {
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 28%, transparent);
  transition: background .2s ease, border-color .2s ease;
}
.nav--scrolled { background: var(--surface); border-bottom-color: var(--brand-primary); }
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--navh); }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav__mark { width: 40px; height: 40px; border-radius: 50%; }
.brand-text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; min-width: 0; }
/* Channel-partner disclosure — the quiet line above the name it qualifies.
   --ink-soft reads 8:1 on the nav's ivory, well clear of AA at this size. */
.brand-prefix { font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.brand-project { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.3rem); }
/* The full link row appears at 1025 but the shell is still narrow there, and
   the disclosure adds ~37px to the brand — enough that "Master Plan" and
   "Floor Plans" broke onto two lines. Tightening eight gaps buys back ~42px,
   which is cheaper than shrinking 9px legal type any further. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .nav__links { gap: .6rem; }
}
/* Below ~1100 the gaps alone are not enough, and something has to give. Let it
   be the brand: the disclosure wraps to a second line there (41px inside a
   72px bar, harmless) while the nav labels stay intact. A wrapped "Master
   Plan" is what actually looked broken. */
.nav__links a { white-space: nowrap; }
.nav__links a { position: relative; font-size: .85rem; font-weight: 550; color: var(--ink-soft); padding: .3rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand-primary); transition: right .22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta {
  padding: .58rem 1.25rem; font-size: .83rem; font-weight: 650; border-radius: 999px;
  background: var(--night); color: var(--brand-primary);
}
.nav__cta:hover { background: var(--brand-primary); color: var(--night); }
.nav__burger {
  display: none; width: 42px; height: 38px; background: none;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 55%, transparent);
  border-radius: 999px; cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav__burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none; background: var(--surface);
  border-bottom: 1px solid var(--brand-primary); padding: .5rem var(--gutter) 1.4rem;
}
.nav-drawer--open { display: block; }
.nav-drawer a {
  display: block; padding: .8rem .1rem; font-size: .95rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 24%, transparent);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer .btn { display: flex; margin-top: 1.1rem; border-bottom: 0; }

@media (max-width: 1024px) {
  .nav__links { display: none !important; }
  .nav__burger { display: flex !important; }
}

/* ---------- home hero -------------------------------------- */

.hero { position: relative; color: var(--light-secondary); background: var(--night); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night) 78%, transparent) 0%,
                            color-mix(in srgb, var(--night) 62%, transparent) 45%,
                            color-mix(in srgb, var(--night) 88%, transparent) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center;
  padding-block: clamp(3.25rem, 7.5vw, 6rem);
}
.hero__eyebrow {
  display: block; margin-bottom: 1.05rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brand-primary);
}
.hero__copy::before {
  content: ""; display: block; width: 80px; height: 0;
  border-top: 1px solid var(--brand-primary); border-bottom: 3px solid var(--brand-primary);
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--light-secondary); }
.hero h1 em { display: block; font-style: italic; font-size: .48em; font-weight: 400; margin-top: .65rem; color: var(--brand-primary); }
.hero__lead { margin-top: .4rem; font-size: 1.02rem; color: color-mix(in srgb, var(--light-secondary) 86%, transparent); max-width: 60ch; }
.hero__lead a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: .18em; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); margin-top: 2rem; }
.hstat { border-top: 1px solid color-mix(in srgb, var(--brand-primary) 62%, transparent); padding-top: .7rem; }
.hstat__n { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--brand-primary); }
.hstat__l { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--light-secondary) 74%, transparent); margin-top: .2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }
.hero__actions .btn--ghost { --ghost-ink: var(--brand-primary); border-color: var(--brand-primary); }

/* ---------- subpage hero ----------------------------------- */

.page-hero { position: relative; color: var(--light-secondary); background: var(--night); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 80%, transparent) 0%,
                                      color-mix(in srgb, var(--night) 88%, transparent) 100%);
}
.page-hero__inner {
  position: relative; z-index: 2; padding-block: clamp(3rem, 6.5vw, 5rem);
  max-width: 74ch; margin-inline: auto; text-align: center;
}
.page-hero__eyebrow {
  display: block; margin-bottom: 1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brand-primary);
}
.page-hero h1 { color: var(--light-secondary); }
.page-hero__lead { margin-top: .55rem; font-size: 1.02rem; color: color-mix(in srgb, var(--light-secondary) 86%, transparent); }
.page-hero__lead a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: .18em; }
.page-hero .page-updated, .page-hero .cta-row { justify-content: center; }

/* ---------- facts, cards, grids ----------------------------- */

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(.85rem, 1.8vw, 1.25rem); margin-top: 1.6rem; }
.fact {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.fact__k { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.fact__v { margin-top: .4rem; font-size: .96rem; color: var(--ink); }
.fact__v a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: .18em; }
.band--dark .fact { background: color-mix(in srgb, var(--light-secondary) 7%, transparent); border-color: color-mix(in srgb, var(--brand-primary) 34%, transparent); }
.band--dark .fact__k { color: var(--brand-primary); }
.band--dark .fact__v { color: color-mix(in srgb, var(--light-secondary) 90%, transparent); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.6rem; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-primary); }
.card:hover { transform: translateY(-3px); border-color: var(--brand-primary); }
.card__title { margin-bottom: .55rem; }
.card__body { color: var(--ink-soft); font-size: .96rem; }
.card__body a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: .18em; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 1.85rem; text-align: center; }
.stat { padding-top: .85rem; border-top: 1px solid var(--brand-primary); }
.stat__n { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; color: var(--gold-ink); }
.stat__l { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.band--dark .stat__n { color: var(--brand-primary); }
.band--dark .stat__l { color: color-mix(in srgb, var(--light-secondary) 72%, transparent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.25rem); align-items: center; }
.split--media-first .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--hairline); }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.pill {
  border: 1px solid var(--hairline); border-radius: 999px; padding: .35rem .95rem;
  font-size: .82rem; color: var(--ink-soft); background: var(--surface);
}

.note {
  margin-top: 1.85rem; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); padding: 1.3rem 1.4rem; position: relative; overflow: hidden;
}
.note::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand-primary); }
.note h3 { margin-bottom: .55rem; }
.note p + p { margin-top: .75rem; }
.note--warn::before { background: var(--state-error); }
.band--dark .note { background: color-mix(in srgb, var(--light-secondary) 7%, transparent); }

/* ---------- amenities -------------------------------------- */

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: .7rem; margin-top: 1.6rem; }
.amenity {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: .85rem 1.05rem; font-size: .92rem; color: var(--ink);
  display: flex; align-items: flex-start; gap: .6rem;
}
.amenity::before { content: "◆"; color: var(--brand-primary); font-size: .7em; line-height: 2.3; }
.band--dark .amenity { background: color-mix(in srgb, var(--light-secondary) 7%, transparent); color: color-mix(in srgb, var(--light-secondary) 90%, transparent); border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent); }

/* ---------- gallery ---------------------------------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(.9rem, 1.8vw, 1.3rem); margin-top: 1.6rem; }
.gallery-item { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__cap { padding: .8rem 1rem .95rem; font-size: .85rem; color: var(--ink-soft); }
.gallery-item__cap strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }

/* ---------- plans / pricing -------------------------------- */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.6rem; }
.plan { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.plan__img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--light-secondary); padding: .8rem; }
.plan__meta { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--hairline); text-align: center; }
.plan__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.plan__area { font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.plan__tag {
  display: inline-block; margin-top: .65rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--night); background: var(--brand-primary);
  padding: .22rem .7rem; border-radius: 999px;
}

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.6rem; }
.price-card {
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-align: center;
}
.price-card--featured { background: var(--night); border-color: var(--brand-primary); color: var(--light-secondary); }
.price-card__config { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.price-card__area { font-size: .86rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: .25rem; }
.price-card--featured .price-card__area { color: color-mix(in srgb, var(--light-secondary) 74%, transparent); }
.price-card__amount {
  margin-top: 1.05rem; padding-top: 1.05rem; border-top: 1px solid var(--hairline);
  font-size: 1.05rem; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums;
}
.price-card--featured .price-card__amount { color: var(--brand-primary); border-top-color: color-mix(in srgb, var(--brand-primary) 45%, transparent); }
.price-card__note { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .45rem; min-height: 1.2em; }
.price-card--featured .price-card__note { color: var(--brand-primary); }
.price-card .btn { margin-top: 1.25rem; }
/* The featured card is a dark surface inside a light band, so `.band--dark`
   never reaches it and the ghost button would otherwise keep deep-gold ink at
   2.9:1. Set the ink token, not `color` — see the note on `.btn--ghost`. */
.price-card--featured .btn--ghost { --ghost-ink: var(--brand-primary); border-color: var(--brand-primary); }

/* ---------- location map ----------------------------------- */

.map-card { display: block; position: relative; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.map-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.map-card__tag {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px;
  background: var(--night); color: var(--brand-primary); border-radius: 999px;
  font-size: .78rem; font-weight: 650; padding: .5rem 1.2rem; white-space: nowrap;
}

/* ---------- FAQ -------------------------------------------- */

.faq-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.faq-item.is-open { border-color: var(--brand-primary); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.05rem 1.25rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); line-height: 1.35;
}
.faq-q:hover { color: var(--gold-ink); }
.faq-icon {
  flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-primary); color: var(--night);
  font-family: var(--font-body); font-size: 1rem; line-height: 1; transition: transform .22s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(135deg); }
/* The 0fr -> 1fr grid trick is used for the collapse, but the TRANSITION is on
   the inner content, not on grid-template-rows: `fr` interpolation is not
   supported everywhere, and where it is missing the row stays stuck at 0 and
   the answer never appears. Snapping the row open and fading the copy in works
   in every browser that supports grid at all. */
.faq-a { display: grid; grid-template-rows: 0fr; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a__inner > div { opacity: 0; transform: translateY(-4px); transition: opacity .22s ease, transform .22s ease; }
.faq-item.is-open .faq-a__inner > div { opacity: 1; transform: none; }
.faq-a__inner > div { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); max-width: 80ch; }
.faq-a__inner a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: .18em; }
.band--dark .faq-item { background: color-mix(in srgb, var(--light-secondary) 7%, transparent); }
.band--dark .faq-q { color: var(--light-secondary); }
.band--dark .faq-a__inner > div { color: color-mix(in srgb, var(--light-secondary) 82%, transparent); }
.band--dark .faq-a__inner a { color: var(--brand-primary); }

/* ---------- form ------------------------------------------- */

.form-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  border: 1px solid var(--brand-primary); padding: clamp(1.4rem, 2.6vw, 1.9rem);
}
.form-card h2 { font-size: 1.35rem; }
.form-card > p { color: var(--ink-soft); font-size: .92rem; margin-top: .4rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.15rem; }
.fg { display: flex; flex-direction: column; }
.fg--full { grid-column: 1 / -1; }
.fg input, .fg textarea {
  width: 100%; padding: .75rem .95rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--light-secondary); font-size: .93rem;
}
.fg input:focus, .fg textarea:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 26%, transparent); }
.fg textarea { resize: vertical; min-height: 90px; }
.field-error { color: var(--state-error); font-size: .78rem; margin-top: .3rem; }
.field-error:empty { display: none; }
.form-status { grid-column: 1 / -1; padding: .72rem .95rem; border-radius: var(--radius); font-size: .88rem; }
.form-status.success { background: color-mix(in srgb, var(--state-success) 12%, var(--light-secondary)); color: var(--state-success); border: 1px solid color-mix(in srgb, var(--state-success) 35%, transparent); }
.form-status.error { background: color-mix(in srgb, var(--state-error) 10%, var(--light-secondary)); color: var(--state-error); border: 1px solid color-mix(in srgb, var(--state-error) 32%, transparent); }
.form-grid .btn { grid-column: 1 / -1; width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: .85rem; font-size: .78rem; color: var(--ink-soft); }

/* ---------- footer ----------------------------------------- */

.site-foot { background: var(--night); color: color-mix(in srgb, var(--light-secondary) 80%, transparent); padding-block: clamp(3rem, 5.5vw, 4.25rem) 1.75rem; }
.site-foot a { color: inherit; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
.foot__logo { display: inline-flex; flex-direction: column; margin-bottom: 1rem; }
/* Same disclosure, inverted for the dark footer — .brand-prefix's --ink-soft
   would be invisible here. 72% white composites to 9.6:1 on --night, and the
   tight leading keeps the two lines reading as one lockup rather than
   inheriting the footer's 1.72 body rhythm. */
.foot__logo .brand-prefix { color: color-mix(in srgb, var(--light-secondary) 72%, transparent); font-size: 10px; line-height: 1.5; }
.foot__logo .brand-project { color: var(--light-secondary); font-size: 1.2rem; }
.foot__blurb { font-size: .92rem; max-width: 62ch; }
.foot__blurb a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: .18em; }
.foot__disc { margin-top: 1.15rem; font-size: .78rem; line-height: 1.62; color: color-mix(in srgb, var(--light-secondary) 60%, transparent); max-width: 78ch; }
.foot__disc a { color: color-mix(in srgb, var(--brand-primary) 88%, transparent); text-decoration: underline; }
.footer-heading { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: .9rem; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; font-size: .9rem; }
.foot__links a:hover { color: var(--brand-primary); }
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent); font-size: .82rem;
}
.foot__bottom-links { display: flex; gap: 1.25rem; }
.foot__bottom-links a:hover { color: var(--brand-primary); }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; z-index: 800;
  border: 1px solid var(--brand-primary); border-radius: 50%; background: var(--night);
  color: var(--brand-primary); font-size: 1.05rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }

/* ---------- reveal ----------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ------------------------------------- */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-first .split__media { order: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --navh: 62px; }
  /* The disclosure and the developer name share one line only while there is
     room for it. Below 640 there is not — the mark, the burger and the two
     flex gaps leave ~178px at 320px — so the line is allowed to wrap and the
     lockup goes back to three lines on phones. Capping the width is what
     forces the wrap; without it the line would push the page sideways. */
  .brand-text { max-width: min(240px, calc(100vw - 190px)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .foot__links { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 100%; }
  .nav__cta { display: none; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}


/* ==== contact-modal (fleet rollout — see tooling/add-contact-modal.mjs) ==== */
.cm-modal {
    /* Re-assert the UA's dialog centering: universal "* { margin: 0 }" resets
       (sattva/purva families and others) strip it, pinning the dialog top-left. */
    margin: auto;
    width: min(100%, 28rem);
    padding: 1rem;
    border: 0;
    background: transparent;
    overscroll-behavior: contain;
    --cm-accent: var(--brand-primary, #ddb249);
    --cm-ink: var(--dark-primary, var(--text-primary, #171717));
}

/* Browsers without <dialog> ignore [open] and would render the form inline. */
.cm-modal:not([open]) {
    display: none;
}

/* Literal scrim: ::backdrop cannot reliably see page custom properties. */
.cm-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.cm-modal__panel {
    position: relative;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    box-shadow: 0 20px 25px rgba(15, 23, 42, 0.15);
}

.cm-modal__title {
    margin: 0 0 1.25rem;
    padding-right: 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

.cm-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.cm-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

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

.cm-form {
    display: grid;
    gap: 1rem;
}

.cm-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.cm-form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

/* Form controls don't inherit fonts — font: inherit closes the gap. */
.cm-form input,
.cm-form textarea {
    width: 100%;
    min-width: 0;
    font: inherit;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.cm-form input:focus-visible,
.cm-form textarea:focus-visible {
    outline: 2px solid var(--cm-accent);
    outline-offset: 1px;
}

.cm-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.cm-form__submit {
    border: 0;
    border-radius: 6px;
    background: var(--cm-accent);
    color: var(--cm-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.cm-form__submit:hover {
    opacity: 0.92;
}

.cm-form__submit:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

.cm-form__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #64748b;
}

.cm-form__hint a {
    color: inherit;
    text-decoration: underline;
}

/* Class-based, so it cannot fight any inline body.style.overflow use. */
body.has-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .cm-modal[open] {
        animation: cm-modal-in 160ms ease-out;
    }

    .cm-modal[open]::backdrop {
        animation: cm-modal-backdrop-in 160ms ease-out;
    }
}

@keyframes cm-modal-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
}

@keyframes cm-modal-backdrop-in {
    from {
        opacity: 0;
    }
}
