/* =====================================================================
   Arabian Ranches 3 Agent — luxury theme
   Dark, quiet, generous. One accent (champagne gold), used sparingly.
   Palette: deep navy + champagne gold. Change the tokens below to re-theme every page.
   ===================================================================== */
:root {
  --bg: #060d1a;          /* page — deep navy */
  --bg-2: #091324;        /* alternate sections */
  --card: #0c182d;        /* panels, tables */
  --card-2: #122240;
  --ink: #eef0f4;         /* soft ivory-white text */
  --ink-2: #c3cad6;
  --muted: #8a96aa;
  --line: rgba(200, 214, 235, 0.11);
  --line-2: rgba(200, 214, 235, 0.2);
  --gold: #c9ae7c;        /* champagne gold */
  --gold-2: #e2cc9f;
  --gold-dim: rgba(201, 174, 124, 0.13);
  --deep: #030812;        /* deepest navy — dark sections, footer */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  /* legacy names used by older markup */
  --green: var(--gold); --sand: var(--bg); --sand-2: var(--bg-2);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--bg); line-height: 1.7; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; color: var(--ink); }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
b, strong { font-weight: 500; color: var(--ink); }
a { color: inherit; text-decoration: none; transition: color .25s, border-color .25s, background .25s; }
td a { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--deep); }
.muted { color: var(--muted); }
.small { font-size: .8rem; margin-top: 14px; }
u { text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 6vw; background: rgba(6, 13, 26, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); white-space: nowrap; letter-spacing: .02em; margin-right: 24px; }
.logo span { color: var(--gold); font-style: italic; margin-left: 2px; }
.nav nav { display: flex; gap: 30px; align-items: center; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.nav nav a:hover, .nav nav a.on { color: var(--gold-2); }
.menu { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--gold); color: var(--deep); padding: 15px 30px; border-radius: 0; border: 1px solid var(--gold);
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost, .btn.outline, .btn.light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover, .btn.outline:hover, .btn.light:hover { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn.gold { background: var(--gold); color: var(--deep); }
.btn.small { padding: 10px 18px; color: var(--bg) !important; }

/* ---------- heads ---------- */
.eyebrow, .num { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.num { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.num::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--gold); opacity: .5; }
.hero { min-height: 80vh; display: flex; align-items: center; padding: 0 6vw; color: var(--ink);
  background: linear-gradient(180deg, rgba(6,13,26,.5), rgba(6,13,26,.94)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=2000&q=70") center/cover; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.04; font-weight: 400; margin: 18px 0 22px; }
.lead { max-width: 620px; font-size: 1.12rem; color: var(--ink-2); font-weight: 300; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.page-head { padding: 96px 6vw 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 400; margin: 14px 0; max-width: 20ch; line-height: 1.1; }
.page-head .eyebrow a { color: var(--gold); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body > .stats { margin: 0 6vw; }
.stat { padding: 26px 20px 24px 20px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.05rem); font-weight: 500; color: var(--ink); line-height: 1.2; }
.stat span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat small { display: block; font-size: .72rem; color: var(--gold); margin-top: 4px; letter-spacing: .02em; }
.stats.stack { grid-template-columns: 1fr; border-bottom: 0; align-self: start; }
.stats.stack .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }

/* ---------- layout ---------- */
.section { padding: 110px 6vw; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--deep); }
.section h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; line-height: 1.12; margin-bottom: 8px; max-width: 22ch; }
.sub { color: var(--muted); margin: 10px 0 34px; max-width: 70ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; align-items: center; }
.chip, select, input, textarea { border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 11px 16px; border-radius: 0;
  font: inherit; font-size: .86rem; font-weight: 300; }
select option { background: var(--card); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.chip { cursor: pointer; margin-top: 14px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.filters .chip { margin-top: 0; }
.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold-2); }
.inline-label { display: flex; gap: 14px; align-items: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 34px 30px; display: block; transition: background .35s; }
.section.alt .card { background: var(--bg-2); }
a.card:hover { background: var(--card-2); }
a.card:hover h3 { color: var(--gold-2); }
.card p { color: var(--muted); font-size: .92rem; }
.card .icon { display: none; }
.hub span { display: inline-block; margin-top: 18px; color: var(--gold); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.tag { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 400; }
.tag.warn { border-color: rgba(201,174,124,.5); color: var(--gold-2); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; }
.kv dt { color: var(--muted); } .kv dd { color: var(--ink); text-align: right; margin: 0; font-weight: 400; }

.chart-box { position: relative; height: 330px; background: var(--card); border: 1px solid var(--line); padding: 18px; }
.chart-box.tall { height: 390px; margin: 20px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 400; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; background: transparent; }
tbody tr:hover td { background: rgba(200,214,235,.035); }
tr.total td { color: var(--gold-2); font-weight: 500; border-top: 1px solid var(--line-2); }
td.hot { background: rgba(201,174,124,.22); color: var(--gold-2); } td.warm { background: rgba(201,174,124,.1); } td.cool { background: transparent; }
.banner { display: inline-block; border-left: 2px solid var(--gold); background: var(--gold-dim); color: var(--gold-2); padding: 14px 18px; font-size: .92rem; }
.approx { color: var(--ink-2); border-bottom: 1px dotted var(--muted); cursor: help; }
.approx small { color: var(--gold); font-size: .7rem; letter-spacing: .06em; }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.inputs { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); padding: 28px; }
.inputs label { display: grid; gap: 7px; font-size: .68rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.inputs small { font-size: .72rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.results > * + * { margin-top: 22px; }
.valuation { border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(201,174,124,.12), transparent); padding: 34px; display: grid; gap: 6px; }
.valuation b { font-family: var(--serif); font-size: 3rem; font-weight: 400; color: var(--gold-2); line-height: 1.1; }
.valuation .muted { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.valuation small { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-family: var(--serif); font-size: 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 200; font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--muted); max-width: 70ch; }
.steps { display: grid; gap: 14px; padding-left: 22px; max-width: 760px; color: var(--ink-2); }
.steps li::marker { color: var(--gold); font-family: var(--serif); }

.contact { text-align: center; background: var(--deep); }
.contact h2 { margin: 0 auto 8px; }
.contact .sub { margin-left: auto; margin-right: auto; }
.contact .hero-cta { justify-content: center; }

footer { padding: 56px 6vw; text-align: center; font-size: .78rem; display: grid; gap: 8px; color: var(--muted); border-top: 1px solid var(--line); background: var(--deep); }
footer b { color: var(--ink-2); }

/* ================= Homepage ================= */
.announce { display: block; text-align: center; background: var(--deep); color: var(--ink-2); font-size: .78rem; letter-spacing: .04em;
  padding: 11px 16px; border-bottom: 1px solid var(--line); }
.announce .pill { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: var(--deep); font-weight: 600;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; padding: 5px 12px 5px 10px; margin-right: 14px;
  animation: pill-glow 1.8s ease-in-out infinite; }
.announce .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); animation: pill-blink 1s steps(1) infinite; }
@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 204, 159, .7); background: var(--gold); }
  50% { box-shadow: 0 0 14px 4px rgba(226, 204, 159, .45); background: var(--gold-2); }
}
@keyframes pill-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .announce .pill, .announce .pill::before { animation: none; } }
.announce:hover { color: var(--gold-2); }
.hero.big { min-height: 94vh; align-items: flex-end; padding-bottom: 70px;
  background: linear-gradient(180deg, rgba(3,8,18,.3) 0%, rgba(3,8,18,.76) 55%, rgba(6,13,26,1) 100%),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=2000&q=70") center/cover; }
.hero.big h1 { max-width: 13ch; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 60px; border-top: 1px solid var(--line-2); }
.hero-stats div { padding: 22px 22px 0 0; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; color: var(--ink); line-height: 1.1; }
.hero-stats span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lead-sm { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 18px; }

.agent { display: grid; grid-template-columns: 360px 1fr; gap: 70px; align-items: start; }
.agent-photo { margin: 0; position: relative; }
.agent-photo #agentPhoto { position: relative; }
.agent-photo #agentPhoto::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); opacity: .45; }
.agent-photo img, .agent-photo .initials { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; display: block;
  filter: saturate(.85) contrast(1.02); }
.agent-photo .initials { display: grid; place-items: center; background: var(--card); color: var(--gold); font-family: var(--serif); font-size: 5rem; }
.agent-photo figcaption { margin-top: 34px; display: grid; gap: 2px; }
.agent-photo figcaption b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.agent-photo figcaption span { color: var(--gold); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.agent p { margin: 16px 0; color: var(--ink-2); max-width: 64ch; }
.agent #agentBio p:first-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 30px 0 38px; display: grid; gap: 0; max-width: 66ch; border-top: 1px solid var(--line); }
.ticks li { padding: 16px 0 16px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 28px; width: 16px; height: 1px; background: var(--gold); }
.ticks li b { color: var(--ink); }

.map iframe { width: 100%; height: 100%; min-height: 380px; border: 1px solid var(--line); filter: grayscale(1) invert(.9) contrast(.85) sepia(.3) hue-rotate(180deg) saturate(1.6); }
.contact-list { display: grid; grid-template-columns: 130px 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.contact-list dt, .contact-list dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list dt { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; padding-top: 18px; }
.contact-list a { color: var(--gold-2); }
.enquiry { display: grid; gap: 16px; background: var(--card); padding: 34px; border: 1px solid var(--line); }
.enquiry label { display: grid; gap: 7px; font-size: .66rem; color: var(--ink-2); letter-spacing: .16em; text-transform: uppercase; font-weight: 400; }
.enquiry input, .enquiry select, .enquiry textarea { background: transparent; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 30; background: var(--bg); color: var(--gold-2); border: 1px solid var(--gold);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: 13px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.wa-float:hover { background: var(--gold); color: var(--deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 18px 6vw 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  body.open .nav nav { display: flex; }
}
@media (max-width: 900px) {
  .calc, .two { grid-template-columns: 1fr; }
  .agent { grid-template-columns: 1fr; gap: 50px; } .agent-photo { max-width: 320px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 16px; } .page-head { padding: 64px 16px 36px; }
  .nav { padding: 16px; } body > .stats { margin: 0 16px; }
  .stat, .stat:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .hero.big { min-height: 90vh; } .hero { padding: 0 16px; }
  .contact-list { grid-template-columns: 1fr; } .contact-list dt { border-bottom: 0; padding-bottom: 0; }
  .wa-float { right: 14px; bottom: 14px; }
  .agent-photo #agentPhoto::before { inset: 12px -12px -12px 12px; }
}
@media (max-width: 420px) { .logo { font-size: 1.15rem; } }

/* ================= Homepage layout v2 — split hero, side rail, bento, index ================= */
/* Split hero */
.split { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 110px); border-bottom: 1px solid var(--line); }
.split-copy { padding: 9vh 5vw 8vh 6vw; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 0% 100%, rgba(201,174,124,.09), transparent 60%), var(--bg); }
.split-copy h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1.02; font-weight: 400; margin: 22px 0 24px; }
.split-copy h1 em { display: block; font-style: italic; color: var(--gold-2); }
.split-wa { margin-top: 22px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.split-wa a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; cursor: pointer; }
.split-wa a:hover { color: var(--gold-2); border-color: var(--gold); }
.split-visual { position: relative; overflow: hidden; background: var(--deep); }
.portrait, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 25%; filter: saturate(.8) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,0) 40%, rgba(6,13,26,.85) 100%),
  linear-gradient(90deg, rgba(6,13,26,.55) 0%, rgba(6,13,26,0) 30%); }
