:root {
  --ink: #102b33;
  --deep: #103643;
  --teal: #0e5960;
  --gold: #c99e4f;
  --gold-light: #e5ca91;
  --mist: #eaf1ef;
  --paper: #f7faf9;
  --white: #ffffff;
  --muted: #5c6d72;
  --line: #d9e3e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--deep); color: var(--gold-light); border-radius: 50%; font-family: "Playfair Display", serif; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .73rem; letter-spacing: .04em; }
nav { display: flex; gap: 30px; }
nav a { text-decoration: none; font-size: .92rem; font-weight: 600; }
nav a:hover { color: var(--teal); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 4px;
  background: var(--deep);
  color: white;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal); }
.button-small { padding: 10px 16px; font-size: .88rem; }
.hero {
  background: linear-gradient(115deg, #e7f0ee 0 62%, #d7e4e0 62%);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 60px;
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
}
.hero-copy { max-width: 710px; }
.eyebrow { color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 18px; }
h1, h2, blockquote { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.9rem, 5vw, 5rem); letter-spacing: -.035em; }
.hero-intro { max-width: 670px; font-size: 1.16rem; color: #385158; margin: 26px 0 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.text-link { color: var(--deep); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }
.representation { margin-top: 34px; font-size: .82rem; color: var(--muted); }
.hero-portrait { position: relative; align-self: end; justify-self: center; width: min(430px, 100%); }
.portrait-frame { background: var(--white); padding: 10px 10px 0; box-shadow: 0 30px 70px rgba(16,43,51,.15); }
.portrait-frame { aspect-ratio: 2 / 3; overflow: hidden; background: #303237; }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.credential-card { position: absolute; z-index: 3; bottom: 24px; left: -36px; width: min(330px, calc(100% - 12px)); padding: 18px 22px; background: var(--teal); color: white; box-shadow: 0 12px 30px rgba(16,43,51,.28); }
.credential-card strong, .credential-card span, .credential-card b { display: block; }
.credential-card strong { margin-bottom: 3px; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; }
.credential-card span { font-size: .72rem; line-height: 1.45; }
.credential-card .mas-label { margin-top: 12px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; }
.credential-card b { margin-top: 2px; font-size: .9rem; letter-spacing: .04em; }
.clarity-strip { display: flex; justify-content: center; align-items: center; gap: 23px; flex-wrap: wrap; padding: 22px 24px; background: var(--deep); color: white; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.clarity-strip i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 780px; margin-bottom: 55px; }
h2 { margin: 0 0 20px; font-size: clamp(2.3rem, 4vw, 4rem); letter-spacing: -.025em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article { min-height: 250px; padding: 32px; background: white; border-top: 3px solid var(--gold); box-shadow: 0 8px 30px rgba(16,43,51,.06); }
.card-number { color: var(--gold); font-family: "Playfair Display", serif; font-size: 1.1rem; }
h3 { font-size: 1.3rem; margin: 42px 0 10px; }
.cards p { color: var(--muted); margin: 0; }
.calculator-section { background: #f0f6f4; padding: 110px max(24px, calc((100vw - 1180px) / 2)); scroll-margin-top: 20px; }
.calculator-intro { max-width: 800px; margin-bottom: 48px; }
.calculator-intro > p:last-child { color: var(--muted); font-size: 1.08rem; }
.calculator-shell { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); background: white; box-shadow: 0 20px 60px rgba(16,43,51,.1); }
.calculator-controls { padding: 38px; background: var(--deep); color: white; }
.control-group + .control-group { margin-top: 25px; }
.control-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 9px; }
.control-heading label { font-size: .9rem; font-weight: 600; }
.control-heading output { color: var(--gold-light); font-size: .9rem; font-weight: 700; text-align: right; }
.control-group input[type="range"] { width: 100%; height: 22px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.control-group input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #55727a; }
.control-group input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #55727a; }
.control-group input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; appearance: none; border: 3px solid var(--deep); border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-light); }
.control-group input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid var(--deep); border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-light); }
.control-group input[type="range"]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.range-limits { display: flex; justify-content: space-between; color: #adc1c4; font-size: .72rem; }
.calculator-results { min-width: 0; padding: 38px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-grid article { min-height: 150px; padding: 23px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.result-grid article > span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.result-grid strong { margin: 10px 0 7px; color: var(--deep); font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.result-grid small { margin-top: auto; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.result-grid .result-highlight { grid-column: 1 / -1; min-height: 138px; background: var(--teal); border-color: var(--teal); }
.result-grid .result-highlight > span, .result-grid .result-highlight small { color: #d5e6e5; }
.result-grid .result-highlight strong { color: var(--gold-light); }
.chart-card { margin-top: 22px; padding: 23px; border: 1px solid var(--line); }
.chart-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.chart-heading h3 { margin: 0 0 2px; font-size: 1.05rem; }
.chart-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.chart-key { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.chart-key i { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--teal); }
.chart-wrap { width: 100%; overflow: hidden; }
#capital-chart { display: block; width: 100%; height: auto; min-height: 250px; }
.chart-grid-line { stroke: #dfe8e6; stroke-width: 1; }
.chart-axis-label { fill: #73858a; font: 12px "DM Sans", sans-serif; }
.chart-area { fill: rgba(14,89,96,.12); }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.calculator-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button-outline { border: 1px solid var(--deep); background: transparent; color: var(--deep); }
.button-outline:hover { background: var(--mist); color: var(--deep); }
.calculator-disclaimer { margin-top: 28px; padding: 24px 28px; border-left: 3px solid var(--gold); background: white; color: var(--muted); font-size: .8rem; }
.calculator-disclaimer strong { color: var(--ink); font-size: .9rem; }
.calculator-disclaimer p { margin: 8px 0 0; }
.about { width: 100%; max-width: none; background: var(--mist); padding: 110px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; }
.about-story > p:not(.eyebrow) { color: #41575d; max-width: 720px; }
.signature { display: block; width: 150px; height: auto; margin: 22px 0 2px; object-fit: contain; }
.recognition { display: flex; gap: 34px; margin-top: 40px; padding-top: 26px; border-top: 1px solid #c8d8d4; }
.recognition div { display: flex; flex-direction: column; }
.recognition strong { font-family: "Playfair Display", serif; font-size: 1.7rem; color: var(--deep); }
.recognition span { font-size: .78rem; color: var(--muted); }
.belief { padding: 52px; background: var(--deep); color: white; }
.belief blockquote { margin: 0; font-size: 2rem; color: var(--gold-light); }
.belief p { margin: 26px 0 0; font-size: .88rem; }
.compact { margin-bottom: 40px; }
.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.question-grid div { position: relative; padding: 25px 28px 25px 54px; background: var(--paper); font-weight: 600; }
.question-grid div::before { content: "?"; position: absolute; left: 24px; color: var(--gold); font-family: "Playfair Display", serif; font-size: 1.25rem; }
.cta { background: var(--teal); color: white; padding: 78px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; gap: 60px; align-items: center; }
.cta .eyebrow { color: var(--gold-light); }
.cta h2 { max-width: 700px; }
.cta p:last-child { color: #d5e6e5; }
.cta-actions { min-width: 300px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.button-light { background: white; color: var(--deep); }
.button-light:hover { background: var(--gold-light); color: var(--deep); }
.button-outline-light { border: 1px solid rgba(255,255,255,.75); background: transparent; color: white; }
.button-outline-light:hover { background: white; color: var(--deep); }
.email-link { color: white; font-size: .9rem; }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 60px; color: var(--muted); font-size: .86rem; }
footer strong { color: var(--ink); font-size: 1rem; }
footer p { margin: 4px 0; }
footer a { color: var(--teal); }
.disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: .76rem; }
.disclaimer p { margin: 0 0 12px; }
.copyright { grid-column: 1 / -1; font-size: .75rem; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 45px; }
  .hero-portrait { width: min(480px, 88%); justify-self: end; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: auto; }
  h3 { margin-top: 24px; }
  .about { grid-template-columns: 1fr; gap: 45px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; max-width: 420px; }
}

@media (max-width: 600px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 76px; }
  .site-header > .button { display: none; }
  .brand small { font-size: .65rem; }
  .hero { min-height: auto; padding: 50px 20px 0; }
  h1 { font-size: 2.65rem; }
  .hero-intro { font-size: 1.03rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-portrait { width: 92%; }
  .credential-card { left: -12px; bottom: 15px; width: calc(100% - 10px); }
  .clarity-strip { gap: 12px 15px; }
  .section { width: min(100% - 36px, 1180px); padding: 76px 0; }
  .calculator-section { padding: 76px 18px; }
  .calculator-controls, .calculator-results { padding: 28px 22px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid .result-highlight { grid-column: 1; }
  .chart-heading { flex-direction: column; }
  .calculator-actions { flex-direction: column; }
  .calculator-actions .button { width: 100%; }
  .about { width: 100%; padding: 76px 20px; }
  .recognition { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .belief { padding: 34px 28px; }
  .belief blockquote { font-size: 1.65rem; }
  .question-grid { grid-template-columns: 1fr; }
  .cta { padding: 64px 20px; }
  footer { width: min(100% - 36px, 1180px); grid-template-columns: 1fr; }
  .disclaimer, .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
