/* ==========================================================================
   Aurora One · Vega Realty — landing page
   Two skins (editorial | mono) × two themes (light | dark) = four looks.
   Every colour is a token; the skins redefine the tokens, never the rules.
   Self-hosted fonts only. No external requests.
   ========================================================================== */

/* fonts.css is <link>ed from the document head so the faces are discovered
   in the first round-trip rather than after this sheet parses. */

/* ------------------------------------------------------------ 1. TOKENS */

:root {
  /* geometry + motion — skins override */
  --r: 3px;
  --r-lg: 4px;
  --wrap: 1180px;
  --gut: clamp(1.15rem, 4.5vw, 3rem);
  --sec-y: clamp(3.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 220ms;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-mark: 'Cinzel', Georgia, serif;

  --display-weight: 500;
  --display-track: -0.005em;
  --display-leading: 1.06;
  --eyebrow-track: 0.2em;
  --eyebrow-size: 0.635rem;
  --eyebrow-font: var(--font-mark);
  --eyebrow-weight: 600;

  color-scheme: light;
}

/* ---------- editorial · light (default) ---------- */
:root,
html[data-skin="editorial"][data-theme="light"] {
  --bg:        #FBF9F4;
  --bg-2:      #F4EFE5;
  --bg-3:      #EBE3D4;
  --bg-invert: #26221D;
  --fg:        #2E2A26;
  --fg-2:      #665C51;
  --fg-3:      #9A8F81;
  --fg-invert: #F6F1E7;
  --line:      rgba(46, 42, 38, .13);
  --line-2:    rgba(46, 42, 38, .26);
  --accent:    #7A5C3A;
  --accent-2:  #8A9A7B;
  --accent-fg: #FBF9F4;
  --accent-wash: rgba(122, 92, 58, .09);
  --warn:      #A0492C;
  --ok:        #55703F;
  --slot-1: #E4DAC8;
  --slot-2: #DCD0BA;
  --slot-3: #E9E0CE;
  --slot-4: #D5CCBC;
  --shadow: 0 22px 48px -34px rgba(46, 42, 38, .55);
  color-scheme: light;
}

/* ---------- editorial · dark ---------- */
html[data-skin="editorial"][data-theme="dark"] {
  --bg:        #17140F;
  --bg-2:      #1F1B14;
  --bg-3:      #2A241B;
  --bg-invert: #F2EDE3;
  --fg:        #F2EDE3;
  --fg-2:      #B9AE9B;
  --fg-3:      #7D7263;
  --fg-invert: #1B1712;
  --line:      rgba(242, 237, 227, .13);
  --line-2:    rgba(242, 237, 227, .27);
  --accent:    #C9A671;
  --accent-2:  #A3B592;
  --accent-fg: #17140F;
  --accent-wash: rgba(201, 166, 113, .12);
  --warn:      #DE9074;
  --ok:        #A8C48C;
  --slot-1: #29231A;
  --slot-2: #322A1F;
  --slot-3: #241E17;
  --slot-4: #392F23;
  --shadow: 0 22px 48px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- mono · light ---------- */
html[data-skin="mono"] {
  --r: 0px;
  --r-lg: 0px;
  --wrap: 1240px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mark: 'JetBrains Mono', ui-monospace, monospace;
  --display-weight: 700;
  --display-track: -0.032em;
  --display-leading: 1.0;
  --eyebrow-track: 0.16em;
  --eyebrow-size: 0.61rem;
  --eyebrow-weight: 500;
}
html[data-skin="mono"][data-theme="light"] {
  --bg:        #FAFBFB;
  --bg-2:      #F0F3F3;
  --bg-3:      #E3E9E9;
  --bg-invert: #14191A;
  --fg:        #14191A;
  --fg-2:      #566162;
  --fg-3:      #8E9B9B;
  --fg-invert: #F4F7F7;
  --line:      rgba(20, 25, 26, .11);
  --line-2:    rgba(20, 25, 26, .24);
  --accent:    #1B4F50;
  --accent-2:  #5C7C7A;
  --accent-fg: #FFFFFF;
  --accent-wash: rgba(27, 79, 80, .08);
  --warn:      #9E3B2B;
  --ok:        #2C6B4F;
  --slot-1: #E1E8E7;
  --slot-2: #D8E0DF;
  --slot-3: #E8EDEC;
  --slot-4: #CFD9D8;
  --shadow: 0 20px 44px -34px rgba(20, 25, 26, .5);
  color-scheme: light;
}

/* ---------- mono · dark ---------- */
html[data-skin="mono"][data-theme="dark"] {
  --bg:        #0D1011;
  --bg-2:      #141819;
  --bg-3:      #1D2324;
  --bg-invert: #E9EEEE;
  --fg:        #E9EEEE;
  --fg-2:      #96A2A3;
  --fg-3:      #63706F;
  --fg-invert: #0D1011;
  --line:      rgba(233, 238, 238, .12);
  --line-2:    rgba(233, 238, 238, .26);
  --accent:    #57B0AC;
  --accent-2:  #83A9A5;
  --accent-fg: #06100F;
  --accent-wash: rgba(87, 176, 172, .12);
  --warn:      #DD8A74;
  --ok:        #77C69B;
  --slot-1: #1B2223;
  --slot-2: #212A2B;
  --slot-3: #182021;
  --slot-4: #283132;
  --shadow: 0 20px 44px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* live skin/theme swap — enabled only for the duration of a switch, so the
   page never animates on first paint and never flashes an unstyled colour. */
html.is-swapping,
html.is-swapping body,
html.is-swapping *:not(.no-swap) {
  transition: background-color 380ms var(--ease), color 380ms var(--ease),
              border-color 380ms var(--ease), fill 380ms var(--ease),
              box-shadow 380ms var(--ease) !important;
}

/* ------------------------------------------------------------- 2. RESET */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.62 var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* Grid and flex children default to min-width:auto, so one unbreakable token
   (a RERA number, a long typology) can push a whole column past the viewport
   and silently widen the layout on a phone. Opt every layout child out. */
.two-col > *, .two-col--wide > *, .hero__in > *, .enq-grid > *,
.planblock > *, .planpanel > *, .amen-groups > *, .loc-cats > *,
.field-row > *, .stats > *, .bar > *, .roomlist li > *, .facts > * > * { min-width: 0; }
.roomlist li span:last-child, .facts dd, .srcnote, .kv dd,
.loc-cat li span, .amen-group li em { overflow-wrap: anywhere; }

/* ---------------------------------------------------------- 3. PRIMITIVES */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: var(--sec-y); position: relative; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font: var(--eyebrow-weight) var(--eyebrow-size)/1 var(--eyebrow-font);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--fg-3); }

h1, h2, h3, .h-sec, .h-hero {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: var(--display-leading);
  text-wrap: balance;
}
.h-hero { font-size: clamp(2.45rem, 7.4vw, 4.9rem); }
.h-sec  { font-size: clamp(1.75rem, 4.1vw, 2.85rem); margin-top: 1rem; }
h3      { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

.lede { color: var(--fg-2); font-size: clamp(1.02rem, 1.5vw, 1.14rem); max-width: 54ch; margin-top: 1.1rem; }
.body-sm { color: var(--fg-2); font-size: 0.945rem; line-height: 1.68; }
.note { color: var(--fg-3); font-size: 0.79rem; line-height: 1.6; }
.mono { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .04em; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .84rem 1.5rem; border-radius: var(--r); cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-line);
  font: 500 .84rem/1 var(--font-body); letter-spacing: .015em;
  text-decoration: none; text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:hover { --btn-line: var(--fg-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-fg); --btn-line: var(--accent); }
.btn--primary:hover { filter: brightness(1.08); --btn-line: var(--accent); }
.btn--ghost { --btn-bg: var(--bg-2); }
.btn--sm { padding: .58rem 1rem; font-size: .78rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- 4. NAV */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in {
  max-width: var(--wrap); margin-inline: auto; padding: .8rem var(--gut);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.nav__logo img { height: 30px; width: auto; }
html[data-theme="dark"] .nav__logo img,
html[data-theme="dark"] .foot__logo img { filter: invert(1) hue-rotate(180deg) saturate(.15) brightness(1.5); }
.nav__links { display: none; gap: clamp(.9rem, 1.7vw, 1.6rem); margin-inline-start: auto; }
.nav__links a {
  font-size: .82rem; color: var(--fg-2); text-decoration: none; padding-block: .3rem; white-space: nowrap;
  border-bottom: 1px solid transparent; transition: color var(--dur), border-color var(--dur);
}
.nav__links a:hover, .nav__links a.is-here { color: var(--fg); border-bottom-color: var(--accent); }
.nav__tools { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.nav__links + .nav__tools { margin-inline-start: 0; }

.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: transparent;
  color: var(--fg-2); transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.iconbtn:hover { color: var(--fg); border-color: var(--line-2); background: var(--bg-2); }
.iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.nav__cta { display: none; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* --------------------------------------------------------------- 5. HERO */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; border-top: 0; }
.hero__in { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.35rem;
  padding: .34rem .7rem; border: 1px solid var(--line); border-radius: 100px;
  font: 500 .69rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
}
.hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero h1 em { font-style: italic; color: var(--accent); }
html[data-skin="mono"] .hero h1 em { font-style: normal; font-weight: 400; color: var(--accent); }
.hero__sub { color: var(--fg-2); font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 46ch; margin-top: 1.35rem; }
.hero__geo {
  margin-top: 1rem; font: 400 .82rem/1.55 var(--font-body); color: var(--fg-3); max-width: 44ch;
}
.hero__geo b { color: var(--fg-2); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
@media (max-width: 599px) { .hero__cta .btn { flex: 1 1 10rem; } }
.hero__rera { margin-top: 2rem; color: var(--fg-3); font-size: .755rem; line-height: 1.65; letter-spacing: .01em; }
.hero__rera b { color: var(--fg-2); font-weight: 600; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div {
  padding: 1.35rem 1.1rem 1.35rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .stats > div { border-bottom: 0; } }
.stats dt {
  font: var(--eyebrow-weight) var(--eyebrow-size)/1 var(--eyebrow-font);
  letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--fg-3);
}
.stats dd {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; margin-top: .6rem;
  letter-spacing: var(--display-track);
}
.stats dd small { display: block; font-size: .7rem; font-family: var(--font-mono); font-weight: 400;
  color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; margin-top: .4rem; }

/* --------------------------------------------------------- 6. IMAGE SLOTS */
/* Real photography lands at the CONTRACT §8 filenames. Until then: a calm
   flat tone from the skin palette. No icon, no caption, no substitute art. */

.slot {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--slot-1); aspect-ratio: var(--ratio, 16 / 9);
  width: 100%; box-shadow: inset 0 0 0 1px var(--line);
}
.slot[data-tone="2"] { background: var(--slot-2); }
.slot[data-tone="3"] { background: var(--slot-3); }
.slot[data-tone="4"] { background: var(--slot-4); }
.slot img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 480ms var(--ease); }
.slot img.is-in { opacity: 1; }
.slot--tall { --ratio: 3 / 4; }
.slot--wide { --ratio: 21 / 9; }
.slot--sq { --ratio: 1 / 1; }
.slot--plan { --ratio: 3 / 2; }
.slot--hero { --ratio: 4 / 5; }
.slot--elev { --ratio: 7 / 10; }

/* ------------------------------------------------------------ 7. SECTIONS */

.two-col { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.two-col--wide { }
@media (min-width: 960px) { .two-col--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }

.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.4fr);
  gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--fg-3); font-size: .78rem; letter-spacing: .01em; }
.facts dd { font-size: .875rem; color: var(--fg); }

/* configurations / unit-schedule table */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th, table.data td { text-align: left; padding: .95rem 1.05rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th {
  font: var(--eyebrow-weight) var(--eyebrow-size)/1.3 var(--eyebrow-font);
  letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--fg-3);
  background: var(--bg-2); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--accent-wash); }
table.data .num { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
table.data .t-name { display: block; font-weight: 500; font-size: .93rem; }
table.data .t-sub { display: block; color: var(--fg-3); font-size: .755rem; margin-top: .2rem; }
table.data .price { font-family: var(--font-mono); font-size: .86rem; color: var(--accent); white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .5rem;
  border-radius: 100px; border: 1px solid var(--line-2);
  font: 500 .655rem/1.5 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2);
}
.pill--ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.pill--warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
.pill--accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }

