/* Homepage: portrait, cartographic hero, selected work and AI practice. */
.home-page { --home-bg:#0b1224;--home-ink:#f4efe4;--home-muted:#bdc8d6;--home-line:#303e54;--home-surface:#121d30;--home-accent:#91c8e8;background:var(--home-bg);color:var(--home-ink);font:400 15px/1.65 var(--sans); }
[data-theme="light"] .home-page { --home-bg:#f7f4ee;--home-ink:#182538;--home-muted:#526174;--home-line:#d9dcd9;--home-surface:#fffdfa;--home-accent:#306887; }
.home-page img { max-width:100%;display:block; }
.home-page button { font:inherit;cursor:pointer; }
.home-page a:hover { color:var(--home-accent); }
.home-page :focus-visible { outline:2px solid var(--home-accent);outline-offset:5px; }
.home-page h2,.home-page h3 { color:var(--home-ink);letter-spacing:-.02em;font-weight:500; }
.home-page h2 { font-size:34px;line-height:1.2;margin:0 0 12px; }
.home-page h3 { font-size:25px;line-height:1.2;margin:0 0 12px; }
.home-page p { margin:0 0 16px; }
.home-shell { width:min(100%,1200px);margin-inline:auto;padding-inline:6%; }
.home-skip { position:fixed;top:12px;left:12px;z-index:100;padding:12px 18px;background:var(--home-surface);transform:translateY(-160%); }
.home-skip:focus { transform:translateY(0); }
.home-nav { background:var(--home-bg);border-bottom:1px solid var(--home-line); }
.home-nav-inner { display:flex;align-items:center;gap:28px;padding-block:17px; }
.home-brand { font:500 23px/1.3 var(--serif);letter-spacing:-.025em;margin-right:auto; }
.home-brand span { color:var(--home-accent); }
.home-nav-links { display:flex;align-items:center;gap:26px;font-size:13px; }
.home-nav-links a { padding-block:10px; }
.home-nav-links a:hover { text-decoration:underline;text-underline-offset:5px; }
.home-nav .theme-toggle { flex:0 0 38px;height:38px;color:var(--home-muted);border-color:var(--home-line); }
.home-page .home-hero { position:relative;height:auto;min-height:0;padding:0;display:block;background:#0b1224;color:#f4efe4;isolation:isolate; }
.home-map-fallback,.home-page #hero-map { position:absolute;inset:0;width:100%;height:100%; }
.home-map-fallback { object-fit:cover;object-position:center;z-index:0; }
.home-page #hero-map { z-index:1; }
.home-hero-shade { position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(11,18,36,.96),rgba(11,18,36,.82) 47%,rgba(11,18,36,.22)); }
.home-hero-content { display:grid;grid-template-columns:minmax(0,1fr) 218px;align-items:center;gap:8%;padding-block:64px 48px;min-height:440px;position:relative;z-index:3;pointer-events:none; }
.home-hero-content a { pointer-events:auto; }
.home-page .home-eyebrow { color:#9dcce9;font-size:11px;font-weight:500;letter-spacing:.17em;text-transform:uppercase;margin-bottom:20px; }
.home-page .home-hero h1 { font:500 clamp(42px,5.5vw,68px)/1.06 var(--serif);letter-spacing:-.035em;color:#f4efe4;margin:0 0 25px; }
.home-page .home-lede { font-size:23px;line-height:1.5;color:#ece8de;margin-bottom:17px;max-width:540px; }
.home-page .home-support { font-size:15px;line-height:1.7;max-width:495px;color:#c9d2de;margin-bottom:28px; }
.home-portrait { margin:0; }
.home-portrait img { width:100%;height:auto;border-radius:19px;border:1px solid #dcd5c55c;box-shadow:0 12px 40px #0000003d; }
.home-portrait figcaption { font-size:11px;letter-spacing:.07em;color:#d5dbdf;margin-top:13px;text-align:center; }
.home-actions { display:flex;flex-wrap:wrap;gap:22px;align-items:center;font-size:13px; }
.home-primary { display:inline-flex;align-items:center;gap:15px;background:#d8b98a;color:#1c2430;border-radius:6px;font-weight:500;padding:12px 18px; }
.home-page .home-primary:hover { background:#e4caa3;color:#1c2430; }
.home-hero-link { border-bottom:1px solid #78828e;padding-block:8px; }
.home-page .home-hero-link:hover { color:#9dcce9; }
.home-map-bar { position:relative;z-index:4;padding-block:15px 12px;background:#09111ee6;border-top:1px solid #cad7e72e;font-size:11px;color:#cbd6e3; }
.home-map-bar > .home-shell { display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap; }
.home-page #hero-caption { margin:0;font-size:11px; }
.home-map-controls { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.home-map-controls button { border:1px solid #536177;border-radius:5px;background:#152237;color:#e3e9f1;padding:7px 10px;font-size:11px; }
.home-map-controls button:hover:not(:disabled),.home-map-controls button[aria-pressed="true"] { background:#28425c; }
.home-map-controls button:disabled { cursor:default;opacity:.55; }
.home-map-controls button[hidden] { display:none; }
.home-page #map-status { color:#b9c9dd;font-size:11px; }
.home-page .home-map-credit { margin:0;width:100%;font-size:11px;color:#aebfd0; }
.home-map-credit a { text-decoration:underline;text-underline-offset:3px; }
.home-page .maplibregl-ctrl-bottom-left,.home-page .maplibregl-ctrl-bottom-right { bottom:3px; }
.home-page .map-gate { cursor:default;z-index:2; }
.home-proof,.home-section { border-bottom:1px solid var(--home-line); }
.home-proof-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-block:25px; }
.home-proof strong { display:block;font-size:14px;font-weight:500;margin-bottom:3px; }
.home-proof span { font-size:12px;color:var(--home-muted); }
.home-section { padding-block:46px;scroll-margin-top:24px; }
.home-section-heading { display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:28px; }
.home-section-heading p { font-size:14px;color:var(--home-muted);margin:0;max-width:740px; }
.home-text-link { display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:500;border-bottom:1px solid var(--home-line);padding-block:4px; }
.home-section-heading > .home-text-link { flex-shrink:0; }
.home-projects { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start; }
.home-project { min-width:0; }
.home-screenshot { display:block;position:relative;width:100%;overflow:hidden;border:1px solid var(--home-line);border-radius:9px;background:#0e1926; }
.home-screenshot img { width:100%;height:auto;aspect-ratio:1.6;object-fit:contain;transition:opacity .15s ease; }
.home-screenshot:hover img { opacity:.86; }
.home-screenshot > span { position:absolute;bottom:8px;right:8px;color:#f4efe4;background:#0d192aed;border:1px solid #4d5968;border-radius:4px;font-size:11px;padding:3px 7px; }
.home-project-copy { padding-top:20px; }
.home-project p,.home-ai p,.home-background p,.home-contact p { font-size:14px;line-height:1.75;color:var(--home-muted); }
.home-page .home-kicker { font-size:11px;font-weight:500;line-height:1.6;letter-spacing:.1em;text-transform:uppercase;color:var(--home-accent);margin:0 0 10px; }
.home-ai { background:var(--home-surface); }
.home-brain { display:grid;grid-template-columns:1.1fr 1fr;gap:34px;align-items:center; }
.home-brain figure { margin:0;min-width:0; }
.home-brain-screenshot { background:#101517; }
.home-brain-screenshot img { aspect-ratio:1.8; }
.home-brain figcaption { font-size:11px;color:var(--home-muted);margin-top:10px; }
.home-brain h3 { font-size:32px; }
.home-page .home-brain-flow { font-size:12px;color:var(--home-accent);margin-block:19px 12px; }
.home-ai-highlights { display:grid;grid-template-columns:1fr 1fr;gap:34px;margin-top:30px;padding-top:28px;border-top:1px solid var(--home-line); }
.home-ai-highlights h3 { font-size:27px; }
.home-ai-bottom { display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:26px;padding-top:19px;border-top:1px solid var(--home-line); }
.home-ai-bottom p { margin:0;font-size:13px; }
.home-background { display:grid;grid-template-columns:1.15fr 1fr;gap:50px; }
.home-background h2 { font-size:30px; }
.home-subjects { display:flex;flex-wrap:wrap;gap:8px 16px;border-top:1px solid var(--home-line);padding-top:14px;margin-bottom:17px;font-size:12px; }
.home-page .home-book { color:var(--home-ink);font:400 21px/1.3 var(--serif);margin-bottom:6px; }
.home-page .home-book-caption { margin-bottom:15px; }
.home-contact-inner { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:25px; }
.home-contact h2 { font-size:30px; }
.home-contact p { max-width:490px;margin:0; }
.home-footer { padding-block:24px;color:var(--home-muted);font-size:12px; }
.home-footer > .home-shell,.home-footer .home-shell > div { display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px 20px; }
.home-footer a { padding-block:4px; }
.home-viewer { background:var(--home-surface);color:var(--home-ink);border:1px solid var(--home-line);border-radius:10px;padding:0;width:min(96%,1200px);max-height:92vh;overflow:auto; }
.home-viewer::backdrop { background:#040a13d1; }
.home-viewer-bar { display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 17px; }
.home-page .home-viewer h2 { font:500 15px/1.5 var(--sans);margin:0; }
.home-viewer-close { border:1px solid var(--home-line);border-radius:5px;background:var(--home-bg);color:var(--home-ink);padding:8px 14px; }
.home-viewer > img { width:100%;height:auto; }
@media (max-width:850px) {
  .home-nav-inner { gap:20px; }.home-nav-links { gap:18px; }.home-brand { font-size:21px; }
  .home-hero-content { grid-template-columns:minmax(0,1fr) 170px;gap:28px;padding-block:45px 40px; }
  .home-page .home-hero h1 { font-size:48px; }.home-page .home-lede { font-size:20px; }
  .home-projects { gap:18px; }.home-project h3 { font-size:22px; }.home-background { gap:30px; }
}
@media (max-width:620px) {
  .home-shell { padding-inline:7%; }
  .home-nav-inner { flex-wrap:wrap;gap:5px 16px;padding-block:12px 5px; }
  .home-nav-links { order:3;width:100%;justify-content:space-between;gap:10px;flex-wrap:wrap; }
  .home-hero-content { display:flex;flex-direction:column;align-items:start;min-height:0;padding-block:30px 35px;gap:24px; }
  .home-portrait { order:-1;width:106px; }.home-portrait img { border-radius:12px; }.home-portrait figcaption { display:none; }
  .home-page .home-hero h1 { font-size:clamp(36px,10vw,48px);margin-bottom:20px; }
  .home-page .home-eyebrow { letter-spacing:.12em;margin-bottom:14px; }
  .home-hero-shade { background:#0b1224de; }.home-page .home-lede { font-size:19px; }.home-page .home-support { font-size:14px; }
  .home-map-controls { gap:6px; }.home-page #map-status { width:100%; }
  .home-proof-grid { grid-template-columns:1fr;gap:16px;padding-block:24px; }
  .home-section { padding-block:34px; }.home-section-heading { flex-wrap:wrap;align-items:start;gap:12px;margin-bottom:25px; }
  .home-page h2 { font-size:31px; }.home-projects { grid-template-columns:1fr;gap:30px; }
  .home-project { padding-bottom:26px;border-bottom:1px solid var(--home-line); }.home-project:last-child { border:0;padding-bottom:0; }.home-project h3 { font-size:27px; }
  .home-brain,.home-ai-highlights,.home-background { grid-template-columns:1fr;gap:25px; }.home-background { gap:34px; }
  .home-viewer-bar { align-items:start; }.home-viewer-close { flex-shrink:0; }
}
@media (pointer:coarse) {
  .home-nav .theme-toggle { height:44px;flex-basis:44px; }
  .home-nav-links a,.home-text-link,.home-footer a { min-height:44px;display:inline-flex;align-items:center; }
  .home-map-controls button,.home-viewer-close { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { .home-page *,.home-page *::before,.home-page *::after { scroll-behavior:auto!important;transition:none!important; } }
