:root {
  color-scheme: light;
  --alabaster: #faf9f6;
  --paper: #fffefa;
  --navy: #0f172a;
  --navy-soft: #172238;
  --charcoal: #1e293b;
  --muted: #647084;
  --silver: #94a3b8;
  --gold: #c5a059;
  --gold-hover: #b08d48;
  --line: #e6e1d7;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--alabaster); color: var(--charcoal); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.page-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: 120px 0; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .24em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-dark { color: #94733b; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
h2 { margin-bottom: 22px; font-size: clamp(40px, 5vw, 58px); line-height: 1.12; letter-spacing: -.035em; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 2px; padding: 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-align: center; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: var(--gold-hover); }
.button-ghost { border-color: rgba(197,160,89,.55); background: transparent; color: #fff; }
.button-ghost:hover { border-color: var(--gold); color: var(--gold); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 9px; }
.button-wide { width: 100%; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.button svg, .text-link svg, .text-button svg, .mobile-portal svg { width: 14px; height: 14px; flex: none; stroke-width: 1.7; }
.text-link svg { color: var(--gold); transition: transform .2s ease; }
.text-link:hover svg { transform: translateY(3px); }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; height: 88px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); padding: 0 max(32px, calc((100% - 1320px) / 2)); background: var(--navy); color: #fff; }
.brand { display: inline-flex; flex: 0 0 145px; align-items: center; color: #fff; }
.brand-logo { display: block; width: 132px; height: 82px; object-fit: contain; }
.brand-monogram { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(197,160,89,.75); color: var(--gold); font-family: var(--serif); font-size: 22px; line-height: 1; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .01em; }
.brand-sub { margin-top: 5px; color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: .31em; text-transform: uppercase; }
.primary-navigation { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 31px); }
.primary-navigation a { color: rgba(255,255,255,.82); font-size: 10px; font-weight: 500; transition: color .2s ease; white-space: nowrap; }
.primary-navigation a:hover { color: var(--gold); }
.mobile-portal { display: none; }
.header-actions { display: flex; gap: 9px; align-items: center; }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; min-height: 740px; align-items: center; overflow: visible; background: var(--navy); color: #fff; }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.91) 40%, rgba(15,23,42,.56) 72%, rgba(15,23,42,.34) 100%), linear-gradient(0deg, rgba(15,23,42,.38), transparent 50%), url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=85"); background-position: center, center, center 56%; background-size: cover; }
.hero-content { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 120px; }
.hero h1 { max-width: 780px; margin: 0 0 25px; font-size: clamp(49px, 6vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: #e0c58d; }
.hero-intro { max-width: 610px; margin-bottom: 31px; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 27px; }
.hero-caption { margin: 58px 0 0; color: rgba(255,255,255,.45); font-family: var(--serif); font-size: 13px; font-style: italic; letter-spacing: .02em; }
.trust-bar { position: absolute; z-index: 2; right: 0; bottom: -50px; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 118px; border: 1px solid rgba(197,160,89,.47); background: #fffefa; color: var(--charcoal); box-shadow: 0 18px 45px rgba(15,23,42,.1); }
.trust-item { display: flex; flex-direction: column; justify-content: center; padding: 22px 30px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { color: var(--navy); font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.trust-item strong span { font-size: 18px; }
.trust-item p { margin: 8px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .025em; }

.strategy-section { padding-top: 165px; }
.section-heading { max-width: 700px; margin: 0 auto 65px; text-align: center; }
.section-heading h2 { color: var(--navy); }
.section-heading h2 em, .calculator-copy h2 em, .deals-heading h2 em { color: #96743c; }
.section-intro { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-card { position: relative; min-height: 245px; padding: 37px 38px 35px; }
.process-card + .process-card { border-left: 1px solid var(--line); }
.roman { display: block; margin-bottom: 22px; color: var(--gold); font-family: var(--serif); font-size: 30px; line-height: 1; }
.process-card h3 { margin-bottom: 8px; color: var(--navy); font-size: 23px; }
.process-kicker { margin-bottom: 12px; color: #94733b; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.process-card > p:last-child { max-width: 310px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.calculator-section { background: #f0eee8; }
.calculator-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 105px; align-items: center; }
.calculator-copy h2 { color: var(--navy); }
.calculator-copy > p:not(.eyebrow) { max-width: 370px; color: var(--muted); font-size: 14px; }
.calculator-note { display: flex; gap: 12px; margin-top: 35px; padding-top: 20px; border-top: 1px solid #dcd7ca; color: var(--muted); font-size: 10px; line-height: 1.7; }
.note-mark { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border: 1px solid #a48a58; border-radius: 50%; color: #8d7446; font-family: var(--serif); font-size: 13px; }
.calculator-card { padding: 36px 40px 32px; border: 1px solid #dfd7c8; background: var(--paper); box-shadow: 0 22px 55px rgba(15,23,42,.065); }
.calculator-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.secure-mark { color: #ab8a4c; font-family: var(--serif); font-size: 12px; letter-spacing: .12em; }
.amount-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.amount-row > label, .choice-group legend { color: var(--charcoal); font-size: 11px; font-weight: 700; letter-spacing: .025em; }
.amount-input-wrap { display: flex; align-items: center; border-bottom: 1px solid #c9c1b2; color: var(--navy); font-family: var(--serif); font-size: 25px; }
.amount-input-wrap input { width: 145px; border: 0; outline: 0; background: transparent; color: var(--navy); font-family: var(--serif); font-size: 25px; text-align: right; }
.amount-input-wrap input:focus-visible { outline: 0; border-bottom: 2px solid var(--gold); }
.range-slider { width: 100%; height: 4px; margin: 8px 0 0; appearance: none; background: #ddd6c9; cursor: pointer; }
.range-slider::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; border: 3px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.range-slider::-moz-range-thumb { width: 10px; height: 10px; border: 3px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.range-labels { display: flex; justify-content: space-between; margin: 7px 0 25px; color: #7e8795; font-size: 9px; }
.choice-group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 10px; }
.choice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-option { position: relative; display: flex; min-height: 53px; align-items: center; border: 1px solid #e6e1d7; padding: 9px 12px; color: var(--charcoal); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.choice-option:has(input:checked) { border-color: #b99553; background: #fbf8f0; }
.choice-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.yield-options .choice-option { gap: 8px; }
.choice-option span { display: flex; flex-direction: column; line-height: 1.3; }
.choice-option b { color: var(--navy); font-size: 12px; }
.choice-option small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.choice-option:has(input:disabled) { opacity: .46; cursor: not-allowed; }
.field-hint { margin: 8px 0 0; color: #778092; font-size: 9px; }
.term-options .choice-option { justify-content: center; min-height: 40px; padding: 6px; font-size: 10px; }
.calculation-results { margin: 24px 0 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.monthly-result { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.monthly-result > span, .result-line span { color: var(--muted); font-size: 10px; }
.monthly-result strong { color: var(--navy); font-family: var(--serif); font-size: 28px; font-weight: 500; }
.monthly-result strong small { color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 500; }
.result-line { display: flex; justify-content: space-between; margin-top: 9px; }
.result-line strong { color: var(--charcoal); font-size: 11px; font-weight: 600; }
.calculator-card .button { min-height: 48px; }

.risk-section { background: var(--navy); color: #fff; }
.risk-layout { display: grid; grid-template-columns: 1fr .95fr; gap: 100px; align-items: center; }
.risk-copy h2 { margin-bottom: 20px; }
.risk-copy h2 em { color: #dfc58e; }
.risk-intro { max-width: 450px; margin-bottom: 30px; color: #a8b1bf; font-size: 13px; }
.protection-list { margin: 0; padding: 0; list-style: none; }
.protection-list li { display: flex; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
.protection-list li > span { padding-top: 1px; color: var(--gold); font-family: var(--serif); font-size: 14px; }
.protection-list strong { color: #fff; font-size: 12px; font-weight: 600; }
.protection-list p { margin: 4px 0 0; color: #94a3b8; font-size: 10px; }
.capital-stack-card { padding: 32px; border: 1px solid rgba(197,160,89,.4); background: rgba(255,255,255,.035); }
.stack-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.stack-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.stack-heading h3 { margin: 0; font-size: 24px; }
.stack-symbol { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(197,160,89,.5); color: var(--gold); font-family: var(--serif); font-size: 18px; }
.capital-stack { display: flex; height: 300px; flex-direction: column; border: 1px solid rgba(197,160,89,.6); }
.stack-equity { display: flex; flex: 0 0 35%; flex-direction: column; align-items: center; justify-content: center; background: #566174; color: #fff; }
.stack-equity strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.stack-equity span { font-size: 11px; font-weight: 600; }
.stack-equity small { color: #d3dae2; font-size: 9px; }
.stack-debt { display: flex; flex: 1; align-items: center; gap: 22px; padding: 22px 30px; background: linear-gradient(120deg, #16253d 0%, #22334d 100%); }
.stack-debt-number { color: #dfc58e; font-family: var(--serif); font-size: 42px; }
.stack-debt > div:last-child { display: flex; flex-direction: column; }
.stack-debt strong { color: #fff; font-size: 11px; }
.stack-debt span { color: #aab4c1; font-size: 9px; }
.stack-legend { display: flex; gap: 20px; margin-top: 19px; color: #b3bdca; font-size: 9px; }
.stack-legend span { display: flex; align-items: center; gap: 7px; }
.stack-legend i { width: 8px; height: 8px; display: inline-block; }
.legend-equity { background: #718094; }.legend-debt { background: var(--gold); }
.stack-disclaimer { margin: 18px 0 0; color: #8491a3; font-size: 9px; line-height: 1.7; }

.deals-section { background: var(--alabaster); }
.deals-heading { display: flex; justify-content: space-between; gap: 50px; align-items: flex-end; margin-bottom: 45px; }
.deals-heading h2 { margin: 0; color: var(--navy); font-size: clamp(40px, 4.5vw, 54px); }
.deals-heading > p { max-width: 360px; margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deal-card { overflow: hidden; border: 1px solid #e8e3d9; background: #fffefa; transition: transform .3s ease, box-shadow .3s ease; }
.deal-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(15,23,42,.09); }
.deal-image { position: relative; height: 215px; background-position: center; background-size: cover; }
.deal-image::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,23,42,.5), transparent 60%); content: ""; }
.deal-image span { position: absolute; bottom: 17px; left: 20px; color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.deal-image-one { background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=950&q=80"); }
.deal-image-two { background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=950&q=80"); }
.deal-image-three { background-image: url("https://images.unsplash.com/photo-1600607687644-c7171b42498f?auto=format&fit=crop&w=950&q=80"); }
.deal-body { padding: 24px 23px 20px; }
.deal-body h3 { min-height: 56px; margin: 0 0 19px; color: var(--navy); font-size: 22px; line-height: 1.28; }
.deal-yield { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal-yield span { color: var(--muted); font-size: 10px; }
.deal-yield strong { color: #93733d; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.deal-yield small { font-family: var(--sans); font-size: 9px; }
.deal-body dl { margin: 0; }
.deal-body dl div { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; }
.deal-body dt { color: var(--muted); font-size: 10px; }
.deal-body dd { margin: 0; color: var(--charcoal); font-size: 10px; font-weight: 600; text-align: right; }
.deal-body dd span { margin-left: 5px; color: #94733b; font-size: 9px; }

.inquiry-section { background: #f0eee8; }
.inquiry-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.inquiry-copy { position: relative; min-height: 450px; padding-top: 36px; }
.inquiry-copy h2 { color: var(--navy); font-size: clamp(40px, 4.5vw, 53px); }
.inquiry-copy h2 em { color: #96743c; }
.inquiry-copy > p:not(.eyebrow) { max-width: 360px; color: var(--muted); font-size: 13px; }
.inquiry-email { display: inline-flex; gap: 12px; margin-top: 21px; padding-bottom: 6px; border-bottom: 1px solid #bba06c; color: var(--navy); font-size: 12px; font-weight: 600; }
.inquiry-email svg { width: 14px; height: 14px; color: #997943; stroke-width: 1.7; }
.inquiry-mark { position: absolute; bottom: 0; left: 0; color: rgba(15,23,42,.1); font-family: var(--serif); font-size: 76px; line-height: 1; }
.inquiry-mark span { color: rgba(197,160,89,.36); }
.inquiry-panel { padding: 34px 38px; border: 1px solid #e0dacd; background: var(--paper); box-shadow: 0 18px 40px rgba(15,23,42,.05); }
.inquiry-tabs { display: flex; gap: 25px; margin: -4px 0 27px; border-bottom: 1px solid var(--line); }
.inquiry-tab { position: relative; border: 0; background: transparent; padding: 0 0 14px; color: #7b8490; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.inquiry-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.inquiry-tab.active { color: var(--navy); }
.inquiry-tab.active::after { background: var(--gold); }
.tab-panel h3 { margin: 0 0 4px; color: var(--navy); font-size: 25px; }
.form-intro { margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px; }
form label { display: flex; flex-direction: column; gap: 6px; color: #4a5565; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.form-full { grid-column: 1 / -1; }
form input, form select, form textarea { width: 100%; min-height: 42px; border: 1px solid #e1ddd5; border-radius: 0; padding: 10px 11px; background: #fff; color: var(--charcoal); font-size: 11px; font-weight: 400; letter-spacing: 0; }
form input::placeholder, form textarea::placeholder { color: #a3a9b0; }
form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%237d8794' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
form textarea { min-height: 80px; resize: vertical; }
.inquiry-panel form > .button { margin-top: 21px; min-height: 48px; }
.form-legal { margin: 13px 0 0; color: #8a929d; font-size: 9px; line-height: 1.6; }
.form-confirmation { padding: 30px 8px; text-align: center; }
.confirmation-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 16px; border: 1px solid var(--gold); border-radius: 50%; padding: 10px; color: #8c713e; stroke-width: 1.6; }
.form-confirmation h3 { margin-bottom: 8px; color: var(--navy); font-size: 27px; }
.form-confirmation p { max-width: 430px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; }
.confirmation-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid #b89a5c; background: transparent; padding: 2px 0; color: var(--navy); font-size: 10px; font-weight: 600; }

.site-footer { padding: 56px 0 25px; background: var(--navy); color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1.5fr; gap: 38px; align-items: start; padding-bottom: 40px; }
.footer-brand { flex-basis: auto; }
.footer-tagline { margin: 3px 0 0; color: #9da9b8; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.footer-nav a, .footer-contact a { color: #bdc5d0; font-size: 10px; transition: color .2s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-contact span { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-legal { display: flex; justify-content: space-between; gap: 35px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8390a1; font-size: 9px; }
.footer-legal p { max-width: 760px; margin: 0; line-height: 1.7; }
.footer-legal > span { flex: 0 0 auto; padding-top: 2px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 24px; background: rgba(8,14,26,.76); backdrop-filter: blur(5px); }
.modal-backdrop[hidden], [hidden] { display: none !important; }
.deck-step { display: flex; flex-direction: column; gap: 18px; }
.deck-step.hidden { display: none !important; }
.modal-card { position: relative; width: min(100%, 590px); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid #d7c8a9; padding: 42px; background: var(--alabaster); box-shadow: 0 25px 80px rgba(0,0,0,.25); animation: modal-in .22s ease-out; }
.modal-card h2 { margin-bottom: 10px; color: var(--navy); font-size: 38px; }
.modal-card .eyebrow { margin-bottom: 12px; }
.modal-close { position: absolute; top: 14px; right: 17px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; background: transparent; color: #596372; line-height: 1; }
.modal-close svg { width: 19px; height: 19px; stroke-width: 1.6; }
.modal-card form > .button { margin-top: 20px; }
.portal-card { width: min(100%, 450px); padding-top: 49px; }
.portal-monogram { position: absolute; top: 36px; right: 48px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #ccb47f; color: #96743c; font-family: var(--serif); font-size: 18px; }
.portal-card form label + label { margin-top: 14px; }
.portal-card .portal-message { margin: 20px 0 0; padding: 14px; border-left: 2px solid var(--gold); background: #f2eee5; color: #566174; font-size: 11px; }
.portal-message a { color: #8e6e37; text-decoration: underline; }
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.dashboard-section { background: #f0eee8; }
.dashboard-header { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.dashboard-header h2 { color: var(--navy); }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.dashboard-card { padding: 36px 40px 32px; border: 1px solid #dfd7c8; background: var(--paper); box-shadow: 0 22px 55px rgba(15,23,42,.065); }
.dashboard-card h3 { margin: 0 0 22px; color: var(--navy); font-size: 22px; }
.investment-details dl div { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-bottom: 14px; border-bottom: 1px solid #e8e3d9; }
.investment-details dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.investment-details dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.investment-details dd { margin: 0; color: var(--charcoal); font-size: 12px; font-weight: 600; text-align: right; }
.documents-list { display: flex; flex-direction: column; gap: 14px; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e8e3d9; font-size: 12px; }
.doc-item:last-child { border-bottom: 0; }
.doc-title { color: var(--charcoal); font-weight: 600; }
.doc-link { color: var(--gold); font-size: 11px; font-weight: 700; text-decoration: underline; }
.doc-link:hover { color: var(--gold-hover); }
.empty-state { color: var(--muted); font-size: 12px; font-style: italic; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-confirmed { background: #e7f0ea; color: #2f7d4f; }
.status-pending { background: #fbf3e2; color: #9a6a1e; }

.admin-section { background: #f0eee8; }
.admin-header { max-width: 700px; margin: 0 auto 30px; text-align: center; }
.admin-header h2 { color: var(--navy); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid #dfd7c8; }
.admin-table th { background: #f0eee8; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 14px 16px; border-bottom: 1px solid #e8e3d9; white-space: nowrap; }
.admin-table td { padding: 14px 16px; font-size: 11px; color: var(--charcoal); border-bottom: 1px solid #e8e3d9; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #faf8f0; }
.empty-row { color: var(--muted); font-style: italic; text-align: center; }

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  /* Collapse the full navigation before the logo and actions run out of room. */
  .site-header { height: 80px; padding-inline: 24px; }
  .brand { flex-basis: auto; }
  .brand-logo { width: 122px; height: 74px; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid rgba(197,160,89,.38); padding: 8px 24px 16px; background: var(--navy); }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; }
  .mobile-portal { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; padding: 12px 4px; color: rgba(255,255,255,.82); font-size: 11px; text-align: left; }
  .mobile-portal:hover { color: var(--gold); }
  .header-actions { order: 2; margin-left: auto; margin-right: 13px; }
  .header-actions .button-ghost { display: none; }
  .menu-toggle { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; order: 3; border: 1px solid rgba(197,160,89,.5); background: transparent; color: var(--gold); }
  .menu-toggle svg { width: 19px; height: 19px; stroke-width: 1.7; }
  .primary-navigation { gap: 15px; }
  .primary-navigation a { font-size: 9px; }
  .header-actions { gap: 6px; }
  .button-small { padding-inline: 11px; font-size: 8px; }
  .calculator-layout { gap: 55px; }
  .risk-layout { gap: 55px; }
  .inquiry-layout { gap: 55px; }
}
@media (max-width: 850px) {
  .page-width { width: min(100% - 44px, 700px); }
  .section { padding: 90px 0; }
  .site-header { height: 76px; }
  .brand { flex-basis: auto; }
  .primary-navigation { padding-inline: 22px; }
  .header-actions { margin-left: auto; margin-right: 13px; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 40px; padding-bottom: 155px; }
  .hero h1 { max-width: 650px; font-size: clamp(46px, 8vw, 65px); }
  .trust-bar { bottom: -92px; grid-template-columns: 1fr 1fr; min-height: 184px; }
  .trust-item { padding: 17px 24px; }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .strategy-section { padding-top: 185px; }
  .process-card { padding-inline: 25px; }
  .calculator-layout, .risk-layout, .inquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .calculator-layout > * { min-width: 0; }
  .calculator-copy { max-width: 520px; }
  .calculator-copy h2 br { display: none; }
  .calculator-card { max-width: 650px; width: 100%; margin-inline: auto; }
  .risk-copy { max-width: 650px; }
  .capital-stack-card { max-width: 620px; width: 100%; margin-inline: auto; }
  .deals-grid { grid-template-columns: 1fr 1fr; }
  .deal-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .deal-card:last-child .deal-image { height: 100%; min-height: 280px; }
  .inquiry-copy { min-height: 320px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .page-width { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  h2 { font-size: 40px; }
  .site-header { height: 69px; padding-inline: 18px; }
  .brand-logo { width: 105px; height: 65px; }
  .header-actions .button-ghost { display: none; }
  .header-actions { margin-right: 10px; }
  .button-small { min-height: 37px; gap: 6px; padding-inline: 8px; font-size: 7px; letter-spacing: .03em; }
  .menu-toggle { width: 35px; height: 36px; }
  .primary-navigation { top: 68px; }
  .hero { min-height: 715px; align-items: flex-start; }
  .hero-image { background-position: center, center, 60% center; }
  .hero-content { padding-top: 145px; padding-bottom: 230px; }
  .hero .eyebrow { margin-bottom: 17px; }
  .hero h1 { margin-bottom: 22px; font-size: clamp(42px, 12vw, 58px); }
  .hero-intro { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-actions .button { width: 100%; padding-inline: 14px; font-size: 9px; }
  .hero-caption { margin-top: 34px; font-size: 11px; }
  .trust-bar { bottom: -135px; grid-template-columns: 1fr 1fr; min-height: 270px; }
  .trust-item { padding: 13px 14px; }
  .trust-item strong { font-size: 20px; }
  .trust-item strong span { font-size: 16px; }
  .trust-item p { font-size: 9px; }
  .strategy-section { padding-top: 205px; }
  .section-heading { margin-bottom: 40px; text-align: left; }
  .section-heading .section-intro { margin-left: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: unset; padding: 25px 5px 25px 0; }
  .process-card + .process-card { border-top: 1px solid var(--line); border-left: 0; }
  .process-card .roman { margin-bottom: 13px; }
  .calculator-layout, .risk-layout, .inquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .calculator-copy h2 { font-size: clamp(36px, 10.5vw, 40px); }
  .calculator-copy h2 br { display: initial; }
  .calculator-card { padding: 24px 19px; }
  .calculator-topline { margin-bottom: 22px; }
  .amount-input-wrap input { width: 120px; font-size: 22px; }
  .choice-options { gap: 7px; }
  .choice-option { padding-inline: 8px; }
  .yield-options .choice-option { min-height: 60px; }
  .choice-option small { font-size: 8px; }
  .monthly-result { align-items: flex-start; flex-direction: column; gap: 5px; }
  .monthly-result strong { font-size: 26px; }
  .capital-stack-card { padding: 22px 18px; }
  .capital-stack { height: 270px; }
  .stack-debt { gap: 14px; padding-inline: 19px; }
  .stack-debt-number { font-size: 35px; }
  .stack-legend { flex-wrap: wrap; gap: 10px 18px; }
  .deals-heading { display: block; margin-bottom: 32px; }
  .deals-heading > p { margin-top: 18px; }
  .deals-grid { grid-template-columns: 1fr; gap: 18px; }
  .deal-card:last-child { display: block; grid-column: auto; }
  .deal-card:last-child .deal-image { min-height: 0; height: 205px; }
  .deal-body h3 { min-height: 0; }
  .inquiry-copy { min-height: 300px; padding-top: 0; }
  .inquiry-panel { padding: 25px 18px; }
  .inquiry-tabs { gap: 17px; }
  .inquiry-tab { font-size: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 25px; }
  .footer-nav { max-width: 330px; }
  .footer-legal { flex-direction: column; gap: 15px; }
  .footer-legal > span { order: -1; }
  .modal-backdrop { padding: 12px; }
  .modal-card { max-height: calc(100vh - 24px); padding: 35px 20px 24px; }
  .modal-card h2 { padding-right: 25px; font-size: 32px; }
  .portal-monogram { top: 29px; right: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
