@font-face { font-family: "Geist"; src: url("assets/fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "HarmonyOS Sans SC"; src: url("assets/fonts/harmonyos-sans-sc.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #11110f;
  --panel: #1b1a17;
  --amber: #f5a623;
  --cream: #f2ebdd;
  --muted: #9b978d;
  --line: rgba(242, 235, 221, 0.16);
  --line-bright: rgba(245, 166, 35, 0.42);
  --sans: "HarmonyOS Sans SC", "Geist", sans-serif;
  --latin: "Geist", "HarmonyOS Sans SC", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--cream); background: var(--bg); font-family: var(--sans); font-synthesis: none; }
body::before { position: fixed; z-index: 100; inset: 0; pointer-events: none; content: ""; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
em { color: var(--amber); font-style: normal; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 10px 14px; color: var(--bg); background: var(--amber); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.boot-screen { display: none; position: fixed; z-index: 300; inset: 0; place-items: center; color: var(--muted); background: var(--bg); font: 400 .72rem/1 var(--sans); letter-spacing: .08em; transition: opacity .5s ease, visibility .5s ease; }
.js .boot-screen { display: grid; }
.boot-screen span, .boot-screen b { color: var(--amber); font-family: var(--mono); }
.boot-screen b { animation: blink .7s steps(1) infinite; }
body.ready .boot-screen { visibility: hidden; opacity: 0; }

.site-header { position: absolute; z-index: 20; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(calc(100% - 64px), 1500px); height: 82px; margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 650 1rem/1 var(--latin); }
.brand-mark { display: grid; width: 32px; height: 32px; border: 1px solid var(--amber); color: var(--amber); place-items: center; font: 700 .7rem/1 var(--mono); }
nav { display: flex; gap: clamp(20px, 3vw, 46px); font-size: .76rem; }
nav a { position: relative; padding: 8px 0; color: var(--muted); }
nav a::before { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; content: ""; background: var(--amber); transition: width .2s ease; }
nav a:hover, nav a.active { color: var(--cream); }
nav a:hover::before, nav a.active::before { width: 100%; }
.header-status { justify-self: end; color: var(--muted); font: 400 .64rem/1 var(--sans); letter-spacing: .08em; }
.header-status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); animation: pulse 2s ease-in-out infinite; }
.menu-button { display: none; border: 0; background: transparent; font: 400 .72rem/1 var(--sans); }

