:root {
  color-scheme: dark;
  --bg: #0c1421;
  --panel: #111c2b;
  --line: #293648;
  --ink: #f0f4f6;
  --muted: #adb9c9;
  --mint: #9ef4cf;
  --blue: #b4ceff;
  --gold: #f0d2a3;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
:target { scroll-margin-top: 30px; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 10px; background: var(--mint); color: var(--bg); transform: translateY(-150%); z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(100% - 100px, 1240px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #0e1724; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: .94rem; font-weight: 700; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; font-size: .69rem; letter-spacing: .045em; color: var(--muted); font-weight: 400; }
nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); color: var(--muted); font-size: .86rem; font-weight: 550; }
nav a:hover, .footer-inner a:hover { color: var(--mint); }
.nav-home { color: var(--ink); }
.member-link, .nav-toggle { border: 1px solid #39554e; border-radius: 7px; padding: 9px 13px; color: var(--mint); background: #132620; }
.member-link span, .nav-toggle span { margin-left: 5px; }
.nav-toggle { display: none; }
.hero { min-height: 525px; display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(34px, 7vw, 106px); padding-block: 68px 64px; }
.eyebrow { margin: 0 0 13px; font: 650 .74rem/1.45 'Cascadia Mono', ui-monospace, monospace; letter-spacing: .105em; text-transform: uppercase; color: var(--mint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px #9ef4cf65; margin-right: 6px; vertical-align: 1px; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(4rem, 7.7vw, 7.2rem); font-weight: 720; line-height: .91; letter-spacing: -.083em; margin-left: -.053em; }
h1 span { color: var(--mint); }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 690; }
h3 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -.022em; }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: #c1cbd8; max-width: 400px; margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.button { display: inline-flex; min-height: 43px; gap: 12px; align-items: center; justify-content: center; border-radius: 7px; padding: 8px 15px; font-size: .86rem; font-weight: 680; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.primary { background: var(--mint); color: #0b251c; }
.primary:hover { background: #c1ffe4; }
.secondary { background: #162232; color: var(--ink); border-color: #354459; }
.secondary:hover { background: #213248; border-color: #56677d; }
.small { min-height: 38px; font-size: .8rem; }
.signal-panel { overflow: hidden; border: 1px solid #344955; border-radius: 16px; background: linear-gradient(140deg, #142533, #101d2b); box-shadow: 0 20px 52px #0004; }
.signal-panel figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 17px 21px; border-bottom: 1px solid #304953; font: 600 .68rem/1.4 'Cascadia Mono', ui-monospace, monospace; letter-spacing: .075em; text-transform: uppercase; color: #b6c9cf; }
.signal-panel figcaption span:first-child { color: var(--mint); }
.signal-graphic { position: relative; background: radial-gradient(ellipse at 62% 31%, #23413e 0, #152b34 46%, #112430 85%); }
.signal-graphic svg { display: block; width: 100%; height: auto; aspect-ratio: 1.9; }
.signal-mark { position: absolute; top: 15px; left: 21px; color: #a8c7c4; font: 650 .73rem/1.5 'Cascadia Mono', ui-monospace, monospace; letter-spacing: .12em; }
.signal-mark span { color: var(--mint); }
.signal-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 21px; }
.signal-footer strong, .signal-footer div span { display: block; }
.signal-footer div span { color: var(--muted); font-size: .77rem; }
.signal-footer a { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #3f5b5b; border-radius: 8px; color: var(--mint); }
.signal-footer a:hover { background: #28443c; }
.work-section, .profile-section, .lab-section, .demo-section, .life-section { margin-bottom: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section-heading p:last-child:not(.eyebrow) { color: var(--muted); max-width: 390px; font-size: .94rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project-card { --accent: var(--mint); border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; }
.project-card.blue { --accent: var(--blue); }
.project-card.gold { --accent: var(--gold); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 20px; }
.project-icon { display: grid; place-items: center; height: 40px; width: 40px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--accent); border-radius: 8px; }
.project-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-flex; align-items: center; font: 600 .67rem/1.35 'Cascadia Mono', ui-monospace, monospace; letter-spacing: .04em; color: var(--accent, var(--mint)); background: #0d1724; border: 1px solid #354356; border-radius: 99px; padding: 4px 8px; }
.project-card p, .tool-card p, .profile-card p:not(.eyebrow), .life-copy p:not(.eyebrow) { color: var(--muted); margin-top: 10px; font-size: .94rem; }
.project-card a { color: var(--accent); font-size: .85rem; font-weight: 650; margin-top: auto; padding-top: 21px; }
.project-card a:hover, .text-link:hover, .fine-print a:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-card { padding: clamp(22px, 4vw, 47px); border-block: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 36px; background: linear-gradient(110deg, #101e2b, transparent); }
.profile-card p:not(.eyebrow) { max-width: 530px; }
.resume-link { display: inline-block; margin-top: 14px; }
.profile-focus { margin: 0; }
.profile-focus div { display: flex; gap: 13px; padding: 12px 0; align-items: center; border-bottom: 1px solid var(--line); }
.profile-focus dt { color: var(--mint); font-family: ui-monospace, monospace; font-size: .77rem; }
.profile-focus dd { margin: 0; font-weight: 600; }
.tool-card { border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3.1vw, 36px); background: var(--panel); }
.tool-card .eyebrow { color: var(--mint); margin-top: 0; font-size: .74rem; }
.tool-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.tool-heading p:not(.eyebrow) { max-width: 620px; }
.tool-heading button { flex-shrink: 0; }
.rates-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 26px; margin-bottom: 15px; }
.rates-card h3 { margin-top: 12px; }
.text-link, .fine-print a { font-size: .81rem; color: var(--mint); font-weight: 650; }
.rate-chart { min-width: 0; }
.rate-chart svg { display: block; width: 100%; height: auto; }
.rate-chart text { font: 11px 'Segoe UI', sans-serif; fill: var(--muted); }
.rate-chart .rates-note { font-size: .74rem; margin: 8px 0 0; }
.scenario-grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.scenario { margin: 0; min-inline-size: 0; border: 1px solid var(--line); border-radius: 9px; padding: 13px; }
.scenario legend { padding: 0 6px; color: var(--mint); font-weight: 700; }
label { display: grid; gap: 4px; color: #d3dce8; font-size: .79rem; }
input, textarea, select { width: 100%; min-width: 0; min-height: 39px; color: var(--ink); background: #0c1724; border: 1px solid #3a4b60; border-radius: 6px; padding: 7px 9px; }
input:user-invalid { border-color: #f6a594; }
.result-grid, .capacity-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.result-grid div, .capacity-metrics div { background: #0d1724; border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.result-grid dt, .capacity-metrics dt { color: var(--muted); font-size: .73rem; }
.result-grid dd, .capacity-metrics dd { color: var(--mint); font-size: clamp(.88rem, 1.7vw, 1.35rem); font-variant-numeric: tabular-nums; font-weight: 700; margin: 3px 0 0; overflow-wrap: anywhere; }
.tool-card .comparison { color: var(--mint); font-weight: 650; }
.schedule { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 10px; }
.schedule summary { cursor: pointer; font-size: .87rem; font-weight: 650; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; text-align: right; font-variant-numeric: tabular-nums; font-size: .85rem; }
table caption { color: var(--muted); font-size: .75rem; text-align: left; }
th, td { padding: 6px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; }
.fine-print, .tool-card .fine-print { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.demo-content { background: #0e1826; border: 1px solid var(--line); border-radius: 10px; padding: clamp(13px, 2.5vw, 25px); }
.demo-intro h3 { margin-top: 10px; }
.capacity-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.demo-controls { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-controls > :first-child { margin-right: auto; }
.demo-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0; list-style: none; margin-bottom: 0; }
.demo-flow li { padding: 9px; background: #152234; border: 1px solid var(--line); border-radius: 6px; }
.demo-flow strong, .demo-flow span { display: block; font-size: .78rem; }
.demo-flow strong { color: var(--mint); }
.demo-flow span { color: var(--muted); margin-top: 4px; }
.presentation { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: var(--bg); }
body:has(dialog[open]) { overflow: hidden; }
.presentation-inner { width: min(100% - 40px, 1080px); margin: 0 auto; padding-block: clamp(24px, 7vh, 70px); }
.presentation .demo-content { margin-top: 28px; }
.life-card { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); overflow: hidden; }
.life-photo { position: relative; min-height: 265px; background: #102a31; }
.life-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.life-copy { align-self: center; padding: clamp(20px, 4vw, 42px); }
.interest-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; margin: 16px 0 0; }
.interest-list li { color: #c1d3de; font-size: .76rem; border: 1px solid #354456; border-radius: 99px; padding: 3px 8px; }
.kitchen { margin-top: 15px; }
.recipe-cards { display: grid; gap: 10px; }
.recipe-card { padding-top: 13px; margin-top: 12px; border-top: 1px solid var(--line); }
.recipe-card p { white-space: pre-wrap; }
.site-footer { border-top: 1px solid var(--line); background: #0e1724; }
.footer-inner { padding-block: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 16px; font-size: .83rem; color: var(--muted); }
@media (max-width: 960px) {
  .shell { width: min(100% - 54px, 1240px); }
  .nav-home { display: none; }
  .hero { min-height: auto; gap: 28px; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { position: relative; flex-wrap: wrap; min-height: 62px; padding-block: 10px; gap: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; font-size: .8rem; }
  nav { width: 100%; flex-wrap: wrap; gap: 0 16px; padding-bottom: 5px; }
  .nav-toggle[aria-expanded="false"] + nav { display: none; }
  .nav-toggle[hidden] + nav { display: flex; }
  nav a { padding: 9px 0; }
  .nav-home { display: inline; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; padding-block: 45px 40px; }
  .hero-lede { margin-top: 18px; }
  .hero .actions { margin-top: 19px; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; }
  .projects-grid, .profile-card, .rates-card, .scenario-grid, .life-card { grid-template-columns: 1fr; }
  .work-section, .profile-section, .lab-section, .demo-section, .life-section { margin-bottom: 46px; }
  .profile-card { gap: 17px; }
  .wide-only { display: none; }
  .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capacity-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-flow { grid-template-columns: 1fr; }
  .life-photo { min-height: 205px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: clamp(3rem, 14.9vw, 4.8rem); }
  .tool-heading { flex-direction: column; }
  .result-grid, .capacity-metrics { gap: 5px; }
  .result-grid div, .capacity-metrics div { padding: 6px; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.tool-help { margin:.5rem 0; font-size:.85rem; }
.tool-help summary { cursor:pointer; color:var(--mint); font-weight:650; }
:is(.mortgage-page,.va-page,.benefit-workbench,.seasoning-grid) input[type="number"] { appearance:textfield; font-variant-numeric:tabular-nums; }
:is(.mortgage-page,.va-page,.benefit-workbench,.seasoning-grid) input[type="number"]::-webkit-inner-spin-button,
:is(.mortgage-page,.va-page,.benefit-workbench,.seasoning-grid) input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
