:root {
  --bg: #061113;
  --bg-soft: #0b1b1d;
  --panel: rgba(13, 31, 33, .76);
  --panel-solid: #0e2527;
  --ink: #f4f0e6;
  --muted: #91a5a3;
  --line: rgba(209, 238, 230, .13);
  --mint: #61e6bf;
  --mint-deep: #1ca982;
  --amber: #ffbb55;
  --coral: #ff6f61;
  --blue: #63a8ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Avenir Next", "DIN Alternate", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 3%, rgba(22, 122, 105, .15), transparent 31rem),
    radial-gradient(circle at 6% 36%, rgba(255, 111, 97, .08), transparent 28rem),
    linear-gradient(150deg, #071719 0%, #061113 55%, #091416 100%);
}

.grid-plane {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(130, 225, 204, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 225, 204, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .8) 38%, transparent 90%);
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(97, 230, 191, .12);
  filter: blur(.2px);
}

.orb::before, .orb::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: inherit;
}
.orb::before { inset: 42px; }
.orb::after { inset: 92px; }
.orb-a { right: -135px; top: 110px; animation: orbit-float 14s ease-in-out infinite; }
.orb-b { left: -250px; top: 900px; width: 520px; height: 520px; border-color: rgba(255, 187, 85, .08); animation: orbit-float 17s ease-in-out infinite reverse; }

.shell {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark, .footer-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(97, 230, 191, .45);
  border-radius: 15px 5px 15px 5px;
  color: var(--mint);
  background: rgba(97, 230, 191, .07);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 5px 5px 0 rgba(97, 230, 191, .08);
}

.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.live-pill, .ghost-button, .language-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 27, 29, .76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(12px);
}
.language-toggle {
  min-width: 48px;
  color: var(--mint);
  border: 1px solid rgba(97, 230, 191, .28);
  background: rgba(97, 230, 191, .055);
  font: 800 11px/1 "Avenir Next", "Trebuchet MS", sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.language-toggle:hover,
.language-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(97, 230, 191, .65);
  background: rgba(97, 230, 191, .11);
  outline: none;
}

.ghost-button { color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.ghost-button:hover { transform: translateY(-2px); border-color: rgba(97, 230, 191, .5); }
.cv-link {
  border-color: rgba(255, 187, 85, .25);
  color: #f4e6c8;
  background: rgba(255, 187, 85, .045);
}
.cv-link:hover { border-color: rgba(255, 187, 85, .58); }
.cv-link b { display: none; font-size: 10px; letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 187, 85, .11); }
.live-pill.online .live-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(97, 230, 191, .1); animation: live-pulse 1.8s infinite; }
.live-pill.offline .live-dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 97, .1); }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
  padding: 74px 2vw 66px;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .card-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 24px;
  font-family: "Iowan Old Style", "Baskerville", "Songti SC", serif;
  font-size: clamp(62px, 8.7vw, 132px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.065em;
}

.hero h1 em { color: var(--mint); font-weight: 500; }
.hero-lead {
  max-width: 760px;
  margin: 0;
  color: #b4c2bf;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.85;
}

