@import url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css');

:root {
  --font-sans: 'SUIT Variable', 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --bg: #fff;
  --surface: rgba(255, 255, 255, .88);
  --surface-muted: #f1f3f3;
  --ink: #232f3e;
  --body: #333840;
  --muted: #545b64;
  --faint: #879196;
  --line: #eaeded;
  --line-strong: #879196;
  --orange: #ec7211;
  --orange-dark: #c45508;
  --blue: #0073bb;
  --success: #1d8102;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --duration: 180ms;
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; overflow-y: scroll; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--body); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; transform: translateY(-150%); transition: transform var(--duration) var(--ease); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.blueprint-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(35, 47, 62, .075) 1px, transparent 1px); background-size: 24px 24px; }
.blueprint-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 16% 30%, rgba(236, 114, 17, .11), transparent 29%), radial-gradient(ellipse at 82% 18%, rgba(0, 115, 187, .09), transparent 28%), radial-gradient(ellipse at 58% 88%, rgba(255, 238, 219, .42), transparent 32%); filter: blur(28px); }
.sunset-glow, .teal-glow { position: fixed; z-index: 1; width: 520px; height: 520px; pointer-events: none; filter: blur(50px); }
.sunset-glow { top: 18%; left: 5%; background: radial-gradient(circle, rgba(236, 114, 17, .06), transparent 70%); }
.teal-glow { right: 4%; bottom: 8%; background: radial-gradient(circle, rgba(0, 115, 187, .05), transparent 70%); }

#globe-canvas { position: fixed; right: -450px; bottom: -450px; z-index: 2; width: 1200px; height: 1200px; pointer-events: none; opacity: .88; }

.global-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); border-bottom: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-container { width: min(800px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; }
.logo-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.main-nav { display: flex; align-items: center; justify-content: space-between; width: 304px; height: 100%; margin-left: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 100%; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1; text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--orange); }
.theme-toggle, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle { width: 32px; height: 32px; margin-left: 16px; }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 18px; height: 1px; background: currentColor; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--orange); }

