:root {
  color-scheme: light;
  --navy: #142934;
  --deep: #0c1a23;
  --ink: #263946;
  --muted: #465960;
  --ivory: #f5f1e8;
  --white: #fbf9f4;
  --gold: #cdb48a;
  --bronze: #755632;
  --line: #d9d0c1;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: inherit; text-wrap: balance; }
h1, h2 { font-weight: 600; line-height: 1.06; letter-spacing: -.06em; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #ad864e; outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 4; background: var(--ivory); padding: .75rem; }
.skip:focus { top: .5rem; }
.header, .footer { background: var(--deep); color: var(--ivory); }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-grid; justify-items: start; gap: 6px; white-space: nowrap; font: 1.55rem/1 var(--serif); letter-spacing: .11em; text-transform: uppercase; }
.brand::before { content: ""; height: 1px; width: 26px; background: var(--gold); }
.brand small { color: var(--gold); font: 600 .6875rem/1.2 var(--sans); letter-spacing: .1em; }
nav, .header-actions { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
nav, .language, .footer-contact { font-size: .875rem; }
nav a:hover, .footer-contact:hover { color: var(--gold); }
.language { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; font: 650 .9rem/1.2 var(--sans); text-align: center; cursor: pointer; }
.outline { border-color: #536570; color: var(--ivory); }
.outline:hover { background: var(--navy); }
.primary { background: var(--gold); color: #17232b; }
.primary:hover { background: #e0c89e; }
.hero { overflow: hidden; background: var(--deep); color: var(--ivory); }
.hero-inner { min-height: clamp(500px, 45vw, 680px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 12px; padding-block: clamp(52px, 6vw, 92px); }
.hero-copy { position: relative; z-index: 1; }
.hero-image { display: block; width: 108%; max-width: none; height: auto; margin-inline-start: -3%; mask-image: radial-gradient(ellipse 72% 54%, #000 63%, transparent 99%); }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--bronze); margin-bottom: 14px; }
.hero .eyebrow, .contact .eyebrow, .portal .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 5.1rem); text-wrap: initial; }
.hero h1 span { display: block; }
.hero .intro { max-width: 52ch; color: #e9e6df; margin: 24px 0 30px; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); text-wrap: pretty; }
.section { padding-block: clamp(62px, 8vw, 112px); }
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: clamp(26px, 4vw, 56px); }
.service-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.service-grid p, .founder p:not(.eyebrow), .result p:not(.eyebrow, .amount, .amount-label) { margin-top: 14px; color: var(--muted); }
.result { border-block: 1px solid var(--line); }
.result-grid, .founder-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 100px); align-items: center; }
.amount { font: 600 clamp(2.6rem, 5vw, 5.25rem)/1.05 var(--sans); letter-spacing: -.065em; font-variant-numeric: lining-nums tabular-nums; color: var(--navy); }
.amount-label { margin-top: 9px; color: var(--muted); }
.result h2 { font-size: clamp(2.05rem, 3.55vw, 3.5rem); }
.case-note { font-size: .875rem; }
.founder { background: var(--white); }
.founder-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.portrait { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.founder p:not(.eyebrow) { max-width: 57ch; }
.founder p.family { font-family: var(--serif); font-style: italic; color: var(--bronze); }
.contact { background: var(--navy); color: var(--ivory); }
.contact-grid { align-items: start; }
.contact h2 + p, .portal-card h1 + p { margin-top: 18px; color: #e1e6e4; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wide { grid-column: 1/-1; }
label { display: grid; gap: 5px; font-size: .875rem; }
input, textarea { width: 100%; min-width: 0; background: #203844; border: 1px solid #768590; border-radius: 3px; color: var(--white); padding: 10px 12px; font: inherit; font-size: 1rem; }
textarea { resize: vertical; }
.form-end { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.form-end small, .status { color: #d4dedf; }
.status:not(:empty) { margin-top: 12px; }
.footer { border-top: 1px solid #45575f; }
.portal { min-height: 100vh; background: var(--navy); color: var(--ivory); }
.portal-main { min-height: calc(100vh - 76px); display: grid; align-items: center; padding-block: 42px; }
.portal-card { max-width: 740px; border: 1px solid #768590; padding: clamp(24px, 6vw, 70px); }
.portal-card h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
.portal-card .button { margin-top: 25px; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 38px); }
  .header .bar { flex-wrap: wrap; padding-block: 16px 8px; gap: 12px; }
  .header nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid #45575f; padding-top: 3px; }
  nav a { min-height: 42px; display: flex; align-items: center; }
  .brand { font-size: 1.25rem; }
  .brand small { font-size: .625rem; letter-spacing: .06em; }
  .header-actions { gap: 8px; }
  .header .button { min-height: 44px; padding-inline: 10px; }
  .hero-inner { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 14px 53px; }
  .hero-image { grid-row: 1; width: 100%; margin-inline: auto; max-width: 560px; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.5rem); }
  .service-grid, .result-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 330px; }
}
@media (max-width: 390px) {
  .header .header-actions { flex-direction: column-reverse; gap: 2px; align-items: flex-end; }
  .portal .header .header-actions { flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
