/* ==========================================================================
   Atlanta Metro Title, LLC — "Southern estate" design system
   Upscale Southern homes behind every page; content on floating ivory panels,
   royal navy ink, champagne-gold details.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #071B2E;
  --navy-2: #0C2740;
  --navy-3: #234666;
  --midnight: #04111E;
  --gold: #C9A35A;
  --gold-light: #E0C78F;
  --gold-ink: #8A6A2F;          /* gold text on paper (AA) */
  --ivory: #F5EFE6;
  --paper: #FBF8F2;
  --parchment: #EEE4D6;
  --sand: #D9CBB3;
  --slate: #4F6473;
  --slate-2: #6B7E8B;
  --ink: #0E1F2F;
  --danger: #8C4A45;
  --success: #4E6B52;

  --tier-1: #A9BCCF;            /* sequential single-hue ramp for rate tiers */
  --tier-2: #4F7094;
  --tier-3: #0C2740;

  --rule: rgba(7, 27, 46, .14);
  --rule-strong: rgba(7, 27, 46, .32);
  --rule-gold: rgba(201, 163, 90, .55);
  --on-navy: rgba(245, 239, 230, .74);

  --display: "GFS Didot", "Didot", "Bodoni 72", "Bodoni Moda", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --pad: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(.22, .68, .12, 1);
  --shadow: 0 1px 0 rgba(7, 27, 46, .04), 0 30px 60px -30px rgba(7, 27, 46, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 1.02rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; font-synthesis: none; line-height: 1.12; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--navy); }
[id] { scroll-margin-top: 110px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--navy); color: var(--ivory); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: calc(860px + var(--pad) * 2); }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.kicker .sec { font-family: var(--display); font-size: 1rem; letter-spacing: 0; color: var(--gold-ink); }
.on-navy .kicker, .on-navy .kicker .sec { color: var(--gold); }
.title-xl { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; }
.title-lg { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; }
.title-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.title-xl i, .title-lg i, .title-md i { font-style: italic; color: var(--gold-ink); }
.on-navy .title-xl i, .on-navy .title-lg i, .on-navy .title-md i { color: var(--gold); }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--slate); max-width: 58ch; }
.on-navy .lead { color: var(--on-navy); }
.muted { color: var(--slate); }
.small { font-size: .88rem; }
.fine { font-size: .78rem; color: var(--slate-2); line-height: 1.6; }
.on-navy { color: var(--ivory); }

/* Double engraved rule used under headings */
.rule-double { width: 72px; height: 5px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin: 22px 0; }
.center .rule-double { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--navy); background: var(--navy); color: var(--ivory); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn:hover { background: var(--navy-2); box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--gold); }
.btn .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--ivory); box-shadow: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: none; }
.on-navy .btn--line { color: var(--ivory); border-color: rgba(245, 239, 230, .45); }
.on-navy .btn--line:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .68rem; }
.btn--block { width: 100%; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 1px solid var(--rule-gold); padding-bottom: 4px; transition: border-color .3s, gap .3s; }
.textlink:hover { border-color: var(--gold-ink); gap: 12px; }
.textlink .icon { width: 14px; height: 14px; }
.on-navy .textlink { color: var(--gold); }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(245, 239, 230, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .3s; }
.masthead.is-scrolled { box-shadow: 0 10px 30px -22px rgba(7, 27, 46, .45); }
.masthead-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img { width: 50px; height: 50px; }
.lockup-name { display: block; font-family: var(--display); font-size: 1.28rem; letter-spacing: .08em; color: var(--navy); line-height: 1.1; }
.lockup-sub { display: block; margin-top: 5px; font-size: .56rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.mast-nav ul { display: flex; list-style: none; gap: clamp(20px, 2.4vw, 40px); }
.mast-nav a { position: relative; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); padding: 8px 0; transition: color .3s; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--navy); }
.mast-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.mast-actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--rule-strong); background: none; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }
@media (max-width: 1060px) { .mast-nav, .mast-actions .btn { display: none; } .menu-btn { display: block; } }
@media (max-width: 520px) { .lockup-sub { display: none; } .lockup-name { font-size: 1.02rem; } .lockup img { width: 42px; height: 42px; } .masthead-bar { height: 72px; } }
.drawer { position: fixed; inset: 72px 0 0; z-index: 90; background: var(--ivory); overflow-y: auto; border-top: 1px solid var(--rule); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease); }
@media (min-width: 521px) { .drawer { inset: 84px 0 0; } }
.drawer.is-open { opacity: 1; transform: none; }
.drawer ol { list-style: none; padding: 20px var(--pad); }
.drawer li { border-bottom: 1px solid var(--rule); }
.drawer li a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-family: var(--display); font-size: 1.9rem; color: var(--navy); }
.drawer li a span { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--gold-ink); }
.drawer .drawer-foot { padding: 12px var(--pad) 40px; display: grid; gap: 14px; }

