/* ResBased perception-first redesign — V003.
   Visual thesis: a dark observational field, luminous relational signals,
   and explicit boundaries between perception, evidence, and authority. */
:root {
  --paper: #071018;
  --paper-2: #0b1722;
  --paper-3: #102431;
  --ink: #effbf8;
  --ink-2: #c8dedd;
  --muted: #8fa7ad;
  --blue: #59e8d2;
  --blue-dark: #8af7e8;
  --aqua: #8b7cff;
  --orange: #ffbf69;
  --lime: #a7ef78;
  --white: #0e1c27;
  --violet: #9888ff;
  --rose: #ff7e9f;
  --line: rgba(147, 210, 210, .14);
  --line-strong: rgba(147, 231, 222, .3);
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --max: 1320px;
  --radius: 2px;
}

html { background: #050a10; }
body {
  background:
    radial-gradient(circle at 88% 8%, rgba(139,124,255,.11), transparent 24rem),
    radial-gradient(circle at 8% 38%, rgba(89,232,210,.06), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}
body::selection { background: var(--blue); color: #061016; }
p { color: var(--muted); }
:focus-visible { outline-color: var(--blue); }
.site-grid {
  opacity: .45;
  background-image:
    linear-gradient(rgba(89,232,210,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89,232,210,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 10%, #000, transparent 72%);
}
.eyebrow { color: var(--blue); font-family: ui-monospace, "Cascadia Code", monospace; letter-spacing: .18em; }
.eyebrow span { color: var(--violet); }
.text-link { color: var(--blue); border-color: rgba(89,232,210,.34); }
.text-link:hover { color: var(--blue-dark); }

/* Shell */
.utility-bar {
  min-height: 36px;
  background: #03070c;
  border-bottom: 1px solid rgba(89,232,210,.12);
  color: #c9dcda;
}
.utility-bar p { color: #9bb0b5; }
.utility-signal { background: var(--blue); box-shadow: 0 0 0 4px rgba(89,232,210,.12), 0 0 22px rgba(89,232,210,.55); }
.utility-bar a:hover { color: var(--blue); }
.site-header {
  height: 88px;
  background: rgba(6, 14, 21, .88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(125%);
}
.brand { color: var(--ink); }
.brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background-color: rgba(89,232,210,.035);
  border: 1px solid rgba(89,232,210,.46);
  box-shadow: inset 0 0 22px rgba(89,232,210,.08), 0 0 26px rgba(89,232,210,.07);
}
.brand-lockup strong { font-size: .78rem; letter-spacing: .31em; }
.brand-lockup small { color: #7f989f; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { font-size: .77rem; }
.nav-direct, .nav-group>summary { color: #aec2c4; padding: 31px 0 29px; text-transform: uppercase; letter-spacing: .06em; }
.nav-group>summary::after { color: var(--blue); }
.nav-direct:hover, .nav-group>summary:hover, .nav-direct.active, .nav-group[data-active="true"]>summary { color: var(--ink); border-color: var(--blue); }
.nav-menu { background: #0a151f; border-color: var(--line-strong); box-shadow: var(--shadow); }
.nav-menu a { color: #b9cdce; }
.nav-menu a:hover { background: rgba(89,232,210,.055); color: var(--blue); }
.nav-menu .nav-menu-lead { border-color: var(--line); }
.nav-menu-lead strong { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-weight: 500; }
.nav-menu-lead span { color: var(--muted); }
.nav-account { border-color: var(--line); }
.nav-toggle { border-color: var(--line-strong); color: var(--ink); }

.btn {
  border-color: var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #061218 !important;
  box-shadow: 0 0 0 0 rgba(89,232,210,0);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .035em;
}
.btn:hover { background: var(--blue-dark); box-shadow: 0 0 30px rgba(89,232,210,.18); }
.btn.ghost { background: rgba(255,255,255,.018); color: var(--ink) !important; border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(89,232,210,.08); color: var(--blue-dark) !important; border-color: var(--blue); }

/* Perception-first home */
.perception-hero {
  min-height: min(840px, calc(100svh - 124px));
  max-width: 1500px;
  margin: 0 auto;
  padding: 76px clamp(24px,5vw,80px) 0;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr);
  grid-template-rows: 1fr auto;
  gap: 38px 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.perception-hero::before {
  content: "";
  width: 48rem;
  height: 48rem;
  position: absolute;
  right: -8rem;
  top: -6rem;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,232,210,.08), rgba(139,124,255,.035) 42%, transparent 70%);
  filter: blur(5px);
}
.perception-hero-copy { max-width: 810px; padding-bottom: 30px; }
.perception-hero h1 {
  max-width: 900px;
  margin: 0 0 28px;
  color: var(--ink);
  font: 390 clamp(4rem,7vw,7.7rem)/.88 "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: -.07em;
}
.perception-hero h1 em { color: var(--blue); font-style: normal; text-shadow: 0 0 45px rgba(89,232,210,.13); }
.hero-declaration { max-width: 760px; margin: 0 0 18px; color: var(--ink-2); font-size: clamp(1.17rem,1.8vw,1.48rem); line-height: 1.55; }
.hero-qualification { max-width: 700px; margin: 0; font-size: .88rem; line-height: 1.7; }
.perception-hero .hero-actions { margin-top: 34px; justify-content: flex-start; gap: 12px; }

.perception-field { width: min(39vw, 560px); aspect-ratio: 1; justify-self: end; position: relative; }
.perception-field::before, .perception-field::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.perception-field::before { background: radial-gradient(circle, rgba(89,232,210,.1), transparent 55%); filter: blur(14px); }
.perception-field::after { inset: 8%; border: 1px solid rgba(89,232,210,.1); box-shadow: inset 0 0 80px rgba(89,232,210,.025); }
.field-orbit { position: absolute; border: 1px solid rgba(147,210,210,.22); border-radius: 50%; }
.field-orbit::before { content: ""; width: 8px; height: 8px; position: absolute; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px rgba(89,232,210,.9); }
.field-orbit span { position: absolute; padding: 3px 7px; color: #819ba2; background: var(--paper); font: 600 .52rem/1.2 ui-monospace,monospace; letter-spacing: .12em; }
.orbit-one { inset: 9%; transform: rotate(-12deg); }
.orbit-one::before { left: 15%; top: 11%; }
.orbit-one span { right: 7%; top: 19%; transform: rotate(12deg); }
.orbit-two { inset: 20%; border-color: rgba(139,124,255,.34); transform: rotate(29deg); }
.orbit-two::before { right: 3%; top: 46%; background: var(--violet); box-shadow: 0 0 18px rgba(139,124,255,.9); }
.orbit-two span { left: -5%; bottom: 23%; color: #a99fff; transform: rotate(-29deg); }
.orbit-three { inset: 32%; border-style: dashed; border-color: rgba(255,191,105,.3); }
.orbit-three::before { right: 12%; bottom: 14%; background: var(--orange); box-shadow: 0 0 18px rgba(255,191,105,.8); }
.orbit-three span { left: 50%; bottom: -8px; color: var(--orange); transform: translateX(-50%); }
.field-core { width: 32%; aspect-ratio: 1; position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-content: center; gap: 5px; text-align: center; transform: translate(-50%,-50%); border: 1px solid rgba(89,232,210,.48); border-radius: 50%; background: rgba(8,22,30,.92); box-shadow: 0 0 48px rgba(89,232,210,.14), inset 0 0 24px rgba(89,232,210,.06); }
.field-core small { color: #789198; font: .5rem/1 ui-monospace,monospace; letter-spacing: .13em; }
.field-core strong { color: var(--ink); font-size: clamp(.75rem,1.15vw,1rem); letter-spacing: .09em; }
.field-core i { width: 5px; height: 5px; margin: 5px auto 0; border-radius: 50%; background: var(--blue); box-shadow: 0 0 15px var(--blue); }
.field-node { position: absolute; color: #789198; font: 600 .5rem/1 ui-monospace,monospace; letter-spacing: .1em; }
.field-node::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 7px 1px 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.node-a { left: 3%; top: 29%; }.node-b { right: 3%; top: 30%; }.node-c { left: 3%; bottom: 23%; }.node-d { right: 0; bottom: 20%; }
.perception-sequence { grid-column: 1/-1; min-height: 92px; display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line-strong); }
.perception-sequence span { min-width: 0; padding: 21px 14px 18px 0; display: grid; gap: 8px; position: relative; color: #b5c8ca; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.perception-sequence span::before { content: ""; width: 7px; height: 7px; position: absolute; top: -4px; left: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(89,232,210,.7); }
.perception-sequence span:not(:last-child)::after { content: ""; position: absolute; top: 31px; right: 18px; width: 35px; border-top: 1px solid #334751; }
.perception-sequence b { color: #91a9ae; font: 600 .66rem/1 ui-monospace,monospace; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section h2, .section-head h2, .split-head h2, .section-kicker h2 {
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 390;
  letter-spacing: -.055em;
}
.split-head h2 { font-size: clamp(2.7rem,5vw,5.4rem); }
.manifesto-line { margin-bottom: 58px; padding: 22px 0; display: grid; grid-template-columns: 140px 1fr; gap: 70px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.manifesto-line span { color: var(--violet); font: 650 .62rem/1.5 ui-monospace,monospace; letter-spacing: .13em; }
.manifesto-line p { max-width: 980px; margin: 0; color: var(--ink-2); font: 350 clamp(1.65rem,3vw,3rem)/1.23 "Segoe UI Variable Display",sans-serif; letter-spacing: -.03em; }
.premise-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 100px; align-items: end; }
.premise-layout h2 { margin: 0; font-size: clamp(3rem,5.5vw,6rem); line-height: .94; }
.premise-copy .lead { color: var(--ink-2); font-size: 1.32rem; line-height: 1.55; }
.principle-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-strong); }
.principle-card { min-height: 220px; padding: 22px 25px 22px 0; border-bottom: 1px solid var(--line); }
.principle-card:not(:last-child) { margin-right: 25px; border-right: 1px solid var(--line); }
.principle-card>span { color: var(--blue); font: .58rem/1 ui-monospace,monospace; }
.principle-card h3 { margin: 42px 0 12px; color: var(--ink); font-size: 1.35rem; font-weight: 480; letter-spacing: -.02em; }
.principle-card p { margin: 0; font-size: .87rem; }

.story-band { background: #0b1021; border-top: 1px solid rgba(139,124,255,.2); border-bottom: 1px solid rgba(139,124,255,.18); position: relative; overflow: hidden; }
.story-band::before { content: ""; width: 45rem; height: 45rem; position: absolute; right: -18rem; top: -18rem; border: 1px solid rgba(139,124,255,.13); border-radius: 50%; box-shadow: inset 0 0 100px rgba(139,124,255,.035); }
.story-inner { position: relative; }
.story-inner .eyebrow { color: var(--violet); }
.home-timeline { margin: 78px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(139,124,255,.28); }
.home-timeline li { display: grid; grid-template-columns: 16px 180px 1fr; gap: 25px; padding: 31px 0; position: relative; border-bottom: 1px solid rgba(147,210,210,.1); }
.timeline-marker { width: 9px; height: 9px; margin-top: 7px; position: relative; left: -4px; border: 1px solid var(--violet); border-radius: 50%; background: #0b1021; box-shadow: 0 0 16px rgba(139,124,255,.55); }
.timeline-period { padding-top: 2px; color: #a69cff; font: 650 .59rem/1.5 ui-monospace,monospace; letter-spacing: .1em; }
.home-timeline h3 { margin: 0 0 14px; color: var(--ink); font-size: 1.45rem; font-weight: 470; }
.home-timeline p { margin: 5px 0; max-width: 850px; font-size: .9rem; }
.home-timeline p strong { color: #c9d9da; font-weight: 620; }

.perception-stack { margin-top: 75px; display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line-strong); }
.stack-layer { min-height: 220px; padding: 22px 20px 22px 0; position: relative; border-bottom: 1px solid var(--line); }
.stack-layer:not(:last-child) { margin-right: 20px; border-right: 1px solid var(--line); }
.stack-layer::before { content: ""; width: 8px; height: 8px; position: absolute; top: -5px; left: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 0 13px currentColor; }
.stack-layer>span { color: #637d84; font: .54rem/1 ui-monospace,monospace; }
.stack-layer strong { display: block; margin: 62px 0 10px; color: var(--ink); font-size: 1.05rem; font-weight: 570; }
.stack-layer p { margin: 0; font-size: .77rem; line-height: 1.55; }
.stack-violet::before { background: var(--violet); }.stack-cyan::before { background: var(--blue); }.stack-blue::before { background: #66a4ff; }.stack-amber::before { background: var(--orange); }.stack-green::before { background: var(--lime); }.stack-white::before { background: var(--ink); }
.perception-portfolio { margin-top: 60px; }
.portfolio-card { background: #0b1722; border-color: var(--line); }
.portfolio-card:first-child { background: linear-gradient(145deg,#102439,#0b1722); border-top-color: var(--violet); }
.portfolio-card:hover { border-color: var(--blue); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.portfolio-card h3 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 400; }
.portfolio-card p, .portfolio-card:first-child p { color: var(--muted); }
.portfolio-card:first-child .card-status { color: var(--violet); }

.contribution-band { background: linear-gradient(130deg,#0c2530,#161a38 68%,#22162f); border-top: 1px solid rgba(89,232,210,.2); border-bottom: 1px solid rgba(139,124,255,.18); }
.contribution-inner { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.contribution-intro { position: sticky; top: 135px; }
.contribution-intro h2 { margin: 0 0 25px; font-size: clamp(3rem,5vw,5.3rem); line-height: .94; }
.contribution-intro>p { color: #abc1c4; font-size: 1.05rem; }
.contribution-intro .hero-actions { justify-content: flex-start; margin-top: 30px; }
.contribution-route { border: 1px solid rgba(147,210,210,.22); background: rgba(2,8,13,.25); }
.route-origin, .route-destination { padding: 25px; display: grid; gap: 7px; background: rgba(89,232,210,.055); }
.route-origin span, .route-destination span { color: var(--blue); font: 650 .59rem/1 ui-monospace,monospace; letter-spacing: .12em; }
.route-origin strong, .route-destination strong { color: var(--ink); font-size: 1rem; font-weight: 550; }
.contribution-route ol { margin: 0; padding: 10px 25px; list-style: none; }
.contribution-route li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(147,210,210,.12); }
.contribution-route li>span { color: var(--violet); font: .57rem/1.5 ui-monospace,monospace; }
.contribution-route li div { display: grid; gap: 4px; }
.contribution-route li strong { color: var(--ink); font-weight: 550; }
.contribution-route li small { color: #91a9ae; }
.route-destination { background: rgba(139,124,255,.07); }
.route-destination span { color: var(--violet); }
.route-destination small { color: #8ca3a9; }

.status-section { border-top: 0; }
.status-table { border-top-color: var(--blue); }
.status-row { border-color: var(--line); }
.status-chip { color: var(--ink); }
.status-chip.status-pass { color: var(--lime); background: rgba(167,239,120,.05); }
.status-chip.status-progress { color: var(--blue); background: rgba(89,232,210,.05); }
.status-chip.status-hold { color: var(--orange); background: rgba(255,191,105,.06); }
.writing-section { border-top: 1px solid var(--line); }
.writing-card { background: #0b1722; border-color: var(--line); }
.writing-card>span { color: var(--violet); }
.writing-card h3 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 430; }
.perception-final { background: #091019; border-top: 1px solid var(--line-strong); }
.perception-final h2 { font-family: "Segoe UI Variable Display",sans-serif; font-weight: 380; }

/* Public-onramp refinement — tighter hierarchy, one inspectable scenario, fewer competing cards. */
.home-system-inner { display: grid; gap: 54px; }
.identity-path { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(139,124,255,.32); border-bottom: 1px solid rgba(147,210,210,.12); }
.identity-path article { min-width: 0; padding: 24px 28px 25px 0; position: relative; }
.identity-path article:not(:last-child) { margin-right: 28px; border-right: 1px solid rgba(147,210,210,.12); }
.identity-path article:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; color: var(--violet); transform: translateY(-50%); }
.identity-path span { color: var(--violet); font: 650 .61rem/1.35 ui-monospace,monospace; letter-spacing: .1em; }
.identity-path h3 { margin: 32px 0 9px; color: var(--ink); font: 430 clamp(1.7rem,2.5vw,2.6rem)/1 "Segoe UI Variable Display",sans-serif; letter-spacing: -.035em; }
.identity-path p { margin: 0; font-size: .84rem; }
.home-system-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr); gap: 18px; align-items: stretch; }
.home-system-grid .perception-portfolio { margin: 0; grid-template-columns: 1fr; gap: 8px; }
.home-system-grid .portfolio-card,
.home-system-grid .portfolio-card:first-child { min-height: 0; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: end; border-top-width: 1px; }
.home-system-grid .portfolio-card .card-status { grid-column: 1/-1; }
.home-system-grid .portfolio-card h3 { margin: 28px 0 8px; font-size: clamp(1.7rem,2.4vw,2.35rem); }
.home-system-grid .portfolio-card p { grid-column: 1; margin: 0; }
.home-system-grid .portfolio-card .card-link { grid-column: 2; grid-row: 2/4; align-self: end; white-space: nowrap; }
.handoff-artifact { display: flex; flex-direction: column; border: 1px solid rgba(89,232,210,.26); background: linear-gradient(145deg,rgba(89,232,210,.055),rgba(139,124,255,.045)); }
.handoff-artifact header { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.handoff-artifact header>span { color: var(--blue); font: 650 .62rem/1.35 ui-monospace,monospace; letter-spacing: .1em; }
.handoff-artifact header mark { margin-left: 8px; padding: 4px 6px; color: var(--orange); border: 1px solid rgba(255,191,105,.35); background: rgba(255,191,105,.04); font: 650 .58rem/1 ui-monospace,monospace; letter-spacing: .06em; }
.handoff-artifact h3 { margin: 22px 0 0; color: var(--ink); font: 430 clamp(1.7rem,2.8vw,2.8rem)/1.04 "Segoe UI Variable Display",sans-serif; letter-spacing: -.04em; }
.handoff-artifact ol { margin: 0; padding: 10px 26px; list-style: none; }
.handoff-artifact li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(147,210,210,.1); }
.handoff-artifact li>span { color: var(--violet); font: 600 .58rem/1.5 ui-monospace,monospace; }
.handoff-artifact li div { display: grid; gap: 3px; }
.handoff-artifact li strong { color: var(--ink); font-size: .85rem; font-weight: 570; }
.handoff-artifact li small { color: var(--muted); font-size: .73rem; line-height: 1.45; }
.handoff-artifact footer { margin-top: auto; padding: 18px 26px 22px; }
.home-inspection-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 72px; align-items: start; }
.home-inspection-grid .section-head { max-width: none; text-align: left; }
.home-inspection-grid .section-head h2 { margin: 11px 0 18px; font-size: clamp(2.4rem,4vw,4.4rem); line-height: .98; }
.home-inspection-grid .section-head p { max-width: 620px; font-size: .94rem; }
.home-inspection-grid .status-table { margin-top: 38px; }
.home-inspection-grid .status-row { grid-template-columns: minmax(170px,1fr) auto; gap: 10px 18px; padding: 16px 4px; }
.home-inspection-grid .status-row p { grid-column: 1/-1; }
.home-inspection-grid .status-head { display: none; }
.home-inspection-grid .writing-grid { margin-top: 38px; grid-template-columns: 1fr; }
.home-inspection-grid .writing-card { min-height: 210px; }
.audience-cta { grid-template-columns: minmax(0,.9fr) minmax(500px,1.1fr); gap: 68px; }
.audience-cta>div>p { max-width: 680px; }
.audience-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid rgba(89,232,210,.34); }
.audience-links a { min-height: 102px; padding: 18px 18px 18px 0; display: grid; align-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.audience-links a:nth-child(odd) { margin-right: 18px; border-right: 1px solid var(--line); }
.audience-links a:hover span { color: var(--blue); }
.audience-links span { color: var(--ink); font-size: .9rem; font-weight: 620; }
.audience-links small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.daily-topic-featured { border-color: rgba(89,232,210,.36); background: linear-gradient(145deg,rgba(89,232,210,.06),rgba(139,124,255,.035)); }
.daily-topic-featured::before { content: "LATEST SHARED QUESTION"; display: block; margin-bottom: 16px; color: var(--blue); font: 650 .62rem/1 ui-monospace,monospace; letter-spacing: .11em; }
.daily-topic-list + .daily-voice-section { margin-top: 54px; }

/* Content pages and timeline */
.content-hero { padding: 85px 0 100px; border-color: var(--line); }
.content-hero-grid { background: radial-gradient(circle at 84% 28%, rgba(139,124,255,.12), transparent 26%), linear-gradient(90deg, transparent 64%, rgba(89,232,210,.025) 64%); }
.breadcrumbs { color: #708990; }
.content-hero h1 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 380; }
.content-hero-copy>p { color: var(--ink-2); }
.claim-labels span { color: #a8bec0; border-color: var(--line-strong); background: rgba(89,232,210,.025); }
.content-index { border-color: var(--line-strong); }
.content-index>span { color: var(--violet); }
.boundary-banner { background: linear-gradient(90deg,#101d2a,#11172a); border-bottom: 1px solid var(--line); }
.boundary-banner span { color: var(--orange); }
.boundary-banner p { color: #bdced0; }
.section-nav>span { color: var(--violet); }
.section-nav nav, .section-nav a { border-color: var(--line); }
.section-nav a { color: #7e989e; }
.content-section+.content-section { border-color: var(--line); }
.content-section>h2 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 390; }
.content-section>p.lead { color: var(--ink-2); font-family: "Segoe UI Variable Text",sans-serif; }
.content-card { background: rgba(14,28,39,.82); border-color: var(--line); }
.content-card:hover { border-color: var(--line-strong); }
.content-card h3 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 480; }
.content-flow { border-top-color: var(--blue); }
.content-flow li { border-color: var(--line); }
.content-flow li>span { color: var(--violet); }
.content-flow strong { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 520; }
.content-table-wrap { border-top-color: var(--blue); }
.content-table-wrap th { color: #759096; }
.content-table-wrap td { color: #b7ccce; border-color: var(--line); }
.content-table-wrap td:first-child { color: var(--ink); }
.content-quote { color: var(--ink); border-color: var(--violet); background: #0d1927; font-family: "Segoe UI Variable Display",sans-serif; font-weight: 390; }
.glossary-grid { border-color: var(--blue); }
.glossary-grid>div { border-color: var(--line); }
.glossary-grid dt { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; }
.content-checklist li { border-color: var(--line); background: rgba(14,28,39,.7); }
.content-checklist li span { color: var(--blue); }
.architecture-pathway { background: rgba(14,28,39,.78); border-color: var(--line); }
.architecture-pathway h3 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; }
.architecture-pathway li>span { background: #0a151f; border-color: var(--line); }
.architecture-pathway p strong { color: var(--ink); }

.diagram-shell { margin-top: 42px; padding: 28px; border: 1px solid var(--line-strong); background: #07131d; box-shadow: inset 0 0 70px rgba(89,232,210,.018); }
.diagram-caption { max-width: 960px !important; margin: 0 0 26px; color: var(--ink-2) !important; font-size: .93rem !important; }
.diagram-key { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.diagram-key span { padding: 6px 9px; border: 1px solid currentColor; font: 650 .68rem/1 ui-monospace,monospace; letter-spacing: .075em; }
.key-planned { color: var(--violet); }.key-current { color: var(--blue); }.key-never { color: var(--orange); }
.diagram-groups { display: grid; grid-template-columns: 1fr 24px 1.2fr 24px .9fr 24px 1.35fr; align-items: stretch; }
.diagram-group { min-width: 0; padding: 18px; border: 1px solid var(--line); background: rgba(14,28,39,.76); }
.diagram-group.group-planned { border-top: 3px solid var(--violet); }
.diagram-group.group-current { border-top: 3px solid var(--blue); }
.diagram-group header { min-height: 72px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.diagram-group header>span { color: var(--violet); font: 650 .66rem/1 ui-monospace,monospace; letter-spacing: .1em; }
.diagram-group.group-current header>span { color: var(--blue); }
.diagram-group h3 { margin: 9px 0 0; color: var(--ink); font-size: .95rem; font-weight: 570; line-height: 1.25; }
.diagram-group ol { margin: 18px 0 0; padding: 0; list-style: none; }
.diagram-group li { display: grid; text-align: center; }
.diagram-group li>strong { padding: 10px 8px; color: #c7d9da; border: 1px solid var(--line); background: #091721; font-size: .78rem; font-weight: 550; line-height: 1.4; }
.diagram-group li>small { color: var(--muted); }
.diagram-edge { padding: 8px 2px; color: #9db2b7; font: 600 .66rem/1.3 ui-monospace,monospace; text-transform: uppercase; letter-spacing: .055em; }
.diagram-edge b { color: var(--blue); font-size: .65rem; }
.diagram-connector { display: grid; place-items: center; color: var(--blue); font-size: 1rem; }
.diagram-alternatives { margin-top: 16px; padding: 11px; display: grid; gap: 6px; border: 1px dashed rgba(255,191,105,.28); }
.diagram-alternatives>span { color: var(--orange); font: 650 .64rem/1 ui-monospace,monospace; letter-spacing: .08em; }
.diagram-alternatives strong { color: #bdc8c9; font-size: .74rem; font-weight: 500; }
.diagram-laws { margin: 24px 0 0; padding: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; border-top: 1px solid var(--line); }
.diagram-laws li { padding: 7px 9px; color: #b1c3c5; border: 1px solid var(--line); background: rgba(255,255,255,.015); font: 600 .68rem/1.35 ui-monospace,monospace; }

.ecosystem-identity { width: min(560px,100%); margin: 28px auto; display: grid; justify-items: center; }
.ecosystem-identity>span { padding: 7px 0; display: grid; gap: 4px; color: var(--blue); text-align: center; }
.ecosystem-identity>span b { color: #97adb2; font: 600 .66rem/1 ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; }
.ecosystem-node { padding: 13px 15px; display: grid; gap: 5px; border: 1px solid var(--line-strong); background: #0c1a25; }
.ecosystem-node strong { color: var(--ink); font-size: .75rem; font-weight: 600; }
.ecosystem-node small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.identity-node { width: min(470px,100%); padding: 18px; text-align: center; border-color: rgba(89,232,210,.38); }
.identity-node:first-child { border-color: rgba(139,124,255,.4); }
.identity-node strong { font-size: 1.05rem; }
.ecosystem-program { padding: 24px; border: 1px solid var(--line); position: relative; }
.program-label { display: inline-block; margin-bottom: 22px; color: var(--blue); font: 650 .68rem/1 ui-monospace,monospace; letter-spacing: .1em; }
.ecosystem-input-and-producers { display: grid; grid-template-columns: minmax(200px,.55fr) minmax(0,1.45fr); gap: 34px; align-items: center; }
.ecosystem-community { display: grid; gap: 8px; }
.planned-label { color: var(--violet); font: 650 .66rem/1 ui-monospace,monospace; letter-spacing: .09em; }
.ecosystem-community>i { color: var(--violet); font-style: normal; text-align: center; }
.route-label { color: #98aeb2; font: 600 .65rem/1.4 ui-monospace,monospace; text-align: right; text-transform: uppercase; }
.ecosystem-producers { padding: 20px; border-left: 1px solid var(--line-strong); }
.ecosystem-producers>span { color: #9bb0b5; font: 600 .65rem/1.4 ui-monospace,monospace; letter-spacing: .08em; }
.ecosystem-producers>div { margin-top: 15px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ecosystem-producers strong { min-height: 64px; padding: 10px; display: grid; place-items: center; color: #c6d8d9; border: 1px solid var(--line); background: rgba(89,232,210,.025); font-size: .75rem; font-weight: 560; text-align: center; }
.ecosystem-governance { margin-top: 32px; padding-top: 24px; display: flex; align-items: stretch; gap: 7px; border-top: 1px solid var(--line); overflow-x: auto; }
.ecosystem-governance .ecosystem-node { min-width: 125px; flex: 1; }
.ecosystem-governance>span { align-self: center; color: #647c83; }
.ecosystem-governance .authority-node { border-color: rgba(255,191,105,.48); background: rgba(255,191,105,.04); }

.story-timeline { margin: 45px 0 0; padding: 0; list-style: none; }
.story-milestone { display: grid; grid-template-columns: 58px 1fr; gap: 28px; }
.story-milestone-rail { display: grid; grid-template-rows: 38px 1fr; justify-items: center; }
.story-milestone-rail span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); border: 1px solid rgba(89,232,210,.46); border-radius: 50%; background: var(--paper); font: .68rem/1 ui-monospace,monospace; box-shadow: 0 0 22px rgba(89,232,210,.06); }
.story-milestone-rail i { width: 1px; min-height: 100%; background: linear-gradient(var(--line-strong),var(--line)); }
.story-milestone:last-child .story-milestone-rail i { background: linear-gradient(var(--line-strong),transparent); }
.story-milestone>article { margin-bottom: 26px; padding: 28px 30px 32px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(14,28,39,.88),rgba(11,19,34,.86)); }
.story-milestone header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.story-period { color: var(--violet); font: 650 .72rem/1.4 ui-monospace,monospace; letter-spacing: .12em; }
.story-milestone header mark { padding: 6px 9px; color: var(--blue); border: 1px solid rgba(89,232,210,.24); background: rgba(89,232,210,.035); font: 650 .66rem/1 ui-monospace,monospace; letter-spacing: .06em; }
.story-milestone h3 { margin: 22px 0 20px; color: var(--ink); font: 420 clamp(1.65rem,2.8vw,2.45rem)/1.08 "Segoe UI Variable Display",sans-serif; letter-spacing: -.035em; }
.story-milestone dl { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.story-milestone dl>div { padding-top: 13px; border-top: 1px solid var(--line); }
.story-milestone dt { margin-bottom: 8px; color: #98adb2; font: 650 .68rem/1.35 ui-monospace,monospace; letter-spacing: .09em; text-transform: uppercase; }
.story-milestone dd { margin: 0; color: #b6cacc; font-size: .82rem; line-height: 1.65; }

/* Commons and forms */
.page-hero { padding-top: 120px; }
.page-hero h1 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; font-weight: 380; }
.page-hero p { color: var(--ink-2); }
.commons-hero { max-width: 1180px; text-align: center; }
.commons-hero h1 { max-width: 1050px; margin-left: auto; margin-right: auto; }
.commons-hero p { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.12rem; }
.commons-hero .hero-actions { justify-content: center; }
.commons-boundary { width: min(var(--max),calc(100% - 80px)); margin: 0 auto 38px; padding: 22px; display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line-strong); background: linear-gradient(90deg,rgba(89,232,210,.035),rgba(139,124,255,.05)); }
.commons-boundary div { display: grid; gap: 7px; }
.commons-boundary div>span { color: var(--blue); font: 650 .66rem/1 ui-monospace,monospace; letter-spacing: .1em; }
.commons-boundary div>strong { color: var(--ink); font-size: .82rem; font-weight: 520; }
.commons-boundary>i { color: var(--violet); font-style: normal; text-align: center; }
.commons-boundary>p { grid-column: 1/-1; margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #9bb0b5; font-size: .73rem; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.commons-shell { color: var(--ink); }
.commons-toolbar { border-color: var(--line); }
.tabs a { color: var(--muted); }
.tabs a.active { color: var(--blue); background: rgba(89,232,210,.05); border-color: var(--line-strong); }
.post-card, .post-detail, .discussion, .comment, .form-card, .search-result-card, .daily-topic-card, .daily-article-card { background: #0b1722; border-color: var(--line); color: var(--ink); }
.post-card h2, .post-detail h1, .discussion h2, .form-card h1, .form-card h2, .search-result-card h2 { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; }
.post-card p, .post-detail p, .comment p { color: #a9bec1; }
.pill { background: rgba(139,124,255,.08); color: #aaa1ff; }
.form-boundary, .consideration-note { margin: 25px 0; padding: 18px; display: grid; gap: 5px; border-left: 3px solid var(--violet); background: rgba(139,124,255,.055); }
.form-boundary strong, .consideration-note>span { color: var(--ink); }
.form-boundary span, .consideration-note p { color: var(--muted); font-size: .8rem; }
.consideration-note>span { color: var(--violet); font: 650 .67rem/1 ui-monospace,monospace; letter-spacing: .1em; }
.consideration-note a { color: var(--blue); font-size: .78rem; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select, .commons-toolbar select, .comment-form textarea, .search-page-form input, .nav-search input, .daily-filters input, .daily-filters select, .evidence-filters select { background: #07131c; border-color: var(--line-strong); color: var(--ink); }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .comment-form textarea:focus { box-shadow: 0 0 0 3px rgba(89,232,210,.08); }

/* Daily Resonance and existing public surfaces inherit the new field safely. */
.daily-filters, .daily-voice-section, .daily-related, .read-aloud, .evidence-filter-panel, .search-suggestions { background: #0b1722; border-color: var(--line); }
.daily-topic-card h2, .daily-article-card h2, .daily-article h1, .article-body h2, .article-body h3, .daily-discussion h2, .daily-section-head h2, .daily-related h2, .daily-voice-card strong { color: var(--ink); font-family: "Segoe UI Variable Display",sans-serif; }
.daily-voice-card, .series-link, .daily-related-links a { background: #08141e; border-color: var(--line); }
.daily-voice-card .voice-role, .series-link span { color: var(--violet); }
.article-body p, .ai-attribution-footer p, .ai-attribution-byline p { color: #b9ccce; }
.article-body blockquote, .article-callout, .ai-attribution, .daily-voice-boundary { background: #0d1927; border-color: var(--violet); color: #c3d5d6 !important; }
.ai-attribution strong, .ai-attribution-heading, .read-aloud h2 { color: var(--ink) !important; }
.article-body pre { background: #03080d; color: #d6efeb; }
.article-table-wrap table { background: #0b1722; }
.article-table-wrap td { color: #b8ccce; border-color: var(--line); }
.daily-editorial-disclosure { background: rgba(89,232,210,.04); border-color: var(--blue); color: var(--ink-2) !important; }

/* Footer */
.footer { background: #03080d; border-top: 1px solid rgba(89,232,210,.14); }
.footer p { color: #829aa0; }
.footer .brand { color: var(--ink); }
.footer .brand-mark { border-color: rgba(89,232,210,.38); }
.footer .brand-lockup small { color: #6f8990; }
.footer-status { color: var(--blue); }
.footer-status span { background: var(--blue); box-shadow: 0 0 10px rgba(89,232,210,.55); }
.footer-column h2 { color: #dcecea; }
.footer-column a { color: #8da4aa; }
.footer-column a:hover { color: var(--blue); }
.footer-legal { border-color: var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .orbit-one { animation: field-turn-one 32s linear infinite; }
  .orbit-two { animation: field-turn-two 26s linear infinite reverse; }
  .orbit-three { animation: field-pulse 7s ease-in-out infinite; }
  @keyframes field-turn-one { to { transform: rotate(348deg); } }
  @keyframes field-turn-two { to { transform: rotate(389deg); } }
  @keyframes field-pulse { 50% { opacity: .62; transform: scale(.97); } }
}

@media (max-width: 1120px) {
  .perception-hero { grid-template-columns: 1fr minmax(330px,.7fr); }
  .perception-field { width: min(43vw,500px); }
  .perception-stack { grid-template-columns: repeat(3,1fr); }
  .stack-layer:nth-child(3) { margin-right: 0; border-right: 0; }
  .contribution-inner { grid-template-columns: 1fr; gap: 60px; }
  .contribution-intro { position: static; max-width: 850px; }
  .home-system-grid, .home-inspection-grid, .audience-cta { grid-template-columns: 1fr; }
  .home-system-grid { gap: 30px; }
  .diagram-groups { grid-template-columns: 1fr; row-gap: 20px; }
  .diagram-connector { transform: rotate(90deg); min-height: 22px; }
  .ecosystem-producers>div { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 950px) {
  .site-header { height: 74px; }
  .nav { top: 74px; background: #08131d; border-color: var(--line-strong); }
  .nav-menu { background: #0b1722; }
  .content-hero-layout { grid-template-columns: minmax(0,1fr); }
  .content-hero-layout>* { min-width: 0; }
  .content-layout { grid-template-columns: minmax(0,1fr); }
  .content-layout>* { min-width: 0; }
  .section-nav { width: 100%; max-width: 100%; }
  .section-nav nav { max-width: 100%; }
  .perception-hero { min-height: auto; padding-top: 95px; grid-template-columns: 1fr; }
  .perception-hero-copy { max-width: 900px; }
  .perception-field { width: min(78vw,570px); justify-self: center; }
  .premise-layout { grid-template-columns: 1fr; gap: 40px; }
  .principle-grid { grid-template-columns: repeat(2,1fr); }
  .identity-path { grid-template-columns: 1fr; }
  .identity-path article:not(:last-child) { margin-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-path article:not(:last-child)::after { content: "↓"; right: 12px; top: auto; bottom: -11px; transform: none; }
  .principle-card:nth-child(2) { margin-right: 0; border-right: 0; }
  .story-milestone dl { grid-template-columns: 1fr; }
  .commons-boundary { grid-template-columns: 1fr; }
  .commons-boundary>i { transform: rotate(90deg); }
  .commons-boundary>p { grid-column: 1; }
  .diagram-groups { grid-template-columns: 1fr; }
  .diagram-connector { transform: rotate(90deg); min-height: 22px; }
  .ecosystem-input-and-producers { grid-template-columns: 1fr; }
  .ecosystem-producers { border-left: 0; border-top: 1px solid var(--line-strong); }
  .route-label { text-align: left; }
}

@media (max-width: 700px) {
  .content-hero h1 { font-size: clamp(2.65rem,12vw,4.1rem); overflow-wrap: anywhere; }
  .perception-hero { padding-left: 22px; padding-right: 22px; gap: 30px; }
  .perception-hero h1 { font-size: clamp(3.4rem,17vw,5.5rem); }
  .perception-hero .hero-actions, .contribution-intro .hero-actions { align-items: stretch; flex-direction: column; }
  .perception-hero .btn, .contribution-intro .btn { width: 100%; }
  .perception-field { width: min(92vw,470px); }
  .field-node { display: none; }
  .perception-sequence { grid-template-columns: repeat(2,1fr); }
  .perception-sequence span { border-top: 1px solid var(--line); }
  .perception-sequence span::before, .perception-sequence span::after { display: none; }
  .manifesto-line { grid-template-columns: 1fr; gap: 18px; margin-bottom: 65px; }
  .principle-grid, .perception-stack { grid-template-columns: 1fr; }
  .principle-card, .principle-card:not(:last-child), .stack-layer, .stack-layer:not(:last-child) { margin-right: 0; border-right: 0; }
  .home-timeline li { grid-template-columns: 14px 1fr; gap: 14px; }
  .home-timeline .timeline-period { grid-column: 2; }
  .home-timeline li>div:last-child { grid-column: 2; }
  .story-milestone { grid-template-columns: 38px 1fr; gap: 14px; }
  .story-milestone-rail span { width: 34px; height: 34px; }
  .story-milestone>article { padding: 22px 18px 25px; }
  .story-milestone header { display: grid; }
  .contribution-route ol { padding-left: 18px; padding-right: 18px; }
  .home-system-grid { grid-template-columns: minmax(0,1fr); }
  .home-system-grid .portfolio-card,
  .home-system-grid .portfolio-card:first-child { grid-template-columns: 1fr; }
  .home-system-grid .portfolio-card .card-link { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .handoff-artifact header mark { display: inline-block; margin: 9px 0 0; }
  .audience-links { grid-template-columns: 1fr; }
  .audience-links a:nth-child(odd) { margin-right: 0; border-right: 0; }
  .commons-boundary { width: calc(100% - 44px); }
  .diagram-shell { padding: 18px; }
  .ecosystem-program { padding: 16px; }
  .ecosystem-producers>div { grid-template-columns: 1fr; }
}

@media print {
  body { background: white !important; color: black !important; }
  .perception-field, .perception-sequence { display: none !important; }
  .story-milestone>article { background: white; color: black; }
}
