/* ============================================================
   RUDRAA — Verified Property Platform
   Design system: "quiet luxury" + trust-as-product
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #0B0D10;
  --bg-elev:      #13171C;
  --bg-elev-2:    #181D24;
  --bg-input:     #0E1216;

  /* Hairlines / borders */
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.16);

  /* Text */
  --ink:          #F4F1EA;
  --ink-soft:     #B7BDC6;
  --ink-mute:     #7C848F;

  /* Accent — quiet gold */
  --gold:         #C9A86A;
  --gold-soft:    #E2CD9D;
  --gold-deep:    #9C824B;
  --gold-glow:    rgba(201,168,106,0.16);

  /* Trust system — the heart of the product */
  --verified:     #4FB286;   /* emerald — proven */
  --verified-bg:  rgba(79,178,134,0.12);
  --caution:      #E0A458;   /* amber — needs review */
  --caution-bg:   rgba(224,164,88,0.12);
  --unverified:   #6B7380;   /* slate — unknown, stated honestly */
  --unverified-bg:rgba(107,115,128,0.10);
  --risk:         #D9636B;   /* red — flagged */
  --risk-bg:      rgba(217,99,107,0.12);

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;
  --shadow:       0 24px 60px -24px rgba(0,0,0,0.7);
  --maxw:         1180px;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, var(--gold-glow), transparent 60%),
    radial-gradient(700px 600px at -10% 100%, rgba(79,178,134,0.06), transparent 55%);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* Type */
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.display { font-size: clamp(40px, 6vw, 78px); }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-deep); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); background: rgba(11,13,16,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 23px; letter-spacing: 0.04em; }
.brand b { font-weight: 600; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #0B0D10 url('rudraa_mark.png') center/cover no-repeat;
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(201,168,106,0.12);
  color: transparent; font-size: 0; line-height: 0;
}
/* Full gold logo lockup (emblem + wordmark) for hero / footer use */
.brand-lockup { display: block; height: 84px; width: auto; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-lockup.sm { height: 56px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }

/* Dropdown navigation */
.nav-item-wrapper { position: relative; }
.nav-item-toggle { background: none; border: none; font-size: 14px; color: var(--ink-soft); cursor: pointer; 
  padding: 0; display: flex; align-items: center; gap: 8px; transition: color .2s; font-family: inherit; font-weight: inherit; }
.nav-item-toggle:hover { color: var(--ink); }
.nav-item-toggle.active { color: var(--gold); }
.nav-caret { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; 
  transform: rotate(45deg); transition: transform .25s; }
.nav-item-wrapper.active .nav-caret { transform: rotate(135deg); }

.nav-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; min-width: 200px; 
  background: rgba(11,13,16,0.95); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); border-radius: 12px; 
  box-shadow: 0 12px 40px rgba(0,0,0,0.4); overflow: hidden; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, visibility .2s, transform .2s; }
.nav-item-wrapper.active .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown a { display: block; padding: 12px 18px; font-size: 14px; color: var(--ink-soft); transition: background .15s, color .15s;
  border: none; text-align: left; }
.nav-dropdown a:hover { background: var(--bg-elev); color: var(--ink); }
.nav-dropdown a.active { color: var(--gold); background: rgba(201,168,106,0.08); }