.today { position: absolute; left: 7%; right: 7%; bottom: 7%; background: rgba(6, 13, 26, .72); backdrop-filter: blur(14px);
  border: 1px solid rgba(201,174,124,.35); padding: 24px 26px; }
.today-title { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.today-title span { color: var(--muted); letter-spacing: .12em; }
.today-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.today-list b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.today-list span { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.today-latest { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.today-latest b { color: var(--gold-2); }

/* Page with side rail */
.page { display: grid; grid-template-columns: 200px 1fr; }
.rail { position: sticky; top: 90px; align-self: start; height: calc(100vh - 90px); padding: 70px 0 0 6vw; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line); }
.rail a { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 8px 0 8px 14px; border-left: 1px solid transparent; margin-left: -1px; }
.rail a:hover { color: var(--ink); }
.rail a.on { color: var(--gold-2); border-left-color: var(--gold); }
.flow { min-width: 0; }
.block { padding: 110px 6vw 110px 5vw; border-bottom: 1px solid var(--line); }
.block.feature { background: linear-gradient(180deg, var(--bg-2), var(--deep)); }
.block h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 400; line-height: 1.12; max-width: 22ch; margin-bottom: 10px; }
.label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }

/* About: statement + promises */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.statement { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.45; color: var(--ink); margin-top: 26px; }
.statement::first-letter { color: var(--gold-2); }
#bioRest p { color: var(--ink-2); margin-bottom: 14px; }