.page-container { position: relative; z-index: 10; width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: calc(var(--header-height) + 48px) 0 64px; flex: 1; }
.hero-band { padding: 42px 0 24px; }
.section-eyebrow { display: block; margin-bottom: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.hero-title, .page-title { margin: 0; color: var(--ink); font-weight: 400; letter-spacing: -.035em; }
.hero-title { max-width: 720px; font-size: clamp(2.25rem, 6vw, 3.2rem); line-height: 1.12; }
.page-title { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; }
.hero-body { max-width: 620px; margin: 24px 0 30px; color: var(--body); font-size: 16px; line-height: 1.75; }
.page-title-band { padding: 42px 0 24px; }
.page-subtitle { max-width: 680px; margin: 12px 0 0; color: var(--body); font-size: 16px; line-height: 1.7; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-lg); font-size: 14px; font-weight: 600; text-decoration: none; transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.btn i { margin-right: 8px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #19222d; }
.btn-primary:active { background: #111923; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { box-shadow: 0 0 0 3px rgba(0, 115, 187, .28); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.btn-secondary { border-color: var(--line-strong); background: var(--bg); color: var(--ink); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange-dark); }

.home-section { margin-top: 48px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.home-section-heading h2 { max-width: 560px; margin: 0; color: var(--ink); font-size: 24px; font-weight: 400; line-height: 1.35; }
.text-link { color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--orange); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.focus-grid > div { padding: 20px 18px 6px 0; border-right: 1px solid var(--line); }
.focus-grid > div + div { padding-left: 18px; }
.focus-grid > div:last-child { border-right: 0; }
.focus-grid h3 { margin: 0 0 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.focus-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.featured-project-list { border-top: 1px solid var(--line); }
.featured-project-row { display: grid; grid-template-columns: 150px minmax(150px, .8fr) 1fr 20px; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.featured-project-row:hover .featured-project-name { color: var(--orange-dark); }
.featured-project-name { color: var(--ink); font-size: 15px; font-weight: 600; }
.featured-project-summary { color: var(--muted); font-size: 13px; line-height: 1.5; }
.featured-project-arrow { color: var(--orange); text-align: right; }
.objective-band { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(241, 243, 243, .72); }
.objective-band h2 { margin: 0 0 10px; color: var(--ink); font-size: 22px; font-weight: 400; }
.objective-band p { max-width: 620px; margin: 0; color: var(--body); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.project-card:hover { border-color: rgba(236, 114, 17, .45); box-shadow: 0 10px 28px rgba(35, 47, 62, .07); }
.project-card-body { padding: 24px; }
.deploy-badge { color: var(--orange); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-card-title { margin: 7px 0 10px; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.3; }
.project-card-summary, .project-role { margin: 0; color: var(--body); font-size: 14px; line-height: 1.65; }
.project-role { margin-top: 12px; color: var(--muted); font-size: 13px; }
.project-role strong { color: var(--ink); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: rgba(35, 47, 62, .025); color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; }
.project-status { display: block; margin-top: 16px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.project-actions, .project-detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.project-action { color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.project-action:hover { color: var(--orange-dark); }
.project-detail-link { display: block; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.project-detail-link:hover { color: var(--orange-dark); }
.project-detail-card { max-width: 760px; padding: 42px 0 24px; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--orange); }
.project-detail-lead { max-width: 680px; margin: 16px 0 0; color: var(--body); font-size: 17px; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.detail-grid section { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.detail-grid h2 { margin: 0 0 10px; color: var(--ink); font-size: 16px; font-weight: 600; }
.detail-grid p, .detail-grid li { margin: 0; color: var(--body); font-size: 14px; line-height: 1.7; }
.detail-grid ul { margin: 0; padding-left: 18px; }
.detail-grid li + li { margin-top: 6px; }

.links-stack { display: flex; flex-direction: column; gap: 10px; }
.link-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.link-item:hover { border-color: rgba(236, 114, 17, .45); box-shadow: 0 8px 24px rgba(35, 47, 62, .06); }
.link-label { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.link-label i { width: 20px; color: var(--orange); text-align: center; }
.link-path { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }

.timeline-container { position: relative; padding-left: 28px; }
.timeline-line { position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: var(--line-strong); }
.timeline-node { position: relative; margin-bottom: 34px; }
.timeline-node:last-child { margin-bottom: 0; }
.node-marker { position: absolute; top: 4px; left: -28px; width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(236, 114, 17, .1); }
.node-date { display: block; margin-bottom: 8px; color: var(--orange); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.node-card { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.node-badge { display: inline-block; margin-bottom: 8px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.node-title { margin: 0 0 6px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.node-desc { margin: 0; color: var(--body); font-size: 14px; line-height: 1.7; }

.fallback-list, .empty-state { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.empty-state h1 { margin-top: 0; color: var(--ink); }
.global-footer { position: relative; z-index: 10; margin-top: auto; padding: 24px 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.footer-container { width: min(800px, calc(100% - 48px)); margin: 0 auto; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 11px; }

button:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 115, 187, .45); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #101820; --surface: rgba(23, 33, 43, .92); --surface-muted: #1e2935; --ink: #f4f7f9; --body: #d1d9e0; --muted: #a9b4bf; --faint: #81909d; --line: #33404d; --line-strong: #62717e; } }
[data-theme="dark"] { --bg: #101820; --surface: rgba(23, 33, 43, .92); --surface-muted: #1e2935; --ink: #f4f7f9; --body: #d1d9e0; --muted: #a9b4bf; --faint: #81909d; --line: #33404d; --line-strong: #62717e; }
[data-theme="dark"] .global-footer { background: rgba(16, 24, 32, .86); }
[data-theme="dark"] .blueprint-bg { background-image: radial-gradient(rgba(205, 218, 228, .115) 1px, transparent 1px); background-size: 24px 24px; }
[data-theme="dark"] .blueprint-bg::after { background: radial-gradient(circle at 16% 24%, rgba(236, 114, 17, .15), transparent 30%), radial-gradient(circle at 84% 18%, rgba(0, 115, 187, .16), transparent 34%), radial-gradient(circle at 58% 86%, rgba(35, 90, 120, .11), transparent 34%), radial-gradient(ellipse at center, transparent 45%, rgba(3, 9, 15, .22) 100%); opacity: 1; }
[data-theme="dark"] .sunset-glow { top: 13%; left: 1%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(236, 114, 17, .15), transparent 64%); }
[data-theme="dark"] .teal-glow { right: 0; bottom: 7%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(0, 115, 187, .16), transparent 66%); }
[data-theme="dark"] #globe-canvas { opacity: .88; filter: brightness(1.8) saturate(1.15) drop-shadow(0 0 32px rgba(0, 115, 187, .12)); }
[data-theme="dark"] .focus-grid { border-top-color: transparent; background: linear-gradient(90deg, rgba(236, 114, 17, .35), rgba(0, 115, 187, .18), transparent) top / 100% 1px no-repeat; }
[data-theme="dark"] .focus-grid > div { background: rgba(255, 255, 255, .018); border-color: #3e4d5b; }
[data-theme="dark"] .objective-band { background: rgba(30, 41, 53, .88); border-color: #40515f; box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }
[data-theme="dark"] .btn-primary { background: var(--orange); color: #101820; }
[data-theme="dark"] .btn-primary:hover { background: #ff9900; color: #101820; }
[data-theme="dark"] .btn-primary:active { background: var(--orange-dark); color: #fff; }
[data-theme="dark"] .btn-secondary { background: #17212b; color: var(--ink); border-color: #62717e; }
[data-theme="dark"] .objective-band { background: #1e2935; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blueprint-bg { background-image: radial-gradient(rgba(205, 218, 228, .115) 1px, transparent 1px); background-size: 24px 24px; }
  :root:not([data-theme="light"]) .blueprint-bg::after { background: radial-gradient(circle at 16% 24%, rgba(236, 114, 17, .15), transparent 30%), radial-gradient(circle at 84% 18%, rgba(0, 115, 187, .16), transparent 34%), radial-gradient(circle at 58% 86%, rgba(35, 90, 120, .11), transparent 34%), radial-gradient(ellipse at center, transparent 45%, rgba(3, 9, 15, .22) 100%); opacity: 1; }
  :root:not([data-theme="light"]) .sunset-glow { top: 13%; left: 1%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(236, 114, 17, .15), transparent 64%); }
  :root:not([data-theme="light"]) .teal-glow { right: 0; bottom: 7%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(0, 115, 187, .16), transparent 66%); }
  :root:not([data-theme="light"]) #globe-canvas { opacity: .88; filter: brightness(1.8) saturate(1.15) drop-shadow(0 0 32px rgba(0, 115, 187, .12)); }
  :root:not([data-theme="light"]) .focus-grid { border-top-color: transparent; background: linear-gradient(90deg, rgba(236, 114, 17, .35), rgba(0, 115, 187, .18), transparent) top / 100% 1px no-repeat; }
  :root:not([data-theme="light"]) .focus-grid > div { background: rgba(255, 255, 255, .018); border-color: #3e4d5b; }
  :root:not([data-theme="light"]) .objective-band { background: rgba(30, 41, 53, .88); border-color: #40515f; box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }
  :root:not([data-theme="light"]) .btn-primary { background: var(--orange); color: #101820; }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #ff9900; color: #101820; }
  :root:not([data-theme="light"]) .btn-primary:active { background: var(--orange-dark); color: #fff; }
  :root:not([data-theme="light"]) .btn-secondary { background: #17212b; color: var(--ink); border-color: #62717e; }
  :root:not([data-theme="light"]) .objective-band { background: #1e2935; }
}

@media (max-width: 700px) {
  body.menu-open { overflow: hidden; }
  .header-container { width: calc(100% - 32px); }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: inline-flex; margin-left: 4px; }
  .main-nav { position: absolute; top: var(--header-height); right: 0; left: 0; display: none; width: auto; height: auto; margin: 0; padding: 10px 20px 16px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 12px 20px rgba(35, 47, 62, .06); }
  .main-nav.is-open { display: flex; }
  .nav-link { height: auto; padding: 13px 0; }
  .nav-link.active::after { right: auto; bottom: 5px; width: 28px; }
  .page-container { width: calc(100% - 36px); padding-top: calc(var(--header-height) + 28px); }
  .hero-band, .page-title-band { padding-top: 30px; }
  .hero-body, .page-subtitle { font-size: 15px; }
  .focus-grid, .project-grid, .detail-grid { grid-template-columns: 1fr; }
  .focus-grid > div, .focus-grid > div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-grid > div:last-child { border-bottom: 0; }
  .featured-project-row { grid-template-columns: 1fr 20px; gap: 6px 10px; padding: 16px 0; }
  .featured-project-row .deploy-badge, .featured-project-summary { grid-column: 1; }
  .featured-project-name { grid-column: 1; grid-row: 2; }
  .featured-project-arrow { grid-column: 2; grid-row: 1 / span 3; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .link-item { align-items: flex-start; flex-direction: column; gap: 8px; }
  .link-path { padding-left: 32px; }
  #globe-canvas { right: -290px; bottom: -290px; width: 700px; height: 700px; opacity: .52; }
  [data-theme="dark"] .blueprint-bg::after { background: radial-gradient(circle at 10% 20%, rgba(236, 114, 17, .12), transparent 34%), radial-gradient(circle at 90% 30%, rgba(0, 115, 187, .13), transparent 38%), radial-gradient(ellipse at center, transparent 48%, rgba(3, 9, 15, .14) 100%); opacity: .82; }
  [data-theme="dark"] .sunset-glow { top: 18%; left: -12%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(236, 114, 17, .11), transparent 64%); opacity: .8; }
  [data-theme="dark"] .teal-glow { right: -12%; bottom: 12%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 115, 187, .12), transparent 66%); opacity: .8; }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blueprint-bg::after { background: radial-gradient(circle at 10% 20%, rgba(236, 114, 17, .12), transparent 34%), radial-gradient(circle at 90% 30%, rgba(0, 115, 187, .13), transparent 38%), radial-gradient(ellipse at center, transparent 48%, rgba(3, 9, 15, .14) 100%); opacity: .82; }
  :root:not([data-theme="light"]) .sunset-glow { top: 18%; left: -12%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(236, 114, 17, .11), transparent 64%); opacity: .8; }
  :root:not([data-theme="light"]) .teal-glow { right: -12%; bottom: 12%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 115, 187, .12), transparent 66%); opacity: .8; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