/* ---------- Guilloché motifs ---------- */
.rosette { position: absolute; pointer-events: none; opacity: .5; }
.band-waves { position: absolute; inset: 0; background: url("../img/waves-gold.svg") center / 100% 100% no-repeat; opacity: .16; pointer-events: none; }

/* ---------- Hero with calculator ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero .rosette { width: 900px; right: -300px; top: -260px; opacity: .35; }
.hero-head { position: relative; display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 1000px) { .hero-head { grid-template-columns: 1.25fr .75fr; align-items: end; gap: 64px; } }
.hero-head .title-xl { margin-top: 18px; }
.hero-head .lead { margin: 0; }
.hero-points { list-style: none; display: grid; gap: 10px; font-size: .9rem; color: var(--slate); }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .icon { color: var(--gold-ink); width: 16px; height: 16px; }

/* ---------- The instrument (rate calculator) ---------- */
.instrument { position: relative; background: var(--paper); border: 1px solid var(--rule-gold); box-shadow: var(--shadow); }
.instrument::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule-gold); pointer-events: none; }
.instrument-head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 22px clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, rgba(238, 228, 214, .55), transparent); }
.instrument-head h2 { font-size: 1.45rem; color: var(--navy); }
.instrument-head .serial { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--slate-2); }
.instrument-body { display: grid; }
@media (min-width: 1000px) { .instrument-body { grid-template-columns: .95fr 1.05fr; } }
.inst-col { padding: clamp(24px, 3vw, 40px); }
.inst-col + .inst-col { border-top: 1px solid var(--rule); }
@media (min-width: 1000px) { .inst-col + .inst-col { border-top: 0; border-left: 1px solid var(--rule); } }
.field-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.price-field { display: flex; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.price-field span { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--slate-2); }
.price-field input { width: 100%; border: 0; background: transparent; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.2rem); color: var(--navy); padding: 0; font-variant-numeric: lining-nums tabular-nums; }
.price-field input:focus { outline: none; }
.price-field:focus-within { border-color: var(--gold); }
.slider { width: 100%; margin: 26px 0 8px; -webkit-appearance: none; appearance: none; height: 2px; background: linear-gradient(90deg, var(--navy) var(--fill, 20%), var(--sand) var(--fill, 20%)); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold); cursor: grab; }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold); cursor: grab; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); }
.slider-scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--slate-2); letter-spacing: .06em; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.presets button { border: 1px solid var(--rule-strong); background: transparent; padding: 8px 14px; font-size: .78rem; letter-spacing: .04em; color: var(--navy); transition: background .25s, color .25s, border-color .25s; }
.presets button:hover { border-color: var(--navy); }
.presets button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.inst-note { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--rule-strong); }

.result-label { font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.result-figure { font-family: var(--display); font-size: clamp(3rem, 6.4vw, 5rem); line-height: 1; color: var(--navy); margin: 10px 0 6px; font-variant-numeric: lining-nums tabular-nums; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .88rem; color: var(--slate); }
.result-meta strong { color: var(--navy); font-weight: 700; }
.min-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; background: var(--parchment); font-size: .76rem; color: var(--navy); }