.hero, .section, .contact, footer { width: min(calc(100% - 64px), 1500px); margin-inline: auto; }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr auto; gap: 32px 5vw; min-height: 100svh; padding: 150px 0 32px; }
.hero::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 58%; width: 1px; content: ""; background: var(--line); }
.hero-copy { align-self: center; padding-bottom: 30px; }
.sys-label, .hero-meta, .code-label { font-family: var(--sans); letter-spacing: .08em; }
.change-log > .code-label, .pending { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.section-heading { font-family: var(--sans); letter-spacing: .07em; }
.sys-label { display: flex; justify-content: space-between; max-width: 670px; margin: 0 0 clamp(45px, 7vh, 90px); color: var(--muted); font-size: .62rem; }
.sys-label span:first-child { color: var(--amber); }
.hero h1 { max-width: 870px; margin: 0; font: 650 clamp(3.4rem, 5.15vw, 5.8rem)/1.06 var(--sans); letter-spacing: -.065em; }
.hero h1 span { color: var(--amber); }
.hero-intro { max-width: 620px; margin: 40px 0 0; color: var(--muted); font-size: clamp(.98rem, 1.3vw, 1.16rem); line-height: 1.9; }
.hero-intro strong { color: var(--cream); font-family: var(--latin); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 48px; }
.primary-action { display: flex; align-items: center; justify-content: space-between; width: 240px; padding: 18px 20px; color: var(--bg); background: var(--amber); font-weight: 650; }
.primary-action span { font-size: 1.3rem; transition: transform .2s ease; }
.primary-action:hover span { transform: translate(4px, 4px); }
.text-action { padding-bottom: 6px; border-bottom: 1px solid var(--muted); color: var(--muted); font-size: .82rem; }

.neural-terminal { position: relative; align-self: center; height: min(68vh, 690px); min-height: 560px; overflow: hidden; border: 1px solid var(--line-bright); background-color: var(--panel); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; box-shadow: 22px 22px 0 rgba(245,166,35,.04); }
.terminal-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; height: 45px; padding: 0 15px; border-bottom: 1px solid var(--line); background: rgba(17,17,15,.9); }
.terminal-bar span { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.terminal-bar span:first-child { border-color: var(--amber); background: var(--amber); }
.terminal-bar b { margin-left: 8px; color: var(--muted); font: 400 .57rem/1 var(--mono); }
.terminal-copy { position: relative; z-index: 3; padding: 28px; font: .72rem/1.8 var(--mono); }
.terminal-copy p { margin: 0; color: var(--muted); }
.terminal-copy i { color: var(--amber); font-style: normal; }
.terminal-copy .terminal-result { margin-top: 7px; color: var(--cream); }
.cursor { display: inline-block; width: .55em; height: 1em; margin-left: 5px; vertical-align: -.12em; background: var(--amber); box-shadow: 0 0 14px rgba(245,166,35,.65); animation: blink .8s steps(1) infinite; }
.network { position: absolute; z-index: 1; top: 48px; right: -5%; bottom: -3%; left: -5%; width: 110%; height: calc(100% - 42px); }
.network-lines path { fill: none; stroke-linecap: round; }
.dendrite-primary { stroke: var(--amber); stroke-width: 1.65; opacity: .48; }
.dendrite-secondary { stroke: var(--amber); stroke-width: 1; opacity: .27; }
.dendrite-twig { stroke: var(--amber); stroke-width: .55; opacity: .12; }
.axon-glow { stroke: var(--amber); stroke-width: 12; opacity: .045; filter: url(#soft-glow); }
.axon-main { stroke: #ffc45c; stroke-width: 1.8; opacity: .78; }
.axon-filament { stroke: var(--amber); stroke-width: .55; opacity: .2; }
.axon-collateral { stroke: var(--amber); stroke-width: .9; opacity: .28; }
.axon-terminal { stroke: var(--amber); stroke-width: .5; opacity: .13; }
.network-nodes circle { transform-box: fill-box; transform-origin: center; }
.network-nodes .core-halo { fill: url(#core-glow); opacity: .32; animation: breathe 4.2s ease-in-out infinite; }
.network-nodes .soma { fill: rgba(245,166,35,.09); stroke: var(--amber); stroke-width: 1.4; opacity: .72; filter: url(#soft-glow); }
.network-nodes .soma-inner { fill: rgba(245,166,35,.12); stroke: rgba(255,210,122,.6); stroke-width: .7; }
.network-nodes .nucleus { fill: #fff3d5; opacity: .85; filter: url(#soft-glow); }
.network-nodes .synapse { fill: var(--amber); opacity: .2; }
.signal-pulses circle { fill: #fff3d5; }
.visual-note, .visual-index { position: absolute; z-index: 4; color: var(--muted); font-size: .57rem; line-height: 1; letter-spacing: .1em; }
.visual-note { font-family: var(--sans); }
.visual-index { font-family: var(--mono); }
.note-a { top: 40%; right: 7%; }.note-b { right: 20%; bottom: 12%; }.visual-index { bottom: 22px; left: 28px; color: var(--amber); }
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .54rem; }

.section { padding: 130px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 100px; color: var(--muted); font-size: .61rem; }
.section-heading p { margin: 0; color: var(--cream); }
.section-heading p span { margin-right: 26px; color: var(--amber); font-family: var(--mono); }
.story-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 7vw; }
.story h2, .practice-intro h2, .aosp-title h2 { margin: 0; font: 400 clamp(3rem, 5.5vw, 6.2rem)/1.08 var(--sans); letter-spacing: -.055em; }
.story-body { max-width: 610px; }
.story-body p { margin: 0 0 24px; color: var(--muted); line-height: 2; }
.story-body .lead { margin-bottom: 34px; color: var(--cream); font-size: 1.35rem; font-weight: 600; }
.change-log { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.change-log > p { padding: 26px 20px; color: var(--amber); }
.change-log div { padding: 26px 20px; border-left: 1px solid var(--line); }
.change-log div span { color: var(--amber); font: .55rem/1 var(--mono); }
.change-log div b { display: block; margin: 34px 0 10px; font-size: 1.3rem; }
.change-log div p { margin: 0; color: var(--muted); font-size: .76rem; }

.practice { background: linear-gradient(90deg, transparent 0 7%, rgba(245,166,35,.025) 7% 93%, transparent 93%); }
.practice-intro, .aosp-title { display: grid; grid-template-columns: 1fr .65fr; gap: 9vw; align-items: end; margin-bottom: 90px; }
.practice-intro p, .aosp-title p { max-width: 510px; margin: 0; color: var(--muted); line-height: 1.9; }
.workflow { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.workflow li { display: grid; grid-template-columns: 70px 1fr auto; gap: 25px; align-items: center; min-height: 132px; border-bottom: 1px solid var(--line); }
.workflow > li > span { color: var(--amber); font: .62rem/1 var(--mono); }
.workflow b { font-size: 1.3rem; }
.workflow p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.workflow code { color: var(--muted); font: .57rem/1 var(--mono); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-card, .principle-card { position: relative; min-height: 330px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.tool-card > span { color: var(--amber); font: .57rem/1 var(--mono); }
.tool-card h3 { margin: 62px 0 20px; font: 650 2.5rem/1 var(--latin); letter-spacing: -.04em; }
.tool-card p { max-width: 260px; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.tool-card b { position: absolute; bottom: 28px; left: 30px; font-size: .72rem; }
.principle-card { grid-column: 1 / -1; min-height: auto; color: var(--bg); background: var(--amber); }
.principle-card .code-label { font-family: var(--sans); font-weight: 400; letter-spacing: .08em; }
.principle-card blockquote { margin: 40px 0 10px; font-size: clamp(1.7rem, 2.75vw, 2.75rem); font-weight: 500; font-synthesis: weight; line-height: 1.36; letter-spacing: -.02em; }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability { min-height: 400px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.capability:hover { background: var(--panel); }
.capability > span { color: var(--amber); font: .58rem/1 var(--mono); }
.capability h3 { margin: 80px 0 50px; font-size: clamp(2rem, 3vw, 3.3rem); line-height: 1.25; letter-spacing: -.04em; }
.capability p { color: var(--muted); font: .66rem/1.7 var(--mono); }
.capability i { display: block; margin-top: 22px; color: var(--cream); font-size: .75rem; font-style: normal; }

.channel { padding-bottom: 0; }
.channel-shell { position: relative; display: grid; grid-template-columns: .5fr 1.2fr 1fr; gap: 50px; align-items: center; min-height: 430px; padding: 70px; overflow: hidden; border: 1px solid var(--line-bright); background: var(--panel); }
.channel-shell::after { position: absolute; right: -80px; bottom: -140px; width: 400px; height: 400px; border: 1px solid var(--line-bright); border-radius: 50%; content: ""; box-shadow: 0 0 0 45px rgba(245,166,35,.02), 0 0 0 90px rgba(245,166,35,.015); }
.channel-shell h2 { margin: 24px 0 0; font-size: clamp(2.4rem, 4vw, 4.7rem); line-height: 1.12; letter-spacing: -.05em; }
.channel-shell > p { position: relative; z-index: 1; color: var(--muted); line-height: 1.9; }
.signal { display: flex; gap: 7px; }.signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: signal 1.4s ease infinite; }.signal i:nth-child(2) { animation-delay: .18s; }.signal i:nth-child(3) { animation-delay: .36s; }
.pending { position: absolute; right: 28px; bottom: 25px; color: var(--amber); font: .55rem/1 var(--mono); letter-spacing: .13em; }

.contact { padding: 150px 0 100px; }
.contact > .code-label { color: var(--amber); }
.contact h2 { margin: 70px 0 90px; font-size: clamp(3.5rem, 8vw, 8.5rem); line-height: 1.03; letter-spacing: -.07em; }
.contact h2 > span { color: var(--amber); font-family: var(--latin); }
.contact-note { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer { display: flex; justify-content: space-between; padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font: 400 .56rem/1 var(--sans); letter-spacing: .06em; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .3; transform: scale(.72); } }
@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes node { 50% { transform: scale(1.35); } }
@keyframes signal { 50% { opacity: .2; transform: translateY(-4px); } }
@keyframes breathe { 50% { opacity: .5; transform: scale(1.12); } }
@keyframes ring { 0% { opacity: .55; transform: scale(.72); } 100% { opacity: 0; transform: scale(1.7); } }

@media (max-width: 960px) {
  .site-header, .hero, .section, .contact, footer { width: min(calc(100% - 40px), 1500px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav, .header-status { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open nav { position: absolute; top: 70px; right: 0; display: flex; flex-direction: column; gap: 0; width: 220px; padding: 18px 24px; border: 1px solid var(--line-bright); background: var(--panel); }
  .site-header.menu-open nav a { padding: 14px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero::before { display: none; }
  .hero-copy { padding-bottom: 0; }
  .neural-terminal { height: 580px; }
  .story-grid, .practice-intro, .aosp-title { grid-template-columns: 1fr; }
  .story-body { margin-left: auto; }
  .change-log { grid-template-columns: repeat(2, 1fr); }
  .change-log > p { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .knowledge-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 270px; }
  .channel-shell { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, .hero, .section, .contact, footer { width: calc(100% - 32px); }
  .site-header { height: 70px; }
  .hero { gap: 48px; min-height: auto; padding: 118px 0 26px; }
  .sys-label { margin-bottom: 45px; }
  .sys-label span:last-child { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-intro { margin-top: 28px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 36px; }
  .neural-terminal { min-height: 420px; height: 490px; }
  .terminal-copy { padding: 20px; font-size: .62rem; }
  .network { transform: scale(1.18); transform-origin: 35% 60%; }
  .network-nodes circle:nth-child(n+7), .note-a { display: none; }
  .hero-meta span:nth-child(2) { display: none; }
  .section { padding: 88px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 65px; }
  .section-heading > span { line-height: 1.6; }
  .story h2, .practice-intro h2, .aosp-title h2 { font-size: 2.8rem; }
  .story-body { margin-top: 45px; }
  .change-log { grid-template-columns: 1fr; margin-top: 45px; }
  .change-log div { border-top: 1px solid var(--line); border-left: 0; }
  .workflow li { grid-template-columns: 36px 1fr; padding: 24px 0; }
  .workflow code { grid-column: 2; }
  .knowledge-grid { margin-top: 75px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 330px; padding: 26px; }
  .capability h3 { margin: 55px 0 40px; }
  .channel-shell { min-height: 540px; padding: 32px 26px; }
  .contact { padding: 100px 0 70px; }
  .contact h2 { margin: 55px 0 70px; }
  .contact-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-note p { margin: 0; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .boot-screen { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .signal-pulses { display: none; }
}

/* Full-screen pagination */
html, body { height: 100%; overflow: hidden; }
main { height: 100svh; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.site-header { position: fixed; }
.hero, .section, .contact {
  height: 100svh;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.section { display: flex; flex-direction: column; justify-content: center; padding-top: 92px; padding-bottom: 46px; }
.section-heading { flex: 0 0 auto; margin-bottom: clamp(34px, 5vh, 62px); }
.hero { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.hero .neural-terminal { align-self: stretch; height: auto; min-height: 0; }
.story-grid { min-height: 0; }
.story h2, .practice-intro h2, .aosp-title h2 { font-size: clamp(2.6rem, 4.7vw, 5.3rem); }
.story-body p { margin-bottom: 16px; line-height: 1.75; }
.change-log { margin-top: clamp(28px, 4vh, 48px); }
.change-log > p, .change-log div { padding-top: 18px; padding-bottom: 18px; }
.change-log div b { margin-top: 20px; }
.practice-intro, .aosp-title { margin-bottom: clamp(30px, 5vh, 58px); }
.workflow li { min-height: clamp(82px, 11vh, 108px); }
.knowledge-title { display: grid; grid-template-columns: 1fr .7fr; gap: 8vw; align-items: end; margin-bottom: clamp(28px, 5vh, 52px); }
.knowledge-title h2 { margin: 0; font-size: clamp(2.5rem, 4.45vw, 4.85rem); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.knowledge-title p { margin: 0; color: var(--muted); line-height: 1.8; }
.knowledge-grid { margin-top: 0; }
.tool-card { min-height: clamp(210px, 29vh, 290px); }
.principle-card { min-height: 120px; }
.principle-card blockquote { margin: 25px 0 4px; }
.aosp-title { grid-template-columns: 1fr .55fr; }
.capability { min-height: clamp(280px, 39vh, 350px); }
.capability h3 { margin: clamp(35px, 5vh, 58px) 0 clamp(24px, 4vh, 42px); font-size: clamp(1.65rem, 2.5vw, 2.7rem); }
.channel { padding-bottom: 46px; }
.channel-shell { min-height: min(58vh, 520px); }
.contact { position: relative; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; padding-bottom: 82px; }
.contact h2 { margin: clamp(45px, 8vh, 80px) 0 clamp(45px, 8vh, 80px); }
.contact footer { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; }

.page-rail { position: fixed; z-index: 30; top: 50%; right: max(18px, calc((100vw - 1570px) / 2)); display: flex; align-items: center; flex-direction: column; gap: 18px; transform: translateY(-50%); }
.page-count { color: var(--muted); font: .54rem/1 var(--mono); letter-spacing: .08em; writing-mode: vertical-rl; }
.page-count b { color: var(--amber); font-weight: 500; }
.page-dots { position: relative; z-index: 0; display: flex; align-items: center; flex-direction: column; gap: 10px; }
.page-dots::before { position: absolute; z-index: -1; top: 9px; bottom: 9px; left: 50%; content: ""; border-left: 1px dashed rgba(168,157,136,.42); transform: translateX(-50%); }
.page-dots button {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  opacity: .72;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.page-dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid rgba(168,157,136,.68);
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.page-dots button::after { position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; content: ""; border-radius: 50%; background: var(--amber); opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .25s ease, transform .25s ease; }
.page-dots button:hover,
.page-dots button:focus-visible { opacity: 1; outline: none; filter: drop-shadow(0 0 5px rgba(245,166,35,.28)); }
.page-dots button:hover::before,
.page-dots button:focus-visible::before { border-color: var(--paper); }
.page-dots button.active { opacity: 1; transform: scale(1.18); filter: drop-shadow(0 0 7px rgba(245,166,35,.42)); }
.page-dots button.active::before { border-color: var(--amber); box-shadow: 0 0 7px rgba(245,166,35,.32), inset 0 0 5px rgba(245,166,35,.16); }
.page-dots button.active::after { opacity: .92; transform: translate(-50%, -50%) scale(1); }
.mobile-pager { display: none; }

@media (max-height: 800px) and (min-width: 621px) {
  .section { padding-top: 78px; padding-bottom: 28px; }
  .section-heading { margin-bottom: 28px; }
  .story h2, .practice-intro h2, .aosp-title h2, .knowledge-title h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
  .story-body p { margin-bottom: 10px; font-size: .88rem; line-height: 1.6; }
  .change-log { margin-top: 22px; }
  .change-log > p, .change-log div { padding-top: 12px; padding-bottom: 12px; }
  .change-log div b { margin-top: 12px; }
  .practice-intro, .aosp-title, .knowledge-title { margin-bottom: 24px; }
  .workflow li { min-height: 72px; }
  .tool-card { min-height: 190px; }
  .tool-card h3 { margin-top: 38px; }
  .principle-card { min-height: 92px; padding-top: 20px; padding-bottom: 20px; }
  .principle-card blockquote { margin-top: 16px; font-size: 1.6rem; }
  .capability { min-height: 210px; }
  .capability h3 { margin: 28px 0 20px; }
}

@media (max-width: 960px) {
  .page-rail { display: none; }
  .mobile-pager { position: fixed; z-index: 40; right: 16px; bottom: 12px; left: 16px; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 12px; border: 1px solid var(--line-bright); background: rgba(27,26,23,.94); backdrop-filter: blur(10px); }
  .mobile-pager button { padding: 6px; border: 0; color: var(--muted); background: transparent; font: 400 .58rem/1 var(--sans); }
  .mobile-pager span { color: var(--muted); font: .55rem/1 var(--mono); }
  .mobile-pager b { color: var(--amber); }
  .hero, .section, .contact { padding-bottom: 66px; }
  .story-grid { grid-template-columns: .85fr 1.15fr; gap: 5vw; }
  .story-body { margin: 0; }
  .change-log { grid-template-columns: repeat(4, 1fr); }
  .change-log > p { display: none; }
  .change-log div { border-top: 0; }
  .knowledge-title { grid-template-columns: 1fr .8fr; }
  .knowledge-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-card { min-height: 220px; }
  .principle-card { grid-column: 1 / -1; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability { min-height: clamp(190px, 25vh, 240px); }
  .capability h3 { margin: 28px 0 20px; }
}

@media (max-width: 620px) {
  .hero, .section, .contact { min-height: 0; height: 100svh; }
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-top: 86px; padding-bottom: 62px; }
  .hero-copy { flex: 0 0 auto; }
  .hero h1 { max-width: 100%; font-size: clamp(1.7rem, 7vw, 2.25rem); }
  .hero-intro { max-width: 100%; margin-top: 18px; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.65; }
  .hero-actions { flex-direction: row; align-items: center; margin-top: 22px; }
  .primary-action { width: 205px; padding: 14px 16px; font-size: .78rem; }
  .text-action { display: none; }
  .sys-label { margin-bottom: 25px; }
  .hero .neural-terminal { flex: 1 1 auto; width: 100%; min-height: 0; height: auto; }
  .terminal-copy { padding: 14px 18px; font-size: .54rem; }
  .terminal-copy p:nth-child(2), .terminal-copy p:nth-child(3) { display: none; }
  .network { inset: 35px -10px -20px 0; height: calc(100% - 20px); }
  .visual-note { display: none; }
  .hero-meta { display: none; }
  .section { justify-content: center; padding-top: 76px; padding-bottom: 58px; }
  .section-heading { gap: 8px; margin-bottom: 24px; }
  .section-heading > span { font-size: .52rem; }
  .story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story h2, .practice-intro h2, .aosp-title h2, .knowledge-title h2 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .story-body { margin-top: 0; }
  .story-body, .tool-card, .capability, .channel-shell > p { min-width: 0; }
  .story-body .lead { margin-bottom: 10px; font-size: 1rem; }
  .story-body p { margin-bottom: 8px; overflow-wrap: anywhere; font-size: .72rem; line-height: 1.5; }
  .change-log { display: none; }
  .practice-intro, .aosp-title, .knowledge-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
  .practice-intro p, .aosp-title p, .knowledge-title p { font-size: .72rem; line-height: 1.55; }
  .workflow li { grid-template-columns: 28px 1fr; min-height: 0; padding: 11px 0; gap: 10px; }
  .workflow b { font-size: .95rem; }
  .workflow p { margin-top: 3px; font-size: .65rem; line-height: 1.4; }
  .workflow code { display: none; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 150px; padding: 16px; }
  .tool-card h3 { margin: 24px 0 10px; font-size: 1.45rem; }
  .tool-card p { margin: 0; overflow-wrap: anywhere; font-size: .62rem; line-height: 1.4; }
  .tool-card b { display: none; }
  .tool-card:nth-child(3) { grid-column: 1 / -1; min-height: 125px; }
  .principle-card { min-height: 90px; padding: 14px 16px; }
  .principle-card blockquote { margin: 10px 0 0; font-size: 1rem; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability { min-height: 190px; padding: 16px; }
  .capability h3 { margin: 25px 0 18px; font-size: 1.25rem; }
  .capability p { overflow-wrap: anywhere; font-size: .48rem; }
  .capability i { margin-top: 12px; overflow-wrap: anywhere; font-size: .58rem; }
  .channel-shell { min-height: 0; height: 65vh; padding: 28px 22px; }
  .channel-shell h2 { font-size: 2.4rem; }
  .contact { padding-top: 80px; padding-bottom: 82px; }
  .channel-shell > p { overflow-wrap: anywhere; }
  .contact h2 { margin: 35px 0 48px; font-size: clamp(2.35rem, 10.3vw, 3rem); letter-spacing: -.05em; }
  .contact footer { bottom: 54px; gap: 10px; padding: 15px 0; }
  footer span:nth-child(3) { display: none; }
  .story-grid, .practice-intro, .knowledge-grid, .capability-grid, .channel-shell { width: 100%; min-width: 0; max-width: 100%; }
  .site-header .menu-button { position: absolute; z-index: 5; top: 50%; right: 0; display: block; padding: 10px 0; color: var(--cream) !important; opacity: 1; visibility: visible; transform: translateY(-50%); }
}

@media (max-height: 520px) and (min-width: 621px) {
  .site-header { height: 62px; }
  .hero { justify-content: center; padding-top: 68px; padding-bottom: 56px; }
  .hero-copy { width: 58%; padding-bottom: 0; }
  .sys-label { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.15rem, 4.6vw, 2.75rem); line-height: 1.02; }
  .hero-intro { margin-top: 10px; font-size: .72rem; line-height: 1.5; }
  .hero-actions { margin-top: 12px; }
  .primary-action { width: 190px; padding: 10px 14px; font-size: .7rem; }
  .text-action { font-size: .68rem; }
  .hero .neural-terminal { top: 62px; height: calc(100% - 62px); }
}

/* Immersive hero: the neural system becomes the page atmosphere. */
.hero {
  isolation: isolate;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 78px;
  background-image: linear-gradient(rgba(242,235,221,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(242,235,221,.035) 1px, transparent 1px);
  background-size: 54px 54px;
}
.hero::before { display: none; }
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(17,17,15,.98) 28%, rgba(17,17,15,.82) 48%, rgba(17,17,15,.24) 70%, transparent 100%);
}
.hero-copy {
  position: relative;
  z-index: 3;
  align-self: auto;
  width: min(61%, 900px);
  padding: 0 0 12px;
}
.sys-label { max-width: 760px; margin-bottom: clamp(38px, 6vh, 68px); }
.hero h1 { max-width: 900px; font-size: clamp(3.5rem, 5.35vw, 6rem); }
.hero-intro { max-width: 650px; }
.hero-actions { margin-top: 40px; }
.hero .neural-terminal {
  position: absolute;
  z-index: 0;
  inset: 82px 0 0 25%;
  width: 75%;
  height: calc(100% - 82px);
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
}
.hero #neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .terminal-bar, .hero .terminal-copy, .hero .network, .hero .visual-note, .hero .visual-index { display: none; }
.hero .terminal-bar {
  position: absolute;
  z-index: 4;
  top: 5%;
  right: 3%;
  width: 270px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(17,17,15,.68);
  backdrop-filter: blur(8px);
}
.hero .terminal-copy {
  position: absolute;
  z-index: 4;
  top: 11%;
  right: 3%;
  width: 270px;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(90deg, transparent, rgba(17,17,15,.58));
  text-align: left;
}
.hero .network {
  top: -4%;
  right: -3%;
  bottom: -8%;
  left: 0;
  width: 103%;
  height: 112%;
  opacity: .82;
}
.hero .visual-note { opacity: .72; }
.hero .note-a { top: 38%; right: 9%; }
.hero .note-b { right: 24%; bottom: 13%; }
.hero .visual-index { bottom: 28px; left: auto; right: 3%; }
.hero-meta { position: absolute; z-index: 3; right: 0; bottom: 28px; left: 0; }

@media (max-width: 960px) {
  .hero { display: flex; padding-top: 100px; }
  .hero-copy { width: 72%; }
  .hero .neural-terminal { right: 0; left: 16%; width: 84%; }
  .hero::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(17,17,15,.96) 38%, rgba(17,17,15,.58) 70%, transparent 100%); }
}

@media (max-width: 620px) {
  .hero { display: flex; justify-content: center; gap: 0; padding-top: 76px; padding-bottom: 62px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .hero-intro { max-width: 90%; }
  .hero::after { background: linear-gradient(180deg, rgba(17,17,15,.9) 0%, rgba(17,17,15,.96) 56%, rgba(17,17,15,.68) 100%); }
  .hero .neural-terminal { inset: 70px -22% 0 10%; width: 112%; height: calc(100% - 70px); opacity: .48; }
  .hero .terminal-bar, .hero .terminal-copy, .hero .visual-note, .hero .visual-index { display: none; }
  .hero .network { top: 4%; right: -12%; bottom: -4%; left: 4%; width: 108%; height: 100%; transform: none; }
  .hero-actions { margin-top: 24px; }
}

/* Cinematic neural artwork replaces the procedural line drawing. */
.hero {
  background-image: none;
  --pointer-x: 72%;
  --pointer-y: 52%;
  --parallax-x: 0px;
  --parallax-y: 0px;
}
.hero .neural-terminal {
  inset: 82px 0 0;
  width: 100%;
  height: calc(100% - 82px);
  opacity: .94;
  background-image: url("assets/images/aligned-secondary-synapses-hero-v11.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.045);
  transition: transform .18s cubic-bezier(.2,.7,.2,1);
}
.hero #neural-canvas { display: none; }
.hero::after {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(17,17,15,.97) 23%, rgba(17,17,15,.7) 43%, rgba(17,17,15,.1) 61%, transparent 100%);
}
.hero::before { display: none; }
.neural-terminal { --activation-x: 72%; --activation-y: 52%; --activation-opacity: 0; }
.neural-activation {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background-position: inherit;
  background-repeat: no-repeat;
  background-size: inherit;
  filter: brightness(1.8) saturate(1.2) drop-shadow(0 0 6px rgba(245,166,35,.42));
  mix-blend-mode: screen;
  opacity: var(--activation-opacity);
  -webkit-mask-image: radial-gradient(circle 138px at var(--activation-x) var(--activation-y), #000 0 32%, rgba(0,0,0,.78) 55%, transparent 100%);
  mask-image: radial-gradient(circle 138px at var(--activation-x) var(--activation-y), #000 0 32%, rgba(0,0,0,.78) 55%, transparent 100%);
  transition: opacity .32s ease;
  will-change: opacity, mask-position;
}
@media (max-width: 960px) {
  .hero .neural-terminal { right: 0; left: 0; width: 100%; background-position: 64% center; }
}

@media (max-width: 620px) {
  .hero .neural-terminal { inset: 70px 0 0; width: 100%; height: calc(100% - 70px); opacity: .6; background-position: 68% center; }
  .hero::after { background: linear-gradient(180deg, rgba(17,17,15,.87) 0%, rgba(17,17,15,.96) 58%, rgba(17,17,15,.7) 100%); }
  .hero .neural-terminal { transform: none; }
  .neural-activation { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .neural-terminal { transform: none; }
  .neural-activation { transition: none; }
}