/* Mobile dropdown menu */
.nav-mobile-group { padding: 14px 0; border-top: 1px solid var(--line); }
.nav-mobile-label { font-size: 12px; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; padding: 0 24px 8px; margin-bottom: 4px; }
.nav-mobile-group a { display: block; padding: 10px 24px 10px 32px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; border: none;
  padding: 12px 22px; border-radius: 100px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #0B0D10; box-shadow: 0 10px 30px -10px var(--gold-glow); }
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(201,168,106,0.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Trust badges (the signature element) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 100px; letter-spacing: .02em; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-verified  { background: var(--verified-bg);  color: var(--verified);  border: 1px solid rgba(79,178,134,0.3); }
.badge-verified .dot  { background: var(--verified);  box-shadow: 0 0 10px var(--verified); }
.badge-caution   { background: var(--caution-bg);   color: var(--caution);   border: 1px solid rgba(224,164,88,0.3); }
.badge-caution .dot   { background: var(--caution); }
.badge-unverified{ background: var(--unverified-bg);color: var(--ink-mute);  border: 1px solid var(--line); }
.badge-unverified .dot{ background: var(--unverified); }
.badge-risk      { background: var(--risk-bg);      color: var(--risk);      border: 1px solid rgba(217,99,107,0.3); }
.badge-risk .dot      { background: var(--risk); }

/* ---------- Cards / panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.panel-hairline { position: relative; }
.panel-hairline::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); opacity: .5;
}

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; }
.hero h1 { margin: 20px 0 22px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-proof .stat .n { font-family: var(--serif); font-size: 40px; color: var(--gold-soft); }
.hero-proof .stat .l { font-size: 13px; color: var(--ink-mute); letter-spacing: .04em; }

/* ---------- Grid utils ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .g-2,.g-3,.g-4 { grid-template-columns: 1fr; } .nav-links { display: none; } .hero-proof{gap:26px} }

/* ---------- Property Passport ---------- */
.passport-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.passport-media { position: relative; min-height: 440px; background: #1b2026 center/cover; }
.passport-media .media-tag { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 8px; }
.passport-media .live3d {
  position: absolute; top: 16px; right: 16px; background: rgba(11,13,16,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 7px 14px; font-size: 12px; display: flex; align-items: center; gap: 8px;
}
.passport-media .live3d .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(201,168,106,.5)} 70%{box-shadow:0 0 0 12px transparent} 100%{box-shadow:0 0 0 0 transparent} }
.passport-summary { background: var(--bg-elev); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.passport-score { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-input); }
.score-ring { --p: 92; width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--verified) calc(var(--p)*1%), rgba(255,255,255,0.07) 0);
  display: grid; place-items: center; position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-elev); }
.score-ring span { position: relative; z-index: 1; font-family: var(--serif); font-size: 26px; color: var(--ink); }

/* Passport sections (evidence-on-demand) */
.evidence { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--bg-elev); }
.evidence-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; transition: background .2s; }
.evidence-head:hover { background: var(--bg-elev-2); }
.evidence-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-input); border: 1px solid var(--line); font-size: 18px; }
.evidence-title { flex: 1; }
.evidence-title .t { font-size: 15px; font-weight: 600; }
.evidence-title .s { font-size: 13px; color: var(--ink-mute); }
.evidence-chev { color: var(--ink-mute); transition: transform .25s; font-size: 13px; }
.evidence.open .evidence-chev { transform: rotate(90deg); }
.evidence-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.evidence.open .evidence-body { max-height: 800px; }
.evidence-inner { padding: 4px 20px 22px 72px; }
.proof-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.proof-row:first-child { border-top: none; }
.proof-row .k { color: var(--ink-mute); }
.proof-row .v { color: var(--ink); font-weight: 500; text-align: right; }
.doc-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gold-soft); margin-top: 8px; }
.doc-link:hover { text-decoration: underline; }

/* Valuation band */
.val-band { margin-top: 14px; }
.val-track { position: relative; height: 10px; border-radius: 100px; background: linear-gradient(90deg, rgba(217,99,107,.25), rgba(79,178,134,.35), rgba(217,99,107,.25)); }
.val-range { position: absolute; top: 0; bottom: 0; background: rgba(79,178,134,0.35); border-left: 2px solid var(--verified); border-right: 2px solid var(--verified); border-radius: 4px; }
.val-marker { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.val-marker::after { content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--gold-soft); white-space: nowrap; }
.val-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-mute); margin-top: 10px; }