/* Tier breakdown bar (sequential, single hue; always direct-labeled) */
.tierbar { display: flex; gap: 2px; height: 14px; margin: 26px 0 12px; background: var(--paper); }
.tierbar span { display: block; height: 100%; min-width: 3px; transition: flex-grow .5s var(--ease); }
.tierbar span:first-child { border-radius: 4px 0 0 4px; }
.tierbar span:last-child { border-radius: 0 4px 4px 0; }
.tierbar span:only-child { border-radius: 4px; }
.tier-legend { list-style: none; display: grid; gap: 8px; }
.tier-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; font-size: .86rem; color: var(--slate); padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.tier-legend li i { width: 12px; height: 12px; border-radius: 3px; }
.tier-legend li b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-legend li.is-total { border-bottom: 0; border-top: 1px solid var(--navy); padding-top: 10px; color: var(--navy); font-weight: 700; }

.inst-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.inst-actions .btn--line { min-height: 42px; padding: 0 16px; font-size: .66rem; }
.copied { font-size: .78rem; color: var(--success); align-self: center; }

/* Rate curve chart */
.curve { position: relative; border-top: 1px solid var(--rule); padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px) clamp(20px, 3vw, 30px); }
.curve-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; margin-bottom: 12px; }
.curve-head h3 { font-size: 1.2rem; color: var(--navy); }
.curve-head p { margin: 0; font-size: .8rem; color: var(--slate-2); }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve .grid line { stroke: var(--rule); stroke-width: 1; }
.curve .axis text { fill: var(--slate-2); font-family: var(--sans); font-size: 11px; }
.curve .line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.curve .area { fill: url(#curveFill); }
.curve .step line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; }
.curve .step text { fill: var(--gold-ink); font-size: 10.5px; letter-spacing: .08em; font-family: var(--sans); }
.curve .marker { fill: var(--gold); stroke: var(--paper); stroke-width: 2; }
.curve .cross { stroke: var(--rule-strong); stroke-width: 1; }
.curve .hit { fill: transparent; cursor: crosshair; }
.curve-tip { position: absolute; pointer-events: none; background: var(--navy); color: var(--ivory); padding: 8px 12px; font-size: .78rem; line-height: 1.4; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.curve-tip b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.section--paper { background: var(--paper); }
.section--parchment { background: var(--parchment); }
.section--navy { background: var(--navy); overflow: hidden; }
.section--rule { border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 960px) { .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.sec-head .title-lg { margin-top: 14px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Ledger: the rate schedule as a document */
.ledger { border-top: 2px solid var(--navy); }
.ledger-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ledger-row .no { font-family: var(--display); font-size: 1.1rem; color: var(--gold-ink); }
.ledger-row h3 { font-size: 1.35rem; color: var(--navy); }
.ledger-row p { margin: 4px 0 0; font-size: .9rem; color: var(--slate); }
.ledger-row .rate { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--navy); white-space: nowrap; text-align: right; }
.ledger-row .rate small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }
.worked { margin-top: 28px; padding: 22px 24px; background: var(--parchment); font-size: .92rem; color: var(--ink); }
.worked strong { color: var(--navy); }

/* Numbered cards */
.plates { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px) { .plates { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plates--3 { grid-template-columns: repeat(3, 1fr); } }
.plate { background: var(--paper); padding: 34px 30px 32px; display: grid; gap: 12px; align-content: start; transition: background .4s; }
.plate:hover { background: #fff; }
.plate .no { font-family: var(--display); font-size: .95rem; color: var(--gold-ink); letter-spacing: .08em; }
.plate h3 { font-size: 1.45rem; color: var(--navy); }
.plate p { margin: 0; font-size: .93rem; color: var(--slate); }
.plate .icon { width: 26px; height: 26px; color: var(--gold-ink); stroke-width: 1.2; }

/* Process: numbered procession on navy */
.procession { list-style: none; display: grid; gap: 34px; counter-reset: p; }
@media (min-width: 960px) { .procession { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.procession li { position: relative; padding-top: 30px; }
@media (min-width: 960px) { .procession li { padding: 34px 28px 0 0; } .procession li + li { padding-left: 28px; border-left: 1px solid rgba(245, 239, 230, .14); } }
.procession li::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 5px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
@media (min-width: 960px) { .procession li + li::before { left: 28px; } }
.procession .n { font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--gold); }
.procession h3 { font-size: 1.4rem; margin: 14px 0 8px; }
.procession p { font-size: .92rem; color: var(--on-navy); margin: 0; }

/* Services split */
.duo { display: grid; gap: 24px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { position: relative; background: var(--paper); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 48px); }
.duo-card::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.duo-card h3 { font-size: 1.9rem; color: var(--navy); margin-top: 12px; }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; font-size: .96rem; color: var(--ink); }
.checks .icon { color: var(--gold-ink); width: 18px; height: 18px; margin-top: 4px; }
.on-navy .checks li { color: var(--ivory); }

/* Disclosure */
.disclosure { position: relative; display: flex; gap: 18px; padding: 24px 26px; border: 1px solid var(--rule-gold); background: var(--paper); }
.disclosure .icon { width: 24px; height: 24px; color: var(--gold-ink); margin-top: 2px; }
.disclosure strong { display: block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.disclosure p { margin: 0; font-size: .94rem; color: var(--ink); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--ivory); text-align: center; padding: clamp(84px, 11vw, 150px) 0; }
.cta .rosette { width: 760px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .14; }
.cta .title-lg { max-width: 18ch; margin: 18px auto 0; }
.cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Page header (interior) */
.page-head { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-head .rosette { width: 720px; right: -260px; top: -220px; opacity: .3; }
.page-head .title-xl { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin-top: 16px; max-width: 16ch; }
.page-head .lead { margin-top: 22px; }
.crumbs { display: flex; gap: 10px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 26px; }
.crumbs a:hover { color: var(--navy); }

/* Forms */
.form-grid { display: grid; gap: 26px 28px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field .field-label { margin: 0; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--sand); padding: 13px 14px; border-radius: 0; transition: border-color .25s, box-shadow .25s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 163, 90, .3); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071B2E' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-msg { font-size: .8rem; color: var(--danger); margin: 0; }
.field-msg:empty { display: none; }
.opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--slate-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.form-sheet { position: relative; background: var(--paper); border: 1px solid var(--rule-gold); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); }
.form-sheet::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule-gold); pointer-events: none; }
.form-block + .form-block { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--rule); }
.form-block h2 { font-size: 1.7rem; color: var(--navy); margin: 8px 0 22px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.form-foot .fine { flex: 1 1 260px; margin: 0; }
.sent { text-align: center; padding: 30px 8px; }
.sent:focus { outline: none; }
.sent .seal-sm { width: 76px; height: 76px; margin: 0 auto 20px; }
.sent h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 12px; }
.sent p { color: var(--slate); max-width: 46ch; margin-inline: auto; }
.layout-2 { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .layout-2 { grid-template-columns: 1.5fr 1fr; gap: 48px; } .sticky { position: sticky; top: 108px; } }
.aside-card { position: relative; background: var(--navy); color: var(--ivory); padding: 34px 32px; overflow: hidden; }
.aside-card .rosette { width: 420px; right: -200px; bottom: -200px; opacity: .14; }
.aside-card h3 { font-size: 1.6rem; margin: 12px 0 16px; }
.aside-list { list-style: none; display: grid; gap: 16px; position: relative; }
.aside-list li { display: flex; gap: 14px; font-size: .95rem; color: var(--on-navy); }
.aside-list .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.aside-list strong { display: block; color: var(--ivory); }
.aside-list a { color: var(--ivory); border-bottom: 1px solid var(--gold); }

/* Tabs */
.tabs { display: inline-flex; border: 1px solid var(--rule-strong); margin-bottom: 36px; }
.tabs [role="tab"] { border: 0; background: transparent; padding: 12px 24px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--rule-strong); }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--ivory); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--gold-ink); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--slate); max-width: 70ch; }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--midnight); color: var(--on-navy); padding: clamp(64px, 8vw, 104px) 0 28px; overflow: hidden; }
.foot .band-waves { opacity: .08; }
.foot-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-brand img { width: 84px; height: 84px; }
.foot-brand p { font-family: var(--display); font-size: 1.5rem; color: var(--ivory); margin-top: 20px; max-width: 16ch; line-height: 1.3; }
.foot h4 { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.foot a:hover { color: var(--ivory); }
.foot address { font-style: normal; font-size: .92rem; line-height: 1.8; }
.foot-legal { position: relative; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245, 239, 230, .12); display: grid; gap: 14px; font-size: .76rem; color: rgba(245, 239, 230, .52); }
@media (min-width: 900px) { .foot-legal { grid-template-columns: 1fr auto; } }