/* SIMULATED marker — one consistent look, used everywhere something is faked */
.sim {
  display: inline-flex; align-items: center; gap: .34rem; vertical-align: middle;
  padding: .14rem .46rem .14rem .38rem; border-radius: 2px;
  border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  color: var(--warn); font: 500 .615rem/1.5 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.sim::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }

/* source-of-truth marker for the DB-read tables */
.srcnote {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem;
  margin-top: .95rem; color: var(--fg-3); font: 400 .745rem/1.55 var(--font-mono);
}
.srcnote code { color: var(--fg-2); }

/* plan / masterplan blocks */
.planblock { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
@media (min-width: 900px) { .planblock { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.planblock--elev { }
@media (min-width: 900px) { .planblock--elev { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); } }

.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.tab {
  padding: .55rem .95rem; cursor: pointer; background: transparent;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: .8rem; color: var(--fg-2);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.tab:hover { color: var(--fg); border-color: var(--line-2); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.planpanel { display: none; }
.planpanel.is-on { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
@media (min-width: 900px) { .planpanel.is-on { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.roomlist { list-style: none; padding: 0; margin-top: 1.15rem; border-top: 1px solid var(--line); }
.roomlist li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.roomlist li span:first-child { color: var(--fg-3); }
.roomlist li span:last-child { font-family: var(--font-mono); font-size: .8rem; text-align: right; }

/* gallery mosaic — a contact sheet that stays composed while the slots are
   still empty, and becomes the photography wall once the files land */
.mosaic { display: grid; gap: clamp(.6rem, 1.4vw, 1rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
.mosaic .slot { --ratio: 4 / 3; }
@media (min-width: 620px) { .mosaic .m-2x { grid-column: span 2; --ratio: 16 / 9; } }
.mosaic .slot--tall { --ratio: 3 / 4; }
@media (min-width: 620px) { .mosaic .slot--tall { grid-row: span 2; --ratio: auto; } }

/* amenities */
.amen-groups { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
@media (min-width: 700px) { .amen-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .amen-groups { grid-template-columns: repeat(3, 1fr); } }
.amen-group h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--line-2); font-size: 1.08rem;
}
.amen-group h3 em { font: 500 .7rem/1 var(--font-mono); font-style: normal; color: var(--fg-3); }
.amen-group ul { list-style: none; padding: 0; margin-top: .3rem; }
.amen-group li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .855rem; color: var(--fg-2);
}
.amen-group li em { font: 400 .655rem/1 var(--font-mono); font-style: normal; color: var(--fg-3);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* location */
.loc-cats { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 700px) { .loc-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .loc-cats { grid-template-columns: repeat(3, 1fr); } }
.loc-cat h3 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line-2); }
.loc-cat h3 i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.loc-cat ul { list-style: none; padding: 0; }
.loc-cat li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.loc-cat li b { font-weight: 400; color: var(--fg-2); }
.loc-cat li span { font-family: var(--font-mono); font-size: .73rem; color: var(--fg-3); white-space: nowrap; }
.loc-cat li.is-near b { color: var(--fg); font-weight: 500; }
.loc-cat li.is-near span { color: var(--accent); }

/* specifications */
.specs { border-top: 1px solid var(--line); }
.spec {
  display: grid; gap: .35rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .spec { grid-template-columns: minmax(9rem, .3fr) minmax(0, 1fr); } }
.spec dt { font-weight: 500; font-size: .875rem; }
.spec dd { color: var(--fg-2); font-size: .875rem; line-height: 1.7; }

/* progress */
.progress-overall { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.progress-overall b {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--accent);
}
.bars { margin-top: 1.5rem; display: grid; gap: .85rem; }
.bar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; gap: .8rem; align-items: center; font-size: .8rem; }
.bar .track { height: 4px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 100px; }
.bar .pct { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-3); text-align: right; }

.milestones { list-style: none; padding: 0; }
.ms { position: relative; padding: 0 0 1.5rem 1.75rem; border-left: 1px solid var(--line-2); }
.ms:last-child { border-left-color: transparent; padding-bottom: 0; }
.ms::before {
  content: ""; position: absolute; left: -5px; top: .35rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
}
.ms.is-done::before { background: var(--fg-3); border-color: var(--fg-3); }
.ms.is-live::before { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash); }
.ms .when { display: block; font: 400 .655rem/1 var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: .45rem; }
.ms h4 { font-size: .95rem; font-weight: 500; }
.ms p { color: var(--fg-2); font-size: .84rem; margin-top: .3rem; }

/* ---------------------------------------------------------- 8. ENQUIRY */

.enquire { background: var(--bg-invert); color: var(--fg-invert); border-top: 0; }
.enquire .eyebrow { color: color-mix(in srgb, var(--accent) 78%, var(--fg-invert)); }
.enquire .lede { color: color-mix(in srgb, var(--fg-invert) 68%, transparent); }
.enq-grid { display: grid; gap: clamp(2.25rem, 4.5vw, 4rem); align-items: start; }
@media (min-width: 940px) { .enq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
.enq-points { list-style: none; padding: 0; margin-top: 2rem; }
.enq-points li {
  position: relative; padding: .55rem 0 .55rem 1.4rem; font-size: .875rem;
  color: color-mix(in srgb, var(--fg-invert) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fg-invert) 12%, transparent);
}
.enq-points li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 1px; background: var(--accent); }

.card {
  background: var(--bg); color: var(--fg); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font: 500 .705rem/1 var(--font-body); letter-spacing: .07em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .8rem; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r); font-size: .92rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 4.6rem; resize: vertical; }
.field select { appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem center, right .72rem center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.field .err { display: none; color: var(--warn); font-size: .755rem; margin-top: .35rem; }
.field.is-bad .err { display: block; }
.field.is-bad input, .field.is-bad select, .field.is-bad .phone { border-color: var(--warn); }
.field-row { display: grid; gap: 0 .75rem; }
@media (min-width: 460px) { .field-row { grid-template-columns: 1fr 1fr; } }
.phone { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); padding-left: .8rem; transition: border-color var(--dur), box-shadow var(--dur); }
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.phone span { color: var(--fg-3); font-size: .9rem; padding-right: .5rem; }
.phone input { border: 0; background: none; padding-left: 0; }
.phone input:focus { box-shadow: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1.1rem 0 1.25rem; }
.consent input { margin-top: .2rem; accent-color: var(--accent); flex: none; }
.consent label { font-size: .755rem; line-height: 1.55; color: var(--fg-3); text-transform: none; letter-spacing: 0; }
.formnote { margin-top: .8rem; text-align: center; }

.done { text-align: center; padding: 1rem 0; }
.done .tick { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  border: 1px solid var(--accent); display: grid; place-items: center; }
.done .tick svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 1.35rem; }
.done p { color: var(--fg-2); font-size: .89rem; margin-top: .6rem; }
.done .ref { margin-top: 1rem; font: 400 .72rem/1 var(--font-mono); letter-spacing: .12em; color: var(--fg-3); }

