:root {
  --bg: #07111c;
  --bg-soft: rgba(10, 18, 31, 0.68);
  --surface: rgba(9, 16, 28, 0.78);
  --surface-strong: rgba(10, 18, 30, 0.92);
  --surface-accent: linear-gradient(145deg, rgba(18, 39, 51, 0.9), rgba(9, 16, 28, 0.94));
  --ink: #eef5ff;
  --ink-soft: rgba(226, 236, 247, 0.78);
  --ink-muted: rgba(180, 199, 220, 0.62);
  --line: rgba(124, 168, 207, 0.16);
  --line-strong: rgba(142, 210, 225, 0.24);
  --brand: #89eaff;
  --brand-strong: #baf4ff;
  --accent: #d68d57;
  --accent-soft: rgba(214, 141, 87, 0.14);
  --spotlight-sage: rgba(100, 229, 255, 0.12);
  --spotlight-copper: rgba(214, 141, 87, 0.16);
  --sky: #6f8cff;
  --mint: #5ad3cb;
  --sand: #ffd8bb;
  --shadow-xl: 0 36px 90px rgba(1, 6, 14, 0.52);
  --shadow-lg: 0 24px 58px rgba(1, 6, 14, 0.42);
  --shadow-md: 0 16px 36px rgba(1, 6, 14, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell: min(1240px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 14% 12%, rgba(94, 236, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(214, 141, 87, 0.14), transparent 20%),
    radial-gradient(circle at 60% 72%, rgba(111, 140, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #050c15 0%, #07111c 38%, #091522 72%, #0b1725 100%);
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 10% 12%, rgba(110, 235, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(214, 141, 87, 0.16), transparent 22%),
    radial-gradient(circle at 54% 34%, rgba(111, 140, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #040913 0%, #07111c 42%, #091523 76%, #0b1827 100%);
}

body.command-open,
body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(132, 178, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 178, 214, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  opacity: 0.34;
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient--one {
  background: radial-gradient(circle at 20% 20%, rgba(104, 236, 255, 0.24), transparent 30%);
  filter: blur(96px);
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient--two {
  background: radial-gradient(circle at 76% 24%, rgba(214, 141, 87, 0.22), transparent 18%);
  filter: blur(128px);
  animation: floatAmbient 24s ease-in-out infinite alternate-reverse;
}

.ambient--grid {
  background-image:
    radial-gradient(circle at 16% 28%, rgba(137, 234, 255, 0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 44%, rgba(214, 141, 87, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 74%, rgba(111, 140, 255, 0.18) 0 1px, transparent 1px);
  background-size: 180px 180px, 240px 240px, 280px 280px;
  opacity: 0.58;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding-bottom: 56px;
}

.masthead {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 14, 25, 0.72);
  box-shadow:
    0 20px 52px rgba(1, 6, 14, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.masthead.is-compact {
  transform: translateY(-2px);
  background: rgba(7, 14, 25, 0.84);
  box-shadow: 0 22px 54px rgba(1, 6, 14, 0.48);
}

body[data-page="home"] .masthead {
  border-color: rgba(137, 234, 255, 0.16);
  background: rgba(7, 14, 25, 0.78);
  box-shadow: 0 24px 56px rgba(1, 6, 14, 0.46);
}

body[data-page="home"] .masthead.is-compact {
  background: rgba(7, 14, 25, 0.88);
}

body[data-page="home"] .brand__kicker,
body[data-page="home"] .main-nav__link,
body[data-page="home"] .header-chip,
body[data-page="home"] .tiny-status {
  color: var(--ink-muted);
}

body[data-page="home"] .brand__name,
body[data-page="home"] .main-nav__link:hover,
.main-nav__link:focus-visible {
  color: var(--ink);
  background: rgba(137, 234, 255, 0.08);
  transform: translateY(-1px);
}

body[data-page="home"] .main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  min-width: 0;
}

.main-nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: var(--ink);
  background: rgba(32, 74, 68, 0.12);
  transform: translateY(-1px);
}

.main-nav__link.is-current {
  color: var(--brand-strong);
  background:
    linear-gradient(135deg, rgba(137, 234, 255, 0.14), rgba(214, 141, 87, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(137, 234, 255, 0.14),
    0 10px 24px rgba(1, 6, 14, 0.28);
}

.masthead__actions,
.hero__actions,
.button-row,
.link-row,
.pill-row,
.chip-row,
.mode-switch,
.filter-bar,
.stack-panel,
.tool-cloud,
.contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead__actions {
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-chip,
.tiny-status,
.pill,
.stack-pill,
.filter-chip,
.guide-chip,
.compare-chip,
.dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}

.header-chip,
.tiny-status {
  font-size: 0.88rem;
}

.button,
.text-link,
.cta-link,
.contact-card__link,
.command-item,
.case-card,
.route-card,
.resume-card,
.contact-card,
.principle-card,
.system-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button--solid {
  color: #fdfaf5;
  background: linear-gradient(135deg, #204a44 0%, #3f6079 48%, #3b7a6f 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(61, 55, 45, 0.22);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
}

.button--solid:hover,
.button--solid:focus-visible {
  box-shadow: 0 18px 38px rgba(61, 55, 45, 0.26);
  filter: saturate(1.06);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.cta-link:hover,
.cta-link:focus-visible,
.contact-card__link:hover,
.contact-card__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page {
  margin-top: 28px;
}

.hero,
.section {
  margin-bottom: 28px;
}

.hero {
  display: grid;
  gap: 22px;
}

.hero--home {
  position: relative;
  grid-template-columns: minmax(0, 0.74fr) minmax(560px, 1.26fr);
  align-items: center;
  min-height: 760px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    radial-gradient(circle at var(--depth-glow-x, 50%) var(--depth-glow-y, 34%), var(--hero-glow-primary, rgba(63, 96, 121, 0.2)), transparent 26%),
    radial-gradient(circle at 20% 18%, rgba(198, 111, 55, 0.12), transparent 22%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 236, 0.94));
  box-shadow:
    0 34px 100px rgba(61, 55, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(32, 74, 68, 0.12);
  pointer-events: none;
}

.hero--home::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 10%;
  width: 36%;
  height: 28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 200, 134, 0.16), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.hero--page {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: stretch;
}

.hero__copy,
.hero__aside,
.panel,
.case-card,
.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.compare-column,
.thread-message,
.feed-card,
.roadmap-card,
.insight-card,
.timeline-card,
.stack-item,
.metric-card,
.highlight-card,
.hero-scene-card__inner,
.hero-stage__proof {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(137, 234, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(10, 17, 30, 0.84), rgba(8, 14, 25, 0.88));
  box-shadow: 0 18px 36px rgba(1, 6, 14, 0.26);
}

.hero__copy,
.panel,
.case-card,
.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.feed-card,
.roadmap-card,
.insight-card,
.timeline-card,
.stack-item,
.metric-card,
.highlight-card {
  border: 1px solid rgba(146, 201, 225, 0.14);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero__copy {
  display: grid;
  align-content: start;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at top left, rgba(137, 234, 255, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(11, 18, 31, 0.96), rgba(8, 14, 25, 0.94));
}

.hero--home .hero__copy {
  z-index: 2;
  align-content: end;
  align-self: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero--home .hero__copy::after {
  display: none;
}

.hero--home .eyebrow,
.hero--home .metric-card__label,
.hero--home .hero-stage__proof-label,
.hero--home .hero-scene-card__kicker {
  color: var(--brand);
}

.eyebrow--hero {
  margin-bottom: 18px;
  font-size: 0.78rem;
}

.hero--home h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(135deg, #f7fbff 0%, #bff5ff 32%, #8ed9ff 62%, #ffd6b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(3.35rem, 5.4vw, 5.8rem);
  line-height: 0.94;
  text-shadow: 0 24px 80px rgba(111, 140, 255, 0.16);
}

.hero--home .lede {
  max-width: 56ch;
  margin-bottom: 26px;
  color: rgba(229, 239, 249, 0.8);
}

.hero--home .button--solid {
  color: #fdfaf5;
  background: linear-gradient(135deg, #8befff 0%, #5db7ff 52%, #d68d57 100%);
  box-shadow:
    0 20px 40px rgba(1, 6, 14, 0.34),
    0 0 28px rgba(111, 140, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero--home .button--ghost {
  border-color: rgba(137, 234, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero--home .button:hover,
.hero--home .button:focus-visible {
  box-shadow:
    0 18px 34px rgba(61, 55, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero--home .metric-card,
.hero--home .highlight-card,
.hero-glass .metric-card,
.hero-glass .highlight-card {
  border-color: rgba(137, 234, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 18, 31, 0.92), rgba(8, 14, 25, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 32px rgba(1, 6, 14, 0.3);
}

.hero--home .metric-card__value,
.hero-glass .metric-card__value,
.hero-glass .section-head h2,
.hero-stage__callout strong,
.hero-scene-card__header h3 {
  color: var(--ink);
}

.hero--home .metric-card p,
.hero-glass .metric-card p,
.hero-glass .panel-copy,
.hero-stage__callout p,
.hero-scene-card__summary,
.hero-stage__toolbar-label,
.hero-glass .highlight-card strong {
  color: var(--ink-soft);
}

.pill-row--hero {
  margin-top: 18px;
}

.pill-row--hero .pill {
  border-color: rgba(137, 234, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.hero__copy::after,
.panel::after,
.case-card::after,
.route-card::after,
.resume-card::after,
.contact-card::after,
.system-card::after,
.principle-card::after,
.feed-card::after,
.roadmap-card::after,
.insight-card::after,
.timeline-card::after,
.stack-item::after,
.metric-card::after,
.highlight-card::after,
.hero-scene-card__inner::after,
.hero-stage__proof::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 20%), var(--spotlight-copper), transparent 28%),
    radial-gradient(circle at calc(var(--spot-x, 50%) + 10%) calc(var(--spot-y, 20%) + 8%), var(--spotlight-sage), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.panel:hover::after,
.case-card:hover::after,
.route-card:hover::after,
.resume-card:hover::after,
.contact-card:hover::after,
.system-card:hover::after,
.principle-card:hover::after,
.compare-column:hover::after,
.feed-card:hover::after,
.roadmap-card:hover::after,
.insight-card:hover::after,
.timeline-card:hover::after,
.stack-item:hover::after,
.metric-card:hover::after,
.highlight-card:hover::after,
.hero-scene-card__inner:hover::after,
.hero-stage__proof:hover::after {
  opacity: 1;
}

.case-card::after,
.compare-column::after {
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 20%), var(--project-glow, var(--spotlight-copper)), transparent 28%),
    radial-gradient(circle at calc(var(--spot-x, 50%) + 10%) calc(var(--spot-y, 20%) + 8%), var(--project-glow-soft, var(--spotlight-sage)), transparent 34%);
}

.hero__aside,
.hero__visual,
.section--split,
.project-grid,
.route-grid,
.metric-grid,
.principle-grid,
.resume-grid,
.contact-grid,
.compare-columns {
  display: grid;
  gap: 20px;
}

.hero__aside {
  align-content: start;
}

.hero__visual {
  min-width: 0;
  z-index: 2;
}

.hero-stage {
  position: relative;
  min-height: 700px;
  height: 100%;
  --hero-accent: #89eaff;
  --hero-accent-soft: rgba(137, 234, 255, 0.18);
  --hero-glow-primary: rgba(111, 140, 255, 0.28);
  --hero-glow-secondary: rgba(214, 141, 87, 0.22);
  --hero-glow-tertiary: rgba(137, 234, 255, 0.14);
}

.hero-stage__word {
  position: absolute;
  left: 3%;
  top: 1%;
  z-index: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(4.8rem, 11vw, 8.8rem);
  letter-spacing: -0.05em;
  color: rgba(151, 236, 255, 0.09);
  text-transform: uppercase;
  pointer-events: none;
  transform: translateZ(40px);
  text-shadow: 0 0 42px rgba(111, 140, 255, 0.16);
}

.hero-stage__scene {
  position: relative;
  min-height: 700px;
  transform-style: preserve-3d;
  perspective: 1800px;
  isolation: isolate;
  overflow: visible;
}

.hero-stage__glow,
.hero-stage__nebula,
.hero-stage__ring,
.hero-stage__node,
.hero-stage__plate,
.hero-stage__main,
.hero-stage__callout,
.hero-glass {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  border: 1px solid rgba(137, 234, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 17, 30, 0.82), rgba(7, 12, 23, 0.9));
  box-shadow:
    0 24px 54px rgba(1, 6, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.hero-stage__nebula {
  position: absolute;
  inset: 10% 14% 12% 12%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(111, 140, 255, 0.34), transparent 24%),
    radial-gradient(circle at 70% 42%, rgba(214, 141, 87, 0.24), transparent 24%),
    radial-gradient(circle at 54% 72%, rgba(104, 236, 255, 0.24), transparent 28%);
  filter: blur(54px);
  opacity: 1;
  pointer-events: none;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.12), calc(var(--depth-shift-y, 0px) * 0.12), 0)
    scale(1.05);
}

.hero-stage__ring {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(137, 234, 255, 0.18);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.03),
    0 0 44px rgba(111, 140, 255, 0.14);
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-stage__ring--outer {
  left: 8%;
  top: 13%;
  width: min(640px, 66%);
  height: 410px;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.08), calc(var(--depth-shift-y, 0px) * -0.08), 40px)
    rotateX(72deg)
    rotateZ(var(--depth-spin, 0deg));
}

.hero-stage__ring--mid {
  left: 18%;
  top: 24%;
  width: min(520px, 54%);
  height: 320px;
  border-color: rgba(63, 96, 121, 0.2);
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.1), calc(var(--depth-shift-y, 0px) * 0.08), 70px)
    rotateX(72deg)
    rotateZ(var(--depth-spin-reverse, 0deg));
}

.hero-stage__ring--inner {
  right: 8%;
  top: 26%;
  width: min(250px, 26%);
  height: 250px;
  border-color: rgba(198, 111, 55, 0.2);
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.14), calc(var(--depth-shift-y, 0px) * 0.1 + var(--depth-float-tiny, 0px)), 130px)
    rotateX(72deg)
    rotateZ(var(--depth-spin, 0deg));
}

.hero-stage__node {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3fbff, var(--hero-accent));
  box-shadow:
    0 0 24px var(--hero-accent-soft),
    0 0 52px rgba(63, 96, 121, 0.18);
  pointer-events: none;
}

.hero-stage__node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.6;
}

.hero-stage__node--a {
  left: 21%;
  top: 18%;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.12), calc(var(--depth-shift-y, 0px) * -0.08 + var(--depth-float-tiny, 0px)), 120px);
}

.hero-stage__node--b {
  right: 24%;
  top: 20%;
  background: linear-gradient(135deg, #fff7ef, #c66f37);
  box-shadow:
    0 0 24px rgba(198, 111, 55, 0.24),
    0 0 52px rgba(198, 111, 55, 0.14);
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.12), calc(var(--depth-shift-y, 0px) * -0.06 + var(--depth-float-soft, 0px)), 160px);
}

.hero-stage__node--c {
  right: 17%;
  bottom: 24%;
  width: 14px;
  height: 14px;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.18), calc(var(--depth-shift-y, 0px) * 0.1 + var(--depth-float-tiny, 0px)), 200px);
}

.hero-stage__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  opacity: 0.94;
}

.hero-stage__glow--a {
  left: 16%;
  top: 8%;
  width: 40%;
  height: 28%;
  background: radial-gradient(circle, var(--hero-glow-primary), transparent 70%);
  animation: heroOrbDrift 9s ease-in-out infinite alternate;
}

.hero-stage__glow--b {
  right: 12%;
  bottom: 12%;
  width: 34%;
  height: 24%;
  background: radial-gradient(circle, var(--hero-glow-secondary), transparent 72%);
  animation: heroOrbDrift 12s ease-in-out infinite alternate-reverse;
}

.hero-stage__plate {
  position: absolute;
  border-radius: 34px;
  border: 1px solid rgba(32, 74, 68, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 238, 229, 0.68));
  box-shadow:
    0 26px 62px rgba(61, 55, 45, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform-style: preserve-3d;
}

.hero-stage__plate--rear {
  left: 14%;
  top: 16%;
  width: min(560px, 56%);
  height: 340px;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.16), calc(var(--depth-shift-y, 0px) * -0.12 + var(--depth-float-tiny, 0px)), 20px)
    rotateX(70deg)
    rotateZ(calc(-22deg + var(--depth-twist, 0deg)));
}

.hero-stage__plate--mid {
  left: 21%;
  top: 28%;
  width: min(460px, 47%);
  height: 250px;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.11), calc(var(--depth-shift-y, 0px) * -0.08 + var(--depth-float-soft, 0px)), 30px)
    rotateX(68deg)
    rotateZ(calc(-18deg + var(--depth-twist, 0deg)));
}

.hero-stage__main {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border: 1px solid rgba(137, 234, 255, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.94), rgba(6, 11, 21, 0.92));
  box-shadow:
    0 28px 70px rgba(1, 6, 14, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
}

.hero-stage__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 32%),
    radial-gradient(circle at 80% 12%, rgba(32, 74, 68, 0.08), transparent 22%);
  pointer-events: none;
}

