/* Mehrdad Legacy — site styles */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&display=swap");

:root{
  --navy:#0E1A33; --navy-2:#16244A; --navy-3:#08101F;
  --plum:#4B2E6F; --plum-dark:#3A2257;
  --gold:#C9A55C; --gold-deep:#7D5F24;
  --ivory:#F7F4EE; --white:#FFFFFF;
  --ink:#2A2F3A; --slate:#5B6170; --line:#DDD6C8; --mist:#D7DBE5;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap:1200px; --radius:4px;
  --shadow:0 8px 24px rgba(14,26,51,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold-deep)} a:hover{color:var(--plum)}
h1,h2,h3{font-family:var(--serif);font-weight:600;color:var(--navy);line-height:1.1;margin:0 0 .5em}
h1{font-size:clamp(40px,6vw,66px)} h2{font-size:clamp(32px,4.4vw,46px)} h3{font-size:26px}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section--white{background:var(--white)}
.section--navy{background:var(--navy);color:var(--mist)}
.section--navy h1,.section--navy h2,.section--navy h3{color:var(--ivory)}
.eyebrow{font-size:13px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--gold-deep);margin-bottom:12px;display:block}
.section--navy .eyebrow,.hero .eyebrow{color:var(--gold)}
.lead{font-size:19px;max-width:620px}
.muted{color:var(--slate)}
.small{font-size:14px}
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--navy);padding:10px 16px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 24px;border-radius:3px;font-weight:600;font-size:16px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;font-family:var(--sans);transition:background .2s,color .2s,border-color .2s}
.btn--plum{background:var(--plum);color:#fff} .btn--plum:hover{background:var(--plum-dark);color:#fff}
.btn--gold{background:var(--gold);color:var(--navy)} .btn--gold:hover{background:#D7B670;color:var(--navy)}
.btn--outline-gold{border-color:var(--gold);color:var(--gold);background:transparent} .btn--outline-gold:hover{background:var(--gold);color:var(--navy)}
.btn--outline{border-color:var(--navy);color:var(--navy);background:transparent} .btn--outline:hover{background:var(--navy);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}

/* Header */
.site-header{background:var(--navy);position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(201,165,92,.18)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.brand img{height:62px;width:auto}
.nav{display:flex;align-items:center;gap:26px}
.nav a{color:var(--ivory);text-decoration:none;font-size:15px;font-weight:500}
.nav a:hover,.nav a[aria-current="page"]{color:var(--gold)}
.nav .btn{color:#fff;padding:10px 18px;min-height:44px}
.nav-toggle{display:none;background:none;border:1px solid rgba(247,244,238,.4);color:var(--ivory);border-radius:3px;width:46px;height:46px;cursor:pointer}
@media (max-width:980px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--navy);flex-direction:column;align-items:flex-start;padding:16px 24px 24px;gap:16px;border-bottom:1px solid rgba(201,165,92,.25)}
  .nav.is-open{display:flex}
  .brand img{height:42px}
}

/* Hero */
.hero{background:var(--navy);color:var(--mist);padding:72px 0 120px;overflow:hidden}
.hero .wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.hero-copy{flex:1 1 480px}
.hero h1{color:var(--ivory)}
.hero-art{flex:1 1 360px;display:flex;justify-content:center}
.house{width:100%;max-width:440px;height:auto}
@media (max-width:600px){.house{max-width:280px}.hero{padding:48px 0 96px}}
.house .draw{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);animation:draw .9s ease forwards}
.house .ground{--len:340;animation-delay:.1s}
.house .walls{--len:700;animation-delay:.5s}
.house .roof{--len:320;animation-delay:1.1s;transform:translateY(-24px);animation:draw .8s ease 1.1s forwards,drop .8s ease 1.1s forwards}
.house .chimney{--len:150;animation-delay:1.6s}
.house .door{--len:230;animation-delay:1.7s}
.house .win{fill:transparent;stroke-dasharray:150;stroke-dashoffset:150;animation:draw .6s ease 1.9s forwards,glow .8s ease 2.4s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes drop{to{transform:translateY(0)}}
@keyframes glow{to{fill:rgba(201,165,92,.85)}}
@media (prefers-reduced-motion:reduce){
  .house .draw,.house .win{animation:none;stroke-dashoffset:0;transform:none}
  .house .win{fill:rgba(201,165,92,.85)}
}

/* Trust bar */
.trust{margin-top:-48px;position:relative;z-index:2}
.trust-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px}
.trust-card strong{display:block;color:var(--navy)}
.trust-card span{font-size:14px;color:var(--slate)}

/* Layout helpers */
.split{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.split > *{flex:1 1 400px}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.card h3{margin-bottom:.35em}
.section--navy .card{background:var(--navy-2);border-color:rgba(201,165,92,.25);color:var(--mist)}
.icon-num{font-family:var(--serif);font-size:40px;color:var(--gold);line-height:1;margin-bottom:8px;display:block}
.checklist{list-style:none;padding:0;margin:0 0 1em}
.checklist li{padding-left:28px;position:relative;margin-bottom:10px}
.checklist li::before{content:"";position:absolute;left:4px;top:9px;width:10px;height:6px;border-left:2px solid var(--gold-deep);border-bottom:2px solid var(--gold-deep);transform:rotate(-45deg)}
.section--navy .checklist li::before{border-color:var(--gold)}
.page-hero{background:var(--navy);color:var(--mist);padding:72px 0 64px}
.page-hero h1{color:var(--ivory);font-size:clamp(38px,5vw,56px)}
.page-hero .eyebrow{color:var(--gold)}
.headshot{border:1px solid var(--gold);border-radius:var(--radius);max-width:400px;width:100%}

/* Forms */
.form{display:grid;gap:16px}
.form--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.form--2 .full{grid-column:1/-1}
@media (max-width:560px){.form--2{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
.field input,.field select,.field textarea{font:inherit;font-size:16px;padding:13px;border:1px solid #CFC7B8;border-radius:3px;background:#fff;color:var(--ink);width:100%}
.field textarea{min-height:120px;resize:vertical}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;font-weight:400}
.consent input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:var(--plum)}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:30px}
.form-card--navy{background:var(--navy);color:var(--mist)}
.form-card--navy .field{color:var(--ivory)}
.form-card--navy .consent{color:#C3C8D4}
.form-status{font-size:14px;min-height:1.2em}
.form-status.error{color:#B42318}
.form-card--navy .form-status.error{color:#FDA29B}

/* Guide picker */
.guide-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:560px){.guide-pick{grid-template-columns:1fr}}
.guide-option{display:flex;flex-direction:column;gap:10px;background:var(--white);border:1.5px solid var(--line);border-radius:var(--radius);padding:20px;cursor:pointer}
.guide-option:has(input:checked){border-color:var(--plum);box-shadow:0 0 0 1px var(--plum)}
.guide-option .row{display:flex;gap:10px;align-items:center;font-weight:600;color:var(--navy);font-size:17px}
.guide-option input{width:18px;height:18px;accent-color:var(--plum)}
.guide-option span.desc{font-size:14px;color:var(--slate);line-height:1.5}

/* Calculators */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.tab{background:var(--ivory);color:var(--navy);border:1px solid var(--line);padding:11px 16px;border-radius:22px;font:500 14px var(--sans);cursor:pointer;min-height:44px}
.tab[aria-selected="true"]{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.calc{display:none}
.calc.is-active{display:block}
.calc-body{display:flex;flex-wrap:wrap;gap:28px;background:var(--ivory);border-radius:var(--radius);padding:28px}
.calc-inputs{flex:1 1 420px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}
@media (max-width:560px){.calc-inputs{grid-template-columns:1fr}}
.calc-inputs .full{grid-column:1/-1}
.calc-out{flex:1 1 320px;background:var(--navy);color:var(--mist);border-radius:var(--radius);padding:28px;align-self:start}
.calc-out .big{font-family:var(--serif);font-size:48px;font-weight:600;color:var(--gold);line-height:1.1;margin:4px 0 14px}
.calc-out .label{font-size:14px;color:#C3C8D4}
.calc-out table{width:100%;border-collapse:collapse;font-size:15px}
.calc-out td{padding:7px 0;border-top:1px solid rgba(247,244,238,.12)}
.calc-out td:last-child{text-align:right;color:var(--ivory);font-variant-numeric:tabular-nums}
.calc-out tr.total td{font-weight:600;color:var(--gold)}
.calc-note{font-size:13px;color:var(--slate);margin-top:14px}
.calc-out .note{font-size:13px;color:#AEB4C2;margin-top:12px}
.pill-ok{color:#9FE0B5} .pill-bad{color:#FDA29B}
.field .hint{font-weight:400;color:var(--slate);font-size:12px}
.check-row{display:flex;gap:10px;align-items:center;font-size:15px}
.check-row input{width:18px;height:18px;accent-color:var(--plum)}

/* FAQ */
details{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;margin-bottom:12px}
summary{cursor:pointer;font-weight:600;color:var(--navy)}
details p{margin:12px 0 0}

/* Footer */
.site-footer{background:var(--navy-3);color:#AEB4C2;font-size:14px;padding:56px 0 32px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px}
.site-footer h2{font-family:var(--sans);font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory);margin-bottom:12px}
.site-footer a{color:#D7DBE5;text-decoration:none} .site-footer a:hover{color:var(--gold)}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:6px}
.footer-legal{border-top:1px solid #1F2A40;margin-top:36px;padding-top:20px;font-size:12px;display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between}
.footer-logo{height:44px;width:auto;margin-bottom:14px}

/* Prose pages */
.prose{max-width:760px}
.prose h2{font-size:34px;margin-top:1.4em}
.prose ul{padding-left:20px}

/* ===== Hero v2: photo + animated skyline + inspection card ===== */
.hero{background:#0B1D39;padding:64px 0 0;position:relative}
.hero .wrap{align-items:flex-end}
.hero-copy{padding-bottom:88px}
.hero-visual{flex:1 1 440px;position:relative;min-height:560px;display:flex;justify-content:center;align-items:flex-end}
.skyline{position:absolute;left:-20%;bottom:0;width:140%;height:auto;z-index:0;opacity:.95}
.skyline .ln{fill:none;stroke-linejoin:round;stroke-dasharray:1200;stroke-dashoffset:1200;animation:draw 2.2s ease forwards}
.skyline .gold{stroke:#C9A55C;stroke-width:2.5}
.skyline .soft{stroke:rgba(247,244,238,.35);stroke-width:2}
.skyline .d1{animation-delay:.1s}.skyline .d2{animation-delay:.4s}.skyline .d3{animation-delay:.7s}.skyline .d4{animation-delay:1s}
.skyline .w{fill:#C9A55C;opacity:0;animation:twinkle 4s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:0}30%,70%{opacity:.9}}
.hero-photo{position:relative;z-index:1;width:min(520px,100%);height:auto;-webkit-mask-image:radial-gradient(ellipse 62% 70% at 50% 58%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 62% 70% at 50% 58%,#000 62%,transparent 100%);opacity:0;transform:translateY(24px);animation:rise .9s ease .3s forwards}
@keyframes rise{to{opacity:1;transform:none}}
.inspect-card{position:absolute;z-index:2;left:0;bottom:64px;background:rgba(247,244,238,.97);color:var(--navy);border-radius:6px;padding:16px 18px;width:230px;box-shadow:0 12px 30px rgba(0,0,0,.3);opacity:0;animation:rise .7s ease 1.2s forwards}
.inspect-card .t{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--gold-deep);margin-bottom:8px}
.inspect-card ul{list-style:none;margin:0;padding:0;font-size:14px;font-weight:500}
.inspect-card li{display:flex;align-items:center;gap:10px;padding:4px 0}
.inspect-card .box{width:18px;height:18px;border:1.5px solid #B8944A;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.inspect-card .box svg{stroke-dasharray:20;stroke-dashoffset:20;animation:draw .35s ease forwards}
.inspect-card li:nth-child(1) svg{animation-delay:1.8s}.inspect-card li:nth-child(2) svg{animation-delay:2.2s}
.inspect-card li:nth-child(3) svg{animation-delay:2.6s}.inspect-card li:nth-child(4) svg{animation-delay:3s}
.key-badge{position:absolute;z-index:2;right:2%;top:22%;background:var(--plum);color:#fff;border-radius:6px;padding:10px 14px;font-size:13px;font-weight:600;display:flex;gap:8px;align-items:center;box-shadow:0 10px 24px rgba(0,0,0,.3);opacity:0;animation:rise .7s ease 3.4s forwards}
.key-badge svg{animation:swing 2.4s ease-in-out 4s infinite;transform-origin:30% 30%}
@keyframes swing{0%,100%{transform:rotate(0)}50%{transform:rotate(-14deg)}}
.trust{margin-top:0;padding-top:32px}
@media (max-width:980px){.hero-copy{padding-bottom:24px}.hero-visual{min-height:440px}.inspect-card{width:200px;bottom:40px}}
@media (max-width:600px){.hero{padding-top:40px}.hero .wrap{gap:8px}.hero-visual{min-height:0;padding-top:56px}.skyline{left:-10%;width:120%}.hero-photo{width:92%}.inspect-card{width:180px;padding:12px 14px;bottom:24px}.inspect-card ul{font-size:13px}.key-badge{top:10%;font-size:12px}}
@media (prefers-reduced-motion:reduce){
  .skyline .ln,.inspect-card .box svg{animation:none;stroke-dashoffset:0}
  .skyline .w{animation:none;opacity:.8}
  .hero-photo,.inspect-card,.key-badge{animation:none;opacity:1;transform:none}
  .key-badge svg{animation:none}
}
/* ===== Hero v3: checklist under the buttons, nothing over the photo ===== */
.hero-copy .inspect-card{position:static;width:auto;max-width:420px;margin-top:28px;background:rgba(247,244,238,.06);border:1px solid rgba(201,165,92,.35);box-shadow:none;color:var(--ivory)}
.hero-copy .inspect-card .t{color:var(--gold)}
.hero-copy .inspect-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}
.hero-copy .inspect-card .box{border-color:var(--gold)}
.hero-copy .inspect-card .box path{stroke:var(--gold)}
.hero-visual{justify-content:flex-end}
.skyline{opacity:.55}
.hero-photo{-webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent 100%),radial-gradient(ellipse 70% 75% at 50% 50%,#000 65%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,#000 80%,transparent 100%),radial-gradient(ellipse 70% 75% at 50% 50%,#000 65%,transparent 100%);mask-composite:intersect}
.key-badge{top:16%;right:0}
@media (max-width:600px){.hero-copy .inspect-card{max-width:none}.hero-visual{justify-content:center}}
/* Head-and-shoulders crop: hides the crossed arms */
.hero-photo{aspect-ratio:100/72;object-fit:cover;object-position:50% 0;width:min(620px,100%);-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent 100%),linear-gradient(to right,transparent 0,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(to bottom,#000 78%,transparent 100%),linear-gradient(to right,transparent 0,#000 16%,#000 84%,transparent 100%)}
.hero-visual{min-height:0;padding-top:24px}
.key-badge{top:8%}

/* ===== Buy now or wait ===== */
.bow{display:flex;flex-wrap:wrap;gap:32px;margin-top:28px;background:var(--ivory);border-radius:var(--radius);padding:28px}
.bow-controls{flex:1 1 380px;display:grid;gap:18px;align-content:start}
.bow-field{display:grid;gap:8px}
.bow-lab{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:500;color:var(--navy)}
.bow-lab output{font-weight:600;color:var(--plum);font-variant-numeric:tabular-nums;white-space:nowrap}
.bow-field input[type=range]{width:100%;accent-color:var(--plum);height:28px}
.bow-result{flex:1 1 420px;background:var(--navy);color:var(--mist);border-radius:var(--radius);padding:28px}
.bow-verdict{font-family:var(--serif);font-size:34px;font-weight:600;color:var(--gold);line-height:1.15}
.bow-sub{font-size:13px;color:#AEB4C2;margin:6px 0 20px}
.bow-bars{display:grid;gap:12px;margin-bottom:20px}
.bow-row{display:grid;grid-template-columns:72px 1fr 96px;align-items:center;gap:12px;font-size:14px}
.bow-name{color:var(--ivory);font-weight:600}
.bow-track{background:rgba(247,244,238,.08);border-radius:3px;height:26px;overflow:hidden}
.bow-bar{height:100%;border-radius:3px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.bow-bar--now{background:var(--gold)}
.bow-bar--later{background:#8E6BB8}
.bow-val{text-align:right;color:var(--ivory);font-variant-numeric:tabular-nums}
.bow-table{width:100%;border-collapse:collapse;font-size:14px}
.bow-table th{text-align:right;font-weight:600;color:var(--gold);padding:6px 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.bow-table td{padding:7px 0;border-top:1px solid rgba(247,244,238,.12);text-align:right;color:var(--ivory);font-variant-numeric:tabular-nums}
.bow-table td:first-child{text-align:left;color:#C3C8D4}
.bow-note{font-size:12px;color:#AEB4C2;margin:16px 0 18px}
@media (max-width:560px){.bow{padding:18px}.bow-result{padding:20px}.bow-verdict{font-size:28px}.bow-row{grid-template-columns:60px 1fr 84px}}
/* ===== Buy or wait, simple version ===== */
.bow-answer{font-family:var(--serif);font-size:38px;font-weight:600;color:var(--gold);line-height:1.15}
.bow-explain{font-size:15px;color:#C3C8D4;margin:10px 0 24px}
.bow-chart{display:grid;gap:14px}
.bow-crow{display:grid;grid-template-columns:150px 1fr 100px;align-items:center;gap:12px;font-size:15px}
.bow-cl{color:var(--ivory)}
.bow-ctrack{position:relative;height:30px;background:rgba(247,244,238,.06);border-radius:3px}
.bow-ctrack::after{content:"";position:absolute;left:50%;top:-4px;bottom:-4px;width:1px;background:rgba(247,244,238,.35)}
.bow-cbar{position:absolute;top:0;bottom:0;left:50%;width:0;background:#E08A6B;border-radius:3px;transition:width .45s cubic-bezier(.2,.8,.2,1),left .45s cubic-bezier(.2,.8,.2,1)}
.bow-cbar.is-save{background:#6CC398}
.bow-cv{text-align:right;color:var(--ivory);font-weight:600;font-variant-numeric:tabular-nums}
.bow-total{border-top:1px solid rgba(247,244,238,.18);padding-top:14px}
.bow-total .bow-cl{color:var(--gold);font-weight:600}
.bow-legend{display:flex;gap:20px;font-size:13px;color:#AEB4C2;margin-top:4px}
.bow-legend i{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.k-cost{background:#E08A6B}.k-save{background:#6CC398}
.bow-controls{gap:26px}
@media (max-width:560px){.bow-answer{font-size:30px}.bow-crow{grid-template-columns:1fr 90px;}.bow-crow .bow-cl{grid-column:1/-1}.bow-crow .bow-ctrack{grid-column:1}}
/* ---- Hero v4: photo level with headline, checklist as strip under both ---- */
.hero .wrap{align-items:center}
.hero-copy{padding-bottom:0}
.hero-visual{align-self:center;padding-top:0}
.hero-strip{position:static;flex:1 1 100%;width:auto;max-width:none;margin:8px 0 48px;padding:14px 20px;background:rgba(247,244,238,.06);border:1px solid rgba(201,165,92,.35);box-shadow:none;color:var(--ivory);display:flex;align-items:center;gap:12px 28px;flex-wrap:wrap}
.hero-strip .t{color:var(--gold);margin:0}
.hero-strip ul{display:flex;flex-wrap:wrap;gap:6px 28px}
.hero-strip .box{border-color:var(--gold)}
.hero-strip .box path{stroke:var(--gold)}
@media (max-width:980px){.hero-visual{min-height:0}}
@media (max-width:600px){.hero-strip{width:auto;padding:12px 14px;margin-bottom:32px}.hero-strip ul{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}}
/* About-section headshot: crop below the shoulders */
.headshot{aspect-ratio:100/72;object-fit:cover;object-position:50% 0}