:root {
  color-scheme: light;
  --ink: #151312;
  --ink-soft: #25211f;
  --ivory: #f2ede3;
  --paper: #e7ded0;
  --teal: #173d36;
  --teal-deep: #102d29;
  --teal-soft: #dbe6df;
  --brass: #b78b4a;
  --brass-dark: #775326;
  --body: #504a46;
  --line: #c6bcad;
  --line-dark: rgba(21, 19, 18, .18);
  --line-light: rgba(242, 237, 227, .18);
  --success: #215c43;
  --danger: #8b3535;
  --shell: 1180px;
  --nav-height: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; max-width: 100%; overflow-x: clip; color: var(--ink); background: var(--ivory); font-family: "Manrope", Arial, sans-serif; font-size: 16px; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body, button, input, textarea { letter-spacing: 0; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; letter-spacing: 0; text-wrap: balance; }
p, li, dd, a, button { overflow-wrap: anywhere; }
button, a, input, textarea { min-height: 44px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 10px 14px; color: var(--ink); background: var(--ivory); border: 1px solid var(--brass); border-radius: 2px; transform: translateY(-160%); transition: transform .2s var(--ease); text-decoration: none; }
.skip-link:focus { transform: none; }
.page-progress { position: fixed; inset: 0 auto auto 0; z-index: 2800; width: 0; height: 2px; background: var(--brass); pointer-events: none; }
.section-shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 2000; min-height: var(--nav-height); display: grid; grid-template-columns: minmax(220px, auto) 1fr; align-items: center; gap: 28px; padding-inline: max(24px, calc((100% - var(--shell)) / 2)); color: var(--ivory); background: rgba(21, 19, 18, .97); border-bottom: 1px solid var(--line-light); }
.nav-brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-monogram { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--ink); background: var(--brass); font-family: "Bodoni Moda", Georgia, serif; font-size: .94rem; }
.nav-brand > span:last-child { display: grid; line-height: 1.1; }
.nav-brand strong { font-family: "Bodoni Moda", Georgia, serif; font-size: 1rem; font-weight: 500; }
.nav-brand small { margin-top: 3px; color: rgba(242, 237, 227, .58); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav-links a { display: inline-flex; align-items: center; color: rgba(242, 237, 227, .72); font-size: .69rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.nav-links a:hover { color: var(--ivory); }
.nav-links .nav-cta { padding-inline: 14px; color: var(--ink); background: var(--brass); border: 1px solid var(--brass); border-radius: 2px; }
.nav-links .nav-cta:hover { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.mobile-nav-cta { display: none; }

.referral-hero { position: relative; min-height: 720px; height: 92svh; display: grid; align-items: end; overflow: hidden; padding-top: var(--nav-height); color: var(--ivory); background: var(--ink); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { height: 100%; object-fit: cover; object-position: center; }
.hero-shade { background: rgba(10, 13, 12, .72); }
.hero-content { position: relative; z-index: 1; width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; padding: 90px 0 76px; }
.eyebrow, .section-label, .item-number { color: var(--brass); font-family: "IBM Plex Mono", monospace; font-size: .69rem; font-weight: 600; text-transform: uppercase; }
.introduced-by { margin-top: 18px; color: var(--ivory); font-family: "Bodoni Moda", Georgia, serif; font-size: 1.45rem; }
.referral-hero h1 { max-width: 12ch; margin-top: 10px; font-size: 5.4rem; line-height: .94; }
.hero-lede { max-width: 64ch; margin-top: 28px; color: rgba(242, 237, 227, .78); font-size: 1rem; }
.selected-focus { max-width: 720px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.selected-focus span { color: rgba(242, 237, 227, .56); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.selected-focus strong { color: var(--ivory); font-size: .76rem; font-weight: 600; }
.primary-action, .interest-button, .form-submit { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; color: var(--ink); background: var(--brass); border: 1px solid var(--brass); border-radius: 2px; font-size: .7rem; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: transform .2s var(--ease), background .2s ease, border-color .2s ease; }
.primary-action { margin-top: 28px; }
.primary-action:hover, .interest-button:hover, .form-submit:hover { background: var(--ivory); border-color: var(--ivory); transform: translateY(-1px); }
.primary-action:disabled, .interest-button:disabled, .form-submit:disabled { cursor: wait; opacity: .62; transform: none; }

.invitation-note { padding: 88px 0; background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.note-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 76px; align-items: end; }
.note-layout h2, .section-heading h2, .focus-copy h2, .account-intro h2, .contact-layout h2 { margin-top: 12px; font-size: 3.9rem; line-height: .98; }
.note-layout > p { max-width: 56ch; padding-top: 18px; color: var(--body); border-top: 1px solid var(--line-dark); font-family: "Bodoni Moda", Georgia, serif; font-size: 1.2rem; }

.focus-section { padding: 108px 0; border-bottom: 1px solid var(--line-dark); }
.focus-tcb { background: var(--ivory); }
.section-heading { max-width: 900px; }
.section-heading h2 { max-width: 14ch; }
.section-heading > p:last-child { max-width: 66ch; margin-top: 24px; color: var(--body); }
.capsule-list { margin-top: 62px; border-top: 1px solid var(--ink); }
.capsule-row { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 48px; align-items: end; padding: 28px 0 30px; border-bottom: 1px solid var(--line-dark); }
.capsule-row > div:first-child { display: grid; grid-template-columns: 46px minmax(180px, .42fr) minmax(280px, 1fr); gap: 24px; align-items: baseline; }
.capsule-row h3 { font-size: 1.6rem; line-height: 1.1; }
.capsule-row p:last-child { color: var(--body); font-size: .91rem; }
.price-action { display: grid; gap: 12px; justify-items: stretch; text-align: right; }
.price-action strong { font-family: "Bodoni Moda", Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.price-action .interest-button { color: var(--ivory); background: var(--teal); border-color: var(--teal); }
.price-action .interest-button:hover { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.rate-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; margin-top: 76px; }
.rate-ledger h3 { max-width: 16ch; margin-top: 12px; font-size: 2.2rem; line-height: 1.04; }
.rate-ledger dl { margin-top: 30px; border-top: 1px solid var(--line-dark); }
.rate-ledger dl div { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.rate-ledger dt { color: var(--body); }
.rate-ledger dd { font-weight: 700; text-align: right; }
.availability-note { display: grid; grid-template-columns: 250px 1fr; gap: 42px; margin-top: 70px; padding: 24px 0; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.availability-note strong { font-family: "Bodoni Moda", Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.availability-note p { color: var(--body); font-size: .89rem; }

.focus-media, .focus-systems { color: var(--ivory); background: var(--teal-deep); border-color: var(--line-light); }
.focus-brand { background: var(--teal-soft); }
.focus-products { background: var(--paper); }
.editorial-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 76px; align-items: center; }
.editorial-split.reverse { grid-template-columns: minmax(340px, .82fr) minmax(0, 1fr); }
.editorial-split.reverse .focus-visual { order: 2; }
.editorial-split.reverse .focus-copy { order: 1; }
.focus-visual { min-width: 0; }
.focus-visual img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid currentColor; }
.focus-copy h2 { max-width: 12ch; }
.focus-copy > p:not(.section-label) { max-width: 56ch; margin-top: 24px; color: var(--body); }
.focus-media .focus-copy > p:not(.section-label), .focus-systems .focus-copy > p:not(.section-label) { color: rgba(242, 237, 227, .72); }
.detail-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.detail-list li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid currentColor; font-size: .86rem; }
.detail-list li::before { content: ""; position: absolute; top: 22px; left: 2px; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.interest-button.secondary { margin-top: 30px; color: var(--ivory); background: var(--teal); border-color: var(--teal); }
.focus-media .interest-button.secondary, .focus-systems .interest-button.secondary { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.interest-button.secondary:hover { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }

.account-section { padding: 108px 0; color: var(--ivory); background: var(--ink); }
.account-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr); gap: 84px; align-items: start; }
.account-intro h2 { max-width: 12ch; }
.account-intro > p:not(.section-label) { max-width: 54ch; margin-top: 24px; color: rgba(242, 237, 227, .68); }
.account-status { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-light); color: rgba(242, 237, 227, .74); font-size: .8rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; background: var(--brass); border-radius: 50%; }
.account-status.ready .status-dot { background: #65a47f; }
.text-button { margin-top: 12px; padding: 0; color: var(--brass); background: transparent; border: 0; border-bottom: 1px solid var(--brass); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.auth-panel { border: 1px solid var(--line-light); }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line-light); }
.auth-tab { min-height: 54px; color: rgba(242, 237, 227, .64); background: transparent; border: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.auth-tab + .auth-tab { border-left: 1px solid var(--line-light); }
.auth-tab.active { color: var(--ink); background: var(--brass); }
.auth-form, .lead-form { display: grid; gap: 20px; padding: 28px; }
.auth-form label, .lead-form label { display: grid; gap: 8px; }
.auth-form label > span:first-child, .lead-form label > span:first-child { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
input, textarea { width: 100%; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 2px; }
input { padding: 10px 12px; }
textarea { min-height: 150px; padding: 12px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brass); }
label small { color: rgba(242, 237, 227, .56); font-size: .7rem; }
.check-row { grid-template-columns: 20px 1fr; gap: 10px !important; align-items: start; }
.check-row input { width: 18px; min-height: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--brass); }
.check-row span { color: rgba(242, 237, 227, .72); font-size: .76rem; font-weight: 400 !important; text-transform: none !important; }
.check-row a { color: var(--brass); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.form-submit { justify-self: start; min-width: 180px; }
.form-status { min-height: 24px; padding: 0 28px 24px; color: rgba(242, 237, 227, .74); font-size: .78rem; }
.form-status.error { color: #f0a5a5; }
.form-status.success { color: #9fd4b4; }

.contact-section { padding: 108px 0; background: var(--teal-soft); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr); gap: 84px; align-items: start; }
.contact-layout h2 { max-width: 11ch; }
.contact-layout > div > p:not(.section-label) { max-width: 52ch; margin-top: 24px; color: var(--body); }
.lead-form { padding: 0; }
.lead-form .check-row span { color: var(--body); }
.lead-form .form-status { padding: 0; color: var(--body); }
.lead-form .form-status.error { color: var(--danger); }
.lead-form .form-status.success { color: var(--success); }

.page-footer { padding: 50px 0; color: var(--ivory); background: var(--ink); border-top: 1px solid var(--line-light); }
.footer-layout { display: grid; grid-template-columns: 1fr .55fr 1fr; gap: 48px; }
.footer-layout strong { color: var(--brass); font-family: "IBM Plex Mono", monospace; font-size: .68rem; text-transform: uppercase; }
.footer-layout p { margin-top: 8px; color: rgba(242, 237, 227, .58); font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links > a:not(.nav-cta) { display: none; }
  .referral-hero h1 { font-size: 4.3rem; }
  .note-layout, .editorial-split, .editorial-split.reverse, .account-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .editorial-split.reverse .focus-visual, .editorial-split.reverse .focus-copy { order: initial; }
  .capsule-row { grid-template-columns: 1fr 210px; }
  .capsule-row > div:first-child { grid-template-columns: 40px 200px 1fr; gap: 18px; }
  .rate-ledger { gap: 42px; }
  .account-layout, .contact-layout { max-width: 760px; }
}

@media (max-width: 680px) {
  :root { --nav-height: 64px; }
  .section-shell, .hero-content { width: min(calc(100% - 36px), var(--shell)); }
  .site-nav { display: flex; padding-inline: 18px; }
  .nav-brand small { display: none; }
  .nav-links { position: absolute; top: 10px; right: 18px; gap: 0; }
  .nav-links .nav-cta { display: none; }
  .mobile-nav-cta { position: fixed; top: 10px; right: 18px; z-index: 3001; width: 72px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--brass); border: 1px solid var(--brass); border-radius: 2px; font-size: .68rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
  .referral-hero { min-height: 680px; height: auto; }
  .hero-content { padding: 114px 0 58px; }
  .introduced-by { font-size: 1.25rem; }
  .referral-hero h1 { font-size: 3.25rem; line-height: .96; }
  .hero-lede { font-size: .92rem; }
  .selected-focus { grid-template-columns: 1fr; gap: 6px; }
  .invitation-note, .focus-section, .account-section, .contact-section { padding: 76px 0; }
  .note-layout h2, .section-heading h2, .focus-copy h2, .account-intro h2, .contact-layout h2 { font-size: 2.75rem; }
  .capsule-list { margin-top: 44px; }
  .capsule-row { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; }
  .capsule-row > div:first-child { grid-template-columns: 34px 1fr; gap: 8px 14px; }
  .capsule-row > div:first-child p:last-child { grid-column: 2; }
  .price-action { grid-template-columns: 1fr; justify-items: stretch; text-align: left; }
  .rate-ledger { grid-template-columns: 1fr; gap: 58px; margin-top: 58px; }
  .availability-note { grid-template-columns: 1fr; gap: 12px; }
  .editorial-split, .editorial-split.reverse, .account-layout, .contact-layout { gap: 38px; }
  .focus-visual img { aspect-ratio: 1 / 1; }
  .field-grid { grid-template-columns: 1fr; }
  .auth-form { padding: 22px 18px; }
  .form-status { padding: 0 18px 20px; }
  .footer-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001s !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