/* ---------- Listing / inventory cards ---------- */
.estate-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); transition: transform .25s, border-color .25s; cursor: pointer; display: flex; flex-direction: column; }
.estate-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.estate-img { height: 188px; background: #1b2026 center/cover; position: relative; }
.estate-img .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.estate-img .grade { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700; background: var(--verified-bg); color: var(--verified); border: 1px solid rgba(79,178,134,.4); backdrop-filter: blur(6px); }
.estate-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.estate-loc { font-size: 12px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.estate-name { font-family: var(--serif); font-size: 21px; }
.estate-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.estate-price .p { font-size: 22px; font-weight: 700; }
.estate-price .fair { font-size: 12px; padding: 3px 9px; border-radius: 100px; }
.fair-good { background: var(--verified-bg); color: var(--verified); }
.fair-high { background: var(--caution-bg); color: var(--caution); }
.estate-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-soft); padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- AI agent ---------- */
.agent { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--bg-elev), var(--bg)); overflow: hidden; }
.agent-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.agent-orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep)); box-shadow: 0 0 20px var(--gold-glow); }
.agent-stream { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 220px; }
.msg { display: flex; gap: 12px; max-width: 88%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 13px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg.ai .bubble { background: var(--bg-elev-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--gold-glow); border: 1px solid var(--gold-deep); border-top-right-radius: 4px; color: var(--gold-soft); }
.msg .cite { font-size: 12px; color: var(--gold-soft); margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.agent-input { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.agent-input input { flex: 1; background: var(--bg-input); border: 1px solid var(--line); border-radius: 100px; padding: 12px 18px; color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; }
.agent-input input:focus { border-color: var(--gold-deep); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 22px 16px; }
.chip { font-size: 12px; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Closing flow / stepper ---------- */
.stepper { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.step.done:not(:last-child)::before { background: var(--verified); }
.step-dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 2px solid var(--line); background: var(--bg-elev); color: var(--ink-mute); z-index: 1; }
.step.done .step-dot { background: var(--verified); border-color: var(--verified); color: #0B0D10; }
.step.active .step-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px var(--gold-glow); }
.step-content .st { font-size: 15px; font-weight: 600; }
.step-content .ss { font-size: 13px; color: var(--ink-mute); }
.step.active .step-content .st { color: var(--gold-soft); }

/* ---------- Owner portal ---------- */
.kpi { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.kpi .label { font-size: 12px; color: var(--ink-mute); letter-spacing: .06em; text-transform: uppercase; }
.kpi .value { font-family: var(--serif); font-size: 34px; margin: 8px 0 4px; }
.kpi .delta { font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.delta.up { color: var(--verified); }
.delta.down { color: var(--risk); }

/* Spark chart */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 14px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 3px 3px 0 0; opacity: .85; }

/* ---------- Moat strip ---------- */
.moat-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.moat-card .ic { font-size: 26px; margin-bottom: 14px; }
.moat-card h3 { font-size: 21px; margin-bottom: 8px; }
.moat-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); }
@media (max-width: 900px){ .foot-grid { grid-template-columns: 1fr 1fr; } .passport-hero { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

.section-divider { text-align: center; color: var(--ink-mute); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin: 0 auto; }
.pill-note { font-size: 12px; color: var(--ink-mute); display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; }
.agent-typing { color: var(--ink-mute); font-style: italic; opacity: .85; }

/* ---------- Reusable progressive-disclosure sections (accordion) ----------
   Markup: .acc > .acc-sec[data-section][data-default-open?]
             > .acc-head ( .acc-num, .acc-tt(.acc-title,.acc-sub), .acc-chev )
             > .acc-body > div > .acc-inner (content)
   Controller: assets/sections.js toggles .open and fires a one-time
   'rudraa:open' event so heavy content can load lazily. Mobile-first. */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; transition: border-color .2s; }
.acc-sec.open { border-color: var(--line-strong); }
.acc-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; user-select: none; transition: background .2s; }
.acc-head:hover { background: var(--bg-elev-2); }
.acc-num { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg-input); border: 1px solid var(--line); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.acc-sec.open .acc-num { background: var(--gold-deep); color: #0B0D10; border-color: var(--gold-deep); }
.acc-tt { flex: 1; min-width: 0; }
.acc-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.acc-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.acc-chev { color: var(--ink-mute); font-size: 13px; transition: transform .25s, color .2s; flex-shrink: 0; }
.acc-sec.open .acc-chev { transform: rotate(90deg); color: var(--gold); }
/* Reliable show/hide (the grid-rows 0fr→1fr animation collapsed click-toggled
   sections in indefinite-height grids; the fade comes from .reveal.in added on open) */
.acc-body { display: none; }
.acc-sec.open .acc-body { display: block; }
.acc-inner { padding: 2px 20px 22px; }
/* reveal-animated content inside an OPEN section must show immediately (it never
   scroll-intersects while collapsed) */
.acc-sec.open .reveal { opacity: 1 !important; transform: none !important; }
@media (max-width: 720px) {
  .acc-head { padding: 15px 16px; gap: 11px; }
  .acc-title { font-size: 18px; }
  .acc-inner { padding: 2px 14px 18px; }
}

/* ============================================================
   SIGNATURE HERO 3D — the verified monolith (hero3d.js)
   The canvas is a full-bleed backdrop; hero content floats above.
   ============================================================ */
.hero-stage { position: relative; isolation: isolate; }
.hero-stage > .hero { position: relative; z-index: 2; }
#hero3d {
  position: absolute; inset: -8% -2% auto auto;
  width: min(58vw, 760px); height: 118%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-stage.is3d #hero3d { opacity: 1; }
/* Radial vignette keeps the headline crisp over the gem's glow */
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 42%, var(--bg) 18%, rgba(11,13,16,0.55) 46%, transparent 72%),
    linear-gradient(90deg, var(--bg) 8%, transparent 60%);
}
/* CSS-only fallback when WebGL/CDN is unavailable: a quiet gold aura */
.hero-stage.no3d #hero3d,
.hero-stage:not(.is3d):not(.no3d) #hero3d { opacity: 0; }
.hero-stage.no3d::after {
  content: ""; position: absolute; inset: -8% -2% auto auto;
  width: min(50vw, 620px); height: 110%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--gold-glow), transparent 70%);
  filter: blur(8px);
}
@media (max-width: 900px) {
  #hero3d { inset: auto -10% -4% -10%; width: 120vw; height: 70%; opacity: .55 !important; }
  .hero-vignette { background:
    radial-gradient(120% 70% at 50% 88%, transparent 30%, rgba(11,13,16,0.6) 62%, var(--bg) 88%),
    linear-gradient(180deg, var(--bg) 4%, transparent 30%); }
}

