:root {
  --graphite-950: #0b0e12;
  --graphite-900: #11151b;
  --graphite-850: #171c23;
  --graphite-800: #1d232c;
  --ink: #1b2430;
  --muted: #65707e;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line-dark: rgb(255 255 255 / 0.13);
  --line-light: #d9d7d1;
  --navy: #082d5c;
  --navy-bright: #184f8d;
  --gold: #c29328;
  --gold-light: #e0bb62;
  --shell: 1180px;
  --narrow: 780px;
  --shadow: 0 24px 70px rgb(4 10 18 / 0.26);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--graphite-900); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; transform: translateY(-180%); background: var(--white); color: var(--graphite-950); font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line-dark); background: var(--graphite-950); color: var(--white); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: .85rem; color: var(--white); line-height: 1; text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgb(255 255 255 / .22); background: var(--white); place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: .28rem; font-size: 1.15rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.brand-copy small { color: rgb(255 255 255 / .55); font-family: var(--mono); font-size: .58rem; font-weight: 500; letter-spacing: .18em; }
.site-nav ul, .site-footer ul { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 2px solid transparent; color: rgb(255 255 255 / .72); font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-dark); background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1px; margin-inline: auto; background: currentColor; content: ""; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.grid-surface { position: relative; isolation: isolate; overflow: hidden; }
.grid-surface::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 52px 52px; content: ""; mask-image: linear-gradient(to bottom, #000 12%, transparent 88%); }
.hero { background: radial-gradient(circle at 78% 34%, rgb(8 45 92 / .85), transparent 33rem), linear-gradient(135deg, var(--graphite-900), var(--graphite-950)); color: var(--white); }
.hero-grid { display: grid; min-height: 500px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(3.25rem, 6vw, 4.5rem); }
.eyebrow, .section-index, .card-number { font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 .9rem; color: var(--gold-light); font-weight: 700; }
.eyebrow span { display: inline-block; width: 1.6rem; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { max-width: 760px; margin-bottom: 1.2rem; font-size: clamp(2.6rem, 4vw, 3.2rem); font-weight: 560; letter-spacing: -.052em; }
h2 { font-size: clamp(1.85rem, 2.8vw, 2.4rem); font-weight: 590; letter-spacing: -.038em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 680; letter-spacing: -.025em; }
.hero-lead { max-width: 650px; margin-bottom: 1.6rem; color: rgb(255 255 255 / .67); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.actions, .button { display: flex; align-items: center; }
.actions { flex-wrap: wrap; gap: .8rem; }
.button { min-height: 48px; justify-content: center; gap: .45rem; padding: .78rem 1.15rem; border: 1px solid transparent; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.button-primary { background: var(--gold); color: var(--graphite-950); }
.button-primary:hover { background: var(--gold-light); }
.button-secondary { border-color: var(--line-dark); color: var(--white); }
.button-secondary:hover { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .06); }
.button-light { border-color: var(--white); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--navy); }
.identity-panel { position: relative; width: 220px; max-width: 100%; justify-self: end; }
.identity-panel::before { position: absolute; top: -1rem; right: -1rem; width: 62%; height: 54%; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); content: ""; }
.identity-frame { position: relative; padding: clamp(1rem, 2.6vw, 1.8rem); border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .97); box-shadow: var(--shadow); }
.identity-frame img { width: 100%; max-width: 160px; height: auto; margin-inline: auto; aspect-ratio: 1; object-fit: cover; }
.identity-meta { display: flex; justify-content: space-between; gap: .5rem; padding-top: 1rem; color: rgb(255 255 255 / .42); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }

.statement { padding-block: clamp(3rem, 5vw, 4.25rem); background: var(--paper); }
.statement-grid { display: grid; grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.section-index { margin-bottom: 1.2rem; color: var(--muted); }
.statement h2 { max-width: 900px; margin-bottom: 1rem; }
.statement h2 + p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.section { padding-block: clamp(3rem, 5vw, 4.25rem); }
.section-light { border-top: 1px solid var(--line-light); background: var(--white); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr); align-items: end; gap: 2.25rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: .35rem; color: var(--muted); }
.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.scope-card { min-height: 230px; padding: clamp(1.35rem, 2.2vw, 1.75rem); border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--white); }
.card-number { display: block; margin-bottom: 2.5rem; color: var(--gold); }
.scope-card h3 { margin-bottom: .8rem; }
.scope-card p { margin-bottom: 0; color: var(--muted); }
.apps-preview { background: linear-gradient(115deg, rgb(8 45 92 / .92), rgb(8 45 92 / .54)), var(--graphite-950); color: var(--white); }
.apps-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, .75fr); gap: clamp(2.5rem, 7vw, 6rem); }
.apps-preview .section-index { color: var(--gold-light); }
.apps-preview h2 { margin-bottom: 0; }
.apps-copy { color: rgb(255 255 255 / .68); }
.apps-copy code { padding: .12rem .3rem; background: rgb(255 255 255 / .09); color: var(--white); font-family: var(--mono); font-size: .84em; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .55rem; margin-top: .7rem; color: var(--gold-light); font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--white); }
.contact-strip { padding-block: clamp(2.25rem, 4vw, 3rem); background: var(--navy-bright); color: var(--white); }
.contact-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-strip h2 { margin-bottom: 0; font-size: clamp(1.7rem, 2.5vw, 2.25rem); }
.contact-strip .eyebrow { margin-bottom: .8rem; color: rgb(255 255 255 / .7); }