/* Mobile quick bar */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--navy); border: 1px solid var(--gold); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); transform: translateY(150%); transition: transform .4s var(--ease); }
  .quickbar.is-visible { transform: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
  .quickbar a.is-primary { background: var(--gold); color: var(--navy); }
  .quickbar .icon { width: 16px; height: 16px; }
  body.is-locked .quickbar { display: none; }
  .foot { padding-bottom: 96px; }
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Printable estimate ---------- */
.print-sheet { display: none; }
@media print {
  @page { margin: 18mm; }
  body { background: #fff; }
  body:has(.print-sheet) > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #000; font-family: var(--sans); }
  .print-sheet .ps-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #071B2E; }
  .print-sheet .ps-head img { width: 64px; height: 64px; }
  .print-sheet h1 { font-family: var(--display); font-size: 24pt; margin: 22px 0 4px; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 11pt; }
  .print-sheet td { padding: 8px 0; border-bottom: 1px solid #ccc; }
  .print-sheet td:last-child { text-align: right; }
  .print-sheet .total td { font-weight: 700; border-top: 2px solid #071B2E; border-bottom: 0; }
  .print-sheet .ps-fine { font-size: 9pt; color: #444; margin-top: 18px; }
}
.curve svg { height: 240px; }
.hero .rosette { width: 820px; right: -380px; top: -320px; opacity: .2; }
@media (max-width: 999px) { .hero .rosette { opacity: .12; } }

/* ==========================================================================
   Photography: framed like a certificate plate. A light warm grade keeps
   every photo in the same family.
   ========================================================================== */
.plate-photo { position: relative; margin: 0; padding: 10px; background: var(--paper); border: 1px solid var(--rule-gold); box-shadow: var(--shadow); }
.plate-photo::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule-gold); pointer-events: none; }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.94) contrast(1.02) sepia(.05); }
.plate-photo figcaption { position: absolute; left: 22px; bottom: 22px; background: rgba(251, 248, 242, .94); padding: 10px 14px; font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--rule-gold); }