.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 18px 13px 22px;
  border-radius: 15px 5px 15px 5px;
  color: #04110f;
  background: var(--mint);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 14px 35px rgba(28, 169, 130, .18);
  transition: transform .2s, box-shadow .2s;
}
.primary-button span { font-size: 20px; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(28, 169, 130, .28); }
.universe-button {
  position: relative;
  isolation: isolate;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid rgba(142, 121, 255, .52);
  border-radius: 5px 15px 5px 15px;
  color: #f5f2ff;
  background:
    linear-gradient(120deg, rgba(85, 208, 255, .08), rgba(142, 121, 255, .16)),
    rgba(10, 19, 35, .68);
  box-shadow: inset 0 0 28px rgba(142, 121, 255, .08), 0 16px 38px rgba(4, 8, 20, .28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.universe-button::before {
  content: "";
  position: absolute;
  inset: -80% -30%;
  z-index: -1;
  background: conic-gradient(from 120deg, transparent, rgba(100, 222, 255, .18), transparent 28%);
  animation: universe-glow 7s linear infinite;
}
.universe-button:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 222, 255, .82);
  box-shadow: inset 0 0 32px rgba(142, 121, 255, .14), 0 18px 48px rgba(61, 52, 150, .25);
}
.universe-button-star { color: #79e8ff; font-size: 17px; text-shadow: 0 0 14px rgba(121, 232, 255, .8); }
.universe-link {
  border-color: rgba(142, 121, 255, .32);
  background: rgba(95, 77, 184, .08);
}
.text-link { color: var(--muted); font-size: 13px; font-weight: 800; text-decoration-color: rgba(145, 165, 163, .38); text-underline-offset: 6px; }

.constellation-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 218, 208, .18);
  border-radius: 38px 8px 38px 8px;
  color: inherit;
  background:
    radial-gradient(circle at 50% 43%, rgba(97,230,191,.105), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(99,168,255,.11), transparent 28%),
    linear-gradient(145deg, rgba(9,30,33,.88), rgba(5,16,20,.96));
  box-shadow: inset 0 0 80px rgba(97,230,191,.025), 0 32px 90px rgba(0,0,0,.35);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.constellation-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image:
    linear-gradient(rgba(151,225,216,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,225,216,.1) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
}
.constellation-preview:hover,
.constellation-preview:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(97,230,191,.48);
  box-shadow: inset 0 0 90px rgba(97,230,191,.045), 0 42px 110px rgba(0,0,0,.45);
  outline: none;
}
.constellation-preview-head,
.constellation-preview-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.constellation-preview-head { border-bottom: 1px solid rgba(209,238,230,.09); }
.constellation-preview-head > div { display: flex; align-items: center; gap: 9px; }
.constellation-preview-head b { color: rgba(174,140,255,.92); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(97,230,191,.08), 0 0 16px rgba(97,230,191,.8);
  animation: live-pulse 1.8s infinite;
}
#constellation-preview-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.atlas-orbit {
  fill: none;
  stroke: rgba(116,197,196,.115);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}
.atlas-orbit.orbit-2 { stroke: rgba(174,140,255,.13); stroke-dasharray: 1 10; }
.atlas-orbit.orbit-3 { stroke: rgba(99,168,255,.09); }
.atlas-dust { fill: rgba(211,244,238,.52); }
.atlas-link {
  fill: none;
  stroke: rgba(174,140,255,.25);
  stroke-width: 1.15;
  stroke-dasharray: 2 5;
}
.atlas-node-halo {
  fill: rgba(174,140,255,.08);
  stroke: rgba(174,140,255,.2);
  filter: url("#atlas-glow");
}
.atlas-node-core {
  fill: #ae8cff;
  stroke: rgba(255,255,255,.7);
  stroke-width: .65;
}
.atlas-satellite { fill: #65cfff; opacity: .85; }
.atlas-node-label {
  fill: #e8efeb;
  font-family: "Avenir Next", "Noto Sans CJK SC", sans-serif;
}
.atlas-node-name { font-size: 13px; font-weight: 800; letter-spacing: .025em; }
.atlas-node-count {
  fill: #627c7b;
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.atlas-core-orbit {
  fill: none;
  stroke: rgba(97,230,191,.25);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}
.atlas-core-halo {
  fill: rgba(97,230,191,.06);
  stroke: rgba(97,230,191,.18);
  filter: url("#atlas-glow");
}
.atlas-core-star { fill: url("#atlas-core"); filter: url("#atlas-glow"); }
.atlas-core-name {
  fill: var(--ink);
  font-family: "Iowan Old Style", "Songti SC", serif;
  font-size: 12px;
  font-weight: 600;
}
.atlas-core-meta,
.atlas-live-meta {
  fill: #607b7b;
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}
.atlas-line-node,
.atlas-core { transform-box: fill-box; transform-origin: center; transition: transform .28s, filter .28s; }
.constellation-preview:hover .atlas-line-node { filter: brightness(1.16); }
.constellation-preview:hover .atlas-core { transform: scale(1.045); }
.constellation-preview-foot {
  border-top: 1px solid rgba(209,238,230,.09);
  color: #9eb1ad;
  font-size: 9px;
  letter-spacing: .09em;
}
.constellation-preview-foot strong { color: var(--mint); }
.constellation-preview-foot i {
  display: inline-block;
  margin-left: 5px;
  font-size: 15px;
  font-style: normal;
  transition: transform .25s;
}
.constellation-preview:hover .constellation-preview-foot i { transform: translateX(5px); }
.metric-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.metric { position: relative; min-height: 270px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); overflow: hidden; }
.metric:last-child { border-right: 0; }
.metric-index { position: absolute; top: 18px; right: 20px; color: rgba(244, 240, 230, .17); font-size: 10px; letter-spacing: .14em; }
.metric strong { display: block; margin: 22px 0 8px; font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(46px, 5vw, 70px); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.metric p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.metric.debt strong { color: var(--amber); }
.metric-detail { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: auto; padding-top: 20px; }
.metric-detail span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 9px; border: 1px solid rgba(97,230,191,.14); border-radius: 11px 4px 11px 4px; background: rgba(97,230,191,.035); }
.metric-detail small { min-width: 0; color: var(--muted); font-size: 8px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.metric-detail b { flex: 0 0 auto; color: var(--mint); font-family: "Iowan Old Style",Georgia,serif; font-size: 16px; font-weight: 400; }
.metric.debt .metric-detail span { border-color: rgba(255,187,85,.16); background: rgba(255,187,85,.035); }
.metric.debt .metric-detail b { color: var(--amber); }
.metric.ideas strong { color: #b9d6ff; }
.metric.ideas .metric-detail span { border-color: rgba(118,174,255,.18); background: rgba(118,174,255,.045); }
.metric.ideas .metric-detail b { color: #b9d6ff; }

.ops-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 42, 44, .86), rgba(8, 24, 26, .8));
  box-shadow: var(--shadow);
}
.section-block, .decision-section { margin-top: 88px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading h2, .panel-head h2 { margin: 8px 0 0; font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.section-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: right; }
.section-heading.compact { margin-bottom: 24px; }

.architecture-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1fr; align-items: center; }
.flow-node { min-height: 175px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border: 1px solid var(--line); border-radius: 24px 8px 24px 8px; background: var(--panel); }
.flow-node span { margin-bottom: auto; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.flow-node strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 23px; font-weight: 500; }
.flow-node small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.flow-node.active { border-color: rgba(97, 230, 191, .42); box-shadow: inset 0 3px 0 var(--mint); }
.flow-node.building { border-color: rgba(255, 187, 85, .38); box-shadow: inset 0 3px 0 var(--amber); }
.flow-node.future { opacity: .55; }
.flow-arrow { position: relative; height: 1px; background: var(--line); }
.flow-arrow i { position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--mint); border-right: 1px solid var(--mint); transform: rotate(45deg); }