/* ============================================================
   MOBILE NAV DRAWER (chrome.js)
   ============================================================ */
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-mobile { position: fixed; inset: 0; z-index: 1500; }
.nav-mobile-scrim { position: absolute; inset: 0; background: rgba(5,6,8,.62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.nav-mobile-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--bg-elev); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 22px 24px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s ease; overflow-y: auto; }
.nav-mobile.on .nav-mobile-scrim { opacity: 1; }
.nav-mobile.on .nav-mobile-sheet { transform: translateX(0); }
.nav-mobile-x { align-self: flex-end; background: transparent; border: 0; color: var(--ink-mute); font-size: 28px; cursor: pointer; line-height: 1; padding: 0 4px; }
.nav-mobile nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.nav-mobile nav a { color: var(--ink); text-decoration: none; padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav-mobile nav a.active { color: var(--gold-soft); }
.nav-mobile-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); display: flex; justify-content: space-between; }
.nav-mobile-foot a { color: var(--ink-soft); text-decoration: none; }
.nav-mobile-foot a:hover { color: var(--gold-soft); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mobile-sheet, .nav-mobile-scrim { transition: none; }
}

/* ============================================================
   FOOTER — production grade (chrome.js)
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; background: var(--bg); margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 38px; }
.foot-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.foot-grid > div a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 13.5px; padding: 5px 0; }
.foot-grid > div a:hover { color: var(--gold-soft); }
.foot-brand .brand { color: var(--ink); text-decoration: none; }
.foot-soc { display: flex; gap: 14px; margin-top: 22px; }
.foot-soc a { font-size: 13px; color: var(--ink-mute); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 100px; transition: border-color .2s, color .2s; }
.foot-soc a:hover { border-color: var(--gold); color: var(--gold-soft); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 48px; }
}

/* ============================================================
   CINEMATIC TOUR — enhanced photo walkthrough (tour.js)
   ============================================================ */
.tour-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; background: #0c0e12; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tour-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: transform, opacity; transform-origin: center; user-select: none; }
.tour-img.on { opacity: 1; }
.tour-img.broken { background: linear-gradient(135deg, #14171d, #0c0e12); }
.tour-grad { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,13,16,.45) 0%, transparent 22%, transparent 55%, rgba(11,13,16,.82) 100%); }
.tour-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.tour-badge { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft);
  background: rgba(11,13,16,.55); border: 1px solid var(--gold-deep); border-radius: 100px; padding: 6px 13px; backdrop-filter: blur(8px); }
.tour-count { font-size: 12px; color: var(--ink-soft); background: rgba(11,13,16,.55); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; backdrop-filter: blur(8px); }
.tour-caption { position: absolute; left: 22px; bottom: 66px; right: 22px; pointer-events: none; }
.tour-label { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); color: var(--ink); text-shadow: 0 2px 18px rgba(0,0,0,.7);
  display: inline-block; padding-left: 14px; border-left: 2px solid var(--gold); line-height: 1.1; }
.tour-label:not(.is-room) { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); border-left-color: var(--gold-deep); }
.tour-ctrls { position: absolute; bottom: 22px; right: 22px; display: flex; gap: 8px; }
.tour-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); cursor: pointer;
  background: rgba(11,13,16,.6); color: var(--ink); font-size: 18px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(8px); transition: border-color .2s, color .2s, background .2s; }
.tour-btn:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(11,13,16,.78); }
.tour-toggle { font-size: 13px; }
.tour-dots { position: absolute; bottom: 28px; left: 22px; display: flex; gap: 7px; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.32); transition: background .2s, transform .2s; }
.tour-dot:hover { background: rgba(255,255,255,.6); }
.tour-dot.on { background: var(--gold); transform: scale(1.35); }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.tour-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); }
.tour-empty { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--ink-mute); font-size: 14px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
@media (prefers-reduced-motion: reduce) {
  .tour-img { transition: opacity .3s ease !important; }
  .tour-progress { display: none; }
}
@media (max-width: 640px) {
  .tour-label { font-size: 20px; } .tour-btn { width: 36px; height: 36px; }
  .tour-caption { left: 16px; bottom: 74px; } .tour-dots { bottom: 28px; left: 16px; }
}

