:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 94px; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .25s ease, color .25s ease; }
body, button { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--selection-text); background: var(--accent); }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080f18;
  --bg-alt: #0b1723;
  --panel: #0f1c29;
  --panel-active: #122331;
  --text: #ecf4f8;
  --muted: #9cadbb;
  --subtle: #7890a0;
  --line: rgba(120, 186, 214, .17);
  --line-bright: rgba(92, 207, 234, .5);
  --accent: #61cfe6;
  --accent-strong: #80e1f0;
  --accent-soft: rgba(86, 204, 230, .10);
  --accent-shadow: rgba(48, 154, 189, .14);
  --hero-radial: rgba(35, 97, 127, .29);
  --logo-filter: brightness(0) invert(1);
  --selection-text: #02151e;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-alt: #eaf2f7;
  --panel: #ffffff;
  --panel-active: #f0f7fb;
  --text: #142939;
  --muted: #50677a;
  --subtle: #6a8394;
  --line: rgba(45, 92, 122, .18);
  --line-bright: rgba(35, 130, 159, .45);
  --accent: #0c6f91;
  --accent-strong: #087ea4;
  --accent-soft: rgba(24, 119, 153, .09);
  --accent-shadow: rgba(28, 99, 122, .11);
  --hero-radial: rgba(154, 213, 234, .37);
  --logo-filter: none;
  --selection-text: #ffffff;
}

.skip-link { position: fixed; z-index: 999; top: -100px; left: 18px; padding: 11px 17px; background: var(--panel); border: 1px solid var(--accent); }
.skip-link:focus { top: 14px; }
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header__inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; min-height: 76px; }
.header__wordmark { letter-spacing: .115em; font-size: 16px; font-weight: 800; white-space: nowrap; }
.header__wordmark-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(20px,3vw,42px); margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 13px; transition: color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-height: 40px; border: 1px solid var(--line); padding: 0 13px; color: var(--text); background: var(--accent-soft); border-radius: 6px; transition: border-color .2s, background .2s; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__text { font-size: 12px; font-weight: 600; }
html[data-theme="dark"] .theme-icon--moon, html[data-theme="light"] .theme-icon--sun { display: none; }