/* ---------------------------------------------------------- 9. FOOTER */

.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.foot__top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .foot__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.foot__logo img { height: 26px; }
.foot p { color: var(--fg-2); font-size: .845rem; line-height: 1.7; }
.foot a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--fg); }
.foot__legal { color: var(--fg-3); font-size: .715rem; line-height: 1.7; margin-top: 1.75rem; max-width: 92ch; }
.foot__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.5rem;
  font: 400 .655rem/1.6 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3);
}
.foot__meta button {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg-3);
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border-bottom: 1px dotted var(--line-2);
}
.foot__meta button:hover { color: var(--accent); }

/* ------------------------------------------------- 10. STICKY ENQUIRY RAIL */

.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 55;
  display: none;
}
@media (min-width: 1200px) { .rail { display: block; } }
.rail__tab {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); border: 0;
  padding: 1rem .7rem; border-radius: var(--r) 0 0 var(--r);
  writing-mode: vertical-rl; text-orientation: mixed;
  font: 500 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: filter var(--dur);
}
.rail__tab:hover { filter: brightness(1.1); }
.rail__panel {
  position: absolute; right: 0; top: 50%; transform: translate(calc(100% + 12px), -50%);
  width: 20rem; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 1.15rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: transform 320ms var(--ease), opacity 240ms var(--ease);
}
.rail.is-open .rail__panel { transform: translate(calc(-100% - 46px), -50%); opacity: 1; pointer-events: auto; }
.rail__panel h4 { font-size: 1.02rem; }
.rail__panel p { color: var(--fg-2); font-size: .8rem; margin-top: .35rem; }
.rail__panel .field { margin-bottom: .7rem; }