/* Market bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--bg); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--ink-2); }
.t-chart { grid-column: span 2; grid-row: span 2; justify-content: flex-start; }
.t-wide { grid-column: span 3; justify-content: flex-start; }
.t-note { grid-column: span 1; background: var(--card); justify-content: flex-start; }
.t-note span { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.t-note p { margin-top: 10px; color: var(--ink-2); font-size: .9rem; }
.t-num b { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.t-num span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.t-num small { font-size: .74rem; color: var(--gold); margin-top: 4px; }
.chart-box.bare { background: transparent; border: 0; padding: 0; height: 300px; }
.chart-box.bare.short { height: 200px; }

/* Cluster index */
.index { border-top: 1px solid var(--line-2); }
.irow { display: grid; grid-template-columns: 2.2fr 1fr 1fr .8fr .8fr 40px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; transition: background .3s, padding .3s; }
a.irow:hover { background: linear-gradient(90deg, rgba(201,174,124,.07), transparent); padding-left: 12px; }
a.irow:hover .iname { color: var(--gold-2); }
.ihead { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 14px 0; }
.iname { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: var(--ink); display: grid; grid-template-columns: 42px 1fr; }
.iname em { font-style: normal; font-family: var(--sans); font-size: .7rem; color: var(--gold); letter-spacing: .1em; padding-top: 10px; grid-row: span 2; }
.iname small { font-family: var(--sans); font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.iarrow { color: var(--gold); text-align: right; }

/* Ledgers */
.ledgers { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.ledgers h3 { font-size: .7rem; font-family: var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger li div { font-size: .92rem; color: var(--ink-2); }
.ledger li small { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.ledger li > span { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); white-space: nowrap; text-align: right; }
.ledger li > span small { font-family: var(--sans); font-size: .66rem; }
.more { display: inline-block; margin-top: 14px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Handover steps */
.steps3 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 34px 0; counter-reset: s; }
.steps3 li { background: var(--deep); padding: 30px 26px; counter-increment: s; }
.steps3 li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps3 span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.steps3 p { margin-top: 10px; color: var(--ink-2); font-size: .9rem; }
.handover-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 34px; }
.handover-figs span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.handover-figs b { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; margin: 4px 0; }
.handover-figs small { color: var(--muted); font-size: .76rem; }

/* Tools link list */
.links { border-top: 1px solid var(--line-2); margin-top: 26px; }
.links a { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.links a::after { content: "→"; color: var(--gold); }
.links b { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.links span { color: var(--muted); }
.links a:hover b { color: var(--gold-2); }

/* Location & amenities */
.times { list-style: none; padding: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.times li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.times b { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-2); font-weight: 500; }
.amen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; margin-top: 16px; }
.amen li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.amen b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.amen span { color: var(--muted); font-size: .9rem; }

@media (max-width: 1080px) {
  .page { grid-template-columns: 1fr; } .rail { display: none; }
  .block { padding: 90px 6vw; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-visual { min-height: 120vw; }
  .about, .ledgers { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-chart, .t-wide { grid-column: span 2; } .t-note { grid-column: span 2; }
  .steps3 { grid-template-columns: 1fr; }
  .irow { grid-template-columns: 1fr 1fr; } .ihead { display: none; }
  .irow .iname { grid-column: span 2; } .iarrow { display: none; }
  .irow > span[data-l]::before { content: attr(data-l); display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .links a { grid-template-columns: 1fr auto; } .links span { grid-column: 1; }
}
@media (max-width: 760px) {
  .split-copy { padding: 56px 16px; } .block { padding: 72px 16px; }
  .today { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
  .today-list { grid-template-columns: repeat(2, 1fr); }
  .ledger li { flex-direction: column; gap: 4px; } .ledger li > span { text-align: left; }
}

/* ================= Community hero (aerial) + portrait bio ================= */
.hero-c { position: relative; min-height: calc(100vh - 110px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end;
  padding: 12vh 6vw 8vh; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(6,13,26,.94) 0%, rgba(6,13,26,.72) 38%, rgba(6,13,26,.25) 70%, rgba(6,13,26,.1) 100%),
    linear-gradient(0deg, rgba(6,13,26,1) 0%, rgba(6,13,26,0) 38%),
    url("img/ar3-aerial.webp") center 40% / cover; }
.hero-c h1 { font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: 1.02; font-weight: 400; margin: 22px 0 24px; max-width: 17ch; }
.hero-c h1 em { display: block; font-style: italic; color: var(--gold-2); }
.hero-c .lead { color: var(--ink); opacity: .9; }
.hero-c .today { position: relative; left: auto; right: auto; bottom: auto; align-self: end; }

.about.with-photo { grid-template-columns: 340px 1fr; gap: 72px; }
.about-photo { margin: 0; position: sticky; top: 110px; }
.about-photo .frame { position: relative; }
.about-photo .frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); opacity: .45; }
.about-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; filter: saturate(.85) contrast(1.03); }
.about-photo figcaption { margin-top: 32px; display: grid; gap: 2px; }
.about-photo figcaption b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.about-photo figcaption span { color: var(--gold); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.with-photo .statement { margin-top: 18px; margin-bottom: 18px; }

@media (max-width: 1080px) { .hero-c { grid-template-columns: 1fr; align-items: start; } .hero-c .today { max-width: 640px; } }
@media (max-width: 900px) {
  .about.with-photo { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { position: static; max-width: 300px; }
}
@media (max-width: 760px) {
  .hero-c { padding: 56px 16px 40px; min-height: 0;
    background: linear-gradient(180deg, rgba(6,13,26,.55) 0%, rgba(6,13,26,.85) 45%, rgba(6,13,26,1) 100%), url("img/ar3-aerial.webp") center top / cover; }
  .about-photo .frame::before { inset: 12px -12px -12px 12px; }
}

/* ================= Community overview + bedroom matrix ================= */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin: 10px 0 70px; }
.facts div { padding: 26px 22px 24px 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; color: var(--gold-2); }
.facts span { display: block; margin-top: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.facts small { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
h3.mini { font-family: var(--sans); font-size: .7rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

.bedmatrix { border-top: 1px solid var(--line-2); }
.bm-row { display: grid; grid-template-columns: 2.4fr repeat(3, 90px) 1.2fr; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.bm-head { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 12px 0; }
.bm-head span:nth-child(n+2):nth-child(-n+4) { text-align: center; }
a.bm-row:hover { background: linear-gradient(90deg, rgba(201,174,124,.07), transparent); }
a.bm-row:hover .bm-name { color: var(--gold-2); }
.bm-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.bm-name small { display: block; font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.bm-dot { justify-self: center; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.bm-dot.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,174,124,.12); }
.bm-status { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.bm-status em { font-style: normal; color: var(--gold-2); }

@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) {
  .bm-row { grid-template-columns: 1fr repeat(3, 38px); } .bm-status { grid-column: 1 / -1; text-align: left; margin-top: -6px; }
  .bm-head span:last-child { display: none; } .bm-head span:nth-child(n+2) { font-size: .56rem; }
}

/* ================= Cluster cards ================= */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.ccard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.ccard:hover { border-color: rgba(201,174,124,.55); transform: translateY(-3px); }
.ccard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background:
  radial-gradient(120% 120% at 100% 0%, rgba(201,174,124,.16), transparent 55%), linear-gradient(160deg, #10203a, #07101f); }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ccard:hover .ccard-img img { transform: scale(1.04); }
.ccard-img > span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic;
  font-size: 2.6rem; color: rgba(226,204,159,.28); letter-spacing: .02em; }
.ccard-flag { position: absolute; top: 14px; left: 14px; font-style: normal; background: var(--gold); color: var(--deep);
  font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; }
.ccard-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.ccard-num { font-size: .72rem; letter-spacing: .12em; color: var(--gold); }
.ccard h3 { font-size: 1.75rem; font-weight: 500; margin: 6px 0 2px; }
.ccard:hover h3 { color: var(--gold-2); }
.ccard-kind { color: var(--muted); font-size: .9rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ccard dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin: 18px 0; font-size: .9rem; }
.ccard dt { color: var(--muted); } .ccard dd { margin: 0; color: var(--ink); }
.ccard-note { color: var(--ink-2); font-size: .9rem; line-height: 1.65; margin-top: auto; }
@media (max-width: 1200px) { .ccards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ccards { grid-template-columns: 1fr; } }

.igroup { display: flex; align-items: baseline; gap: 16px; padding: 34px 0 12px; border-bottom: 1px solid var(--line-2); }
.igroup b { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.igroup span { font-size: .8rem; color: var(--muted); }
.icell { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* Floating WhatsApp — pulse (matches the "New owners" badge) */
.wa-float { display: inline-flex; align-items: center; gap: 10px; animation: wa-glow 2s ease-in-out infinite; }
.wa-icon { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--deep); }
.wa-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-2); animation: wa-ring 2s ease-out infinite; }
.wa-float:hover .wa-icon { background: var(--deep); color: var(--gold-2); }
@keyframes wa-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 0 rgba(226, 204, 159, .55); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 18px 5px rgba(226, 204, 159, .35); }
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-icon::after { animation: none; } }

.hf-sizes { list-style: none; padding: 0; margin: 10px 0 8px; border-top: 1px solid var(--line); }
.hf-sizes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hf-sizes li span { font-size: .78rem; color: var(--ink-2); letter-spacing: .02em; text-transform: none; }
.hf-sizes li b { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; margin: 0; }

/* ================= Location map (Leaflet) ================= */
#ar3Map { width: 100%; height: 100%; min-height: 420px; border: 1px solid var(--line); background: #0b1628; }
.map { min-height: 420px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-zoom a { background: var(--card) !important; color: var(--gold-2) !important; border-color: var(--line-2) !important; }
.leaflet-control-attribution { background: rgba(6,13,26,.75) !important; color: var(--muted) !important; font-size: .62rem; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.ar3-pin { position: relative; }
.ar3-pin-dot { position: absolute; inset: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(6,13,26,.8), 0 0 14px 4px rgba(226,204,159,.6); }
.ar3-pin-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-2); animation: ar3-pulse 2.2s ease-out infinite; }
.ar3-pin-ring.r2 { animation-delay: 1.1s; }
@keyframes ar3-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.6); opacity: 0; } }
.ar3-label { background: rgba(6,13,26,.88) !important; color: var(--gold-2) !important; border: 1px solid rgba(201,174,124,.5) !important; border-radius: 0 !important;
  font-family: var(--serif); font-size: 1rem; padding: 4px 10px !important; box-shadow: none !important; }
.ar3-label::before { display: none; }
@media (prefers-reduced-motion: reduce) { .ar3-pin-ring { animation: none; opacity: .5; } }
.ar3-tiles { filter: grayscale(1) invert(.92) contrast(.88) sepia(.35) hue-rotate(180deg) saturate(1.5) brightness(.85); }

/* Whole-community highlight on the location map */
.ar3-area { animation: ar3-area-pulse 2.4s ease-in-out infinite; }
.ar3-glow { animation: ar3-glow-pulse 2.4s ease-in-out infinite; }
@keyframes ar3-area-pulse { 0%, 100% { fill-opacity: .14; stroke-opacity: .75; } 50% { fill-opacity: .34; stroke-opacity: 1; } }
@keyframes ar3-glow-pulse { 0%, 100% { stroke-opacity: .05; stroke-width: 8px; } 50% { stroke-opacity: .45; stroke-width: 22px; } }
.ar3-label.small { font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .ar3-area, .ar3-glow { animation: none; } }

.inputs label.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); cursor: pointer; }
.inputs label.check input { width: 16px; height: 16px; accent-color: var(--gold); padding: 0; }

/* ================= Clean-up: forms never overflow; anchors clear the sticky menu ================= */
section[id], header[id] { scroll-margin-top: 110px; }
.inputs label, .enquiry label { min-width: 0; }
.inputs select, .inputs input:not([type=checkbox]), .enquiry select, .enquiry input, .enquiry textarea { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.calc { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }

/* Rent calculator results */
.rc-box { border: 1px solid rgba(201,174,124,.55); background: linear-gradient(135deg, rgba(201,174,124,.10), transparent 60%), var(--card); padding: 34px 36px; }
.rc-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.rc-value { font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1.05; color: var(--gold-2); margin: 8px 0 26px; }
.rc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.rc-grid > div { padding: 18px 18px 4px 0; }
.rc-grid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.rc-grid span, .rc-yield span { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rc-grid b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.rc-grid .rc-ask b { color: var(--gold-2); }
.rc-note { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.rc-yield { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--card); }
.rc-yield > div { padding: 22px 24px; }
.rc-yield > div + div { border-left: 1px solid var(--line); }
.rc-yield b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.rc-yield small { display: block; margin-top: 4px; font-size: .74rem; color: var(--gold); }
#rcSteps td:last-child { text-align: right; width: 140px; }
@media (max-width: 900px) {
  .rc-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .rc-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rc-yield { grid-template-columns: 1fr; } .rc-yield > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .rc-box { padding: 26px 22px; }
}

.conf-high { color: #8fd1a6 !important; } .conf-medium { color: var(--gold-2) !important; } .conf-low { color: #e59b7a !important; }
#methodTable td:nth-child(2), #methodTable td:nth-child(3) { white-space: nowrap; }
.budget-count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: -10px 0 14px; }
.filters .inline-label select, .filters .inline-label input { min-width: 150px; }

/* ================= Social: YouTube + Instagram reels ================= */
.social-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.social-follow { display: flex; gap: 12px; flex-wrap: wrap; }
.yt { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 26px; }
.yt:empty, .reels:empty { display: none; }
.yt-item { position: relative; aspect-ratio: 16 / 9; background: var(--card); border: 1px solid var(--line); }
.yt-item.main { grid-row: span 2; }
.yt-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt:has(.yt-item:only-child) { grid-template-columns: 1fr; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.reel { background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.reel .instagram-media { max-width: 100% !important; }
@media (max-width: 900px) { .yt { grid-template-columns: 1fr; } .yt-item.main { grid-row: auto; } }
.yt:has(.yt-item:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.yt:has(.yt-item:nth-child(2):last-child) .yt-item.main { grid-row: auto; }
tr.subhead td { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); background: rgba(201,174,124,.06); padding-top: 18px; }
.budget-echo { font-size: .8rem; color: var(--gold-2); letter-spacing: .02em; text-transform: none; white-space: nowrap; }
/* Reels: swipeable row (Instagram's player needs ~330px width) */
.reels { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-color: var(--gold) transparent; }
.reels .reel { flex: 0 0 340px; scroll-snap-align: start; }
.reels::-webkit-scrollbar { height: 6px; } .reels::-webkit-scrollbar-thumb { background: rgba(201,174,124,.5); }
@media (max-width: 760px) { .reels .reel { flex-basis: 86%; } }
.reels-hint { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 12px; text-align: right; }

.reels .reel { position: relative; }
.reels .reel iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; }
.reel-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(201,174,124,.18), transparent 60%), linear-gradient(160deg, #10203a, #07101f); color: var(--ink); }
.reel-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); font-size: 1.3rem; margin-bottom: 10px; }
.reel-fallback b { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; } .reel-fallback small { color: var(--muted); font-size: .8rem; }

/* Reels cropped to the video only — Instagram's white header/footer are hidden (their player can't be restyled).
   Measured: 54px header, then a video area 1.25 × the frame width, with the 9:16 video centred (70.3% of the width). */
.reels .reel { --vw: 300px; flex: 0 0 var(--vw); height: auto; background: transparent; border: 0; overflow: visible; }
.reel-crop { position: relative; z-index: 1; width: var(--vw); aspect-ratio: 9 / 16; overflow: hidden; background: #000;
  border: 1px solid rgba(201,174,124,.35); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.reels .reel .reel-crop iframe { z-index: 1; position: absolute; top: -55px; left: calc(var(--vw) * -0.2111); width: calc(var(--vw) / 0.703125); max-width: none;
  height: calc(var(--vw) * 16 / 9 + 300px); border: 0; }
.reels .reel .reel-fallback { height: auto; aspect-ratio: 9 / 16; bottom: auto; width: var(--vw); z-index: 0; }
.reel-link { display: block; margin-top: 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.reel-link:hover { color: var(--gold-2); }
@media (max-width: 760px) { .reels .reel { --vw: 78vw; } }
/* Reel spacing */
.reels { gap: 36px; padding: 4px 2px 18px; }
@media (max-width: 760px) { .reels { gap: 18px; } }

/* ================= Market panel — ivory variant (class "light" on .bento) ================= */
.bento.light { --ink: #16233a; --ink-2: #33415a; --muted: #6b7486; --line: rgba(22, 35, 58, 0.12);
  background: rgba(22, 35, 58, 0.12); border-color: rgba(201,174,124,.45); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.bento.light .tile { background: linear-gradient(180deg, #f7f2e8, #efe8da); color: var(--ink); }
.bento.light .tile h3 { color: #33415a; }
.bento.light .t-num b { color: #16233a; }
.bento.light .t-num span { color: #6b7486; }
.bento.light .t-num small { color: #8a6a32; font-weight: 500; }
.bento.light .chart-box.bare { background: transparent; }
.bento.light .t-note { background: linear-gradient(160deg, #10203a, #07101f); --ink-2: #c3cad6; }
.bento.light .t-note span { color: var(--gold-2); }
.bento.light .t-note p { color: #d6dbe4; }

/* Ivory ledgers — matches the ivory market panel (remove "light" on .ledgers in index.html to revert) */
.ledgers.light { --ink:#16233a; --ink-2:#33415a; --muted:#6b7486; --line:rgba(22,35,58,.12); --line-2:rgba(22,35,58,.22); gap: 20px; }
.ledgers.light > div { background: linear-gradient(180deg,#f7f2e8,#efe8da); border: 1px solid rgba(201,174,124,.45); box-shadow: 0 30px 70px rgba(0,0,0,.35); padding: 28px 32px 22px; color: var(--ink); }
.ledgers.light h3 { color: #8a6a32; }
.ledgers.light .ledger li div b, .ledgers.light .ledger li div strong { color: #16233a; }
.ledgers.light .more { color: #8a6a32; }
@media (max-width: 720px) { .ledgers.light > div { padding: 22px 18px 16px; } }

/* Stat value that contains a span (e.g. priceCell) keeps the big serif figure */
.stat b span { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }

/* Ivory charts + tables (market.html) — same ivory as the homepage market panel */
.ivory-boxes .chart-box:not(.bare), .ivory-boxes .table-wrap {
  --ink:#16233a; --ink-2:#33415a; --muted:#6b7486; --line:rgba(22,35,58,.12); --line-2:rgba(22,35,58,.22); --gold-2:#8a6a32; --gold:#8a6a32;
  background: linear-gradient(180deg,#f7f2e8,#efe8da); border: 1px solid rgba(201,174,124,.45); box-shadow: 0 30px 70px rgba(0,0,0,.35); color: var(--ink);
}
.ivory-boxes .table-wrap td { color: var(--ink-2); }
.ivory-boxes .table-wrap td a { color: #16233a; font-weight: 500; }
.ivory-boxes .table-wrap tbody tr:hover td { background: rgba(22,35,58,.04); }
.ivory-boxes .table-wrap td.hot { background: rgba(154,118,56,.18); color: #16233a; }
.ivory-boxes .table-wrap td.warm { background: rgba(154,118,56,.08); }
