/* ─── Marsa Cove · Off-Plan Microsite (Template Demo for D&B Properties) ─── */

:root {
  /* brand */
  --ink: #171144;        /* logo indigo (verified from logo SVG) */
  --ink-2: #2A2566;
  --noir: #0B0820;
  --paper: #F6F3EE;      /* warm paper */
  --stone: #E9E3D7;
  --text: #1A1830;
  --muted: #6B6480;
  --gold: #B8935C;       /* restrained burnished gold (warm, not metallic) */
  --gold-2: #8E6F40;
  --line: #D8D2C5;
  --line-dark: rgba(255,255,255,0.12);
  --focus: #171144;

  /* type */
  --serif: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ar: "IBM Plex Sans Arabic", "Tajawal", "Geist", sans-serif;

  /* rhythm */
  --pad-y: 7.5rem;
  --gap: 1.5rem;
  --maxw: 1320px;
}

[data-density="compact"]  { --pad-y: 4.5rem; }
[data-density="cinematic"]{ --pad-y: 10rem; }

[dir="rtl"] body { font-family: var(--ar); }

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: default; }
a { color: inherit; text-decoration: none; }

/* ─── typography ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.62); }
.eyebrow .gold-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-inline-end: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display .it { font-style: italic; color: var(--ink); }
.display .it-light { font-style: italic; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-weight: 400;
  text-wrap: balance;
}
.section-title .it { font-style: italic; color: var(--ink); }

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
  text-wrap: pretty;
}
.lede.muted { color: var(--muted); }

/* ─── shell ─── */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