/* Hero: headline + photo, calculator below */
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero-grid .title-xl { margin: 18px 0 22px; }
.hero-photo { height: clamp(300px, 36vw, 470px); }
.hero-photo img { height: 100%; }

/* Page headers with a photo */
.page-head--photo .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .page-head--photo .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.page-head--photo .plate-photo { height: clamp(240px, 26vw, 360px); }

/* Why it matters */
.why { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .why { grid-template-columns: .95fr 1.05fr; gap: 72px; } }
.why .plate-photo { height: clamp(320px, 40vw, 560px); }
.facts3 { list-style: none; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--rule); }
.facts3 li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts3 .n { font-family: var(--display); font-size: 1.4rem; color: var(--gold-ink); line-height: 1.2; }
.facts3 strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.facts3 span { color: var(--slate); font-size: .94rem; }

/* Lender's vs owner's policy */
.compare { margin-top: clamp(56px, 7vw, 88px); border: 1px solid var(--rule-gold); background: var(--paper); position: relative; }
.compare::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-gold); pointer-events: none; }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; padding: 26px 28px 8px; font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.compare th, .compare td { text-align: left; padding: 16px 28px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.compare thead th.is-owner { color: var(--gold-ink); }
.compare tbody th { font-weight: 700; color: var(--navy); width: 22%; }
.compare td.is-owner { background: rgba(201, 163, 90, .08); color: var(--navy); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 4px 22px; }
  .compare td::before { content: attr(data-h) ": "; font-weight: 700; color: var(--slate); }
  .compare tbody th { width: auto; }
}