.hero-stage__main::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -24%;
  width: 34%;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  filter: blur(4px);
  pointer-events: none;
  animation: heroSheen 7.5s ease-in-out infinite;
}

.hero-stage__toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
}

.hero-stage__toolbar-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-stage__toolbar-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(32, 74, 68, 0.16);
  box-shadow: 0 0 18px rgba(32, 74, 68, 0.08);
}

.hero-stage__toolbar-dots span:first-child {
  background: rgba(255, 193, 125, 0.82);
}

.hero-stage__toolbar-dots span:nth-child(2) {
  background: rgba(138, 255, 210, 0.76);
}

.hero-stage__toolbar-dots span:last-child {
  background: rgba(132, 243, 255, 0.84);
}

.hero-stage__toolbar-label {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stage__project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.hero-scene-card {
  min-width: 0;
}

.hero-scene-card--secondary {
  align-self: end;
  padding-top: 54px;
}

.hero-scene-card__inner {
  height: 100%;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--project-ring, rgba(141, 170, 255, 0.16));
  background:
    radial-gradient(circle at 90% 12%, var(--project-glow, rgba(32, 74, 68, 0.12)), transparent 24%),
    linear-gradient(155deg, var(--project-surface-1, rgba(255, 255, 255, 0.92)), var(--project-surface-2, rgba(246, 240, 232, 0.96)));
  box-shadow:
    0 20px 44px rgba(61, 55, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.hero-scene-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-scene-card__header .project-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 32px rgba(5, 8, 16, 0.26);
}

.hero-scene-card__header h3 {
  margin-bottom: 0;
  font-size: 1.42rem;
}

.hero-scene-card__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scene-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-scene-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--project-badge-border, rgba(132, 169, 255, 0.16));
  background: var(--project-badge-bg, rgba(255, 255, 255, 0.7));
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scene-card__chip--soft {
  border-color: rgba(130, 160, 255, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-scene-card__summary {
  margin-bottom: 16px;
  min-height: 88px;
}

.hero-scene-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stage__proof {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(32, 74, 68, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5)),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 238, 229, 0.88));
}

.hero-stage__proof-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stage__proof p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.hero-stage__callout {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: start;
  gap: 12px;
  min-width: 200px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(137, 234, 255, 0.12);
  background: rgba(8, 14, 25, 0.78);
  box-shadow:
    0 18px 34px rgba(1, 6, 14, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.hero-stage__callout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%);
  pointer-events: none;
}

.hero-stage__callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.hero-stage__callout p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-stage__callout-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 18px var(--hero-accent-soft);
}

.hero-stage__callout--sync {
  left: 2%;
  top: 30%;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.22), calc(var(--depth-shift-y, 0px) * -0.16 + var(--depth-float-tiny, 0px)), 150px);
}

.hero-stage__callout--proof {
  left: 5%;
  bottom: 24%;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * -0.16), calc(var(--depth-shift-y, 0px) * 0.12 + var(--depth-float-tiny, 0px)), 170px);
}

.hero-stage__callout--lens {
  right: 20%;
  bottom: 12%;
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.2), calc(var(--depth-shift-y, 0px) * 0.14 + var(--depth-float-soft, 0px)), 180px);
}

.hero-glass {
  position: absolute;
  right: 0;
  top: 14%;
  z-index: 5;
  width: min(318px, 34%);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(32, 74, 68, 0.16);
  background:
    radial-gradient(circle at top right, rgba(32, 74, 68, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 232, 0.94));
  box-shadow:
    0 34px 82px rgba(61, 55, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.24), calc(var(--depth-shift-y, 0px) * -0.18 + var(--depth-float-soft, 0px)), 220px);
}

.hero-glass .section-head {
  margin-bottom: 18px;
}

.hero-glass .section-head h2 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(1.52rem, 2vw, 2.05rem);
  line-height: 1.04;
}

.hero-glass .tiny-status,
.hero-glass .guide-chip {
  border-color: rgba(32, 74, 68, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}

.hero-glass .guide-chip.is-active {
  border-color: rgba(32, 74, 68, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 74, 68, 0.16), rgba(198, 111, 55, 0.12));
  color: var(--brand-strong);
  box-shadow:
    inset 0 0 0 1px rgba(32, 74, 68, 0.12),
    0 18px 30px rgba(61, 55, 45, 0.16);
}

.section--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 24px;
}

.panel--soft {
  background: rgba(255, 255, 255, 0.7);
}

.panel--accent {
  background: var(--surface-accent);
}

.panel--link {
  display: block;
}

.eyebrow,
.route-card__label,
.contact-card__label,
.resume-card__eyebrow,
.principle-card__label,
.timeline-card__phase,
.system-step__label,
.status-badge,
.project-kind {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--small {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Fraunces", serif;
  line-height: 1;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.hero--page h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

p,
li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.lede {
  max-width: 60ch;
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.78;
}

.panel-copy {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head--stack {
  align-items: start;
  flex-direction: column;
}

.section-note {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.text-link,
.cta-link,
.contact-card__link {
  color: var(--brand);
  font-weight: 700;
  word-break: break-word;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link::after,
.cta-link::after {
  content: "->";
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid--compact {
  margin-top: 8px;
}

.metric-grid--mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.highlight-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 238, 229, 0.9));
}

.metric-card__value {
  display: block;
  margin-bottom: 6px;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--ink);
}

.metric-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.highlight-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.marquee-band {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 27, 0.78);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.signal-deck,
.visual-proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.command-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(141, 201, 228, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(214, 141, 87, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(137, 234, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(7, 12, 23, 0.92));
  box-shadow:
    0 26px 60px rgba(1, 6, 14, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at top left, rgba(137, 234, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%);
  pointer-events: none;
}

.command-card__head,
.capability-row__head,
.pulse-card__top,
.launch-strip,
.proof-mini-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.command-card__head h3,
.pulse-card__top h3 {
  margin: 4px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.42rem;
}

.command-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.radar-shell {
  position: relative;
}

.radar-chart-card {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(137, 234, 255, 0.12);
  background: radial-gradient(circle at center, rgba(16, 27, 43, 0.84), rgba(9, 16, 28, 0.94));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.radar-chart {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.radar-chart__rings polygon,
.radar-chart__axes line {
  fill: none;
  stroke: rgba(146, 201, 228, 0.16);
  stroke-width: 1;
}

.radar-chart__axes text {
  fill: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}

.radar-chart__shape {
  fill: rgba(214, 141, 87, 0.18);
  stroke: rgba(137, 234, 255, 0.9);
  stroke-width: 2.4;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: radarDraw 2.8s ease forwards;
}

.radar-chart__points circle {
  fill: rgba(32, 74, 68, 0.96);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.radar-chart__center-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 111, 55, 0.26), transparent 70%);
  filter: blur(12px);
  animation: pulseSoft 6s ease-in-out infinite;
}

.signal-insight-list,
.capability-matrix,
.pulse-grid {
  display: grid;
  gap: 14px;
}

.command-network {
  position: relative;
  margin-top: 18px;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(137, 234, 255, 0.12);
  background: radial-gradient(circle at top, rgba(18, 31, 48, 0.84), rgba(9, 16, 28, 0.94));
}

.network-shell {
  position: relative;
  min-height: inherit;
  padding: 18px;
}

.network-grid,
.network-svg,
.network-node-stack {
  position: absolute;
  inset: 0;
}

.network-grid {
  background-image:
    linear-gradient(rgba(137, 234, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 234, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.95) 12%, rgba(0, 0, 0, 0.95) 88%, transparent);
}

.network-svg {
  width: 100%;
  height: 100%;
}

.network-svg__line {
  fill: none;
  stroke: url(#network-flow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  animation: networkFlow 14s linear infinite;
}

.network-svg__line--b {
  animation-direction: reverse;
  animation-duration: 17s;
  opacity: 0.7;
}

.network-svg__node {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(198, 111, 55, 0.9);
  stroke-width: 2;
  animation: networkPulse 4.8s ease-in-out infinite;
}

.network-lanes {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(230px, 52%);
}

.network-lane {
  position: relative;
  display: grid;
  gap: 8px;
}

.network-lane__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.network-lane__beam {
  display: block;
  height: 10px;
  width: var(--lane-width);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(137, 234, 255, 0.86), rgba(214, 141, 87, 0.92));
  box-shadow: 0 10px 26px rgba(111, 140, 255, 0.22);
  transform-origin: left center;
  animation: laneGrow 1.4s ease-out both;
  animation-delay: var(--lane-delay, 0s);
}

.network-node-stack {
  pointer-events: none;
}

.network-node {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 136px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--project-ring, rgba(137, 234, 255, 0.16));
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.94), rgba(9, 15, 27, 0.94));
  box-shadow: 0 20px 38px rgba(1, 6, 14, 0.34);
  animation: floatCard 7s ease-in-out infinite;
}

.network-node strong {
  color: var(--project-accent-strong, var(--brand));
}

.network-node p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.network-node__halo {
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, var(--project-glow, rgba(198,111,55,0.24)), transparent 68%);
  filter: blur(10px);
  z-index: -1;
}

.network-node--1 { left: 56%; top: 20%; }
.network-node--2 { right: 8%; top: 46%; animation-delay: -2.3s; }
.network-node--3 { left: 46%; bottom: 10%; animation-delay: -4s; }

.constellation-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(137, 234, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(18, 31, 48, 0.84), rgba(9, 16, 28, 0.94));
  overflow: hidden;
}

.constellation-svg {
  width: 100%;
  height: 190px;
}

.constellation-svg__line {
  fill: none;
  stroke: url(#constellation-stroke);
  stroke-width: 3;
  stroke-dasharray: 12 10;
  animation: networkFlow 18s linear infinite;
}

.constellation-svg__line--soft {
  opacity: 0.45;
  stroke-width: 2;
  animation-duration: 24s;
  animation-direction: reverse;
}

.constellation-svg__point {
  fill: rgba(255,255,255,0.98);
  stroke: rgba(32, 74, 68, 0.84);
  stroke-width: 2;
  animation: networkPulse 5s ease-in-out infinite;
}

.constellation-copy {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: min(220px, 48%);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(8, 15, 27, 0.82);
  border: 1px solid rgba(137, 234, 255, 0.12);
  box-shadow: 0 14px 30px rgba(1, 6, 14, 0.24);
}

.constellation-copy strong {
  display: block;
  margin-bottom: 6px;
}

.constellation-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.capability-row__fill,
.pulse-card__meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 10px 20px rgba(198, 111, 55, 0.24);
  transform-origin: left center;
  animation: laneGrow 1.2s ease-out both;
}

.radar-chart__shape {
  fill: rgba(198, 111, 55, 0.18);
  stroke: rgba(152, 100, 63, 0.9);
  stroke-width: 2.4;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: radarDraw 2.8s ease forwards;
}

.radar-chart__points circle {
  fill: rgba(32, 74, 68, 0.96);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  transform-origin: center;
  animation: nodeBloom 3s ease infinite;
}

.signal-insight-card,
.launch-stat,
.proof-mini-card,
.orbit-chip,
.pulse-card {
  border: 1px solid rgba(137, 234, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(11, 18, 31, 0.82), rgba(7, 13, 24, 0.8));
  box-shadow: 0 18px 36px rgba(1, 6, 14, 0.26);
}

.signal-insight-card {
  padding: 18px;
}

.signal-insight-card strong,
.proof-mini-card strong,
.launch-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.signal-insight-card p,
.capability-row__head p,
.pulse-card__summary,
.launch-stat span,
.proof-mini-card span {
  margin: 0;
  color: var(--ink-soft);
}

.capability-matrix {
  margin-top: 20px;
}

.capability-row {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(9, 16, 28, 0.74);
  border: 1px solid rgba(137, 234, 255, 0.1);
}

.capability-row__head strong {
  color: var(--ink);
}

.capability-row__head span {
  color: var(--brand-strong);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.capability-row__track,
.pulse-card__meter {
  position: relative;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(49, 72, 98, 0.1);
  overflow: hidden;
}

.capability-row__fill,
.pulse-card__meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 10px 20px rgba(198, 111, 55, 0.24);
}

.launch-strip,
.proof-mini-grid {
  flex-wrap: wrap;
  margin-top: 20px;
}

.launch-stat,
.proof-mini-card {
  flex: 1 1 140px;
  padding: 16px 18px;
}

.launch-stat strong {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.pulse-grid {
  margin-top: 20px;
}

.pulse-card {
  padding: 18px;
  background:
    radial-gradient(circle at top right, var(--project-glow, rgba(198, 111, 55, 0.18)), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 236, 227, 0.92));
}

.pulse-card .project-icon {
  width: 52px;
  height: 52px;
}

.pulse-card__top p,
.pulse-card__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.pulse-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tool-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.orbit-chip {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 120px;
  padding: 16px;
  flex: 1 1 150px;
}

.orbit-chip.is-large {
  min-height: 148px;
}

.orbit-chip.is-medium {
  min-height: 132px;
}

.orbit-chip__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(32, 74, 68, 0.16), rgba(198, 111, 55, 0.16));
  color: var(--brand-strong);
  font-family: "Fraunces", serif;
  font-weight: 700;
}

