/* CORTEX content styles built on the LUMEN layout and motion classes. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.line-icon, .nav-cta svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
#top, #platform, #features, #registry, #activity, #process, #docs, #token { scroll-margin-top: 84px; }

.nav { top: calc(16px + var(--nav-entrance, 0px)); }
.nav .brand { letter-spacing: .10em; font-weight: 650; }
.nav-icon, .nav-ca { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; min-height: 38px; color: var(--fg-80); transition: background .25s, border-color .25s, color .25s; }
.nav-icon { width: 37px; }
.nav-icon svg, .nav-ca svg { width: 17px; height: 17px; }
.nav-ca { flex: 0 0 auto; gap: 8px; padding: 0 11px; color: var(--accent-2); border-color: rgb(150 117 255 / 22%); background: rgb(150 117 255 / 8%); font: 400 11px/1.2 var(--mono); white-space: nowrap; }
.nav-icon:hover, .nav-ca:hover { color: var(--fg); border-color: var(--line-2); background: rgb(255 255 255 / 5%); }
.nav.hide:focus-within, .nav.hide.menu-open { translate: -50% 0; }
.menu-btn span { margin: 0; }
.menu-btn span + span { margin: 0; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.status-dialog { width: min(450px, calc(100% - 36px)); margin: auto; padding: 24px; color: var(--fg); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 18px 60px rgb(0 0 0 / 60%); }
.status-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.dialog-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.045em; }
.dialog-heading button { width: 36px; height: 36px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px; font-size: 21px; line-height: 1; }
.status-dialog p { color: var(--fg-60); line-height: 1.55; }
.status-dialog input { display: block; width: 100%; margin-top: 15px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-0); color: var(--fg); font: 12px var(--mono); }

.hero-copy { max-width: min(650px, 57%); }
.hero h1 { letter-spacing: -.069em; }
.hero h1 em { letter-spacing: -.029em; color: #bcbcca; }
.hero .lead { max-width: 43ch; }
.hero-slogan { margin-top: 15px; color: var(--fg-50); font-size: 13px; }
.hero::after { background: radial-gradient(closest-side, rgb(205 210 242 / 6%), transparent); }
#gl { transition-duration: .36s; }
.signal-light { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px rgb(150 117 255 / 70%); }
.telemetry b { font-size: clamp(17px, 2vw, 23px); font-weight: 470; }
.scene-still { position: absolute; z-index: 1; pointer-events: none; object-fit: contain; opacity: .9; transition: opacity .26s; }
.hero-still { width: min(59vw, 920px); height: auto; right: max(2%, calc((100vw - 1470px)/2)); top: 44%; transform: translateY(-50%); }
.story-still { width: min(52vw, 790px); height: auto; right: 2%; top: 49%; transform: translateY(-50%); opacity: .68; }
.cta-still { width: min(68vw, 920px); height: auto; top: 45%; left: 50%; transform: translateX(-50%); opacity: .64; }
.cta .btn-ghost { background: rgb(12 13 19 / 74%); }
.gl-ready .scene-still { opacity: 0; }
.marquee-track { animation-play-state: paused; }
.marquee-track.loops { animation-play-state: running; }
.marquee-set { flex: none; display: flex; align-items: center; gap: clamp(30px, 6.1vw, 110px); padding-right: clamp(30px, 6.1vw, 110px); }
.marquee-set .logo i { width: 7px; height: 7px; border: 1px solid var(--accent-2); transform: rotate(45deg); opacity: .75; }
.marquee-set .logo.serif { color: var(--fg-80); }
.marquee-track { gap: 0; }
.logos { padding-top: 58px; }

.statement .fill-text { margin-top: 24px; }
.statement-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; max-width: 900px; margin: 32px 0 0 auto; color: var(--fg-60); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.statement-copy p { max-width: 41ch; }
.statement-foot p { color: var(--fg-60); }
.statement-foot strong { color: var(--fg); font-weight: 500; }

.morph::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 47% at 73% 48%, rgb(137 128 176 / 8%), transparent 70%); }
.morph-inner { position: relative; z-index: 2; }
.phase-note { color: var(--fg-50); font: 12px/1.5 var(--mono); }
.stage .phase-cta { align-self: flex-start; }
.stage .num { font-family: var(--mono); text-transform: uppercase; letter-spacing: .095em; }
.stage h3 { text-wrap: balance; }
.morph .rail { z-index: 2; bottom: 37px; font-family: var(--mono); }
.rail b { color: var(--fg-80); font-weight: 500; }
.layer-hud { inset: 0; width: 100%; height: 100%; opacity: 0; translate: none; z-index: 1; transition: opacity .33s; }
.layer-hud.on { opacity: 1; }
.layer-hud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.layer-hud path { fill: none; stroke: rgb(201 186 255 / 64%); stroke-width: 1; }
.layer-hud circle { fill: var(--accent-2); }
.layer-hud .tag { opacity: 1; border-radius: 5px; border-color: rgb(201 186 255 / 20%); background: rgb(12 12 20 / 85%); font: 11px/1 var(--mono); color: var(--accent-2); }
.layer-hud [data-layer="0"] { left: 50.8%; top: 25%; }
.layer-hud [data-layer="1"] { right: 5.3%; top: 24%; }
.layer-hud [data-layer="2"] { left: 53.5%; bottom: 19%; }
.layer-hud [data-layer="3"] { right: 5.3%; bottom: 20%; }
.gl-ready.has-layer-labels .identity-chips { opacity: 0; }
html:not(.scroll-scenes) .morph { height: auto; padding: 80px 0; background: var(--bg-0); }
html:not(.scroll-scenes) .morph-inner { height: auto; grid-template-columns: 1fr; padding-bottom: 0; }
html:not(.scroll-scenes) .stages { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px 40px; }
html:not(.scroll-scenes) .stage { position: relative; opacity: 1; visibility: visible; inset: auto; justify-content: flex-start; }
html:not(.scroll-scenes) .morph :is(.hud, .rail, .story-still) { display: none; }

.bento .panel { min-height: 190px; }
.fusion { display: grid; grid-template-columns: minmax(94px, .85fr) minmax(30px, 1.35fr) minmax(100px, 1fr); place-items: center; gap: 0; padding: 16px 24px; }
.fusion-inputs { display: grid; gap: 20px; width: 100%; }
.fusion-inputs span, .fusion-result { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: rgb(255 255 255 / 4%); text-align: center; font-size: 12px; color: var(--fg-80); }
.fusion svg { width: 100%; height: 108px; overflow: visible; }
.fusion path, .router .wire { fill: none; stroke: var(--line-2); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.fusion-result { display: grid; justify-items: center; gap: 4px; min-width: 118px; padding-inline: 7px; }
.signal-path { fill: none; stroke: var(--accent-2) !important; stroke-linecap: round; stroke-width: 2px !important; stroke-dasharray: 3 145; animation: signal-flow 3.6s linear infinite; animation-play-state: paused; vector-effect: non-scaling-stroke; }
.cell.in .signal-path { animation-play-state: running; }
@keyframes signal-flow { to { stroke-dashoffset: -148; } }
.dna-panel { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 18px 11px; place-items: center; }
.dna-panel svg { width: 70px; height: 108px; stroke: var(--accent-2); stroke-width: 1.2; }
.dna-panel .rungs { stroke: var(--line-2); }
.dna-panel div { display: grid; gap: 12px; font: 11px/1.35 var(--mono); color: var(--fg-80); }
.module-rows { display: grid; align-content: center; gap: 7px; padding: 12px; }
.module-rows div { display: flex; gap: 7px; justify-content: space-between; align-items: center; padding: 9px 7px; border-bottom: 1px solid var(--line); color: var(--fg-80); font-size: 12px; }
.module-rows div:last-child { border-bottom: 0; }
.module-rows b { color: var(--accent-2); font: 10px/1.3 var(--mono); }
.router .hub circle { fill: var(--accent); }
.router .node text { fill: var(--fg-80); }
.evolution-flow { display: grid; justify-items: stretch; align-content: center; padding: 16px; }
.evolution-flow span { padding: 6px 9px; font: 11px/1.4 var(--mono); color: var(--fg-80); border: 1px solid var(--line-2); border-radius: 7px; }
.evolution-flow i { position: relative; width: 1px; height: 14px; margin-left: 23px; background: var(--line-2); }
.evolution-flow i::after { content: ""; position: absolute; left: -2px; bottom: 1px; width: 5px; height: 5px; transform: rotate(45deg); border-right: 1px solid var(--accent-2); border-bottom: 1px solid var(--accent-2); }
.evolution-flow span:last-child { color: var(--accent-2); border-color: rgb(150 117 255 / 30%); }
.registry-record { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 22px; padding: 20px; }
.registry-record > div { display: grid; justify-items: start; gap: 8px; font-size: 16px; }
.record-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-3); }
.registry-record dl { display: grid; gap: 9px; padding-left: 15px; border-left: 1px solid var(--line); }
.registry-record dl div { display: grid; gap: 1px; }
.registry-record dt { color: var(--fg-50); font: 10px/1.4 var(--mono); }
.registry-record dd { color: var(--fg-80); font-size: 12px; }
.lab-visual { background: radial-gradient(ellipse, rgb(150 117 255 / 10%), transparent 70%), rgb(255 255 255 / 2%); display: grid; place-items: center; }
.lab-visual img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.lab-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 500; }
.lab-link:hover { color: var(--fg); }

.mock-main { min-width: 0; }
.mock-side button { text-align: left; padding: 8px 10px; color: var(--fg-60); border-radius: 8px; transition: color .2s, background .2s; }
.mock-side button:is(.act, :hover) { color: var(--fg); background: rgb(255 255 255 / 6%); }
.mock-side .ws img { border-radius: 6px; background: rgb(150 117 255 / 12%); }
.mock-body { min-height: 420px; }
.mock-h h3 { font-size: 19px; font-weight: 530; }
.activity-state { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--fg-60); font: 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.activity-panel { display: grid; gap: 14px; color: var(--fg-60); font-size: 14px; }
.kpi dt { color: var(--fg-60); font-size: 12px; line-height: 1.4; }
.kpi dd { margin-top: 5px; font-size: 24px; line-height: 1.25; color: var(--fg-60); font-family: var(--mono); }
.activity-empty { display: grid; place-items: center; align-content: center; min-height: 172px; color: var(--fg-60); text-align: center; background: repeating-linear-gradient(0deg, transparent, transparent 31px, rgb(255 255 255 / 5%) 31px, rgb(255 255 255 / 5%) 32px), rgb(255 255 255 / 2%); }
.activity-empty span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-0); font: 12px/1.4 var(--mono); }
.activity-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.activity-summary div, .service-list div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-summary dt, .service-list dt { color: var(--fg-80); }
.service-list { padding: 5px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgb(255 255 255 / 2%); }
.service-list div:last-child { border-bottom: 0; }
.float .ic img { flex: none; }

.stats .giant { font-size: clamp(100px, 24vw, 335px); }
.stat-grid b { font-size: clamp(28px, 4vw, 58px); }
.stack-card .term .bar { align-items: center; }
.stack-card .term .bar b { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--fg-50); }
.stack-card .term .k { margin-right: 6px; color: var(--accent-2); }
.memory-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 0 8px; padding: 22px; text-align: center; font: 11px/1.35 var(--mono); }
.memory-diagram > span, .memory-core { display: grid; place-items: center; padding: 9px 5px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-2); color: var(--fg-80); }
.memory-core { grid-column: 1/-1; display: flex; justify-content: center; gap: 10px; color: var(--accent-2); }
.memory-join { grid-column: 1/-1; display: flex; align-items: stretch; justify-content: space-around; height: 39px; }
.memory-join i { width: 1px; background: linear-gradient(var(--line-2), var(--accent-2)); }
.launch-sequence .trace { grid-template-columns: minmax(120px, .35fr) 1fr; }
.launch-sequence .summary { justify-content: flex-start; }
.quote h3 { margin-bottom: 12px; font-size: clamp(20px, 2vw, 25px); font-weight: 510; letter-spacing: -.038em; }
.quote > p { color: var(--fg-60); font-size: 16px; }
.voices .cols { height: 606px; }
.voices .quote { display: flex; flex-direction: column; justify-content: center; min-height: 200px; }
.col .col-track { animation-play-state: paused; }
.col .col-track.loops { animation-play-state: running; }
.cols:hover .col-track.loops { animation-play-state: paused; }
.plans .plan { min-height: 218px; }
.plan [data-token-panel] { color: var(--fg-80); line-height: 1.56; }
.plan [data-token-panel="status"] { color: var(--accent-2); }
.foot-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
.foot-grid h2 { margin-bottom: 14px; font-size: 14px; font-weight: 530; }

.entry-page { display: grid; min-height: 100svh; grid-template-rows: auto 1fr auto; }
.entry-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.entry-header .brand { letter-spacing: .1em; }
.entry-main { align-self: center; display: grid; justify-items: start; gap: 24px; padding-block: 75px 100px; }
.entry-main .display { font-size: clamp(58px, 10vw, 138px); }
.entry-main .lead { color: var(--fg-70, var(--fg-60)); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-footer { color: var(--fg-60); border-top: 1px solid var(--line); padding-block: 15px; font-size: 13px; }

@media (max-width: 1080px) {
  .nav .menu-btn { display: grid; grid-template-rows: repeat(2, 1.5px); place-content: center; gap: 4.5px; }
  .nav .nav-links { display: flex; position: absolute; inset: calc(100% + 8px) 0 auto; flex-wrap: wrap; gap: 4px; padding: 10px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-5px); border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg-2); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.menu-open .nav-links { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mock-body .mock-side { display: flex; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .mock-body .mock-side .ws { display: none; }
  .mock-url { padding-inline: 20px; }
  .hero-copy { max-width: min(560px, 58%); }
  .layer-hud .tag { padding: 6px 7px; font-size: 9px; }
}

@media (max-width: 900px) {
  .hero { justify-content: flex-start; min-height: 100svh; padding: clamp(265px, 42svh, 430px) 0 32px; }
  .hero-still { width: min(80vw, 530px); top: clamp(157px, 25svh, 265px); left: 50%; right: auto; transform: translate(-50%, -50%); }
  .story-still { width: min(77vw, 570px); top: 31%; left: 50%; right: auto; transform: translate(-50%, -50%); }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(53px, 11.5vw, 94px); margin: 17px 0 17px; }
  .hero .lead { margin-bottom: 24px; }
  .telemetry { margin-top: 27px; }
  .telemetry b { font-size: clamp(16px, 3vw, 22px); }
  .logos { padding-top: 31px; }
  .statement-copy { margin-left: 0; }
  .morph-inner { padding-bottom: 57px; }
  .morph .stages { height: min(255px, 38svh); }
  .morph .stage { justify-content: end; gap: 13px; }
  .morph .rail { bottom: 22px; }
  .morph .layer-hud { display: none; }
  .gl-ready.has-layer-labels .identity-chips { opacity: 1; }
  html:not(.scroll-scenes) .morph .stages { height: auto; }
  html:not(.scroll-scenes) .morph .stage { justify-content: start; }
  .mock-body { min-height: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav .brand { letter-spacing: .065em; gap: 4px; }
  .nav-ca { padding-inline: 7px; gap: 5px; }
  .nav-cta { gap: 2px; }
  .nav-icon { width: 32px; }
  .nav .menu-btn { width: 33px; height: 36px; margin-left: 2px; }
  .hero-ctas { gap: 9px; }
  .hero-ctas .btn { height: 49px; padding-inline: 16px; }
  .hero .lead { font-size: 16px; }
  .hero .launch { font-size: 12px; }
  .hero-slogan { margin-top: 12px; font-size: 12px; }
  .statement-copy { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .stage .chips { gap: 5px; }
  .stage .chips .chip { padding: 4px 8px; font-size: 10px; gap: 5px; }
  .stage .chip i { width: 4px; height: 4px; }
  .morph .stage h3 { font-size: clamp(35px, 10vw, 58px); }
  .morph .stage p { font-size: 15px; line-height: 1.5; }
  html:not(.scroll-scenes) .stages { grid-template-columns: 1fr; gap: 50px; }
  .bento .panel { min-height: 155px; }
  .fusion { grid-template-columns: minmax(78px, 1fr) minmax(20px, .8fr) minmax(74px, 1fr); padding: 12px 10px; }
  .fusion-inputs span, .fusion-result { padding-inline: 5px; font-size: 11px; }
  .fusion-result { min-width: 0; width: 100%; }
  .dna-panel { grid-template-columns: 1fr 1fr; }
  .activity-summary { grid-template-columns: 1fr; gap: 0; }
  .activity-empty { min-height: 126px; }
  .mock-side button { padding: 5px 8px; font-size: 12px; }
  .kpis { gap: 7px; }
  .kpi { padding: 10px; }
  .cta-still { top: 52%; width: min(110vw, 580px); max-width: none; }
  .foot-grid { row-gap: 20px; }
}

@media (max-width: 360px) {
  .nav-ca span { display: none; }
  .nav-ca { width: 29px; }
  .nav .brand { font-size: 15px; }
}

@media (max-width: 900px) and (max-height: 620px) {
  .morph .stages { height: min(275px, 51svh); }
  .morph .stage { gap: 9px; }
  .morph .stage h3 { font-size: clamp(28px, 7.5vw, 47px); }
}

@media (prefers-reduced-motion: reduce) {
  .gl-ready .hero-still { opacity: 0; }
  .gl-ready .cta-still { opacity: .64; }
  .marquee, .voices .cols { mask-image: none; }
  .marquee-track { width: 100%; justify-content: center; }
  .marquee-set { flex: 1; flex-wrap: wrap; justify-content: center; gap: 16px 28px; padding: 0 var(--gutter); }
  .voices .cols { height: auto; }
  .marquee-set[aria-hidden], .col .col-track > [aria-hidden] { display: none; }
  .stack .stack-card { position: relative; top: auto; }
}