.hero { position: relative; isolation: isolate; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 36% 44%, var(--hero-radial), transparent 54%), linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(0deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .16; mask-image: linear-gradient(to bottom, transparent 8%, black 56%, transparent 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; opacity: .55; background: radial-gradient(ellipse at 48% 100%, var(--accent-shadow), transparent 64%); }
.hero__mesh { pointer-events: none; position: absolute; z-index: -1; inset: auto 0 0; height: 185px; opacity: .38; background: repeating-linear-gradient(93deg, transparent 0 41px, var(--line-bright) 42px, transparent 43px), repeating-linear-gradient(1deg, transparent 0 35px, var(--line) 36px, transparent 37px); transform: perspective(460px) rotateX(63deg) translateY(60px); transform-origin: center bottom; mask-image: linear-gradient(to top, black, transparent); }
.hero__circuit { pointer-events: none; position: absolute; top: 24%; width: 160px; opacity: .6; display: grid; gap: 19px; }
.hero__circuit--left { left: 0; }
.hero__circuit--right { right: 0; transform: scaleX(-1); }
.hero__circuit span { width: 100%; height: 1px; display: block; position: relative; background: linear-gradient(90deg, var(--line-bright), transparent); }
.hero__circuit span:nth-child(2) { width: 75%; margin-left: -15px; }
.hero__circuit span:nth-child(3) { width: 120%; margin-left: -30px; }
.hero__circuit span::after { content: ""; display: block; position: absolute; left: 75%; top: -2px; border-radius: 50%; width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 8px var(--accent-shadow); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); align-items: center; gap: clamp(40px, 5vw, 88px); padding-block: 70px 76px; }
.hero__brand { min-width: 0; }
.eyebrow, .section-marker, .signal-label, .hero__meta, .story__footnote, .footer { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.eyebrow { color: var(--subtle); font-size: 10px; letter-spacing: .17em; font-weight: 700; display: flex; align-items: center; gap: 13px; margin: 0 0 25px; }
.eyebrow__line { width: 26px; height: 1px; background: var(--accent); }
.logo-frame { position: relative; width: 100%; max-width: 540px; margin-inline: auto; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, var(--accent-soft), transparent 70%); padding: clamp(26px, 4vw, 45px); box-shadow: 0 22px 50px -35px var(--accent-shadow); }
.logo-frame__corners::before, .logo-frame__corners::after { content: ""; position: absolute; height: 27px; width: 27px; pointer-events: none; }
.logo-frame__corners::before { border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); top: -1px; left: -1px; }
.logo-frame__corners::after { border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); right: -1px; bottom: -1px; }
.logo-viewport { position: relative; width: 100%; aspect-ratio: 1590 / 1307; overflow: hidden; }
.logo-viewport img { position: absolute; max-width: none; width: 128.805%; height: auto; top: 0; left: 0; transform: translate(-3.2227%, -21.3867%); filter: var(--logo-filter); }
.hero__message { max-width: 515px; }
.signal-label { display: inline-flex; gap: 9px; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .135em; color: var(--accent); }
.signal-label__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--text); margin: 21px 0 20px; font-size: clamp(39px,4.2vw,68px); letter-spacing: -.055em; line-height: 1.08; font-weight: 760; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero__subtitle { font-weight: 650; font-size: clamp(16px,1.6vw,19px); line-height: 1.5; color: var(--text); margin-bottom: 14px; }
.hero__intro { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 44ch; margin: 0 0 29px; }
.cta { display: inline-flex; gap: 28px; justify-content: space-between; align-items: center; border: 1px solid var(--accent); color: var(--text); background: var(--accent-soft); font-weight: 650; font-size: 13px; padding: 14px 18px; min-height: 46px; transition: border-color .2s, transform .2s, background .2s; }
.cta:hover { color: var(--text); background: var(--accent-shadow); transform: translateY(-2px); }
.cta span { color: var(--accent); font-size: 16px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 33px; color: var(--subtle); font-size: 10px; letter-spacing: .12em; }
.hero__meta i { width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }
.hero__baseline { position: absolute; bottom: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--line-bright), transparent); }