/* Cost framing band */
.value-band { position: relative; overflow: hidden; display: grid; gap: 22px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 44px); background: var(--navy); color: var(--ivory); }
@media (min-width: 900px) { .value-band { grid-template-columns: 1fr auto; } }
.value-band .rosette { width: 520px; right: -180px; top: -200px; opacity: .14; }
.value-band p { position: relative; margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; }
.value-band p i { color: var(--gold); }
.value-band .btn { position: relative; }

.curve-note { margin: -4px 0 10px; font-size: .8rem; color: var(--gold-ink); }

/* ==========================================================================
   v5 · Southern estate backdrop
   A fixed photographic backdrop (built by initBackdrop from [data-scene]) sits
   behind the page. Hero, page heads and the closing CTA sit directly on the
   photo; every other section floats on an ivory panel, with open "windows"
   between panels where the scenery shows through.
   ========================================================================== */
:root {
  --window: clamp(150px, 30vh, 320px);
  --panel-gutter: var(--pad);
  --scrim: rgba(4, 17, 30, .62);
}
.rosette, .band-waves { display: none !important; }

body.has-backdrop { background: var(--midnight); }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #2c3a2c; }
.backdrop .scene { position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 14s linear; filter: saturate(1.06) contrast(1.02); }
.backdrop .scene.is-on { opacity: 1; transform: scale(1); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 17, 30, .28) 0%, rgba(4, 17, 30, .06) 38%, rgba(4, 17, 30, .1) 70%, rgba(4, 17, 30, .4) 100%); }
@media (prefers-reduced-motion: reduce) { .backdrop .scene { transition: opacity .4s; transform: none !important; } }

/* Masthead: lighter glass over the photography */
.has-backdrop .masthead { background: rgba(245, 239, 230, .9); border-bottom-color: rgba(255, 255, 255, .35); }