section { padding-block: var(--pad-y); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; align-items: end; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; } }
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav--dark { color: #FBFAF6; }
.nav--light { color: var(--ink); background: rgba(246, 243, 238, 0.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand .mark { width: 96px; color: var(--ink); }
.nav__brand .mark svg { width: 100%; height: auto; }
.nav--dark .nav__brand .mark { color: #FBFAF6; }
.nav--light .nav__brand .mark { color: var(--ink); }

.nav__brand .divider { width: 1px; height: 22px; background: currentColor; opacity: 0.22; }
.nav__brand .codename {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}

.nav__links { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: 0.02em; }
.nav__links a { opacity: 0.78; transition: opacity 160ms; cursor: default; }
.nav__links a:hover { opacity: 1; }
@media (max-width: 880px) { .nav__links { display: none; } }

.nav__right { display: flex; align-items: center; gap: 12px; }
.locale-toggle {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid currentColor;
  border-radius: 999px; padding: 5px 11px;
  opacity: 0.78; cursor: default;
  transition: background 160ms, opacity 160ms;
}
.locale-toggle:hover { opacity: 1; }
.locale-toggle .chev { font-size: 8px; opacity: 0.7; margin-inline-start: 3px; }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 13.5px/1 var(--sans);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: var(--ink);
  color: #FBFAF6;
  cursor: default;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-2); }
.btn--gold { background: var(--gold); color: #1A1206; }
.btn--gold:hover { background: var(--gold-2); color: #FBFAF6; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost.on-dark { color: #FBFAF6; border-color: rgba(251,250,246,0.45); }
.btn--ghost.on-dark:hover { background: rgba(251,250,246,0.08); border-color: #FBFAF6; }
.btn--ghost.on-light { color: var(--ink); border-color: rgba(23,17,68,0.25); }
.btn--ghost.on-light:hover { background: rgba(23,17,68,0.06); border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 12px; }

.btn .arr { transition: transform 200ms; }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arr { transform: translateX(-3px); }

/* ─── hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  color: #FBFAF6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.02);
  transition: opacity 600ms ease;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,8,32,0.65) 0%, rgba(11,8,32,0.18) 28%, rgba(11,8,32,0.05) 50%, rgba(11,8,32,0.55) 78%, rgba(11,8,32,0.92) 100%);
}
.hero__scrim::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(23,17,68,0.55) 0%, transparent 60%);
}

.hero__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 130px clamp(20px, 4vw, 56px) 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.78;
}
.hero__top .meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__top .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__top .meta .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

.hero__center {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem clamp(20px, 4vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero__codename {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 2.5rem;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__codename .bar { width: 36px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
  font-weight: 400;
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: 2rem;
}
.hero__title .it { font-style: italic; color: #E6D7B8; }

.hero__sub {
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(251,250,246,0.82);
  text-wrap: pretty;
  margin-bottom: 2.5rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__bottom {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 2rem clamp(20px, 4vw, 56px) 2.5rem;
  border-top: 1px solid rgba(251,250,246,0.18);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 800px) { .hero__bottom { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding-block: 1.25rem; } }
.hero__bottom .stat {
  padding-inline-end: 1.5rem;
  border-inline-end: 1px solid rgba(251,250,246,0.12);
}
.hero__bottom .stat:last-child { border-inline-end: 0; }
.hero__bottom .stat .label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251,250,246,0.55);
  margin-bottom: 0.5rem;
}
.hero__bottom .stat .value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__bottom .stat .value .small { font-size: 0.9rem; color: rgba(251,250,246,0.62); margin-inline-start: 4px; }

/* hero ticker */
.hero__ticker {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: none;
  font-family: var(--mono); font-size: 11px;
  color: rgba(251,250,246,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(251,250,246,0.12);
  padding: 14px clamp(20px, 4vw, 56px);
}

/* hero variant: split */
.hero[data-variant="split"] .hero__center {
  display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center;
}
.hero[data-variant="split"] .hero__sample {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hero[data-variant="split"] .hero__sample .tile { aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: 2px; }
@media (max-width: 900px) {
  .hero[data-variant="split"] .hero__center { grid-template-columns: 1fr; }
  .hero[data-variant="split"] .hero__sample { display: none; }
}

/* hero variant: muted */
.hero[data-variant="muted"] .hero__bg { filter: saturate(0.4) contrast(0.95) brightness(0.55); }
.hero[data-variant="muted"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(11,8,32,0.55) 0%, rgba(11,8,32,0.35) 50%, rgba(11,8,32,0.92) 100%);
}

/* ─── chapter intro (dark bridge) ─── */
.bridge {
  background: var(--noir);
  color: rgba(251,250,246,0.86);
  padding-block: var(--pad-y);
}
.bridge .quote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  max-width: 28ch;
  font-weight: 400;
  text-wrap: balance;
}
.bridge .quote .it { font-style: italic; color: #E6D7B8; }
.bridge .meta { display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap; margin-top: 3rem; }
.bridge .meta dl { margin: 0; min-width: 160px; }
.bridge .meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251,250,246,0.5); margin-bottom: 6px; }
.bridge .meta dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }

/* ─── residences ─── */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 200ms, transform 240ms;
  cursor: default;
  position: relative;
}
.res-card:hover { border-color: var(--ink); }
.res-card.is-active { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.res-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--stone);
}
.res-card__media .ph {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.res-card__media .ph.placeholder {
  background: repeating-linear-gradient(135deg, var(--stone) 0 12px, #DDD6C5 12px 24px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(23,17,68,0.5);
  text-align: center; padding: 1rem;
}
.res-card__media .chip {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(11,8,32,0.78);
  color: #FBFAF6;
  padding: 5px 10px; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.res-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.res-card__title { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; font-weight: 400; letter-spacing: -0.005em; }
.res-card__title .it { font-style: italic; color: var(--ink); }
.res-card__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 0; border-block: 1px solid var(--line); }
.res-card__specs .s .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.res-card__specs .s .v { font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.005em; }
.res-card__price {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px;
}
.res-card__price .poa { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.res-card__price .ask { color: var(--muted); }

/* ─── amenities ─── */
.amen-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.amen {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
  position: relative;
  transition: background 180ms;
  cursor: default;
}
.amen:hover { background: #FAF7F1; }
.amen .num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.amen .name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.005em; margin-top: 1rem; }
.amen .name .it { font-style: italic; color: var(--ink); }
.amen .desc { font-size: 13px; color: var(--muted); margin-top: 0.5rem; max-width: 28ch; text-wrap: pretty; }
.amen.big { grid-column: span 6; min-height: 280px; background: var(--ink); color: #FBFAF6; border-color: var(--ink); }
.amen.big .num { color: rgba(251,250,246,0.5); }
.amen.big .name .it { color: #E6D7B8; }
.amen.big .desc { color: rgba(251,250,246,0.65); }
.amen.med { grid-column: span 6; min-height: 280px; background-size: cover; background-position: center; color: #FBFAF6; }
.amen.med::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,8,32,0.65) 100%);
}
.amen.med > * { position: relative; z-index: 1; }
.amen.med .num { color: rgba(251,250,246,0.55); }
.amen.med .name .it { color: #E6D7B8; }
.amen.med .desc { color: rgba(251,250,246,0.7); }
.amen.std { grid-column: span 4; }
.amen.q { grid-column: span 3; }
@media (max-width: 900px) {
  .amen.big, .amen.med { grid-column: span 12; }
  .amen.std, .amen.q { grid-column: span 6; min-height: 160px; }
}

/* ─── location ─── */
.loc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; gap: 2rem; } }

.loc-list { display: flex; flex-direction: column; }
.loc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  gap: 18px;
  cursor: default;
  transition: padding 180ms;
}
.loc-row:last-child { border-bottom: 1px solid var(--line); }
.loc-row:hover { padding-inline-start: 6px; }
.loc-row .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.loc-row .name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.005em; line-height: 1.2; }
.loc-row .name .sub { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.loc-row .dur { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--ink); }

/* schematic map */
.map-shell {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--noir);
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
  color: #FBFAF6;
  cursor: default;
}
.map-shell::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(251,250,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,250,246,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-shell .legend {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: rgba(251,250,246,0.55); text-transform: uppercase;
}
.map-shell .compass {
  position: absolute; top: 14px; inset-inline-end: 14px;
  font-family: var(--mono); font-size: 10px;
  color: rgba(251,250,246,0.55); letter-spacing: 0.14em;
}
.map-shell svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-shell .pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(184,147,92,0.18);
  border: 1px solid rgba(184,147,92,0.4);
  cursor: default;
}
.map-shell .pin.you {
  width: 36px; height: 36px;
  background: rgba(184,147,92,0.18);
  border: 1px solid var(--gold);
  animation: pulse 2.4s infinite;
}
.map-shell .pin.you::after {
  content: ""; position: absolute; inset: 11px;
  background: var(--gold); border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,147,92,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(184,147,92,0); }
}
.map-shell .pin-label {
  position: absolute;
  transform: translate(-50%, 0);
  margin-top: 22px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251,250,246,0.75);
  white-space: nowrap;
}