/* mobile sticky bar */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1200px) { .mobilebar { display: none; } }
.mobilebar small { display: block; font: 400 .625rem/1 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-3); }
.mobilebar b { display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.1rem; margin-top: .3rem; white-space: nowrap; }
.mobilebar .m-price { min-width: 0; }
.mobilebar .grp { display: flex; gap: .45rem; }
body { padding-bottom: 4.5rem; }
@media (min-width: 1200px) { body { padding-bottom: 0; } }

/* --------------------------------------------------- 11. MODAL + TOASTS */

.scrim {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg-invert) 55%, transparent);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: var(--gut);
  opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }
.modal {
  width: min(30rem, 100%); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--shadow);
  transform: translateY(14px) scale(.985); transition: transform 320ms var(--ease);
  max-height: 88vh; overflow-y: auto;
}
.scrim.is-on .modal { transform: none; }
.modal h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.modal p { color: var(--fg-2); font-size: .885rem; margin-top: .6rem; }
.modal__x {
  position: absolute; top: .7rem; right: .7rem; width: 30px; height: 30px;
  border: 0; background: none; cursor: pointer; color: var(--fg-3); font-size: 20px; line-height: 1;
}
.modal__wrap { position: relative; width: min(30rem, 100%); }

.toasts {
  position: fixed; z-index: 95; left: var(--gut); right: var(--gut); bottom: 5.4rem;
  display: flex; flex-direction: column-reverse; gap: .55rem; pointer-events: none;
  transition: bottom 260ms var(--ease);
}
@media (min-width: 1200px) { .toasts { left: auto; right: 1.5rem; bottom: 1.5rem; width: 22.5rem; } }
html[data-present] .toasts { bottom: auto; top: 4.6rem; flex-direction: column; }
@media (min-width: 1200px) { html[data-present] .toasts { bottom: auto; top: 4.6rem; right: 14.5rem; } }
html[data-present] .consentbar { bottom: auto; top: 4.6rem; }
@media (min-width: 1200px) { html[data-present] .consentbar { bottom: auto; top: 4.6rem; left: 1.5rem; } }
.toast {
  pointer-events: auto; background: var(--bg); border: 1px solid var(--line-2);
  border-left: 2px solid var(--accent); border-radius: var(--r);
  padding: .8rem .9rem; box-shadow: var(--shadow);
  transform: translateY(10px); opacity: 0; transition: transform 300ms var(--ease), opacity 240ms var(--ease);
}
.toast.is-in { transform: none; opacity: 1; }
.toast b { display: block; font-size: .855rem; font-weight: 500; }
.toast p { color: var(--fg-2); font-size: .765rem; margin-top: .2rem; line-height: 1.5; }
.toast .sla { display: flex; align-items: center; gap: .5rem; margin-top: .55rem;
  font: 500 .68rem/1 var(--font-mono); color: var(--accent); }