.orbit-chip strong {
  font-size: 1rem;
  color: var(--ink);
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeSlide 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  font-weight: 700;
}

.marquee-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 12%, var(--project-glow, rgba(198, 111, 55, 0.18)), transparent 24%),
    radial-gradient(circle at 8% 86%, var(--project-accent-soft, rgba(32, 74, 68, 0.12)), transparent 28%),
    linear-gradient(155deg, var(--project-surface-1, rgba(255, 255, 255, 0.82)), var(--project-surface-2, rgba(246, 240, 232, 0.96)));
  border-color: var(--project-ring, rgba(255, 255, 255, 0.72));
  box-shadow:
    0 18px 42px rgba(8, 14, 24, 0.16),
    0 10px 26px var(--project-glow-soft, rgba(32, 74, 68, 0.1)),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.case-card::before,
.compare-column::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--project-accent-strong, var(--brand)), transparent 80%);
  opacity: 0.92;
  pointer-events: none;
}

.case-card,
.case-card .project-kind,
.case-card .case-card__status-note,
.case-card .stack-pill,
.case-card .project-signal-card p,
.case-card .case-card__proof p,
.case-card .case-card__detail-item p {
  color: rgba(24, 34, 48, 0.76);
}

.case-card h3,
.case-card .project-signal-card__value,
.case-card .project-signal-card__label,
.case-card .case-card__proof-label {
  color: #132131;
}

.case-card .project-kind,
.case-card .status-badge,
.case-card .case-card__proof-label,
.case-card .project-signal-card__label,
.compare-column .project-kind {
  color: var(--project-accent-strong, var(--brand));
}

.case-card:hover,
.panel:hover,
.route-card:hover,
.resume-card:hover,
.contact-card:hover,
.system-card:hover,
.principle-card:hover,
.compare-column:hover,
.feed-card:hover,
.roadmap-card:hover,
.insight-card:hover,
.timeline-card:hover,
.stack-item:hover,
.metric-card:hover,
.highlight-card:hover,
.hero-scene-card__inner:hover,
.hero-stage__proof:hover,
.thread-message:hover,
.panel--link:hover {
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.case-card__top,
.case-card__meta,
.resume-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.case-card__top {
  margin-bottom: 16px;
  align-items: flex-start;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--project-icon-bg, rgba(32, 74, 68, 0.1));
  color: var(--project-accent-strong, var(--brand));
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--project-ring, rgba(32, 74, 68, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.project-icon--image {
  padding: 7px;
  background: var(--project-icon-bg, linear-gradient(145deg, rgba(24, 48, 45, 0.96), rgba(17, 34, 32, 0.92)));
}

.project-icon__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-badge {
  margin: 0;
  color: var(--project-accent-strong, var(--accent));
}

.case-card__status {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.case-card__status-note {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-kind {
  margin: 0 0 4px;
  color: var(--ink-muted);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--project-badge-border, rgba(32, 74, 68, 0.14));
  background: var(--project-badge-bg, rgba(32, 74, 68, 0.08));
  color: var(--project-accent-strong, var(--brand));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px var(--project-accent-soft, rgba(32, 74, 68, 0.08));
}

.case-card__summary {
  margin: -4px 0 0;
}

.project-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-signal-card {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 90%),
    var(--project-signal-bg, rgba(255, 255, 255, 0.88));
  border: 1px solid var(--project-signal-border, rgba(32, 74, 68, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(61, 55, 45, 0.08);
}

.project-signal-card__label,
.case-card__proof-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--project-accent-strong, var(--brand));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-signal-card__value {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.project-signal-card p,
.case-card__proof p,
.compare-summary p {
  margin-bottom: 0;
}

.case-card__proof,
.compare-summary,
.stack-item,
.insight-card,
.roadmap-card,
.feed-card,
.timeline-card,
.thread-message {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.case-card__proof {
  margin: 0;
  color: var(--ink);
  background: var(--project-proof-bg, linear-gradient(135deg, rgba(32, 74, 68, 0.09), rgba(198, 111, 55, 0.08)));
  border-color: var(--project-ring, rgba(32, 74, 68, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(8, 14, 24, 0.08);
}

.case-card__detail-list,
.compare-list {
  display: grid;
  gap: 12px;
}

.case-card__detail-item,
.compare-list__item {
  padding: 15px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 100%),
    var(--project-signal-bg, rgba(255, 255, 255, 0.88));
  border: 1px solid var(--project-signal-border, rgba(32, 74, 68, 0.12));
}

.case-card__detail-item p,
.compare-list__item p {
  margin-bottom: 0;
}

.case-card__tags,
.contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-pill,
.pill {
  color: var(--ink-soft);
}

.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.case-card__actions .button {
  flex: 1 1 148px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-chip,
.compare-chip,
.filter-chip {
  justify-content: center;
  min-height: 50px;
  font-weight: 700;
}

.guide-chip.is-active,
.compare-chip.is-active,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--sky));
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(32, 74, 68, 0.22);
}

.answer-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  outline: none;
}

.field:focus {
  border-color: rgba(32, 74, 68, 0.34);
  box-shadow: 0 0 0 4px rgba(32, 74, 68, 0.08);
}

.field--textarea {
  min-height: 128px;
  resize: vertical;
}

.brain-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.thread {
  display: grid;
  gap: 12px;
}

.thread-message--assistant {
  background: rgba(255, 255, 255, 0.7);
}

.thread-message--user {
  background: linear-gradient(145deg, rgba(32, 74, 68, 0.12), rgba(198, 111, 55, 0.08));
}

.thread-message__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-card,
.resume-card,
.contact-card,
.system-card {
  padding: 24px;
}

.route-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(250, 244, 238, 0.98));
}

.resume-card,
.contact-card,
.system-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(247, 241, 233, 0.94));
}

.route-card--static {
  cursor: default;
}

.cta-panel .cta-link {
  display: inline-flex;
  margin-top: 6px;
}

.compare-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.compare-panel {
  display: grid;
  gap: 16px;
  min-height: 120px;
}

.compare-panel.is-empty {
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  color: var(--ink-muted);
}

.compare-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-column {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--project-ring, rgba(255, 255, 255, 0.72));
  background: linear-gradient(150deg, var(--project-surface-1, rgba(255, 255, 255, 0.78)), var(--project-surface-2, rgba(247, 241, 233, 0.94)));
  box-shadow:
    0 18px 42px rgba(61, 55, 45, 0.16),
    0 10px 26px var(--project-glow-soft, rgba(32, 74, 68, 0.08));
}

.compare-column__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.compare-column__summary {
  margin: -2px 0 0;
}

.compare-summary--column {
  background: var(--project-proof-bg, rgba(255, 255, 255, 0.68));
  border-color: var(--project-ring, rgba(255, 255, 255, 0.66));
}

.compare-column .project-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px var(--project-glow-soft, rgba(32, 74, 68, 0.1));
}

.systems-stack {
  display: grid;
  gap: 20px;
}

.system-card {
  padding: 26px;
}

.system-card__steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.system-step {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.system-step__label {
  display: inline-block;
}

.decision-list,
.bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card {
  padding: 22px;
}

.timeline,
.principle-list,
.insight-list,
.roadmap-grid,
.feed-list {
  display: grid;
  gap: 14px;
}

.timeline-card {
  padding-left: 22px;
}

.principle-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.principle-item__index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(32, 74, 68, 0.1);
  color: var(--brand);
  font-weight: 800;
}

.stack-panel {
  display: grid;
}

.stack-item {
  padding: 16px 18px;
}

.tool-cloud {
  gap: 10px;
}

.feed-card__meta,
.contact-card__meta,
.resume-card__note {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.feed-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resume-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resume-card__top {
  margin-bottom: 14px;
}

.site-footer {
  position: relative;
  z-index: 62;
  margin-top: 28px;
  display: grid;
  gap: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: rgba(248, 243, 236, 0.88);
  box-shadow: var(--shadow-lg);
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-status {
  display: grid;
  gap: 10px;
}

.footer-route-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 6px;
}

.footer-route-card {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 241, 233, 0.94));
  box-shadow: var(--shadow-md);
}

.footer-route-card--next {
  background: linear-gradient(145deg, rgba(244, 250, 248, 0.88), rgba(233, 241, 238, 0.96));
}

.footer-route-card__eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-route-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  line-height: 1.05;
}

.footer-route-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.modal-project-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-project-lockup {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.project-badge--modal {
  width: fit-content;
  margin-top: 0;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar__inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: linear-gradient(135deg, rgba(244, 239, 232, 0.98), rgba(232, 219, 203, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.page-curtain.is-active {
  opacity: 1;
}

.command-palette,
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.command-palette.is-open,
.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.command-palette__backdrop,
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 37, 41, 0.18);
  backdrop-filter: blur(8px);
}

.command-palette__panel,
.project-modal__card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: min(82vh, 760px);
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 251, 246, 0.96);
  box-shadow: 0 40px 90px rgba(61, 55, 45, 0.24);
}

.project-modal__card {
  width: min(880px, calc(100vw - 24px));
}

.command-palette__panel {
  background: rgba(255, 251, 246, 0.96);
}

.modal-section {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(150deg, var(--project-surface-1, rgba(255, 255, 255, 0.82)), var(--project-surface-2, rgba(247, 241, 233, 0.94)));
  border: 1px solid var(--project-ring, rgba(255, 255, 255, 0.72));
  color: var(--ink);
}

.modal-section h3,
.modal-section h4,
.modal-section strong {
  color: var(--ink);
}

.modal-layout {
  display: grid;
  gap: 18px;
}

.modal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.command-input {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-item {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.command-item:hover,
.command-item:focus-visible {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(244, 237, 228, 0.9));
  border-color: rgba(32, 74, 68, 0.12);
}

.command-item strong {
  display: block;
  margin-bottom: 4px;
}

.command-empty {
  padding: 20px;
  text-align: center;
  color: var(--ink-muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.floating-dock {
  position: fixed;
  right: max(12px, calc((100vw - var(--shell)) / 2 - 220px));
  bottom: 20px;
  z-index: 55;
  display: grid;
  gap: 10px;
  justify-items: end;
  transition: opacity 220ms ease, transform 220ms ease;
}

.floating-dock.is-obscured {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.toast-stack {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(28, 34, 39, 0.92);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatAmbient {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 28px, 0) scale(1.08);
  }
}

@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes heroOrbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 18px, 0) scale(1.08);
  }
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 10px, 0);
  }
}