/* ─── gallery ─── */
.gal-tabs { display: flex; gap: 22px; margin-bottom: 2rem; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.gal-tabs button {
  background: transparent; border: 0; padding: 6px 0;
  color: var(--muted); border-bottom: 1px solid transparent;
  cursor: default; transition: color 160ms, border-color 160ms;
  letter-spacing: inherit; text-transform: inherit;
}
.gal-tabs button:hover { color: var(--ink); }
.gal-tabs button.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.gal-tabs .count { color: var(--muted); margin-inline-start: 6px; opacity: 0.5; }

.gal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 700px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
.gal-tile {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  cursor: default;
  transition: transform 360ms;
}
.gal-tile:hover { transform: scale(1.005); }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.gal-tile:hover img { transform: scale(1.04); }
.gal-tile.tall { grid-row: span 2; }
.gal-tile.wide { grid-column: span 2; }
.gal-tile.tall img, .gal-tile:not(.tall) img { aspect-ratio: 4/3; }
.gal-tile.tall img { aspect-ratio: 3/4; height: 100%; }
.gal-tile .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #FBFAF6;
  background: linear-gradient(180deg, transparent, rgba(11,8,32,0.7));
  opacity: 0; transition: opacity 200ms;
}
.gal-tile:hover .caption { opacity: 1; }