.toast .sla .track { flex: 1; height: 2px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.toast .sla .fill { display: block; height: 100%; background: var(--accent); width: 100%; }

/* --------------------------------------------------------- 12. CONSENT */

.consentbar {
  position: fixed; z-index: 92; left: var(--gut); right: var(--gut); bottom: 5.4rem;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 1.1rem; box-shadow: var(--shadow);
  display: none; gap: 1rem; flex-direction: column;
}
@media (min-width: 1200px) { .consentbar { left: 1.5rem; right: auto; bottom: 1.5rem; width: 26rem; } }
.consentbar.is-on { display: flex; }
.consentbar h4 { font-size: .98rem; }
.consentbar p { color: var(--fg-2); font-size: .78rem; margin-top: .4rem; line-height: 1.6; }
.consentbar .row { display: flex; gap: .5rem; }
.consentbar .row .btn { flex: 1; }

/* ------------------------------------------------------- 13. RESCUE BANNER */

.rescue {
  display: none; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem;
  padding: .8rem .9rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-wash); border-radius: var(--r);
}
.rescue.is-on { display: flex; }
.rescue .txt { flex: 1; }
.rescue b { display: block; font-size: .83rem; font-weight: 500; }
.rescue p { color: var(--fg-2); font-size: .755rem; margin-top: .2rem; }
.rescue .acts { display: flex; gap: .4rem; margin-top: .55rem; }
.rescue .acts button {
  cursor: pointer; background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .3rem .6rem; font: 500 .7rem/1.4 var(--font-body); color: var(--fg-2);
}
.rescue .acts button:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* ============================================================ 14. PRESENTER
   Everything below is invisible until presenter mode is on. Normal mode is a
   clean buyer's microsite — html:not([data-present]) hides all of it. */