/* ---- Floating panels ---- */
.has-backdrop main > .section,
.has-backdrop main > section.wrap {
  width: calc(100% - var(--panel-gutter) * 2);
  max-width: var(--max);
  margin: 0 auto var(--window);
  padding-block: clamp(64px, 8vw, 112px);
  background: rgba(251, 248, 242, .985);
  border: 1px solid rgba(255, 255, 255, .6);
  outline: 1px solid var(--rule-gold);
  outline-offset: -10px;
  box-shadow: 0 40px 80px -40px rgba(4, 17, 30, .6), 0 2px 0 rgba(4, 17, 30, .06);
}
.has-backdrop main > section.wrap { padding-block: clamp(32px, 4vw, 48px) !important; padding-inline: calc(var(--pad) + 8px); max-width: var(--max); }
.has-backdrop main > section.wrap .disclosure { border: 0; background: none; padding: 0; }
.has-backdrop main > .section > .wrap { padding-inline: clamp(20px, 4.5vw, 64px); }
.has-backdrop main > .section + .section:not([data-scene]),
.has-backdrop main > .section + section.wrap { margin-top: calc(var(--window) * -1 + 10px); }
.has-backdrop .section--rule { border-top-color: transparent; }
.has-backdrop main > .section--paper { background: rgba(251, 248, 242, .985); }
.has-backdrop main > .section--parchment { background: rgba(238, 228, 214, .985); }
.has-backdrop main > .section--navy { background: rgba(7, 27, 46, .94); border-color: rgba(201, 163, 90, .35); outline-color: rgba(201, 163, 90, .4); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .has-backdrop main > .section, .has-backdrop main > section.wrap { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* ---- Sections that sit directly on the photograph ---- */
.has-backdrop .hero,
.has-backdrop .page-head,
.has-backdrop .cta { background: none; border: 0; color: #fff; }
.has-backdrop .hero::before,
.has-backdrop .page-head::before,
.has-backdrop .cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.has-backdrop .hero::before { background: linear-gradient(90deg, var(--scrim) 0%, rgba(4, 17, 30, .38) 46%, rgba(4, 17, 30, 0) 78%), linear-gradient(180deg, rgba(4, 17, 30, 0) 55%, rgba(4, 17, 30, .35) 100%); }
.has-backdrop .page-head::before { background: linear-gradient(90deg, var(--scrim) 0%, rgba(4, 17, 30, .3) 55%, rgba(4, 17, 30, 0) 85%), linear-gradient(0deg, rgba(4, 17, 30, .4) 0%, rgba(4, 17, 30, 0) 50%); }
.has-backdrop .cta::before { background: radial-gradient(ellipse at center, rgba(4, 17, 30, .72) 0%, rgba(4, 17, 30, .45) 60%, rgba(4, 17, 30, .3) 100%); }
.has-backdrop .hero > .wrap,
.has-backdrop .page-head > .wrap,
.has-backdrop .cta > .wrap { position: relative; }

.has-backdrop :is(.hero, .page-head, .cta) :is(.title-xl, .title-lg) { color: #fff; text-shadow: 0 2px 24px rgba(4, 17, 30, .45); }
.has-backdrop :is(.hero, .page-head, .cta) :is(.title-xl, .title-lg) i { color: var(--gold-light); }
.has-backdrop :is(.hero, .page-head, .cta) .lead { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(4, 17, 30, .5); }
.has-backdrop :is(.hero, .page-head, .cta) :is(.kicker, .kicker .sec) { color: var(--gold-light); }
.has-backdrop :is(.hero, .page-head) .crumbs { color: rgba(255, 255, 255, .78); }
.has-backdrop :is(.hero, .page-head) .crumbs a:hover { color: #fff; }
.has-backdrop .hero .hero-points { color: rgba(255, 255, 255, .92); }
.has-backdrop .hero .hero-points .icon { color: var(--gold-light); }
.has-backdrop :is(.hero, .page-head) .btn--line { color: #fff; border-color: rgba(255, 255, 255, .6); }
.has-backdrop :is(.hero, .page-head) .btn--line:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Hero: the first screen is the home; the rate instrument rises out of it */
.has-backdrop .hero { padding-bottom: var(--window); }
.has-backdrop .hero-grid { grid-template-columns: 1fr !important; min-height: calc(100svh - 84px - clamp(48px, 7vw, 96px) - 110px); align-content: center; margin-bottom: 0; }
.has-backdrop .hero-grid > div { max-width: 700px; }
.has-backdrop .hero .instrument { box-shadow: 0 50px 100px -40px rgba(4, 17, 30, .75); }

/* Interior page heads: a generous window onto the scene */
.has-backdrop .page-head { display: flex; align-items: flex-end; min-height: min(72svh, 640px); padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 80px); }
.has-backdrop .page-head > .wrap { width: 100%; }
.has-backdrop .page-head .lead { max-width: 52ch; }
.has-backdrop .page-head + .section { margin-top: 0; }
.has-backdrop .page-head--tall { min-height: calc(100svh - 84px); }

/* Closing CTA sits on the scene */
.has-backdrop .cta { padding: clamp(110px, 16vw, 200px) 0; }
.has-backdrop .cta .btn--line { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* Forms/pages whose first panel follows the page head directly */
.has-backdrop .page-head + .section { padding-top: clamp(48px, 6vw, 80px) !important; }

@media (max-width: 719px) {
  :root { --window: 26vh; }
  .has-backdrop main > .section > .wrap { padding-inline: 18px; }
  .has-backdrop main > .section, .has-backdrop main > section.wrap { outline-offset: -8px; }
  .has-backdrop .hero::before { background: linear-gradient(180deg, rgba(4, 17, 30, .5) 0%, rgba(4, 17, 30, .55) 55%, rgba(4, 17, 30, .3) 100%); }
  .has-backdrop .page-head { min-height: 62svh; }
}
@media print {
  .backdrop { display: none; }
  .has-backdrop main > .section { box-shadow: none; margin-bottom: 0; }
}