/* ─── developer / trust strip ─── */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust__cell {
  padding: 36px 28px;
  border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.trust__cell:last-child { border-inline-end: 0; }
@media (max-width: 800px) { .trust__cell:nth-child(2n) { border-inline-end: 0; } }
.trust__cell .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.trust__cell .val { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.005em; }
.trust__cell .val .it { font-style: italic; color: var(--ink); }
.trust__cell .src { font-size: 11.5px; color: var(--muted); }

/* ─── agent ─── */
.agent {
  background: var(--ink);
  color: #FBFAF6;
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 3rem;
  padding: 3rem;
  border-radius: 2px;
  align-items: center;
}
@media (max-width: 900px) {
  .agent { grid-template-columns: 1fr; padding: 2rem; gap: 1.5rem; }
}
.agent__portrait {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  background-color: #2A2566;
  position: relative;
  overflow: hidden;
}
.agent__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,8,32,0.55));
}
.agent__name { font-family: var(--serif); font-size: 2rem; line-height: 1.05; letter-spacing: -0.01em; }
.agent__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,250,246,0.6); margin-top: 8px; }
.agent__quote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: rgba(251,250,246,0.85); margin-top: 1.5rem; max-width: 32ch; text-wrap: pretty; }
.agent__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(251,250,246,0.55); margin-top: 1rem; }
.agent__cta { display: flex; flex-direction: column; gap: 10px; }

/* ─── register interest form ─── */
.cta-section {
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(23,17,68,0.04), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(184,147,92,0.06), transparent 60%);
}
.cta-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 2rem; } }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 2px;
}
@media (max-width: 600px) { .form-card { padding: 24px; } }
.form-card .step {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.form-card .step .dot-row { display: flex; gap: 6px; }
.form-card .step .dot-row .d { width: 18px; height: 2px; background: var(--line); }
.form-card .step .dot-row .d.is-active { background: var(--ink); }
.form-card .step .dot-row .d.is-done { background: var(--ink); }

.form-card h3 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.005em; font-weight: 400; margin-bottom: 1.5rem; }
.form-card h3 .it { font-style: italic; color: var(--ink); }

.fld {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.fld .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fld .l .req { color: var(--gold-2); }
.fld input[type="text"],
.fld input[type="tel"],
.fld input[type="email"],
.fld input[type="date"],
.fld select,
.fld textarea {
  font: 500 14.5px/1.4 var(--sans);
  color: var(--text);
  background: #FBFAF6;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
  appearance: none;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23,17,68,0.08);
}
.fld textarea { min-height: 80px; resize: vertical; }
.fld.row { flex-direction: row; gap: 14px; }
.fld.row > * { flex: 1; }
.fld.err input, .fld.err select, .fld.err textarea { border-color: #B0421F; background: #FFF7F3; }
.fld .errtxt { font-size: 11.5px; color: #B0421F; margin-top: 2px; }

.unit-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.unit-pick button {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: #FBFAF6;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: default; transition: all 160ms;
}
.unit-pick button:hover { color: var(--ink); border-color: var(--ink); }
.unit-pick button.is-on { background: var(--ink); color: #FBFAF6; border-color: var(--ink); }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; }
.form-actions .note { font-size: 11.5px; color: var(--muted); flex: 1 1 100%; }

.form-success {
  text-align: start;
  padding: 1rem 0;
}
.form-success h4 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; margin-bottom: 1rem; font-weight: 400; }
.form-success h4 .it { font-style: italic; color: var(--ink); }
.form-success p { color: var(--muted); margin-bottom: 1.25rem; max-width: 40ch; }
.form-success .tick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.form-success .tick .check { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #FBFAF6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

/* ─── whatsapp fab ─── */
.wa-fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: #FBFAF6;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.01em;
  border: 1px solid rgba(251,250,246,0.16);
  box-shadow: 0 12px 32px rgba(11,8,32,0.28);
  cursor: default;
  transition: transform 200ms;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab .ic { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 12px; font-weight: 700; }
.wa-fab .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; display: block; margin-bottom: 1px; }

/* ─── footer ─── */
.footer {
  background: var(--noir);
  color: rgba(251,250,246,0.7);
  padding-block: 4rem 2rem;
}
.footer__main { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 800px) { .footer__main { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch; }
.footer__brand .mark { width: 110px; color: #FBFAF6; }
.footer__brand p { font-size: 13px; line-height: 1.5; color: rgba(251,250,246,0.55); }
.footer__col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251,250,246,0.45); font-weight: 500; margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: rgba(251,250,246,0.78); }
.footer__col a:hover { color: #FBFAF6; }

.footer__legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(251,250,246,0.1);
  padding-top: 1.5rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(251,250,246,0.45);
}
.footer__legal .src { display: inline-flex; align-items: center; gap: 8px; }
.footer__legal .src .badge { font-family: var(--sans); font-size: 11px; letter-spacing: 0; text-transform: none; padding: 3px 8px; border: 1px solid rgba(251,250,246,0.18); border-radius: 2px; color: rgba(251,250,246,0.6); }

/* ─── template demo strip ─── */
.demo-strip {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0; inset-inline-end: 0;
  z-index: 60;
  display: none;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 16px;
  text-align: center;
}
.demo-strip .gold { color: var(--gold); }

/* ─── modal ─── */
.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,8,32,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
}
.modal-bg.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper);
  width: 100%; max-width: 560px;
  border-radius: 2px;
  padding: 36px;
  transform: translateY(12px);
  transition: transform 240ms ease;
  max-height: 90vh; overflow: auto;
}
.modal-bg.is-open .modal { transform: translateY(0); }
.modal .close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; font-size: 18px; color: var(--muted); }