@keyframes heroSheen {
  from {
    transform: translateX(-12%) skewX(-14deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translateX(112%) skewX(-14deg);
    opacity: 0;
  }
}

/* Global dark overhaul inspired by premium dark-theme showcases */
:root {
  --bg: #070b14;
  --bg-soft: rgba(9, 14, 26, 0.76);
  --surface: rgba(11, 17, 30, 0.82);
  --surface-strong: rgba(14, 21, 36, 0.92);
  --surface-accent: linear-gradient(145deg, rgba(102, 116, 255, 0.2), rgba(83, 220, 255, 0.14));
  --ink: #eef4ff;
  --ink-soft: rgba(220, 230, 246, 0.78);
  --ink-muted: rgba(183, 197, 222, 0.64);
  --line: rgba(130, 151, 205, 0.22);
  --line-strong: rgba(130, 151, 205, 0.34);
  --brand: #8be9ff;
  --brand-strong: #c0b0ff;
  --accent: #70d4ff;
  --accent-soft: rgba(112, 212, 255, 0.2);
  --spotlight-sage: rgba(91, 225, 255, 0.16);
  --spotlight-copper: rgba(174, 122, 255, 0.2);
  --sky: #7f94ff;
  --mint: #65ebff;
  --sand: #dbe6ff;
  --shadow-xl: 0 32px 96px rgba(2, 6, 14, 0.58);
  --shadow-lg: 0 24px 64px rgba(2, 6, 14, 0.46);
  --shadow-md: 0 16px 40px rgba(2, 6, 14, 0.34);
}

body {
  background:
    radial-gradient(circle at 14% 14%, rgba(113, 127, 255, 0.2), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(89, 228, 255, 0.14), transparent 20%),
    radial-gradient(circle at 66% 74%, rgba(175, 126, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #050913 0%, #07101b 34%, #081323 70%, #091627 100%);
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 10% 12%, rgba(106, 121, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(101, 239, 255, 0.2), transparent 22%),
    radial-gradient(circle at 52% 34%, rgba(179, 125, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #03060d 0%, #050913 24%, #081222 58%, #081525 100%);
}

body::before {
  background:
    linear-gradient(rgba(130, 157, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 157, 255, 0.04) 1px, transparent 1px);
  opacity: 0.56;
}

.ambient--one {
  background: radial-gradient(circle at 20% 20%, rgba(95, 115, 255, 0.34), transparent 30%);
}

.ambient--two {
  background: radial-gradient(circle at 76% 24%, rgba(93, 239, 255, 0.22), transparent 18%);
}

.ambient--grid {
  background-image:
    radial-gradient(circle at 16% 28%, rgba(92, 236, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 44%, rgba(179, 125, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 74%, rgba(106, 120, 255, 0.16) 0 1px, transparent 1px);
  opacity: 0.56;
}

.masthead {
  border-color: var(--line);
  background: rgba(8, 13, 24, 0.8);
  box-shadow:
    0 18px 46px rgba(2, 6, 14, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.masthead.is-compact {
  background: rgba(8, 13, 24, 0.92);
}

body[data-page="home"] .masthead {
  border-color: var(--line);
  background: rgba(10, 16, 28, 0.82);
  box-shadow: 0 22px 50px rgba(7, 10, 18, 0.4);
}

body[data-page="home"] .masthead.is-compact {
  background: rgba(10, 16, 28, 0.92);
}

body[data-page="home"] .brand__kicker,
body[data-page="home"] .main-nav__link,
body[data-page="home"] .header-chip,
body[data-page="home"] .tiny-status {
  color: rgba(228, 236, 248, 0.74);
}

body[data-page="home"] .brand__name,
body[data-page="home"] .main-nav__link:hover,
body[data-page="home"] .main-nav__link:focus-visible {
  color: #f6f9ff;
}

.main-nav,
body[data-page="home"] .main-nav {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: #f1f6ff;
  background: rgba(122, 151, 255, 0.14);
}

.main-nav__link.is-current,
body[data-page="home"] .main-nav__link.is-current {
  color: #f7fbff;
  background: linear-gradient(135deg, rgba(122, 151, 255, 0.18), rgba(107, 234, 255, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(122, 151, 255, 0.14),
    0 10px 24px rgba(9, 14, 24, 0.28);
}

.header-chip,
.tiny-status,
.pill,
.stack-pill,
.filter-chip,
.guide-chip,
.compare-chip,
.dock-chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
}

.button--solid {
  color: #071019;
  background: linear-gradient(135deg, #eff5ff 0%, #8ef0ff 40%, #7f93ff 100%);
  box-shadow: 0 14px 30px rgba(2, 6, 14, 0.4);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.button--solid:hover,
.button--solid:focus-visible {
  box-shadow: 0 18px 38px rgba(2, 6, 14, 0.44);
}

.hero--home {
  border-color: var(--line);
  background:
    radial-gradient(circle at var(--depth-glow-x, 50%) var(--depth-glow-y, 34%), var(--hero-glow-primary, rgba(108, 234, 255, 0.2)), transparent 24%),
    radial-gradient(circle at 20% 18%, rgba(214, 183, 255, 0.14), transparent 22%),
    linear-gradient(160deg, rgba(10, 16, 28, 0.98), rgba(6, 10, 19, 0.97));
  box-shadow:
    0 34px 100px rgba(6, 10, 18, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero--home::before {
  border-color: rgba(124, 143, 255, 0.1);
}

.hero--home h1 {
  color: #f6f9ff;
  text-shadow: 0 20px 54px rgba(6, 12, 24, 0.4);
}

.hero--home .lede {
  color: rgba(231, 238, 248, 0.8);
}

.hero__copy,
.panel,
.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.feed-card,
.roadmap-card,
.insight-card,
.timeline-card,
.stack-item,
.metric-card,
.highlight-card {
  border-color: rgba(130, 157, 255, 0.18);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero__copy {
  background:
    radial-gradient(circle at top left, rgba(103, 240, 255, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.92), rgba(8, 12, 24, 0.9));
}

.hero-stage__word {
  color: rgba(236, 244, 255, 0.08);
  text-shadow: 0 0 40px rgba(111, 126, 255, 0.14);
}

.hero-stage__plate {
  border-color: rgba(130, 157, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(8, 14, 28, 0.92), rgba(8, 12, 22, 0.52));
  box-shadow:
    0 26px 62px rgba(5, 9, 16, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stage__main {
  border-color: rgba(130, 157, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.94), rgba(7, 11, 21, 0.9));
  box-shadow:
    0 40px 92px rgba(2, 6, 14, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stage__main::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 32%),
    radial-gradient(circle at 80% 12%, rgba(131, 243, 255, 0.08), transparent 22%);
}

.hero-glass {
  border-color: rgba(140, 169, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(131, 243, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.9), rgba(7, 11, 21, 0.88));
  box-shadow:
    0 34px 82px rgba(2, 6, 14, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stage__proof {
  border-color: rgba(136, 172, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(7, 12, 20, 0.76), rgba(9, 14, 24, 0.6));
}

.hero-stage__callout {
  border-color: rgba(139, 170, 255, 0.16);
  background: rgba(9, 14, 24, 0.78);
  box-shadow:
    0 24px 44px rgba(4, 8, 16, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-scene-card__chip {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 255, 0.9);
}

.hero-scene-card__chip--soft {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(222, 232, 246, 0.72);
}

.panel--soft {
  background: rgba(10, 15, 28, 0.9);
}

.metric-card,
.highlight-card {
  background: linear-gradient(180deg, rgba(11, 16, 29, 0.9), rgba(8, 12, 23, 0.84));
}

.marquee-band {
  border-color: rgba(130, 157, 255, 0.16);
  background: rgba(8, 12, 22, 0.86);
}

.marquee-item {
  background: rgba(255, 255, 255, 0.06);
}

.case-card,
.compare-column,
.hero-scene-card__inner,
.modal-section {
  border-color: var(--project-ring, rgba(130, 157, 255, 0.22));
  background:
    linear-gradient(145deg, rgba(7, 12, 22, 0.74), rgba(7, 12, 22, 0.74)),
    radial-gradient(circle at 88% 12%, var(--project-glow, rgba(107, 234, 255, 0.2)), transparent 24%),
    linear-gradient(155deg, var(--project-surface-1, rgba(28, 34, 52, 0.92)), var(--project-surface-2, rgba(18, 24, 40, 0.9)));
}

.case-card__proof,
.compare-summary--column {
  border-color: var(--project-ring, rgba(130, 157, 255, 0.22));
  background:
    linear-gradient(145deg, rgba(7, 12, 22, 0.68), rgba(7, 12, 22, 0.68)),
    var(--project-proof-bg, linear-gradient(135deg, rgba(32, 74, 68, 0.08), rgba(198, 111, 55, 0.08)));
}

.project-signal-card,
.case-card__detail-item,
.compare-list__item {
  border-color: var(--project-signal-border, rgba(130, 157, 255, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 92%),
    linear-gradient(145deg, rgba(8, 13, 24, 0.7), rgba(8, 13, 24, 0.7)),
    var(--project-signal-bg, rgba(9, 14, 24, 0.7));
}

.case-card__proof,
.compare-summary,
.stack-item,
.insight-card,
.roadmap-card,
.feed-card,
.timeline-card,
.thread-message {
  border-color: rgba(130, 157, 255, 0.16);
  background: rgba(9, 14, 24, 0.72);
}

.footer-grid {
  border-color: rgba(130, 157, 255, 0.18);
  background: rgba(8, 13, 24, 0.86);
}

.footer-route-card {
  border-color: rgba(130, 157, 255, 0.18);
  background: linear-gradient(145deg, rgba(10, 16, 28, 0.88), rgba(8, 13, 24, 0.86));
}

.footer-route-card--next {
  background: linear-gradient(145deg, rgba(12, 18, 34, 0.9), rgba(9, 15, 28, 0.88));
}

.command-palette__backdrop,
.project-modal__backdrop {
  background: rgba(3, 7, 14, 0.7);
}

.command-palette__panel,
.project-modal__card {
  border-color: rgba(130, 157, 255, 0.2);
  background: rgba(8, 12, 22, 0.96);
  box-shadow: 0 40px 90px rgba(2, 6, 14, 0.62);
}

.field,
.command-input,
.command-item,
.modal-close {
  border-color: rgba(130, 157, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.field:focus {
  border-color: rgba(136, 172, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(122, 151, 255, 0.16);
}

.command-item:hover,
.command-item:focus-visible {
  background: linear-gradient(145deg, rgba(18, 24, 40, 0.9), rgba(13, 19, 34, 0.9));
  border-color: rgba(122, 151, 255, 0.22);
}

.modal-close {
  background: rgba(10, 15, 26, 0.92);
}

@media (max-width: 1120px) {
  .masthead {
    border-radius: 28px;
  }

  .hero--home,
  .hero--page,
  .section--split,
  .contact-grid,
  .resume-grid,
  .principle-grid,
  .footer-grid,
  .footer-route-nav {
    grid-template-columns: 1fr;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .masthead {
    flex-wrap: wrap;
  }

  .project-grid,
  .route-grid,
  .metric-grid,
  .compare-columns {
    grid-template-columns: 1fr;
  }

  .project-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero--home {
    min-height: auto;
  }

  .hero-stage,
  .hero-stage__scene {
    min-height: 620px;
  }

  .hero-stage__ring--outer {
    width: min(580px, 72%);
    height: 360px;
  }

  .hero-stage__ring--mid {
    width: min(470px, 58%);
    height: 290px;
  }

  .hero-stage__main {
    left: 12%;
    width: min(620px, 70%);
  }

  .hero-stage__callout--lens {
    right: 8%;
    bottom: 8%;
  }

  .hero-glass {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 420px);
    margin-top: 28px;
    margin-left: auto;
    transform: none;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  .site-shell {
    padding-bottom: 28px;
  }

  .masthead {
    top: 8px;
    margin-top: 8px;
    padding: 12px;
    gap: 12px;
  }

  .brand__name {
    font-size: 1.12rem;
  }

  .masthead__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 6px;
    gap: 6px;
    overflow: visible;
    border-radius: 24px;
  }

  .main-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 8px 6px;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
  }

  .header-chip {
    display: none;
  }

  .page {
    margin-top: 20px;
  }

  .hero,
  .section {
    margin-bottom: 20px;
  }

  .hero--home {
    min-height: auto;
    padding: 22px;
  }

  .hero__visual {
    order: 2;
  }

  .hero__copy,
  .panel,
  .case-card,
  .route-card,
  .resume-card,
  .contact-card,
  .system-card,
  .principle-card {
    padding: 20px;
    border-radius: 24px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .hero--page h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .hero--home h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  .lede {
    font-size: 0.98rem;
  }

  .hero__actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .metric-grid,
  .metric-grid--mini,
  .chip-grid,
  .project-signal-grid,
  .route-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .pill-row--hero {
    gap: 8px;
  }

  .hero-stage,
  .hero-stage__scene {
    min-height: 520px;
  }

  .hero-stage__word {
    left: 0;
    top: 4%;
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .hero-stage__nebula {
    inset: 14% 8% 16% 6%;
  }

  .hero-stage__ring--outer,
  .hero-stage__ring--mid,
  .hero-stage__plate--rear,
  .hero-stage__plate--mid {
    display: none;
  }

  .hero-stage__ring--inner {
    right: 4%;
    top: 24%;
    width: 140px;
    height: 140px;
  }

  .hero-stage__node--a,
  .hero-stage__node--b {
    display: none;
  }

  .hero-stage__main {
    left: 6%;
    top: 16%;
    width: 88%;
    padding: 18px;
    transform: none;
    animation: none;
  }

  .hero-stage__project-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene-card--secondary {
    padding-top: 0;
  }

  .hero-scene-card__summary {
    min-height: 0;
  }

  .hero-stage__proof {
    margin-top: 14px;
    padding: 16px;
  }

  .hero-stage__callout {
    display: none;
  }

  .hero-glass {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 18px;
    padding: 18px;
    transform: none;
  }

  .case-card__top,
  .compare-column__header {
    flex-direction: column;
  }

  .case-card__status {
    justify-items: start;
    text-align: left;
  }

  .marquee-band {
    padding-inline: 12px;
  }

  .command-palette,
  .project-modal {
    padding: 10px;
  }

  .command-palette__panel,
  .project-modal__card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 24px;
  }

  .floating-dock {
    display: none;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 1600px) {
  .floating-dock {
    display: none;
  }
}

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

/* Dark theme stabilization hotfix */
.site-footer {
  margin-top: 44px;
}

.footer-route-nav {
  position: relative;
  z-index: 2;
  padding-top: 14px;
}

.footer-route-card,
.footer-route-card--next {
  min-height: 164px;
}

.floating-dock {
  right: max(12px, calc((100vw - var(--shell)) / 2 - 260px));
}

@media (max-width: 1120px) {
  .site-footer {
    margin-top: 32px;
  }

  .footer-route-nav {
    padding-top: 8px;
  }
}

/* Contrast + polish fix: keep dark base, use project accents cleanly */
.hero--home .metric-card,
.hero--home .highlight-card,
.hero-glass .metric-card,
.hero-glass .highlight-card {
  border-color: rgba(124, 156, 220, 0.3);
  background: linear-gradient(165deg, rgba(10, 16, 28, 0.94), rgba(7, 12, 23, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(2, 6, 14, 0.5);
}

.hero--home .button--solid {
  color: #05111e;
  background: linear-gradient(135deg, #b8f2ff 0%, #76e8ff 44%, #6ea1ff 100%);
  box-shadow: 0 16px 34px rgba(2, 6, 14, 0.46);
}

.hero--home .button--ghost {
  border-color: rgba(124, 156, 220, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #eef5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero--home .metric-card__value,
.hero-glass .metric-card__value,
.hero-glass .section-head h2,
.hero-stage__callout strong,
.hero-scene-card__header h3 {
  color: #f5f9ff;
}

.hero--home .metric-card p,
.hero-glass .metric-card p,
.hero-glass .panel-copy,
.hero-stage__callout p,
.hero-scene-card__summary,
.hero-stage__toolbar-label,
.hero-glass .highlight-card strong {
  color: rgba(220, 232, 250, 0.86);
}

.hero-scene-card__inner {
  border-color: var(--project-ring, rgba(126, 160, 226, 0.28));
  background:
    radial-gradient(circle at 88% 12%, var(--project-glow, rgba(102, 233, 255, 0.24)), transparent 36%),
    radial-gradient(circle at 8% 88%, var(--project-accent-soft, rgba(125, 152, 255, 0.16)), transparent 40%),
    linear-gradient(155deg, rgba(7, 12, 23, 0.94), rgba(8, 14, 26, 0.95));
  box-shadow:
    0 18px 42px rgba(2, 6, 14, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero-scene-card__chip {
  border-color: var(--project-badge-border, rgba(126, 160, 226, 0.3));
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 248, 255, 0.92);
}

.hero-scene-card__chip--soft {
  border-color: rgba(126, 160, 226, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 232, 250, 0.8);
}

.case-card,
.compare-column,
.modal-section {
  border-color: var(--project-ring, rgba(126, 160, 226, 0.28));
  background:
    radial-gradient(circle at 88% 12%, var(--project-glow, rgba(102, 233, 255, 0.24)), transparent 36%),
    radial-gradient(circle at 8% 88%, var(--project-accent-soft, rgba(125, 152, 255, 0.16)), transparent 40%),
    linear-gradient(155deg, rgba(7, 12, 23, 0.95), rgba(8, 14, 26, 0.96));
  box-shadow:
    0 18px 42px rgba(2, 6, 14, 0.54),
    0 10px 26px rgba(2, 6, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.case-card,
.compare-column,
.case-card .project-kind,
.compare-column .project-kind,
.case-card .case-card__status-note,
.case-card .stack-pill,
.case-card .project-signal-card p,
.case-card .case-card__proof p,
.case-card .case-card__detail-item p,
.compare-column p,
.compare-summary p {
  color: rgba(220, 232, 250, 0.86);
}

.case-card h3,
.compare-column h3,
.case-card .project-signal-card__value,
.case-card .project-signal-card__label,
.case-card .case-card__proof-label,
.compare-column strong,
.project-signal-card__value {
  color: #f5f9ff;
}

.case-card .project-kind,
.case-card .status-badge,
.case-card .case-card__proof-label,
.case-card .project-signal-card__label,
.compare-column .project-kind,
.project-kind,
.status-badge {
  color: var(--project-accent-strong, #8be9ff);
}

.project-badge {
  border-color: var(--project-badge-border, rgba(126, 160, 226, 0.28));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 25, 0.38);
  color: var(--project-accent-strong, #8be9ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(2, 6, 14, 0.34);
}

.project-signal-card,
.case-card__detail-item,
.compare-list__item {
  border-color: var(--project-signal-border, rgba(126, 160, 226, 0.24));
  background:
    linear-gradient(165deg, rgba(10, 16, 28, 0.92), rgba(8, 13, 24, 0.93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(2, 6, 14, 0.3);
}

.case-card__proof,
.compare-summary,
.compare-summary--column {
  border-color: var(--project-ring, rgba(126, 160, 226, 0.28));
  background:
    radial-gradient(circle at 84% 18%, var(--project-accent-soft, rgba(125, 152, 255, 0.14)), transparent 42%),
    linear-gradient(160deg, rgba(8, 14, 25, 0.92), rgba(8, 13, 23, 0.94));
}

.project-icon {
  border-color: var(--project-ring, rgba(126, 160, 226, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(2, 6, 14, 0.42);
}

.system-step,
.principle-item {
  border-color: rgba(126, 160, 226, 0.26);
  background: linear-gradient(160deg, rgba(10, 16, 28, 0.92), rgba(8, 13, 23, 0.94));
}

.system-step,
.system-step p,
.principle-item,
.principle-item p {
  color: rgba(220, 232, 250, 0.88);
}

.system-step__label,
.principle-item__index {
  color: #88eaff;
}

.principle-item__index {
  background: rgba(136, 234, 255, 0.12);
  border: 1px solid rgba(136, 234, 255, 0.24);
}

/* Home hero cleanup: remove overlap and keep premium readable structure */
body[data-page="home"] .page {
  margin-top: 40px;
}

.hero--home {
  align-items: start;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 22px;
  align-items: start;
  min-height: 700px;
}

.hero-stage__scene {
  grid-column: 1;
}

.hero-stage__word {
  top: 6%;
  font-size: clamp(4.2rem, 9.8vw, 7.4rem);
}

.hero-stage__main {
  left: 10%;
  width: min(700px, 80%);
  transform:
    translate3d(calc(var(--depth-shift-x, 0px) * 0.32), calc(var(--depth-shift-y, 0px) * 0.26 + var(--depth-float-soft, 0px)), 120px)
    rotateX(calc(3deg + var(--depth-rotate-x, 0deg) * 0.08))
    rotateY(calc(-7deg + var(--depth-rotate-y, 0deg) * 0.14))
    rotateZ(calc(var(--depth-twist, 0deg) * 0.32));
}

.hero-stage__project-grid {
  grid-template-columns: minmax(0, 1fr);
}

.hero-scene-card--secondary {
  align-self: auto;
  padding-top: 0;
}

.hero-stage__callout {
  display: none;
}

.hero-glass {
  position: relative;
  grid-column: 2;
  right: auto;
  top: auto;
  width: 100%;
  margin-top: 28px;
  transform: none;
}

@media (max-width: 1400px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stage__scene {
    grid-column: 1;
  }

  .hero-stage__main {
    left: 8%;
    width: min(700px, 86%);
  }

  .hero-glass {
    grid-column: 1;
    width: min(100%, 440px);
    margin-top: 18px;
    margin-left: auto;
  }
}

/* Homepage button color refinement */
.hero--home .hero__actions .button--solid {
  color: #f6fbff;
  background: linear-gradient(135deg, #1f5f7d 0%, #2f6d9a 52%, #4f70b8 100%);
  border-color: rgba(130, 176, 244, 0.32);
  box-shadow:
    0 14px 30px rgba(2, 6, 14, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero--home .hero__actions .button--solid:hover,
.hero--home .hero__actions .button--solid:focus-visible {
  box-shadow:
    0 20px 38px rgba(2, 6, 14, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero--home .hero__actions .button--ghost {
  border-color: rgba(124, 160, 230, 0.32);
  background: rgba(8, 14, 24, 0.78);
  color: rgba(235, 244, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero--home .hero__actions .button--ghost:hover,
.hero--home .hero__actions .button--ghost:focus-visible {
  background: rgba(10, 17, 30, 0.88);
}

.hero-glass .tiny-status,
.hero-glass .guide-chip {
  border-color: rgba(122, 158, 228, 0.28);
  background: rgba(8, 14, 24, 0.76);
  color: rgba(222, 234, 252, 0.9);
}

.hero-glass .guide-chip.is-active {
  border-color: rgba(136, 187, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(44, 120, 177, 0.66), rgba(88, 111, 197, 0.6)),
    rgba(8, 14, 24, 0.8);
  color: #f4f9ff;
  box-shadow:
    inset 0 0 0 1px rgba(154, 204, 255, 0.26),
    0 12px 24px rgba(2, 6, 14, 0.4);
}

.pill-row--hero .pill {
  border-color: rgba(122, 158, 228, 0.28);
  background: rgba(8, 14, 24, 0.74);
  color: rgba(220, 233, 252, 0.9);
}

/* Final polish pass: consistency, spacing, interaction quality */
:root {
  --focus-ring: rgba(124, 187, 255, 0.42);
  --focus-ring-soft: rgba(124, 187, 255, 0.18);
}

.page {
  margin-top: 34px;
}

.section,
.hero {
  scroll-margin-top: 128px;
}

.section-head {
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  line-height: 1.08;
}

.button,
.guide-chip,
.compare-chip,
.filter-chip,
.pill,
.stack-pill,
.header-chip,
.tiny-status,
.dock-chip {
  min-height: 46px;
  border-color: rgba(120, 158, 226, 0.26);
}

.button {
  letter-spacing: 0.01em;
}

.button--ghost {
  border-color: rgba(120, 158, 226, 0.3);
  background: rgba(8, 14, 24, 0.72);
  color: rgba(236, 244, 255, 0.94);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(10, 17, 30, 0.84);
}

.guide-chip,
.compare-chip,
.filter-chip,
.pill,
.stack-pill {
  background: rgba(9, 15, 26, 0.74);
  color: rgba(219, 232, 252, 0.9);
}

.guide-chip.is-active,
.compare-chip.is-active,
.filter-chip.is-active {
  color: #f5f9ff;
  background:
    linear-gradient(135deg, rgba(44, 120, 177, 0.66), rgba(88, 111, 197, 0.6)),
    rgba(8, 14, 24, 0.8);
  border-color: rgba(136, 187, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(154, 204, 255, 0.26),
    0 12px 24px rgba(2, 6, 14, 0.36);
}

a:focus-visible,
button:focus-visible,
.main-nav__link:focus-visible,
.text-link:focus-visible,
.cta-link:focus-visible,
.contact-card__link:focus-visible,
.command-item:focus-visible,
.field:focus {
  outline: none;
  box-shadow:
    0 0 0 2px var(--focus-ring),
    0 0 0 5px var(--focus-ring-soft);
}

.panel,
.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.case-card,
.compare-column,
.metric-card,
.highlight-card,
.thread-message,
.case-card__proof,
.project-signal-card,
.case-card__detail-item,
.compare-list__item,
.footer-route-card {
  box-shadow:
    0 14px 34px rgba(2, 6, 14, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-copy,
.route-card p,
.resume-card p,
.contact-card p,
.system-card p,
.principle-card p,
.timeline-card p,
.feed-card p,
.roadmap-card p,
.insight-card p {
  line-height: 1.68;
}

@media (max-width: 760px) {
  .page {
    margin-top: 24px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .button,
  .guide-chip,
  .compare-chip,
  .filter-chip,
  .pill,
  .stack-pill {
    min-height: 44px;
  }
}

/* Ujala OS interaction layer */
body.intro-lock {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), rgba(132, 234, 255, 0.13), transparent 18rem),
    linear-gradient(120deg, transparent, rgba(127, 148, 255, calc(var(--scroll-progress, 0) * 0.06)), transparent);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.cursor-mark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 0;
  height: 0;
  color: #fff8ea;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cursor-mark.is-live {
  opacity: 1 !important;
}

.cursor-mark[hidden] {
  display: none !important;
}

body.intro-lock .cursor-mark {
  opacity: 0 !important;
}

body[data-pointer-experience="true"][data-cursor-ready="true"]:not(.intro-lock) .cursor-mark.is-live {
  opacity: 1 !important;
}

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  body * {
    cursor: auto !important;
  }
}

.cursor-mark__axis,
.cursor-mark__corner,
.cursor-mark__point {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.cursor-mark__axis {
  background: rgba(255, 248, 234, 0.42);
  opacity: 0.54;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.cursor-mark__axis--x {
  width: 38px;
  height: 1px;
  margin: 0 0 0 -19px;
  transform: scaleX(0.68);
}

.cursor-mark__axis--y {
  width: 1px;
  height: 38px;
  margin: -19px 0 0 0;
  transform: scaleY(0.68);
}

.cursor-mark__corner {
  width: 11px;
  height: 11px;
  opacity: 0.78;
  border-color: rgba(141, 244, 255, 0.82);
  filter: drop-shadow(0 0 10px rgba(141, 244, 255, 0.22));
  transition: transform 180ms ease, width 180ms ease, height 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.cursor-mark__corner--tl {
  margin: -19px 0 0 -19px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.cursor-mark__corner--tr {
  margin: -19px 0 0 8px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.cursor-mark__corner--bl {
  margin: 8px 0 0 -19px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.cursor-mark__corner--br {
  margin: 8px 0 0 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.cursor-mark__point {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff8ea;
  box-shadow: 0 0 16px rgba(255, 248, 234, 0.34);
  transform: rotate(45deg) scale(1);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cursor-mark.is-interactive .cursor-mark__axis {
  opacity: 0.78;
  background: rgba(255, 210, 130, 0.8);
}

.cursor-mark.is-interactive .cursor-mark__axis--x {
  transform: scaleX(1.05);
}

.cursor-mark.is-interactive .cursor-mark__axis--y {
  transform: scaleY(1.05);
}

.cursor-mark.is-interactive .cursor-mark__corner {
  width: 15px;
  height: 15px;
  opacity: 1;
  border-color: rgba(255, 210, 130, 0.92);
  filter: drop-shadow(0 0 14px rgba(255, 210, 130, 0.22));
}

.cursor-mark.is-interactive .cursor-mark__corner--tl { transform: translate3d(-4px, -4px, 0); }
.cursor-mark.is-interactive .cursor-mark__corner--tr { transform: translate3d(4px, -4px, 0); }
.cursor-mark.is-interactive .cursor-mark__corner--bl { transform: translate3d(-4px, 4px, 0); }
.cursor-mark.is-interactive .cursor-mark__corner--br { transform: translate3d(4px, 4px, 0); }

.cursor-mark.is-interactive .cursor-mark__point {
  background: #ffd680;
  box-shadow: 0 0 18px rgba(255, 210, 130, 0.42);
  transform: rotate(45deg) scale(0.82);
}

.cursor-mark.is-pressed .cursor-mark__corner {
  transform: translate3d(0, 0, 0) scale(0.82);
}

.cursor-mark.is-pressed .cursor-mark__point {
  transform: rotate(45deg) scale(1.35);
}

.click-pulse {
  position: fixed;
  z-index: 118;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 210, 130, 0.72);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.35);
  animation: clickPulse 520ms ease-out forwards;
}

.intro-portal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: #05070d;
  color: #fff8ea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.intro-portal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.intro-portal.is-dismissing {
  opacity: 0;
}

.intro-portal.is-skipped {
  transition-duration: 220ms;
}

.intro-portal__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(141, 244, 255, 0.1), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(255, 210, 130, 0.1), transparent 28%),
    linear-gradient(145deg, #070b13 0%, #03050a 56%, #071019 100%);
}

.intro-portal__surface::before,
.intro-portal__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(rgba(255, 248, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 234, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  animation: introGridDrift 4.8s ease-out both;
}

.intro-portal__surface::after {
  opacity: 0.16;
  background: linear-gradient(120deg, transparent 0 42%, rgba(141, 244, 255, 0.16) 48%, transparent 55% 100%);
  background-size: auto;
  mask-image: none;
  transform: translateX(-36%);
  animation: introScan 3.2s ease-in-out both;
}

.intro-portal__frame,
.intro-portal__brand,
.intro-portal__proof,
.intro-portal__handoff {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  translate: -50% -50%;
}

.intro-portal__frame {
  width: min(940px, calc(100vw - 40px));
  height: min(500px, calc(100vh - 52px));
}

.intro-portal__line,
.intro-portal__corner {
  position: absolute;
  display: block;
  opacity: 0;
}

.intro-portal__line {
  background: linear-gradient(90deg, transparent, rgba(255, 248, 234, 0.44), transparent);
  transform-origin: center;
}

.intro-portal__line--top,
.intro-portal__line--bottom {
  left: 72px;
  right: 72px;
  height: 1px;
  transform: scaleX(0.12);
}

.intro-portal__line--top { top: 0; }
.intro-portal__line--bottom { bottom: 0; }

.intro-portal__line--left,
.intro-portal__line--right {
  top: 72px;
  bottom: 72px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 234, 0.38), transparent);
  transform: scaleY(0.12);
}

.intro-portal__line--left { left: 0; }
.intro-portal__line--right { right: 0; }

.intro-portal__corner {
  width: 54px;
  height: 54px;
  border-color: rgba(141, 244, 255, 0.58);
}

.intro-portal__corner--tl { left: 0; top: 0; border-top: 1px solid; border-left: 1px solid; }
.intro-portal__corner--tr { right: 0; top: 0; border-top: 1px solid; border-right: 1px solid; }
.intro-portal__corner--bl { left: 0; bottom: 0; border-left: 1px solid; border-bottom: 1px solid; }
.intro-portal__corner--br { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }

.intro-portal.is-active .intro-portal__line--top,
.intro-portal.is-active .intro-portal__line--bottom {
  animation: introLineDrawX 880ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.intro-portal.is-active .intro-portal__line--left,
.intro-portal.is-active .intro-portal__line--right {
  animation: introLineDrawY 880ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.intro-portal.is-active .intro-portal__corner {
  animation: introCornerSet 760ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.intro-portal__brand,
.intro-portal__proof,
.intro-portal__handoff {
  display: grid;
  place-items: center;
  width: min(900px, calc(100vw - 44px));
  text-align: center;
}

.intro-portal__brand {
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
}

.intro-portal.intro-stage-brand .intro-portal__brand {
  animation: introBrandIn 880ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.intro-portal.intro-stage-proof .intro-portal__brand,
.intro-portal.intro-stage-handoff .intro-portal__brand {
  opacity: 0;
  transform: translateY(-22px);
  filter: blur(10px);
  transition: opacity 280ms ease, transform 420ms ease, filter 320ms ease;
}

.intro-portal__status {
  color: #8df4ff;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.intro-portal__brand h2 {
  margin: 0;
  color: #fff8ea;
  font-family: "Fraunces", serif;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.intro-portal__brand p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 248, 234, 0.72);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.18rem);
}

.intro-portal__proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  opacity: 0;
  transform: translateY(18px);
}

.intro-portal.intro-stage-proof .intro-portal__proof {
  animation: introProofIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.intro-portal.intro-stage-handoff .intro-portal__proof {
  opacity: 0;
  transform: translateY(-18px);
  filter: blur(10px);
  transition: opacity 260ms ease, transform 360ms ease, filter 300ms ease;
}

.intro-portal__proof span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 248, 234, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.08), rgba(141, 244, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
  color: rgba(255, 248, 234, 0.86);
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.intro-portal__handoff {
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
}

.intro-portal.intro-stage-handoff .intro-portal__handoff {
  animation: introHandoffIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.intro-portal__handoff span {
  color: #fff8ea;
  font-family: "Fraunces", serif;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.intro-portal__handoff strong {
  max-width: 48ch;
  color: rgba(141, 244, 255, 0.88);
  font-size: clamp(0.78rem, 1.7vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-portal__skip-hint {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 36px);
  z-index: 14;
  color: rgba(255, 248, 234, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .intro-portal__frame {
    height: min(430px, calc(100vh - 44px));
  }

  .intro-portal__line--top,
  .intro-portal__line--bottom {
    left: 42px;
    right: 42px;
  }

  .intro-portal__line--left,
  .intro-portal__line--right {
    top: 42px;
    bottom: 42px;
  }

  .intro-portal__corner {
    width: 34px;
    height: 34px;
  }

  .intro-portal__proof {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .intro-portal__proof span {
    min-height: 58px;
  }
}
.page-curtain {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(137, 238, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(3, 7, 14, 0.98), rgba(7, 12, 23, 0.98));
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  transition: opacity 240ms ease, transform 320ms ease;
}

.page-curtain.is-active {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.page-curtain__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(137, 238, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 238, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: curtainGrid 580ms ease-out both;
}

.page-curtain__core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 26px;
  border: 1px solid rgba(137, 238, 255, 0.24);
  border-radius: 24px;
  background: rgba(8, 13, 24, 0.78);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(220, 232, 250, 0.78);
  text-align: center;
}

.page-curtain__core strong {
  color: #f5f9ff;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.page-curtain__signal {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #8be9ff;
  box-shadow: 0 0 26px rgba(139, 233, 255, 0.72);
  animation: signalPulse 720ms ease-in-out infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal.reveal--hero {
  opacity: 1;
  transform: none;
  filter: none;
}

.section.reveal:nth-of-type(2) {
  transition-delay: 70ms;
}

.section.reveal:nth-of-type(3) {
  transition-delay: 120ms;
}

.section.reveal:nth-of-type(4) {
  transition-delay: 170ms;
}

.button,
.main-nav__link,
.guide-chip,
.compare-chip,
.filter-chip,
.dock-chip,
.text-link,
.cta-link,
.contact-card__link {
  position: relative;
  overflow: hidden;
}

.button::before,
.main-nav__link::before,
.guide-chip::before,
.compare-chip::before,
.filter-chip::before,
.dock-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.16) 48%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover::before,
.button:focus-visible::before,
.main-nav__link:hover::before,
.main-nav__link:focus-visible::before,
.guide-chip:hover::before,
.guide-chip:focus-visible::before,
.compare-chip:hover::before,
.compare-chip:focus-visible::before,
.filter-chip:hover::before,
.filter-chip:focus-visible::before,
.dock-chip:hover::before,
.dock-chip:focus-visible::before {
  transform: translateX(120%);
}

body[data-scroll-depth="deep"] .ambient--one {
  opacity: 0.7;
}

body[data-scroll-depth="deep"] .ambient--two {
  opacity: 0.9;
}

@keyframes clickPulse {
  from {
    opacity: 0.9;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(5.4);
  }
}

@keyframes introGridDrift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(1.04);
  }
  to {
    opacity: 0.34;
    transform: translateY(0) scale(1);
  }
}

@keyframes introScan {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }
  42% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes introLineDrawX {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes introLineDrawY {
  0% {
    opacity: 0;
    transform: scaleY(0.08);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes introCornerSet {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introBrandIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes introProofIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes introHandoffIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes curtainGrid {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes signalPulse {
  from {
    transform: scale(0.82);
    opacity: 0.72;
  }
  to {
    transform: scale(1.12);
    opacity: 1;
  }
}






@media (max-width: 1080px) {
  .signal-deck,
  .visual-proof-grid,
  .command-card__body {
    grid-template-columns: 1fr;
  }

  .network-lanes {
    width: min(280px, 100%);
  }

  .network-node--1 { left: 48%; top: 16%; }
  .network-node--2 { right: 6%; top: 52%; }
  .network-node--3 { left: 42%; bottom: 8%; }
}

@media (max-width: 720px) {
  .command-card {
    padding: 18px;
    border-radius: 24px;
  }

  .command-network {
    min-height: 340px;
  }

  .network-lanes,
  .constellation-copy {
    width: 100%;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .network-node {
    min-width: 0;
    width: 44%;
  }

  .network-node--1 { left: 8%; top: 18%; }
  .network-node--2 { right: 8%; top: 48%; }
  .network-node--3 { left: 28%; bottom: 10%; }

  .constellation-svg {
    height: 160px;
  }

  .command-card__head,
  .capability-row__head,
  .pulse-card__meta,
  .launch-strip,
  .proof-mini-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-chart-card {
    min-height: 280px;
  }

  .orbit-chip,
  .launch-stat,
  .proof-mini-card {
    flex-basis: 100%;
  }
}

@media (pointer: coarse) {
  .cursor-mark {
    display: none;
  }
}

@media (max-width: 720px) {
  .cursor-mark {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .click-pulse,
  .intro-portal,
  .page-curtain__grid {
    display: none !important;
  }

  .intro-portal.is-forced {
    display: grid !important;
  }

  .cursor-mark__axis,
  .cursor-mark__corner,
  .cursor-mark__point,
  .intro-portal.is-forced *,
  .intro-portal.is-forced *::before,
  .intro-portal.is-forced *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Keep the native browser cursor fully hidden anywhere the custom cursor is active. */
@media (hover: hover) and (pointer: fine) {
  :root,
  :root *,
  :root *::before,
  :root *::after,
  button,
  button:hover,
  button:active,
  a,
  a:hover,
  a:active,
  input,
  input:hover,
  input:focus,
  textarea,
  textarea:hover,
  textarea:focus,
  select,
  summary,
  [role="button"],
  [tabindex],
  [data-command-action],
  [data-open-project],
  [data-compare-project],
  [data-copy] {
    cursor: auto !important;
  }
}


.hero-stage__light-trail {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(145, 242, 255, 0.92), rgba(214, 141, 87, 0.86), transparent);
  box-shadow:
    0 0 18px rgba(145, 242, 255, 0.44),
    0 0 36px rgba(111, 140, 255, 0.24);
  opacity: 0.82;
  pointer-events: none;
}

.hero-stage__light-trail::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(145,242,255,0.68) 55%, transparent 72%);
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(145, 242, 255, 0.48);
}

.hero-stage__light-trail--a {
  top: 22%;
  left: 12%;
  width: 58%;
  --trail-rotate: -14deg;
  transform: rotate(var(--trail-rotate));
  animation: trailSweep 11s ease-in-out infinite;
}

.hero-stage__light-trail--b {
  top: 48%;
  right: 8%;
  width: 42%;
  --trail-rotate: 18deg;
  transform: rotate(var(--trail-rotate));
  animation: trailSweep 14s ease-in-out infinite reverse;
}

.hero-stage__light-trail--c {
  left: 22%;
  bottom: 18%;
  width: 48%;
  transform: rotate(-6deg);
  animation: trailFloat 13s ease-in-out infinite;
}



.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: -18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137, 234, 255, 0.16), rgba(214, 141, 87, 0.18), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.section::after {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 140px;
  height: 44px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(137, 234, 255, 0.12), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}



.command-card,
.hero-glass,
.panel,
.hero-stage__main,
.hero-stage__proof {
  position: relative;
}

.command-card::after,
.hero-glass::after,
.panel::before,
.hero-stage__proof::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(145, 242, 255, 0.26), rgba(255,255,255,0.04) 34%, rgba(214, 141, 87, 0.18) 68%, rgba(111,140,255,0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.82;
}



@keyframes trailSweep {
  0%, 100% { opacity: 0.32; transform: translateX(-10px) translateY(0) scaleX(0.94) rotate(var(--trail-rotate, 0deg)); }
  50% { opacity: 1; transform: translateX(12px) translateY(-4px) scaleX(1.04) rotate(var(--trail-rotate, 0deg)); }
}

@keyframes trailFloat {
  0%, 100% { opacity: 0.42; transform: translateY(0) scaleX(0.98) rotate(-6deg); }
  50% { opacity: 0.92; transform: translateY(-8px) scaleX(1.04) rotate(-4deg); }
}



/* Shared premium system pass for secondary pages and utility surfaces */
.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.feed-card,
.roadmap-card,
.insight-card,
.timeline-card,
.stack-item,
.thread-message,
.compare-column,
.footer-route-card,
.footer-grid,
.command-palette__panel,
.project-modal__card {
  position: relative;
  overflow: hidden;
}

.route-card::before,
.resume-card::before,
.contact-card::before,
.system-card::before,
.principle-card::before,
.feed-card::before,
.roadmap-card::before,
.insight-card::before,
.timeline-card::before,
.stack-item::before,
.thread-message::before,
.compare-column::before,
.footer-route-card::before,
.footer-grid::before,
.command-palette__panel::before,
.project-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(107, 234, 255, 0.16), transparent 22%),
    radial-gradient(circle at 16% 100%, rgba(138, 123, 255, 0.14), transparent 24%);
  opacity: 0.82;
  pointer-events: none;
}

.route-card > *,
.resume-card > *,
.contact-card > *,
.system-card > *,
.principle-card > *,
.feed-card > *,
.roadmap-card > *,
.insight-card > *,
.timeline-card > *,
.stack-item > *,
.thread-message > *,
.compare-column > *,
.footer-route-card > *,
.footer-grid > *,
.command-palette__panel > *,
.project-modal__card > * {
  position: relative;
  z-index: 1;
}

.route-card,
.resume-card,
.contact-card,
.system-card,
.principle-card,
.feed-card,
.roadmap-card,
.insight-card,
.timeline-card,
.stack-item,
.thread-message {
  box-shadow:
    0 28px 72px rgba(2, 6, 14, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(130, 157, 255, 0.08);
}

.route-card:hover,
.route-card:focus-visible,
.footer-route-card:hover,
.footer-route-card:focus-visible,
.command-item:hover,
.command-item:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 34px 84px rgba(2, 6, 14, 0.52),
    0 0 0 1px rgba(122, 151, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.route-card__label,
.footer-route-card__eyebrow,
.thread-message__label,
.project-signal-card__label,
.case-card__proof-label {
  color: #96ebff;
  text-shadow: 0 0 18px rgba(107, 234, 255, 0.2);
}

.route-card p,
.resume-card__note,
.contact-card__meta,
.feed-card__meta,
.footer-route-card p,
.compare-column__summary,
.compare-panel.is-empty,
.command-empty {
  color: rgba(214, 226, 244, 0.72);
}

.system-step,
.principle-item,
.case-card__proof,
.compare-summary,
.compare-summary--column,
.modal-section,
.case-card__detail-item,
.compare-list__item,
.project-signal-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(132, 165, 255, 0.18);
  box-shadow:
    0 16px 40px rgba(2, 6, 14, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.system-step::before,
.principle-item::before,
.case-card__proof::before,
.compare-summary::before,
.compare-summary--column::before,
.modal-section::before,
.case-card__detail-item::before,
.compare-list__item::before,
.project-signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.system-step {
  background:
    linear-gradient(145deg, rgba(9, 14, 24, 0.88), rgba(8, 12, 22, 0.82)),
    radial-gradient(circle at 90% 10%, rgba(111, 232, 255, 0.12), transparent 24%);
}

.principle-item {
  background:
    linear-gradient(145deg, rgba(8, 13, 24, 0.88), rgba(10, 16, 29, 0.82)),
    radial-gradient(circle at 0% 0%, rgba(137, 123, 255, 0.1), transparent 20%);
}

.principle-item__index {
  background: linear-gradient(135deg, rgba(137, 123, 255, 0.2), rgba(104, 235, 255, 0.18));
  color: #f3f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(2, 6, 14, 0.28);
}

.compare-panel.is-empty {
  border-color: rgba(130, 157, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(8, 13, 24, 0.76), rgba(7, 12, 22, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(110, 230, 255, 0.08), transparent 28%);
}

.footer-grid {
  background:
    linear-gradient(145deg, rgba(8, 13, 24, 0.92), rgba(7, 11, 21, 0.9)),
    radial-gradient(circle at 84% 18%, rgba(104, 235, 255, 0.12), transparent 20%);
}

.footer-route-card {
  box-shadow:
    0 20px 52px rgba(2, 6, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.progress-bar {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.progress-bar__inner {
  background: linear-gradient(90deg, #7f93ff 0%, #8be9ff 48%, #d4c7ff 100%);
  box-shadow: 0 0 18px rgba(107, 234, 255, 0.44);
}

.page-curtain {
  background:
    radial-gradient(circle at 20% 20%, rgba(118, 129, 255, 0.26), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(107, 234, 255, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.98), rgba(6, 11, 20, 0.98));
}

.command-palette__panel,
.project-modal__card {
  background:
    linear-gradient(145deg, rgba(8, 13, 24, 0.96), rgba(6, 10, 19, 0.96)),
    radial-gradient(circle at 86% 10%, rgba(107, 234, 255, 0.14), transparent 18%);
}

.command-input,
.field {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.command-item {
  background:
    linear-gradient(145deg, rgba(10, 15, 27, 0.88), rgba(9, 14, 24, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(130, 120, 255, 0.1), transparent 24%);
}

.modal-close {
  box-shadow:
    0 12px 28px rgba(2, 6, 14, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 760px) {
  .route-card:hover,
  .route-card:focus-visible,
  .footer-route-card:hover,
  .footer-route-card:focus-visible,
  .command-item:hover,
  .command-item:focus-visible {
    transform: none;
  }
}

/* Frontend stabilization pass: restore native usability and compact the hero */
body,
body * {
  cursor: auto;
}

a,
button,
[role="button"],
input,
textarea,
select,
summary {
  cursor: pointer;
}

html,
body,
body * {
  cursor: auto !important;
}

input,
textarea,
select {
  cursor: text !important;
}

.cursor-mark,
.click-pulse {
  display: none !important;
}

body::after {
  opacity: 0.28;
}

.hero-stage {
  min-height: auto;
  gap: 18px;
}

.hero-stage__scene {
  min-height: 760px;
}

.hero-stage__main {
  left: 9%;
  width: min(760px, 82%);
  padding: 20px;
}

.hero-stage__project-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  gap: 14px;
}

.hero-scene-card--secondary {
  padding-top: 26px;
}

.hero-scene-card__summary {
  min-height: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.hero-stage__proof {
  gap: 10px;
  padding: 16px 18px;
}

.hero-stage__proof p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero--home .metric-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero--home .metric-card,
.hero-glass .metric-card,
.hero-glass .highlight-card {
  padding: 14px;
  border-radius: 18px;
}

.hero--home .metric-card__value,
.hero-glass .metric-card__value {
  font-size: 1.34rem;
}

.hero--home .metric-card p {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-glass {
  margin-top: 18px;
}

.hero-glass .section-head h2 {
  max-width: none;
  font-size: clamp(1.34rem, 1.6vw, 1.82rem);
}

.highlight-stack {
  gap: 10px;
}

.highlight-card strong {
  display: block;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .hero-stage__scene {
    min-height: 690px;
  }

  .hero-stage__main {
    left: 6%;
    width: min(700px, 88%);
  }
}

@media (max-width: 760px) {
  .masthead {
    position: relative;
    top: 0;
  }

  .hero--home {
    gap: 18px;
  }

  .hero-stage {
    gap: 14px;
  }

  .hero-stage__scene {
    min-height: 1120px;
  }

  .hero-stage__main {
    left: 0;
    top: 14%;
    width: 100%;
    padding: 16px;
    transform: none;
  }

  .hero-stage__project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-scene-card--secondary {
    padding-top: 0;
  }

  .hero-stage__proof {
    padding: 14px 16px;
  }

  .hero--home .metric-grid--compact,
  .hero-glass .metric-grid--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero--home .metric-card p {
    display: none;
  }

  .hero-glass {
    margin-top: 12px;
  }

  .hero-glass .section-head h2 {
    font-size: 1.26rem;
  }

  .highlight-stack {
    grid-template-columns: 1fr;
  }
}

/* Cursor override fix for fine-pointer rule */
@media (hover: hover) and (pointer: fine) {
  html,
  body,
  body *,
  a,
  button,
  input,
  textarea,
  select,
  summary,
  [role="button"],
  [tabindex],
  [data-command-action],
  [data-open-project],
  [data-compare-project],
  [data-copy] {
    cursor: auto !important;
  }

  a,
  button,
  summary,
  [role="button"],
  [data-command-action],
  [data-open-project],
  [data-compare-project],
  [data-copy] {
    cursor: pointer !important;
  }

  input,
  textarea,
  select {
    cursor: text !important;
  }
}




/* Professional high-tech portfolio repair: premium, readable, and Ujala-first */
:root {
  --pro-bg: #050913;
  --pro-panel: rgba(8, 14, 26, 0.88);
  --pro-panel-strong: rgba(10, 18, 34, 0.96);
  --pro-line: rgba(141, 244, 255, 0.14);
  --pro-line-strong: rgba(141, 244, 255, 0.26);
  --pro-text: #eef6ff;
  --pro-muted: rgba(225, 237, 252, 0.72);
  --pro-cyan: #8df4ff;
  --pro-mint: #74e6b6;
  --pro-gold: #f6c58d;
  --pro-blue: #8aa8ff;
}

html,
body {
  background:
    radial-gradient(circle at 14% 8%, rgba(116, 230, 182, 0.16), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(141, 244, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #050913 0%, #07111f 44%, #09131f 100%);
}

.intro-portal,
.intro-portal.is-active,
.intro-portal.is-forced,
.page-curtain {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.intro-lock {
  overflow: auto !important;
}

.command-palette[hidden],
.project-modal[hidden],
.command-palette:not(.is-open),
.project-modal:not(.is-open) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.command-palette.is-open,
.project-modal.is-open {
  display: grid !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

body[data-page="home"] .hero--home {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  overflow: hidden;
  border-color: var(--pro-line);
  background:
    linear-gradient(135deg, rgba(9, 18, 34, 0.94), rgba(5, 9, 19, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(141, 244, 255, 0.2), transparent 34%);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.34);
}

body[data-page="home"] .hero__copy,
body[data-page="home"] .hero__visual {
  min-width: 0;
}

body[data-page="home"] .hero__copy {
  gap: 22px;
}

body[data-page="home"] .hero--home h1 {
  max-width: 10ch;
  color: var(--pro-text);
  text-shadow: none;
}

body[data-page="home"] .hero--home .lede {
  max-width: 64ch;
  color: var(--pro-muted);
}

body[data-page="home"] .hero__actions {
  align-items: center;
}

.profile-console {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  height: 100%;
  min-height: 540px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--pro-line-strong);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(12, 22, 40, 0.96), rgba(5, 10, 20, 0.96)),
    radial-gradient(circle at 90% 8%, rgba(141, 244, 255, 0.18), transparent 28%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(141, 244, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 244, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 88%);
}

.profile-console__halo {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(116, 230, 182, 0.22), transparent 66%);
  filter: blur(4px);
}

.profile-console__header,
.profile-console__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.profile-console__status,
.profile-console__signal,
.profile-console__timeline span,
.skill-proof-card__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(141, 244, 255, 0.16);
  border-radius: 999px;
  background: rgba(141, 244, 255, 0.07);
  color: var(--pro-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-console__signal {
  color: var(--pro-gold);
  border-color: rgba(246, 197, 141, 0.2);
  background: rgba(246, 197, 141, 0.08);
}

.profile-console__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-console__avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(141, 244, 255, 0.18), rgba(116, 230, 182, 0.16));
  color: var(--pro-text);
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.profile-console__identity h2 {
  margin: 6px 0 0;
  color: var(--pro-text);
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1.05;
}

.profile-console__grid,
.skills-board,
.role-fit-grid {
  display: grid;
  gap: 16px;
}

.profile-console__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-console__grid article,
.skill-proof-card,
.role-fit-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 244, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.profile-console__grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.profile-console__grid strong,
.skill-proof-card h3,
.role-fit-card h3 {
  color: var(--pro-text);
}

.profile-console__grid span,
.skill-proof-card p,
.role-fit-card p {
  color: var(--pro-muted);
  line-height: 1.62;
}

.profile-console__timeline {
  margin-top: auto;
  padding-top: 4px;
  justify-content: flex-start;
}

.section--skills-board,
.section--role-fit {
  position: relative;
}

.skills-board {
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
}

.skill-proof-card,
.role-fit-card {
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(9, 19, 36, 0.92), rgba(7, 13, 25, 0.92)),
    radial-gradient(circle at 90% 0%, rgba(141, 244, 255, 0.12), transparent 34%);
}

.skill-proof-card--primary {
  border-color: rgba(116, 230, 182, 0.24);
  background:
    linear-gradient(150deg, rgba(11, 32, 36, 0.92), rgba(7, 13, 25, 0.94)),
    radial-gradient(circle at 90% 0%, rgba(116, 230, 182, 0.18), transparent 36%);
}

.skill-proof-card h3,
.role-fit-card h3 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.skill-proof-card p,
.role-fit-card p {
  margin: 0;
}

.role-fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-fit-card span {
  color: var(--pro-cyan);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 800;
}

body[data-page="home"] .signal-deck,
body[data-page="home"] .visual-proof-grid {
  max-height: none;
}

body[data-page="home"] .section--skills-board .section-head h2,
body[data-page="home"] .section--role-fit .section-head h2 {
  max-width: 760px;
}

body[data-page="home"] .project-grid--featured {
  align-items: stretch;
}

body[data-page="home"] .case-card,
body[data-page="home"] .route-card,
body[data-page="home"] .panel,
body[data-page="home"] .skill-proof-card,
body[data-page="home"] .role-fit-card {
  transform: none !important;
}

@media (max-width: 1120px) {
  body[data-page="home"] .hero--home,
  .skills-board,
  .role-fit-grid {
    grid-template-columns: 1fr;
  }

  .profile-console {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, var(--max));
  }

  .masthead,
  body[data-page="home"] .masthead {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .main-nav,
  body[data-page="home"] .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav__link {
    flex: 0 0 auto;
  }

  .masthead__actions {
    display: none !important;
  }

  body[data-page="home"] .hero--home {
    gap: 20px;
    padding: 22px;
  }

  body[data-page="home"] .hero--home h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  body[data-page="home"] .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero__actions .button {
    width: 100%;
  }

  .profile-console {
    padding: 18px;
    border-radius: 24px;
  }

  .profile-console__identity,
  .profile-console__grid {
    grid-template-columns: 1fr;
  }

  .profile-console__avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .skills-board,
  .role-fit-grid {
    grid-template-columns: 1fr;
  }

  .skill-proof-card,
  .role-fit-card {
    padding: 20px;
  }
}


/* Controlled premium motion: glow and electric lines stay inside cards */
.premium-intro-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  max-width: 680px;
  padding: 18px 20px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(141, 244, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(141, 244, 255, 0.09), rgba(116, 230, 182, 0.06)),
    rgba(8, 14, 26, 0.72);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: premiumCardIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.premium-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 12% 20%, rgba(141, 244, 255, 0.22), transparent 26%);
  opacity: 0.74;
}

.premium-intro-card__line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pro-cyan), var(--pro-mint), transparent);
  box-shadow: 0 0 18px rgba(141, 244, 255, 0.72);
  animation: electricSweepX 3.8s ease-in-out infinite;
}

.premium-intro-card__kicker {
  color: var(--pro-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.premium-intro-card strong {
  max-width: 58ch;
  color: var(--pro-text);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.42;
}

.electric-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.electric-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 12px;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 244, 255, 0.86), rgba(116, 230, 182, 0.8), transparent);
  opacity: 0.58;
  transform: translateX(-115%);
  animation: electricCardTrace 5.8s cubic-bezier(0.7, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.electric-card > * {
  position: relative;
  z-index: 1;
}

.electric-card__line {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.electric-card__line--top {
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pro-cyan), transparent);
  box-shadow: 0 0 22px rgba(141, 244, 255, 0.65);
  animation: electricSweepX 4.4s ease-in-out infinite;
}

.electric-card__line--right {
  right: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--pro-mint), transparent);
  box-shadow: 0 0 22px rgba(116, 230, 182, 0.62);
  animation: electricSweepY 5.4s ease-in-out infinite;
}

.profile-console__grid .electric-card::after,
.skill-proof-card.electric-card::after,
.role-fit-card.electric-card::after,
.route-card.electric-card::after,
.panel.electric-card::after {
  animation-delay: calc(var(--trace-delay, 0) * 240ms);
}

.profile-console__grid article:nth-child(2),
.skills-board article:nth-child(2),
.role-fit-grid article:nth-child(2),
.route-grid a:nth-child(2) { --trace-delay: 1; }
.profile-console__grid article:nth-child(3),
.skills-board article:nth-child(3),
.role-fit-grid article:nth-child(3),
.route-grid a:nth-child(3) { --trace-delay: 2; }
.profile-console__grid article:nth-child(4),
.skills-board article:nth-child(4),
.route-grid a:nth-child(4) { --trace-delay: 3; }

body[data-page="home"] .case-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(141, 244, 255, 0.15);
  background:
    linear-gradient(150deg, rgba(9, 18, 34, 0.92), rgba(6, 11, 22, 0.94)),
    radial-gradient(circle at 92% 0%, rgba(141, 244, 255, 0.1), transparent 32%);
}

body[data-page="home"] .case-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 244, 255, 0.74), transparent);
  transform: translateX(-110%);
  animation: electricCardTrace 6.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premiumCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes electricCardTrace {
  0%, 18% {
    transform: translateX(-115%);
    opacity: 0;
  }
  28%, 58% {
    opacity: 0.78;
  }
  78%, 100% {
    transform: translateX(115%);
    opacity: 0;
  }
}

@keyframes electricSweepX {
  0%, 100% {
    transform: translateX(-18%) scaleX(0.3);
    opacity: 0.36;
  }
  48% {
    transform: translateX(18%) scaleX(1);
    opacity: 0.9;
  }
}

@keyframes electricSweepY {
  0%, 100% {
    transform: translateY(-18%) scaleY(0.4);
    opacity: 0.28;
  }
  52% {
    transform: translateY(18%) scaleY(1);
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-intro-card,
  .premium-intro-card__line,
  .electric-card::after,
  .electric-card__line {
    animation: none !important;
  }
}


/* Final premium tuning: compressed mobile hero and contained motion */
body[data-page="home"] .hero--home {
  min-height: clamp(720px, 74vh, 900px);
}

body[data-page="home"] .hero__copy--immersive {
  justify-content: center;
}

body[data-page="home"] .profile-console {
  align-content: start;
}

body[data-page="home"] .profile-console__grid article,
body[data-page="home"] .skill-proof-card,
body[data-page="home"] .role-fit-card,
body[data-page="home"] .route-card,
body[data-page="home"] .panel {
  backdrop-filter: blur(18px);
}

body[data-page="home"] .profile-console__grid article:hover,
body[data-page="home"] .skill-proof-card:hover,
body[data-page="home"] .role-fit-card:hover,
body[data-page="home"] .route-card:hover,
body[data-page="home"] .case-card:hover {
  border-color: rgba(141, 244, 255, 0.36);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(141, 244, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  body[data-page="home"] .hero--home {
    min-height: 0;
    align-items: start;
  }

  body[data-page="home"] .profile-console {
    height: auto;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero--home {
    padding: 18px;
    gap: 16px;
  }

  body[data-page="home"] .hero__copy {
    gap: 16px;
  }

  body[data-page="home"] .hero--home .lede {
    font-size: 1rem;
    line-height: 1.58;
  }

  body[data-page="home"] .premium-intro-card {
    padding: 15px 16px;
    border-radius: 18px;
  }

  body[data-page="home"] .hero-signals,
  body[data-page="home"] .metric-grid--compact {
    gap: 10px;
  }

  body[data-page="home"] .profile-console {
    gap: 16px;
    padding: 16px;
  }

  body[data-page="home"] .profile-console__identity {
    gap: 12px;
  }

  body[data-page="home"] .profile-console__identity h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
    line-height: 1.08;
  }

  body[data-page="home"] .profile-console__grid {
    gap: 10px;
  }

  body[data-page="home"] .profile-console__grid article {
    padding: 14px;
  }

  body[data-page="home"] .profile-console__grid span,
  body[data-page="home"] .skill-proof-card p,
  body[data-page="home"] .role-fit-card p {
    line-height: 1.5;
  }

  body[data-page="home"] .profile-console__timeline {
    gap: 8px;
  }

  body[data-page="home"] .profile-console__status,
  body[data-page="home"] .profile-console__signal,
  body[data-page="home"] .profile-console__timeline span,
  body[data-page="home"] .skill-proof-card__label {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 0.66rem;
  }
}


/* Final premium layout correction: decorative layers stay out of content flow */
.electric-card > .electric-card__line,
.electric-card > .profile-console__halo {
  position: absolute;
  z-index: 0;
}

body[data-page="home"] .profile-console > .electric-card__line,
body[data-page="home"] .profile-console > .profile-console__halo {
  pointer-events: none;
}

@media (max-width: 760px) {
  body[data-page="home"] .profile-console__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .profile-console__grid strong {
    font-size: 0.88rem;
  }

  body[data-page="home"] .profile-console__grid span {
    font-size: 0.78rem;
    line-height: 1.42;
  }
}


/* Premium glass art system: page-specific atmospheres and transparent professional panels */
@property --edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --page-art: url("content/backgrounds/home-atmosphere.svg");
  --page-accent-a: 141, 244, 255;
  --page-accent-b: 116, 230, 182;
  --glass-fill: rgba(7, 16, 30, 0.42);
  --glass-fill-strong: rgba(8, 18, 34, 0.58);
  --glass-line: rgba(157, 239, 255, 0.2);
  --glass-line-hot: rgba(141, 244, 255, 0.58);
  --glass-glow: rgba(113, 220, 255, 0.16);
  --glass-glow-strong: rgba(141, 244, 255, 0.28);
}

body[data-page="home"] { --page-art: url("content/backgrounds/home-atmosphere.svg"); --page-accent-a: 141, 244, 255; --page-accent-b: 116, 230, 182; }
body[data-page="work"] { --page-art: url("content/backgrounds/work-atmosphere.svg"); --page-accent-a: 141, 244, 255; --page-accent-b: 184, 215, 255; }
body[data-page="systems"] { --page-art: url("content/backgrounds/systems-atmosphere.svg"); --page-accent-a: 116, 230, 182; --page-accent-b: 141, 244, 255; }
body[data-page="about"] { --page-art: url("content/backgrounds/about-atmosphere.svg"); --page-accent-a: 138, 168, 255; --page-accent-b: 141, 244, 255; }
body[data-page="playground"] { --page-art: url("content/backgrounds/playground-atmosphere.svg"); --page-accent-a: 184, 215, 255; --page-accent-b: 116, 230, 182; }
body[data-page="contact"] { --page-art: url("content/backgrounds/contact-atmosphere.svg"); --page-accent-a: 141, 244, 255; --page-accent-b: 138, 168, 255; }

html,
body {
  background:
    radial-gradient(circle at 10% 8%, rgba(var(--page-accent-b), 0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(var(--page-accent-a), 0.16), transparent 30%),
    linear-gradient(180deg, #020611 0%, #050b16 42%, #07111f 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 14, 0.38), rgba(2, 6, 14, 0.72)),
    var(--page-art);
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat;
  opacity: 0.74;
  filter: saturate(1.12) contrast(1.04);
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), rgba(var(--page-accent-a), 0.16), transparent 17rem),
    linear-gradient(rgba(var(--page-accent-a), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--page-accent-a), 0.045) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mix-blend-mode: screen;
  opacity: 0.62;
}

.ambient {
  opacity: 0.82;
}

.site-shell {
  z-index: 2;
}

.entry-branding {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: end;
  width: fit-content;
  margin-bottom: -4px;
  padding: 8px 18px 10px 0;
  color: var(--pro-text);
  filter: drop-shadow(0 0 24px rgba(141, 244, 255, 0.28));
  animation: entryBrandIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-branding__mark {
  display: inline-grid;
  place-items: center;
  width: clamp(68px, 8vw, 112px);
  height: clamp(68px, 8vw, 112px);
  margin-right: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(var(--page-accent-a), 0.46);
  border-radius: 30% 70% 58% 42% / 42% 34% 66% 58%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(var(--page-accent-a), 0.18), rgba(var(--page-accent-b), 0.1)),
    rgba(5, 13, 26, 0.42);
  box-shadow:
    0 0 36px rgba(var(--page-accent-a), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f3fbff;
  font-family: "Fraunces", serif;
  font-size: clamp(1.65rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.entry-branding__word {
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, #f5fbff 0%, rgb(var(--page-accent-a)) 42%, rgb(var(--page-accent-b)) 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.84;
  text-shadow: 0 0 34px rgba(var(--page-accent-a), 0.22);
}

.entry-branding__word::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--page-accent-a), 0.94), rgba(var(--page-accent-b), 0.78), transparent);
  box-shadow: 0 0 22px rgba(var(--page-accent-a), 0.65);
  animation: brandingCurrent 2.6s ease-in-out infinite;
}

.entry-branding__current {
  position: absolute;
  z-index: -1;
  left: 10px;
  right: 4px;
  height: 22px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(var(--page-accent-a), 0.68) 18% 22%, transparent 22% 38%, rgba(var(--page-accent-b), 0.72) 38% 42%, transparent 42% 62%, rgba(var(--page-accent-a), 0.68) 62% 66%, transparent 66% 100%);
  filter: drop-shadow(0 0 16px rgba(var(--page-accent-a), 0.72));
  opacity: 0.74;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  animation: zigBrandCurrent 3.2s linear infinite;
}

.entry-branding__current--top {
  top: 0;
}

.entry-branding__current--bottom {
  bottom: 0;
  animation-direction: reverse;
}

:is(
  .masthead,
  .hero--home,
  .hero--page,
  .panel,
  .panel--soft,
  .panel--accent,
  .panel--link,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .command-palette__panel,
  .project-modal__card,
  .constellation-panel,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link,
  .modal-section
) {
  position: relative;
  isolation: isolate;
  border-color: var(--glass-line) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(var(--page-accent-a), 0.12), transparent 34%),
    var(--glass-fill) !important;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.32),
    0 0 38px var(--glass-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 28px rgba(141, 244, 255, 0.035) !important;
  backdrop-filter: blur(24px) saturate(148%);
  -webkit-backdrop-filter: blur(24px) saturate(148%);
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .command-palette__panel,
  .project-modal__card,
  .constellation-panel,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link,
  .modal-section
) {
  overflow: hidden;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .command-palette__panel,
  .project-modal__card,
  .constellation-panel,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link,
  .modal-section
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 22%, transparent 68%, rgba(var(--page-accent-a), 0.08)),
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 12%), rgba(var(--page-accent-a), 0.22), transparent 34%);
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .command-palette__panel,
  .project-modal__card,
  .constellation-panel,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link,
  .modal-section
)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1.4px;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-conic-gradient(from var(--edge-angle), transparent 0deg 15deg, rgba(var(--page-accent-a), 0.96) 18deg 22deg, transparent 25deg 42deg, rgba(var(--page-accent-b), 0.84) 44deg 49deg, transparent 52deg 78deg);
  filter: drop-shadow(0 0 14px rgba(var(--page-accent-a), 0.74));
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 200ms ease;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):hover,
:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):focus-within {
  border-color: var(--glass-line-hot) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    0 0 48px var(--glass-glow-strong),
    0 0 18px rgba(var(--page-accent-a), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 34px rgba(var(--page-accent-a), 0.08) !important;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):hover::before,
:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):focus-within::before {
  opacity: 1;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):hover::after,
:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link
):focus-within::after {
  opacity: 1;
  animation: hoverEdgeCurrent 1.15s linear infinite;
}

:is(
  .panel,
  .case-card,
  .route-card,
  .metric-card,
  .highlight-card,
  .contact-card,
  .system-card,
  .principle-card,
  .feed-card,
  .roadmap-card,
  .insight-card,
  .timeline-card,
  .stack-item,
  .stack-panel,
  .compare-column,
  .project-signal-card,
  .footer-route-card,
  .command-palette__panel,
  .project-modal__card,
  .constellation-panel,
  .premium-intro-card,
  .profile-console,
  .profile-console__grid article,
  .skill-proof-card,
  .role-fit-card,
  .contact-card__link,
  .modal-section
) > * {
  position: relative;
  z-index: 1;
}

.button,
.guide-chip,
.compare-chip,
.filter-chip,
.pill,
.stack-pill,
.status-badge,
.project-kind,
.profile-console__status,
.profile-console__signal,
.profile-console__timeline span,
.skill-proof-card__label {
  border-color: rgba(var(--page-accent-a), 0.22) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.024)),
    rgba(5, 14, 26, 0.34) !important;
  box-shadow: 0 0 18px rgba(var(--page-accent-a), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.button--solid {
  color: #041019 !important;
  background:
    linear-gradient(135deg, rgba(238, 252, 255, 0.96), rgba(var(--page-accent-a), 0.86) 50%, rgba(var(--page-accent-b), 0.92)) !important;
  box-shadow:
    0 18px 44px rgba(var(--page-accent-a), 0.2),
    0 0 30px rgba(var(--page-accent-a), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: -28px -18px auto;
  height: 180px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 0%, rgba(var(--page-accent-a), 0.12), transparent 54%);
  opacity: 0.78;
}

@keyframes entryBrandIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 24px rgba(141, 244, 255, 0.28)); }
}

@keyframes brandingCurrent {
  0%, 100% { transform: translateX(-9%) scaleX(0.55); opacity: 0.42; }
  46% { transform: translateX(7%) scaleX(1); opacity: 0.98; }
}

@keyframes zigBrandCurrent {
  from { background-position: 0 0; transform: translateX(-4%); }
  to { background-position: 180px 0; transform: translateX(4%); }
}

@keyframes hoverEdgeCurrent {
  to { --edge-angle: 360deg; }
}

@media (max-width: 760px) {
  body::before {
    background-size: auto 100%, auto 100%;
    opacity: 0.58;
  }

  .entry-branding {
    grid-template-columns: auto auto;
    padding-right: 0;
  }

  .entry-branding__mark {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    font-size: 1.45rem;
  }

  .entry-branding__word {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  :is(.panel, .case-card, .route-card, .metric-card, .contact-card, .system-card, .feed-card, .compare-column, .project-modal__card, .command-palette__panel) {
    backdrop-filter: blur(18px) saturate(142%);
    -webkit-backdrop-filter: blur(18px) saturate(142%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-branding,
  .entry-branding__word::after,
  .entry-branding__current,
  :is(.panel, .case-card, .route-card, .metric-card, .highlight-card, .contact-card, .system-card, .principle-card, .feed-card, .roadmap-card, .insight-card, .timeline-card, .stack-item, .stack-panel, .compare-column, .project-signal-card, .footer-route-card, .premium-intro-card, .profile-console, .profile-console__grid article, .skill-proof-card, .role-fit-card, .contact-card__link)::after {
    animation: none !important;
  }
}


/* Premium intro card edge-current specificity fix */
body[data-page="home"] .premium-intro-card:hover::after,
body[data-page="home"] .premium-intro-card:focus-within::after {
  opacity: 1 !important;
  animation: hoverEdgeCurrent 1.15s linear infinite !important;
}

/* Thumbnail-inspired professional proof panels */
.tech-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: 18px;
  margin-top: 20px;
}

.tech-panel,
.architecture-proof-panel,
.contact-route-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--page-accent-a), 0.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(9, 19, 36, 0.72), rgba(5, 10, 20, 0.74)),
    radial-gradient(circle at var(--spot-x, 82%) var(--spot-y, 12%), rgba(var(--page-accent-a), 0.16), transparent 34%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(var(--page-accent-a), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.tech-panel {
  padding: clamp(20px, 2.4vw, 28px);
}

.tech-panel::before,
.architecture-proof-panel::before,
.contact-route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(var(--page-accent-a), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--page-accent-a), 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 72% 14%, black, transparent 74%);
}

.tech-panel__top {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tech-panel__top h3,
.architecture-proof-panel h2,
.contact-route-card h2 {
  margin: 5px 0 0;
  color: var(--pro-text);
  line-height: 1.08;
}

.tech-panel__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--page-accent-a), 0.22);
  border-radius: 999px;
  background: rgba(var(--page-accent-a), 0.08);
  color: var(--pro-cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tech-symbol-card {
  display: grid;
  gap: 9px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(var(--page-accent-a), 0.16);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
    rgba(4, 10, 20, 0.34);
}

.tech-symbol-card__glyph,
.contact-route-card__icon,
.resume-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--page-accent-a), 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(var(--page-accent-a), 0.18), rgba(var(--page-accent-b), 0.12));
  color: var(--pro-text);
  font-weight: 950;
  letter-spacing: -0.03em;
  box-shadow: 0 0 24px rgba(var(--page-accent-a), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tech-symbol-card__label {
  color: var(--pro-text);
  font-weight: 900;
}

.tech-symbol-card p,
.proof-graph-card__note,
.architecture-proof-panel p,
.contact-route-card p {
  margin: 0;
  color: var(--pro-muted);
  line-height: 1.55;
}

.tech-symbol-card__meter {
  display: block;
  height: 5px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.tech-symbol-card__meter span,
.proof-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--page-accent-a), 0.95), rgba(var(--page-accent-b), 0.92));
  box-shadow: 0 0 18px rgba(var(--page-accent-a), 0.42);
}

.proof-graph {
  width: 100%;
  min-height: 178px;
  margin: 2px 0 14px;
  overflow: visible;
}

.proof-graph__grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.proof-graph__line {
  fill: none;
  stroke: url(#proofGraphLine);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#proofGraphGlow);
  stroke-dasharray: 720;
  animation: graphDraw 2.8s ease both;
}

.proof-graph__dots circle {
  fill: #08121f;
  stroke: #8df4ff;
  stroke-width: 3;
  filter: url(#proofGraphGlow);
}

.proof-bars {
  display: grid;
  gap: 10px;
}

.proof-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
}

.proof-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.proof-bar span,
.proof-bar strong {
  color: var(--pro-text);
  font-size: 0.82rem;
  font-weight: 900;
}

.proof-bar i {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  height: 4px;
}

.proof-graph-card__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--page-accent-a), 0.14);
}

.architecture-proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(340px, 1.16fr);
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 22px;
}

.architecture-proof-panel__copy {
  align-self: center;
}

.architecture-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.architecture-map-frame {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(var(--page-accent-a), 0.18);
  border-radius: 26px;
  background: rgba(2, 8, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 38px rgba(var(--page-accent-a), 0.08);
}

.architecture-map-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.architecture-route-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.architecture-route-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--page-accent-a), 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.architecture-route-card__index {
  color: var(--pro-cyan);
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.architecture-route-card h3 {
  margin: 0 0 6px;
  color: var(--pro-text);
  font-size: 1rem;
}

.architecture-route-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

body[data-page="systems"] .system-card {
  background:
    linear-gradient(145deg, rgba(9, 19, 36, 0.76), rgba(5, 10, 20, 0.76)),
    radial-gradient(circle at var(--spot-x, 90%) var(--spot-y, 8%), rgba(var(--page-accent-a), 0.14), transparent 34%);
}

body[data-page="systems"] .system-step {
  border-color: rgba(var(--page-accent-a), 0.15);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page="systems"] .system-step p,
body[data-page="systems"] .decision-list,
body[data-page="systems"] .system-card > p {
  color: var(--pro-muted);
}

body[data-page="contact"] .contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-route-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-route-card__header,
.resume-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-route-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 1.02rem;
}

.contact-route-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--page-accent-a), 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--pro-text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-route-card__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-route-card__link b {
  color: var(--pro-cyan);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.contact-route-card__link:hover,
.contact-route-card__link:focus-visible {
  border-color: rgba(var(--page-accent-a), 0.36);
  box-shadow: 0 0 30px rgba(var(--page-accent-a), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resume-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 0.82rem;
}

@keyframes graphDraw {
  from { stroke-dashoffset: 720; opacity: 0.35; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 1180px) {
  .tech-showcase,
  .architecture-proof-panel {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tech-symbol-grid,
  .architecture-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tech-showcase,
  .tech-symbol-grid,
  .architecture-route-grid,
  body[data-page="contact"] .contact-grid {
    grid-template-columns: 1fr;
  }

  .tech-panel__top {
    display: grid;
  }

  .tech-symbol-card {
    min-height: 0;
  }

  .architecture-proof-panel,
  .contact-route-card,
  .tech-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .contact-route-card__link {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-graph__line {
    animation: none !important;
  }
}

/* Modal pointer containment: keep case-study windows above the background. */
body.modal-open .site-shell,
body.modal-open .floating-dock {
  pointer-events: none !important;
}

body.modal-open .project-modal,
body.modal-open .project-modal__backdrop,
body.modal-open .project-modal__card {
  pointer-events: auto !important;
}

body.modal-open .project-modal {
  isolation: isolate;
}

body.modal-open .project-modal__card {
  overscroll-behavior: contain;
  outline: none;
}

/* Navigator pointer containment: keep the command panel fully interactive. */
body.command-open .site-shell,
body.command-open .floating-dock {
  pointer-events: none !important;
}

body.command-open .command-palette,
body.command-open .command-palette__backdrop,
body.command-open .command-palette__panel,
body.command-open .command-list,
body.command-open .command-item,
body.command-open .command-input,
body.command-open .modal-close {
  pointer-events: auto !important;
}

body.command-open .command-palette {
  isolation: isolate;
  z-index: 130;
}

body.command-open,
body.command-open * {
  cursor: auto !important;
}

body.command-open .command-item,
body.command-open .modal-close,
body.command-open [data-command-close] {
  cursor: pointer !important;
}

body.command-open .command-input {
  cursor: text !important;
}
body.modal-open::after {
  opacity: 0.08;
}

/* Performance: keep below-the-fold premium sections cheap until they enter view. */
.section,
.marquee-band,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.hero {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