.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phase-card { min-height: 430px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 28px 8px 28px 8px; background: rgba(10, 28, 30, .78); transition: transform .22s, border-color .22s, background .22s; }
.phase-card:hover { transform: translateY(-5px); border-color: rgba(97, 230, 191, .28); background: rgba(13, 35, 37, .92); }
.phase-card.completed { box-shadow: inset 0 3px 0 var(--mint); }
.phase-card.in_progress { box-shadow: inset 0 3px 0 var(--amber); }
.phase-card.pending { opacity: .72; }
.phase-top { display: flex; align-items: center; justify-content: space-between; }
.phase-number { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.phase-status { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.completed .phase-status { color: var(--mint); border-color: rgba(97, 230, 191, .25); }
.in_progress .phase-status { color: var(--amber); border-color: rgba(255, 187, 85, .25); }
.phase-card h3 { margin: 42px 0 5px; font-family: "Iowan Old Style", Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1; letter-spacing: -.025em; }
.phase-subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.mini-progress { height: 3px; margin: 26px 0 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.mini-progress i { display: block; width: 0; height: 100%; background: var(--mint); transition: width .8s ease; }
.in_progress .mini-progress i { background: var(--amber); }
.phase-count { color: var(--muted); font-size: 10px; text-align: right; }
.task-list { margin: 23px 0 0; padding: 0; list-style: none; }
.task-list li { position: relative; padding: 7px 0 7px 20px; color: #aebdba; font-size: 12px; line-height: 1.45; }
.task-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border: 1px solid rgba(145, 165, 163, .55); border-radius: 50%; }
.task-list li.done { color: #dbe8e3; }
.task-list li.done::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 4px rgba(97, 230, 191, .07); }

.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 88px; }
.ops-card { min-height: 520px; padding: clamp(26px, 4vw, 44px); }
.health-card { border-radius: 34px 10px 34px 10px; }
.activity-card { border-radius: 10px 34px 10px 34px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: clamp(38px, 4vw, 56px); }
.tiny-label { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .12em; }
.health-list, .activity-list { margin-top: 8px; }
.health-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.health-row:last-child { border-bottom: 0; }
.health-indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.health-row.healthy .health-indicator { background: var(--mint); box-shadow: 0 0 0 5px rgba(97, 230, 191, .08); }
.health-row.warning .health-indicator, .health-row.planned .health-indicator { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 187, 85, .08); }
.health-row.error .health-indicator { background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 97, .08); }
.health-copy strong { display: block; font-size: 13px; }
.health-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.health-state { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.activity-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-hash { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.activity-copy p { margin: 0; color: #d1ded9; font-size: 13px; line-height: 1.45; }
.activity-copy time { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.decision-card { position: relative; min-height: 240px; padding: 24px; border-top: 1px solid var(--mint); background: linear-gradient(180deg, rgba(97, 230, 191, .07), rgba(97, 230, 191, .015)); }
.decision-card::after { content: "LOCKED"; position: absolute; bottom: 22px; left: 24px; color: rgba(97, 230, 191, .58); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.decision-card .decision-index { color: var(--muted); font-size: 10px; }
.decision-card h3 { margin: 30px 0 12px; font-family: "Iowan Old Style", Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.08; }
.decision-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.footer { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 90px; padding: 34px 0 8px; border-top: 1px solid var(--line); }
.footer > div:first-child { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 36px; height: 36px; border-radius: 12px 4px 12px 4px; font-size: 11px; }
.footer p { margin: 0; color: var(--muted); font-family: "Iowan Old Style", Georgia, serif; font-size: 15px; font-style: italic; }
.footer-meta { display: flex; flex-direction: column; align-items: end; gap: 4px; color: var(--muted); font-size: 10px; }
.footer-meta b { color: var(--ink); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--delay, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 9px rgba(97, 230, 191, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit-float { 50% { transform: translate3d(-24px, 38px, 0) rotate(8deg); } }
@keyframes universe-glow { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr minmax(430px, .85fr); padding-inline: 1vw; }
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-flow { grid-template-columns: 1fr 38px 1fr; row-gap: 18px; }
  .architecture-flow .flow-node:nth-of-type(5) { grid-column: 1; }
  .architecture-flow .flow-arrow:nth-of-type(6) { grid-column: 2; }
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 14px; }
  .brand-copy small, .ghost-button:not(.cv-link) { display: none; }
  .cv-link { min-width: 46px; display: inline-flex; padding-inline: 10px; }
  .cv-link span { display: none; }
  .cv-link b { display: inline; }
  .live-pill { padding-inline: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 72px; padding: 70px 0 76px; }
  .hero h1 { font-size: clamp(60px, 19vw, 104px); }
  .constellation-preview { width: min(100%, 700px); margin-inline: auto; }
  .metric-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:last-child {
    grid-column: 1 / -1;
    min-height: 200px;
    border-bottom: 0;
  }
  .ops-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .architecture-flow { grid-template-columns: 1fr; }
  .flow-arrow { width: 1px; height: 34px; margin-left: 34px; }
  .flow-arrow i { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .architecture-flow .flow-node, .architecture-flow .flow-arrow { grid-column: 1 !important; }
  .phase-grid { grid-template-columns: 1fr; }
  .phase-card { min-height: auto; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .brand-mark { width: 38px; height: 38px; }
  .live-pill { display: none; }
  .live-pill, .language-toggle { min-height: 38px; font-size: 10px; }
  .top-actions { gap: 7px; }
  .hero { padding-top: 56px; }
  .hero h1 { letter-spacing: -.075em; }
  .hero-lead { font-size: 15px; }
  .hero-links { align-items: stretch; gap: 12px; }
  .hero-links .primary-button,
  .hero-links .universe-button { width: 100%; justify-content: space-between; }
  .hero-links .text-link { margin-top: 8px; }
  .constellation-preview { border-radius: 28px 7px 28px 7px; }
  #constellation-preview-svg { width: 100%; margin-left: 0; }
  .atlas-node-name { font-size: 16px; }
  .atlas-node-count { font-size: 10px; }
  .constellation-preview-head,
  .constellation-preview-foot { padding: 15px 16px; }
  .metric { min-height: 215px; padding: 22px 18px; }
  .metric strong { font-size: 47px; }
  .metric p { font-size: 10px; }
  .metric-detail { grid-template-columns: 1fr; gap: 5px; padding-top: 14px; }
  .metric-detail span { padding: 6px 7px; }
  .metric-detail small { font-size: 7px; }
  .metric-detail b { font-size: 14px; }
  .ops-card { border-radius: 24px 7px 24px 7px; }
  .section-block, .decision-section, .ops-grid { margin-top: 64px; }
  .section-heading h2, .panel-head h2 { font-size: 40px; }
  .phase-card { padding: 22px; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { min-height: 210px; }
  .health-row { grid-template-columns: 12px 1fr; }
  .health-state { grid-column: 2; }
  .footer { align-items: start; flex-direction: column; }
  .footer-meta { align-items: start; }
}

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