.section { padding-block: 100px; }
.intro { background: var(--bg); }
.intro__grid { display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 85px; }
.section-marker { margin-bottom: 21px; color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.section-marker span { color: var(--subtle); }
h2 { letter-spacing: -.04em; line-height: 1.13; font-weight: 720; font-size: clamp(32px,3.6vw,52px); margin-bottom: 0; }
h2 span { color: var(--accent); }
.intro__copy p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 60ch; }
.intro__rule { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding-top: 20px; margin-top: 28px; border-top: 1px solid var(--line); font: 600 11px ui-monospace,SFMono-Regular,monospace; letter-spacing: .1em; color: var(--accent); }
.story { background: var(--bg-alt); border-block: 1px solid var(--line); }
.story__heading { display: grid; grid-template-columns: 1fr 295px; gap: 35px; align-items: end; margin-bottom: 39px; }
.story__heading > p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 5px; }
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); background: transparent; }
.accordion__item[open] { background: var(--panel-active); }
.accordion__item summary { display: grid; align-items: center; grid-template-columns: 65px 1fr 38px; gap: 16px; padding: 24px 27px; cursor: pointer; list-style: none; color: var(--text); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::marker { content: ""; }
.accordion__item summary:hover { background: var(--accent-soft); }
.accordion__number { color: var(--accent); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 13px; letter-spacing: .08em; }
.accordion__label { display: block; font-size: clamp(17px,1.8vw,24px); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.accordion__label small { display: block; color: var(--subtle); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 6px; }
.accordion__control { border: 1px solid var(--line-bright); height: 34px; width: 34px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; color: var(--accent); }
.accordion__control::before { content: "+"; display: block; line-height: 1; }
.accordion__item[open] .accordion__control::before { content: "−"; }
.accordion__content { max-width: 930px; padding: 4px 105px 30px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.accordion__content p { margin-bottom: 15px; }
.accordion__content p:last-child { margin-bottom: 0; }
.accordion__content strong { color: var(--text); font-weight: 650; }
.accordion__content ul, .accordion__content ol { padding-left: 22px; margin: 15px 0 19px; }
.accordion__content li { padding-left: 5px; margin-bottom: 8px; }
.accordion__content li::marker { color: var(--accent); }
.accordion__closing { color: var(--accent); font-size: 21px; font-weight: 600; }
.story__footnote { display: flex; justify-content: space-between; gap: 18px; margin-top: 25px; color: var(--subtle); font-size: 10px; letter-spacing: .1em; }
.end-section { position: relative; overflow: hidden; padding: 95px 0; background: radial-gradient(ellipse at 84% 90%, var(--hero-radial), transparent 55%), var(--bg); }
.end-section::before { content: ""; position: absolute; width: 450px; height: 450px; border: 1px solid var(--line); border-radius: 50%; right: -230px; top: -190px; pointer-events: none; }
.end-section h2 { max-width: 940px; font-size: clamp(36px,4.8vw,68px); }
.end-section p:not(.section-marker) { margin: 25px 0 26px; color: var(--muted); }
.back-top { color: var(--accent); display: inline-flex; gap: 14px; font-weight: 650; font-size: 13px; padding-block: 8px; }
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--subtle); font-size: 10px; letter-spacing: .065em; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-block: 28px; }
.footer__sep { color: var(--accent); }

@media (max-width: 1000px) {
  .hero__inner { gap: 40px; }
  .logo-frame { padding: 24px; }
  .hero__circuit { opacity: .2; }
  .intro__grid { column-gap: 40px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 38px, 600px); }
  .header__inner { gap: 12px; min-height: 65px; flex-wrap: wrap; padding-block: 11px; }
  .header__wordmark { font-size: 13px; letter-spacing: .08em; }
  .nav { order: 3; flex: 0 0 100%; display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
  .nav a { font-size: 12px; }
  .theme-toggle { padding: 0 10px; min-height: 34px; }
  .theme-toggle__text { font-size: 11px; }
  .hero { min-height: 0; }
  .hero__inner { display: flex; flex-direction: column; gap: 43px; padding-block: 46px 62px; }
  .hero__brand, .hero__message { width: 100%; }
  .eyebrow { margin-bottom: 16px; }
  .logo-frame { width: min(100%, 440px); padding: 27px; }
  .hero__message { max-width: 520px; }
  h1 { font-size: clamp(42px,9vw,62px); }
  .hero__intro { max-width: none; }
  .section { padding-block: 67px; }
  .intro__grid { grid-template-columns: 1fr; gap: 25px; }
  .story__heading { grid-template-columns: 1fr; gap: 18px; }
  .story__heading > p { max-width: 52ch; }
  .accordion__item summary { grid-template-columns: 35px 1fr 34px; gap: 9px; padding: 20px 13px; }
  .accordion__label { font-size: 18px; }
  .accordion__label small { font-size: 11px; }
  .accordion__control { width: 29px; height: 29px; }
  .accordion__content { padding: 0 20px 25px 56px; font-size: 14px; }
  .end-section { padding-block: 70px; }
  .footer__inner { gap: 9px; flex-direction: column; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 30px); }
  .nav a { font-size: 11px; }
  .theme-toggle__text { display: none; }
  .accordion__item summary { grid-template-columns: 26px 1fr 28px; gap: 8px; padding-inline: 9px; }
  .accordion__number { font-size: 11px; }
  .accordion__content { padding-inline: 43px 14px; }
  .hero__meta { gap: 9px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