/* ============================================================
   COCKPIT CARD 3D HOVER (cockpit3d.js) — one shared canvas
   ============================================================ */
.ckpt3d-canvas {
  position: fixed; z-index: 30; pointer-events: none;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(120% 110% at 50% 18%, #181b21 0%, #0B0D10 72%);
}
.ckpt3d-canvas.on { opacity: 1; }

/* ============================================================
   AUTH — nav account control + sign-in modal (auth-client.js)
   ============================================================ */
.ra-acct { position: relative; display: inline-flex; }
.ra-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #0B0D10; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); border: 1px solid var(--gold); }
.ra-menu { position: absolute; top: 44px; right: 0; min-width: 168px; display: none; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; z-index: 1000; }
.ra-menu.open {
    display: flex;
}
.ra-menu a, .ra-menu button { text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font: inherit; font-size: 13px; padding: 9px 11px; border-radius: 8px; text-decoration: none; }
.ra-menu a:hover, .ra-menu button:hover { background: var(--bg-elev-2); color: var(--ink); }
.ra-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(5,6,8,0.72); backdrop-filter: blur(8px); animation: raFade .2s ease; }
@keyframes raFade { from { opacity: 0 } to { opacity: 1 } }
.ra-card { position: relative; width: min(420px, 92vw); background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 28px 24px; }
.ra-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--ink-mute); font-size: 24px; cursor: pointer; line-height: 1; }
.ra-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.ra-tabs button { flex: 1; background: var(--bg-input); border: 1px solid var(--line); color: var(--ink-mute);
  font: inherit; font-size: 13px; font-weight: 600; padding: 9px; border-radius: 9px; cursor: pointer; }
.ra-tabs button.on { background: var(--gold-glow); border-color: var(--gold-deep); color: var(--gold-soft); }
.ra-form { display: flex; flex-direction: column; gap: 13px; }
.ra-form label { display: flex; flex-direction: column; gap: 6px; }
.ra-form label span { font-size: 12px; color: var(--ink-mute); letter-spacing: .03em; }
.ra-form input, .ra-form select { background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 14px; padding: 11px 13px; }
.ra-form input:focus, .ra-form select:focus { outline: none; border-color: var(--gold-deep); }
.ra-form .btn { margin-top: 4px; justify-content: center; }
.ra-err { color: var(--risk); font-size: 13px; background: var(--risk-bg); border: 1px solid rgba(217,99,107,.3);
  border-radius: 9px; padding: 9px 11px; }
.ra-fine { font-size: 11.5px; color: var(--ink-mute); text-align: center; margin-top: 4px; line-height: 1.5; }

/* ============================================================
   3D PROPERTY SCANNER — orbitable estate (scanner3d.js)
   ============================================================ */
.scan-host { position: relative; }
#estate3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; cursor: grab; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(120% 120% at 60% 12%, #16181d 0%, #0B0D10 70%);
}
#estate3d:active { cursor: grabbing; }
.scan-host.scan-3d #estate3d { opacity: 1; }
.scan-host.scan-3d { background-image: none !important; }  /* drop the photo fallback once 3D is live */
.scan-host .live3d, .scan-host .media-tag,
.scan-host > div[style*="position:absolute"] { z-index: 3; }
/* projected proof-point labels */
.scan-hot {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
  transform: translate(-9999px,-9999px); will-change: transform, opacity;
  margin: -14px 0 0 14px; padding: 7px 11px; min-width: 120px;
  background: rgba(11,13,16,0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-deep); border-left: 2px solid var(--gold);
  border-radius: 9px; transition: opacity .3s ease;
  box-shadow: 0 8px 26px -10px rgba(0,0,0,0.8);
}
.scan-hot b { display: block; font-size: 12.5px; color: var(--gold-soft); letter-spacing: .01em; }
.scan-hot span { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 1px; }
@media (max-width: 720px) { .scan-hot { display: none; } }


.cat-wrap{
  position: relative;
  display: inline-block;
}

.cat-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 0;
  z-index: 999;
}

.cat-wrap:hover .cat-dropdown{
  display: block;
}

.cat-item{
  padding: 10px 15px;
  cursor: pointer;
  color: #fff;
}

.cat-item:hover{
  background: #222;
}