html:not([data-present]) .pres { display: none !important; }

.pres { }

/* --- numbered hotspots pinned to real page furniture --- */
.hotspot {
  position: absolute; z-index: 58; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--accent);
  background: var(--bg); color: var(--accent); box-shadow: var(--shadow);
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .04em;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.hotspot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: .38;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.9); opacity: .5; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hotspot::after { animation: none; } }
.hotspot:hover, .hotspot.is-active { background: var(--accent); color: var(--accent-fg); transform: scale(1.08); }
.hotspot.is-active::after { animation: none; opacity: 0; }

/* --- pillar dock --- */
.dock {
  position: fixed; z-index: 88; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(64rem, calc(100vw - 1.6rem));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
@media (min-width: 1200px) { html[data-present] .mobilebar { bottom: 0; } }
.dock__bar { display: flex; align-items: stretch; }
.dock__brand {
  display: none; flex-direction: column; justify-content: center; gap: .12rem;
  padding: .6rem .9rem; border-right: 1px solid var(--line); white-space: nowrap;
}
@media (min-width: 860px) { .dock__brand { display: flex; } }
.dock__brand span { font: 500 .6rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.dock__brand b { font-size: .78rem; font-weight: 500; }
.dock__pills { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; }
.dock__pills::-webkit-scrollbar { display: none; }
.dockpill {
  flex: 1 0 auto; min-width: 0; display: flex; flex-direction: column; gap: .18rem;
  padding: .62rem .85rem; cursor: pointer; background: none; border: 0;
  border-right: 1px solid var(--line); text-align: left;
  transition: background var(--dur), color var(--dur);
}
.dockpill:last-child { border-right: 0; }
.dockpill i { font: 500 .6rem/1 var(--font-mono); font-style: normal; letter-spacing: .1em; color: var(--fg-3); }
.dockpill b { font: 500 .74rem/1.2 var(--font-body); letter-spacing: .06em; }
.dockpill:hover { background: var(--accent-wash); }
.dockpill.is-on { background: var(--accent); color: var(--accent-fg); }
.dockpill.is-on i { color: color-mix(in srgb, var(--accent-fg) 75%, transparent); }
.dock__tools { display: flex; align-items: center; gap: .3rem; padding: 0 .55rem; border-left: 1px solid var(--line); }

/* --- the pillar panel that slides up out of the dock --- */
.dock__panel { display: none; border-top: 1px solid var(--line); padding: 1rem 1rem 1.1rem; max-height: 46vh; overflow-y: auto; }
.dock.is-open .dock__panel { display: block; }
.dock__panel .lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .8rem; }
.dock__panel .lead h4 { font-size: 1.05rem; }
.dock__panel .lead p { color: var(--fg-2); font-size: .8rem; flex: 1 1 18rem; }
.fires { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.fire {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .5rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); font: 500 .765rem/1 var(--font-body);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.fire:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.fire kbd {
  font: 500 .62rem/1 var(--font-mono); padding: .16rem .3rem; border-radius: 2px;
  border: 1px solid var(--line-2); color: var(--fg-3);
}
.fire:hover kbd { border-color: color-mix(in srgb, var(--accent-fg) 40%, transparent); color: inherit; }

.readouts {
  display: grid; gap: .5rem; margin-top: .95rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.ro {
  border: 1px solid var(--line); border-radius: var(--r); padding: .55rem .65rem; background: var(--bg-2);
}
.ro span { display: block; font: 400 .6rem/1.3 var(--font-mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--fg-3); }
.ro b { display: block; font: 500 .92rem/1.3 var(--font-body); margin-top: .28rem; word-break: break-word; }
.ro b small { font-size: .7rem; color: var(--fg-3); font-weight: 400; }
.ro.is-good b { color: var(--ok); }
.ro.is-bad b { color: var(--warn); }

.logline {
  margin-top: .8rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); max-height: 10rem; overflow-y: auto;
}
.logline div {
  display: flex; gap: .6rem; padding: .38rem .6rem; border-bottom: 1px solid var(--line);
  font: 400 .695rem/1.5 var(--font-mono); color: var(--fg-2);
}
.logline div:last-child { border-bottom: 0; }
.logline time { color: var(--fg-3); flex: none; }
.logline b { color: var(--fg); font-weight: 500; }

/* --- live score HUD --- */
.hud {
  position: fixed; z-index: 86; right: 1rem; top: 4.5rem;
  width: 12.5rem; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: .8rem .85rem; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .hud { display: none; } }
.hud .hd { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.hud .hd span { font: 400 .6rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.hud .score { display: flex; align-items: baseline; gap: .4rem; margin-top: .35rem; }
.hud .score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.15rem; line-height: 1; }
.hud .meter { height: 3px; background: var(--bg-3); border-radius: 100px; overflow: hidden; margin-top: .55rem; }
.hud .meter i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 420ms var(--ease); }
.hud ul { list-style: none; padding: 0; margin-top: .6rem; }
.hud li { display: flex; justify-content: space-between; gap: .5rem; font: 400 .665rem/1.75 var(--font-mono); color: var(--fg-3); }
.hud li b { color: var(--fg-2); font-weight: 500; }

/* --- heatmap overlay --- */
.heat { position: absolute; inset: 0; z-index: 40; pointer-events: none; display: none; }
html[data-heat] .heat { display: block; }
.heat__band {
  position: absolute; left: 0; right: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.heat__band i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent);
}
.heat__band b {
  position: sticky; top: 4.6rem; float: left; clear: both;
  margin: .55rem 0 0 1.1rem; padding: .24rem .55rem; border-radius: 2px;
  background: var(--bg); border: 1px solid var(--accent);
  font: 500 .655rem/1.5 var(--font-mono); color: var(--fg); white-space: nowrap;
  box-shadow: var(--shadow);
}
.heat__band.is-cold b { border-color: var(--line-2); color: var(--fg-3); }
.heat__ruler {
  position: fixed; z-index: 59; right: 0; top: 0; bottom: 0; width: 6px;
  background: var(--bg-3); display: none;
}
html[data-heat] .heat__ruler { display: block; }
.heat__ruler i { position: absolute; left: 0; right: 0; top: 0; background: var(--accent); opacity: .85; }

/* --- utm / attribution drawer --- */
.drawer {
  position: fixed; z-index: 89; right: 0; top: 0; bottom: 0; width: min(26rem, 100vw);
  background: var(--bg); border-left: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: translateX(101%); transition: transform 340ms var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-on { transform: none; }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer__hd h4 { font-size: 1rem; }
.drawer__body { padding: 1.1rem; overflow-y: auto; flex: 1; }
.drawer__body h5 { font: 500 .655rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-3); margin: 1.4rem 0 .6rem; }
.drawer__body h5:first-child { margin-top: 0; }
.kv { border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem;
  padding: .48rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font: 400 .68rem/1.5 var(--font-mono); color: var(--fg-3); }
.kv dd { font: 400 .765rem/1.5 var(--font-body); word-break: break-word; }
.kv dd.empty { color: var(--fg-3); font-style: italic; }

.chain { list-style: none; padding: 0; }
.chain li { position: relative; padding: 0 0 1.1rem 1.5rem; border-left: 1px solid var(--line-2); }
.chain li:last-child { border-left-color: transparent; padding-bottom: 0; }
.chain li::before { content: ""; position: absolute; left: -4px; top: .4rem; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); }
.chain .st { display: block; font: 500 .6rem/1 var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: .3rem; }
.chain b { display: block; font-size: .875rem; font-weight: 500; }
.chain p { color: var(--fg-2); font-size: .77rem; margin-top: .2rem; line-height: 1.55; }

pre.dump {
  margin-top: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); font: 400 .665rem/1.6 var(--font-mono); color: var(--fg-2);
  overflow-x: auto; max-height: 16rem;
}

/* --- push prompt (simulated, browser-chrome-ish) --- */
.pushprompt {
  position: fixed; z-index: 93; left: 50%; top: 1rem; transform: translate(-50%, -140%);
  width: min(26rem, calc(100vw - 1.6rem));
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 1rem; box-shadow: var(--shadow); transition: transform 380ms var(--ease);
}
.pushprompt.is-on { transform: translate(-50%, 0); }
.pushprompt .hd { display: flex; align-items: center; gap: .6rem; }
.pushprompt .hd b { font-size: .875rem; font-weight: 500; flex: 1; }
.pushprompt p { color: var(--fg-2); font-size: .79rem; margin-top: .5rem; }
.pushprompt .row { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .9rem; }

/* --- section-level presenter labels --- */
.pmark {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  padding: .2rem .5rem; border-radius: 2px; background: var(--accent); color: var(--accent-fg);
  font: 500 .6rem/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}

/* print / reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