.site-footer { padding-block: 2.25rem 1.5rem; border-top: 1px solid var(--line-dark); background: var(--graphite-950); color: rgb(255 255 255 / .58); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2.5rem; }
.footer-brand strong { color: var(--white); font-size: .98rem; letter-spacing: .04em; }
.footer-brand p { margin: .45rem 0 0; font-size: .85rem; }
.footer-connection { margin: .35rem 0 0; color: rgb(255 255 255 / .46); font-size: .76rem; }
.site-footer .footer-connection a { display: inline; min-height: 0; color: rgb(255 255 255 / .58); font-family: inherit; font-size: inherit; letter-spacing: normal; text-decoration: underline; text-transform: none; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; color: rgb(255 255 255 / .68); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-footer a:hover { color: var(--white); }
.copyright { grid-column: 1 / -1; margin: .5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; }

.internal-main { background: var(--paper); }
.page-hero { padding-block: clamp(3rem, 5vw, 4.5rem); background: radial-gradient(circle at 80% 20%, rgb(8 45 92 / .9), transparent 31rem), var(--graphite-900); color: var(--white); }
.page-hero h1 { max-width: 900px; margin-bottom: .9rem; font-size: clamp(2.5rem, 4vw, 3rem); }
.page-hero .lead { max-width: 720px; margin-bottom: 0; color: rgb(255 255 255 / .67); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.content-section { padding-block: clamp(2.75rem, 5vw, 4.25rem); background: var(--paper); }
.content-layout { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.content-prose { max-width: var(--narrow); }
.content-prose h2 { margin: 2.1rem 0 .75rem; font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { margin: 1.5rem 0 .55rem; }
.content-prose p, .content-prose li { color: #4e5966; }
.content-prose strong { color: var(--ink); }
.content-prose ul { padding-left: 1.2rem; }
.principles-grid, .future-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1.75rem; background: var(--line-light); border: 1px solid var(--line-light); }
.principle, .future-card { padding: 1.35rem; background: var(--white); }
.principle h3, .future-card h3 { margin-bottom: .65rem; }
.principle p, .future-card p { margin-bottom: 0; color: var(--muted); }
.status-panel { margin-top: 1.75rem; padding: 1.35rem; border-left: 3px solid var(--gold); background: var(--white); }
.status-panel p:last-child { margin-bottom: 0; }
.contact-card { max-width: 720px; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line-light); background: var(--white); }
.contact-card .email-label { margin-bottom: .4rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-card .email-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--navy-bright); font-size: clamp(1.35rem, 4vw, 2.25rem); font-weight: 650; letter-spacing: -.025em; }
.contact-card .email-note { margin: 1.2rem 0 0; color: var(--muted); }
.error-page { display: grid; min-height: 68vh; place-items: center; padding-block: 5rem; background: radial-gradient(circle at 80% 20%, rgb(8 45 92 / .85), transparent 30rem), var(--graphite-900); color: var(--white); text-align: center; }
.error-page h1 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 4.5rem); }
.error-page p:not(.eyebrow) { max-width: 540px; margin-inline: auto; color: rgb(255 255 255 / .67); }
.error-page .actions { justify-content: center; margin-top: 2rem; }

@media (max-width: 960px) {
  .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 3rem; }
  .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-card { min-height: 220px; }
  .principles-grid, .future-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: grid; place-items: center; }
  .js .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 68px); overflow-y: auto; border-bottom: 1px solid var(--line-dark); background: var(--graphite-950); }
  .js .site-nav[data-open="true"] { display: block; }
  .site-nav ul { display: grid; width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; gap: 0; padding-block: .75rem 1.25rem; }
  .site-nav a { min-height: 56px; border-bottom: 1px solid var(--line-dark); font-size: .85rem; }
  .hero-grid, .statement-grid, .section-heading, .apps-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.5rem; padding-block: 2rem; }
  h1 { font-size: clamp(2.45rem, 11vw, 3.2rem); }
  .identity-panel { width: 190px; max-width: 100%; margin-inline: auto; justify-self: center; }
  .identity-frame img { max-width: 150px; }
  .identity-meta { padding-top: .65rem; }
  .statement-grid, .section-heading, .apps-grid, .content-layout { gap: 1.25rem; }
  .section-heading { align-items: start; margin-bottom: 2rem; }
  .contact-strip-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand-copy { font-size: 1rem; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-card { min-height: 0; }
  .card-number { margin-bottom: 2.4rem; }
  .actions .button { width: 100%; }
  .site-footer ul { flex-wrap: wrap; gap: 1rem 1.5rem; }
}

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

@media print {
  .skip-link, .site-header, .site-footer, .menu-toggle { display: none; }
  body, .internal-main, .content-section { background: #fff; color: #000; }
}