/* ─── scroll progress ─── */
.scroll-prog {
  position: fixed; left: 0; right: 0; top: 0; height: 2px;
  background: var(--gold);
  transform-origin: 0 0; transform: scaleX(0);
  z-index: 49;
  transition: transform 80ms linear;
  pointer-events: none;
}

/* ─── chapter marker ─── */
.chapter-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.chapter-num .bar { width: 36px; height: 1px; background: var(--gold); }

/* ─── animations ─── */
/* fade-up is intentionally a no-op now — content is always visible.
   (Earlier IO/scroll-based reveal hit reliability issues in the preview sandbox;
   we keep the class on elements so a future motion treatment can opt in cleanly.) */
.fade-up { opacity: 1; }

/* ─── RTL adjustments ─── */
[dir="rtl"] .hero__codename .bar,
[dir="rtl"] .chapter-num .bar { transform: scaleX(-1); }

/* ─── design section ─── */
.design-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .design-grid { grid-template-columns: 1fr; } }
.design-grid .copy h3 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.012em; font-weight: 400; margin-bottom: 1.5rem; }
.design-grid .copy h3 .it { font-style: italic; color: var(--ink); }
.design-grid .copy p { color: var(--muted); margin-bottom: 1rem; }
.design-grid .copy p.first { color: var(--text); font-size: 1.0625rem; }
.design-grid .img { aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: 2px; }

.design-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.design-stats .s { padding: 18px 0; border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.design-stats .s:nth-child(2n) { border-inline-end: 0; padding-inline-start: 18px; }
.design-stats .s .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.design-stats .s .v { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.005em; }

/* ─── chapter intro split ─── */
.overview-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; gap: 2rem; } }
.overview-grid .lede-block { position: sticky; top: 110px; }
.overview-grid .lede-block .num { margin-bottom: 1.25rem; }
.overview-grid .lede-block h2 { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.02; letter-spacing: -0.012em; font-weight: 400; margin-bottom: 1.25rem; }
.overview-grid .lede-block h2 .it { font-style: italic; color: var(--ink); }
.overview-grid .pillars { display: grid; gap: 12px; }
.pillar {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gold-2); padding-top: 6px; }
.pillar h4 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.005em; line-height: 1.15; font-weight: 400; margin-bottom: 8px; }
.pillar h4 .it { font-style: italic; color: var(--ink); }
.pillar p { color: var(--muted); font-size: 14.5px; max-width: 52ch; text-wrap: pretty; }

/* utility */
.muted { color: var(--muted); }
.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; }
