:root {
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f7f3ff;
  background: #07050d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #07050d;
  --panel: rgba(18, 13, 31, 0.72);
  --panel-strong: #110c1e;
  --line: rgba(211, 187, 255, 0.14);
  --muted: #aaa1ba;
  --purple: #a87cff;
  --purple-bright: #cbb1ff;
  --pink: #efabff;
  --cyan: #92e6ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(168, 124, 255, 0.35); color: white; }

.app-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 68% 13%, rgba(123, 73, 255, 0.16), transparent 23rem),
    radial-gradient(circle at 14% 30%, rgba(229, 134, 255, 0.07), transparent 20rem),
    linear-gradient(180deg, #090611 0%, #07050d 42%, #090611 100%);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .92;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.app-shell::before,
.app-shell::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .42;
}

.app-shell::before {
  width: min(52vw, 760px);
  height: min(52vw, 760px);
  right: -12vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(112, 72, 208, .22), rgba(80, 48, 154, .07) 42%, transparent 72%);
}

.app-shell::after {
  width: min(46vw, 680px);
  height: min(46vw, 680px);
  left: -14vw;
  bottom: -15vh;
  background: radial-gradient(circle, rgba(128, 70, 176, .12), rgba(56, 38, 108, .05) 46%, transparent 74%);
}

.section-wrap,
.site-header,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  color: #0a0712; font-weight: 900; font-size: 17px;
  background: linear-gradient(135deg, #f2ddff 0%, #a77cff 54%, #64d8ff 130%);
  box-shadow: 0 0 28px rgba(168,124,255,.25);
}
.brand-mark.small { width: 31px; height: 31px; border-radius: 10px; font-size: 14px; }
.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; }
.brand-copy span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .24em; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: #b9b2c4; text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s ease; }
.site-nav a:hover { color: white; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.025);
  color: #8f849d;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.motion-toggle strong {
  color: #c5a8ff;
  font-size: 9px;
  letter-spacing: .04em;
}
.motion-toggle:hover {
  color: #f3ebff;
  border-color: rgba(202,176,255,.35);
  background: rgba(168,124,255,.07);
}
html[data-motion-mode="on"] .motion-toggle {
  border-color: rgba(134,255,196,.24);
}
html[data-motion-mode="on"] .motion-toggle strong {
  color: #8fffc8;
}
html[data-motion-mode="off"] .motion-toggle strong {
  color: #83798f;
}
.menu-button { display: none; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 54px;
  position: relative;
  padding-block: 68px 92px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; margin-bottom: 25px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.025);
  color: #c9c0d8; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #86ffc4; box-shadow: 0 0 14px #86ffc4; }
.hero h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: 'Noto Sans TC', 'Inter', system-ui, sans-serif;
  font-size: clamp(58px, 6.2vw, 92px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 span {
  display: inline-block;
  padding-bottom: .06em;
  color: transparent;
  background: linear-gradient(95deg, #f8f2ff 5%, #b69aff 54%, #e4b0ff 98%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lead { margin: 30px 0 0; max-width: 620px; color: #b5adbf; font-size: 16px; line-height: 1.95; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 21px; border-radius: 14px; text-decoration: none; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(202,176,255,.45); }
.button-primary { color: #100b1b; background: linear-gradient(135deg, #efe3ff, #a984ff); border: 0; }
.button-ghost { color: #d4ccde; background: rgba(255,255,255,.025); }
.hero-meta { margin-top: 55px; display: flex; gap: 55px; }
.hero-meta div { display: grid; gap: 7px; }
.hero-meta span { color: #6f667e; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.hero-meta strong { color: #c7bfd1; font-size: 11px; font-weight: 600; }

.hero-visual {
  position: relative;
  min-height: 630px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 480px;
  height: 480px;
  background: rgba(132, 88, 245, .16);
  box-shadow: 0 0 120px rgba(124, 79, 244, .24);
}

.orb-two {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(211,187,255,.11);
  box-shadow: inset 0 0 70px rgba(175,119,255,.055);
}

.avatar-frame {
  width: min(520px, 100%);
  height: 620px;
  position: relative;
  overflow: visible;
  border-radius: 44% 44% 30% 30% / 28% 28% 20% 20%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(177,127,255,.20), rgba(77,43,132,.08) 46%, transparent 72%),
    radial-gradient(ellipse at 50% 82%, rgba(121,77,210,.12), transparent 58%);
}

.avatar-frame::before {
  content: '';
  position: absolute;
  inset: 7% 9% 10%;
  z-index: 0;
  border: 1px solid rgba(219,198,255,.12);
  border-radius: 46% 46% 34% 34% / 28% 28% 22% 22%;
  box-shadow: inset 0 0 70px rgba(164,107,255,.055), 0 28px 90px rgba(0,0,0,.28);
  pointer-events: none;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 4%;
  right: 4%;
  bottom: -2%;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7,5,13,0) 0%,
    rgba(7,5,13,.18) 42%,
    rgba(7,5,13,.78) 82%,
    rgba(7,5,13,1) 100%
  );
  filter: blur(1px);
}

.character-mask {
  position: absolute;
  inset: -4% -4% -7%;
  z-index: 2;
  display: grid;
  place-items: end center;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 91%, rgba(0,0,0,.86) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 91%, rgba(0,0,0,.86) 95%, transparent 100%);
}

.moxue-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 34px rgba(0,0,0,.24));
  transform-origin: 50% 56%;
  will-change: transform;
}

.avatar-grid {
  position: absolute;
  inset: 8% 8% 12%;
  z-index: 1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse, black, transparent 72%);
  mask-image: radial-gradient(ellipse, black, transparent 72%);
}

.avatar-badge {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(218,196,255,.16);
  background: rgba(10,7,17,.72);
  backdrop-filter: blur(12px);
  color: #d2c4e7;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.badge-top { top: 58px; right: 34px; }
.badge-bottom { left: 34px; bottom: 62px; color: #8affc8; }

.ticker { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); overflow: hidden; }
.ticker-track { width: max-content; min-width: 100%; display: flex; justify-content: center; align-items: center; gap: 32px; padding: 16px 24px; color: #7f758f; font-size: 9px; font-weight: 800; letter-spacing: .23em; }
.ticker-track i { color: #a783ff; font-style: normal; font-size: 8px; }

.section-block { padding-block: 115px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 44px; }
.section-heading > div { min-width: 0; }
.section-index { color: #8a78aa; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.section-heading h2 { margin: 11px 0 0; font-size: clamp(35px, 4vw, 54px); letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 7px; max-width: 430px; color: #898091; font-size: 13px; line-height: 1.85; }
.compact-heading { margin-bottom: 34px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-card {
  min-height: 330px; position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(145deg, rgba(23,17,38,.77), rgba(12,9,20,.82)); text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.project-card::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -70px; top: -90px; background: rgba(160,112,255,.11); filter: blur(8px); transition: transform .25s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(199,172,255,.29); background: linear-gradient(145deg, rgba(28,20,47,.9), rgba(12,9,20,.9)); }
.project-card:hover::before { transform: scale(1.35); }
.project-topline { display: flex; align-items: center; justify-content: space-between; }
.project-symbol { color: #b896ff; font-size: 22px; }
.project-status { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: #9f96aa; font-size: 8px; font-weight: 700; }
.status-active { color: #8fffc8; }
.status-development { color: #d4b0ff; }
.status-private { color: #9f96aa; }
.project-number { position: absolute; right: 25px; bottom: 11px; color: rgba(255,255,255,.025); font-size: 96px; font-weight: 800; letter-spacing: -.08em; }
.project-eyebrow { margin: 68px 0 8px; color: #7f748d; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.project-description { margin: 15px 0 0; max-width: 420px; color: #9990a5; font-size: 12px; line-height: 1.8; }
.project-link { position: absolute; left: 28px; bottom: 27px; color: #c6b1ed; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.status-panel {
  min-height: 520px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 30px; align-items: center; padding: 48px;
  border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(17,12,28,.9), rgba(10,7,17,.7));
}
.status-orbit { height: 390px; position: relative; display: grid; place-items: center; }
.orbit-center { width: 90px; height: 90px; z-index: 3; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#e9dbff,#9870ff); color: #120c20; font-size: 28px; font-weight: 900; box-shadow: 0 0 55px rgba(153,112,255,.28); }
.orbit-ring { position: absolute; border: 1px solid rgba(196,164,255,.15); border-radius: 50%; }
.ring-one { width: 220px; height: 220px; }
.ring-two { width: 350px; height: 350px; border-style: dashed; opacity: .65; }
.orbit-node { position: absolute; width: 11px; height: 11px; border: 2px solid #b18cff; background: #100b1b; border-radius: 50%; box-shadow: 0 0 14px rgba(177,140,255,.8); }
.node-one { transform: translate(107px,-57px); }
.node-two { transform: translate(-139px,83px); }
.node-three { transform: translate(32px,172px); }
.status-copy h3 { margin: 13px 0; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.05em; }
.status-copy > p { max-width: 560px; color: #9991a4; font-size: 13px; line-height: 1.85; }
.domain-list { margin-top: 30px; border-top: 1px solid var(--line); }
.domain-list div { display: grid; grid-template-columns: 74px 1fr 90px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.domain-list span { color: #a27eff; font-weight: 800; }
.domain-list strong { color: #c7bfce; font-weight: 500; }
.domain-list em { color: #6f657b; font-size: 9px; font-style: normal; text-align: right; text-transform: uppercase; letter-spacing: .12em; }

.closing { text-align: center; padding-top: 95px; padding-bottom: 120px; }
.closing-kicker { color: #806f9e; font-size: 9px; font-weight: 800; letter-spacing: .25em; }
.closing h2 { max-width: 840px; margin: 15px auto; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
.closing > p:not(.closing-kicker) { color: #8e8598; font-size: 13px; }
.closing a { display: inline-block; margin-top: 26px; color: #c5aaff; font-size: 11px; font-weight: 700; text-underline-offset: 5px; }

.site-footer { min-height: 110px; padding-block: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #665e70; font-size: 9px; }
.site-footer > div { display: flex; align-items: center; gap: 11px; }
.site-footer p { margin: 0; }
.site-footer > p { text-align: center; }
.site-footer > span { text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 590px; }
  .avatar-frame { width: min(480px, 88vw); height: 580px; }
  .project-grid { grid-template-columns: 1fr; }
  .status-panel { grid-template-columns: 1fr; padding: 30px; }
  .status-orbit { height: 330px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .site-footer > div { justify-content: center; }
  .site-footer > p, .site-footer > span { text-align: center; }
}

@media (max-width: 640px) {
  .section-wrap, .site-header, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 74px; }
  .menu-button { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
  .menu-button span { display: block; width: 16px; height: 1px; background: #ded5e8; }
  .site-nav { display: none; position: absolute; top: 67px; right: 0; width: 205px; padding: 18px; flex-direction: column; align-items: flex-start; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,7,17,.96); backdrop-filter: blur(16px); }
  .site-nav.is-open { display: flex; }
  .motion-toggle { min-height: 34px; }
  .hero { min-height: auto; padding-block: 64px 68px; }
  .hero h1 { max-width: none; font-size: clamp(48px, 14vw, 68px); line-height: 1.1; letter-spacing: -.025em; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-meta { gap: 26px; flex-direction: column; }
  .hero-visual { min-height: 520px; }
  .avatar-frame { width: min(390px, 94vw); height: 500px; }
  .badge-top { top: 42px; right: 22px; }
  .badge-bottom { left: 22px; bottom: 48px; }
  .ticker-track { justify-content: flex-start; }
  .section-block { padding-block: 80px; }
  .project-card { min-height: 340px; padding: 22px; }
  .project-link { left: 22px; }
  .status-panel { padding: 22px; }
  .status-orbit { height: 275px; transform: scale(.84); margin: -12px; }
  .domain-list div { grid-template-columns: 60px 1fr 72px; }
  .closing { padding-bottom: 90px; }
}

html[data-motion="on"] .moxue-character {
  animation: moxue-float 10.5s linear infinite;
}

html[data-motion="on"] .orb-one {
  animation: aura-breathe 8.8s ease-in-out infinite;
}

html[data-motion="on"] .orbit-node {
  animation: glow 3.6s ease-in-out infinite alternate;
}

/*
 * Follow a small closed oval instead of reversing direction at hard endpoints.
 * The evenly spaced samples approximate a continuous sinusoidal float, so the
 * character never visibly "stops" on the left or right before moving back.
 */
@keyframes moxue-float {
  0%, 100% {
    transform: translate3d(0, -2px, 0) rotate(0deg) scale(1.002);
  }
  12.5% {
    transform: translate3d(3.5px, -4px, 0) rotate(.12deg) scale(1.003);
  }
  25% {
    transform: translate3d(5px, -9px, 0) rotate(.2deg) scale(1.004);
  }
  37.5% {
    transform: translate3d(3.5px, -14px, 0) rotate(.12deg) scale(1.005);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(0deg) scale(1.006);
  }
  62.5% {
    transform: translate3d(-3.5px, -14px, 0) rotate(-.12deg) scale(1.005);
  }
  75% {
    transform: translate3d(-5px, -9px, 0) rotate(-.2deg) scale(1.004);
  }
  87.5% {
    transform: translate3d(-3.5px, -4px, 0) rotate(-.12deg) scale(1.003);
  }
}

@keyframes aura-breathe {
  0%, 100% {
    transform: scale(.965);
    opacity: .7;
  }
  50% {
    transform: scale(1.055);
    opacity: 1;
  }
}

@keyframes glow {
  to {
    box-shadow: 0 0 26px rgba(177,140,255,1);
  }
}

html[data-motion="off"] .moxue-character,
html[data-motion="off"] .orb-one,
html[data-motion="off"] .orbit-node {
  animation: none !important;
}


/* Phase 2 — Identity & Projects */
.about {
  border-top: 1px solid var(--line);
}

.about-heading {
  align-items: start;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 54px;
  align-items: start;
}

.about-manifesto {
  min-height: 430px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(168,124,255,.13), transparent 34%),
    linear-gradient(145deg, rgba(23,17,38,.78), rgba(11,8,19,.86));
  box-shadow: inset 0 0 70px rgba(164,107,255,.035);
}

.about-kicker {
  display: inline-block;
  margin-bottom: 27px;
  color: #aa8fe0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

.about-manifesto > p {
  margin: 0 0 20px;
  color: #b4aabd;
  font-size: 15px;
  line-height: 2;
}

.about-manifesto > p:first-of-type {
  color: #e4dceb;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.65;
  letter-spacing: -.02em;
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 31px;
}

.capability-chips span,
.tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(197,168,255,.16);
  border-radius: 99px;
  background: rgba(168,124,255,.045);
  color: #b9a9cd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
}

.about-pillars {
  display: grid;
  gap: 13px;
}

.pillar-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
}

.pillar-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(187,151,255,.2);
  background: rgba(166,118,255,.07);
  color: #b995ff;
  font-size: 12px;
  font-weight: 800;
}

.pillar-card h3 {
  margin: 2px 0 8px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.pillar-card p {
  margin: 0;
  color: #8f8798;
  font-size: 12px;
  line-height: 1.8;
}

.project-card {
  display: block;
}

.project-card:focus-visible,
.button:focus-visible,
.motion-toggle:focus-visible,
.site-nav a:focus-visible,
.back-link:focus-visible {
  outline: 2px solid #b993ff;
  outline-offset: 4px;
}

.detail-page .site-header {
  margin-bottom: 0;
}

.detail-main {
  position: relative;
  z-index: 1;
}

.project-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 64px;
  align-items: center;
  padding-block: 90px 72px;
  border-bottom: 1px solid var(--line);
}

.project-hero-copy {
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: #8c809b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.back-link:hover {
  color: #d7c6f4;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #9d8ab8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aa7dff;
  box-shadow: 0 0 14px rgba(170,125,255,.75);
}

.project-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
}

.project-hero .hero-summary {
  max-width: 720px;
  margin: 27px 0 0;
  color: #aaa1b5;
  font-size: 15px;
  line-height: 1.95;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.project-facts {
  display: grid;
  gap: 12px;
}

.fact-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22,16,36,.72), rgba(10,8,17,.72));
}

.fact-card span {
  display: block;
  margin-bottom: 7px;
  color: #706678;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.fact-card strong {
  color: #ded5e7;
  font-size: 13px;
  font-weight: 600;
}

.detail-section {
  padding-block: 86px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 18px;
}

.detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.018);
}

.detail-card.featured {
  background:
    radial-gradient(circle at 0% 0%, rgba(168,124,255,.1), transparent 34%),
    linear-gradient(145deg, rgba(22,16,37,.78), rgba(10,8,17,.8));
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 15px;
  letter-spacing: -.03em;
}

.detail-card h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.detail-card h3 {
  font-size: 19px;
}

.detail-card p,
.detail-card li {
  color: #9990a5;
  font-size: 13px;
  line-height: 1.9;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card ul {
  margin: 0;
  padding-left: 20px;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ecosystem-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.ecosystem-node {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.015);
}

.ecosystem-node span {
  color: #806d9e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ecosystem-node strong {
  display: block;
  margin-top: 7px;
  color: #d8cfe1;
  font-size: 12px;
}


@media (max-width: 900px) {
  .about-layout,
  .project-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-hero {
    gap: 38px;
  }

  .project-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .about-manifesto,
  .detail-card {
    padding: 22px;
  }

  .about-manifesto {
    min-height: auto;
  }

  .project-hero {
    padding-block: 64px 52px;
  }

  .project-hero h1 {
    font-size: clamp(45px, 15vw, 66px);
  }

  .project-facts,
  .ecosystem-strip {
    grid-template-columns: 1fr;
  }
}


/* Phase 3 — Live Status */
.status-inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: #c7adff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.status-inline-link:hover {
  color: #efe5ff;
}

.status-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  gap: 56px;
  align-items: center;
  padding-block: 88px 64px;
  border-bottom: 1px solid var(--line);
}

.status-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
}

.status-summary-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(168,124,255,.12), transparent 36%),
    linear-gradient(145deg, rgba(23,17,38,.78), rgba(10,8,17,.82));
}

.summary-label {
  display: block;
  margin-bottom: 12px;
  color: #786b8a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.status-summary-card > strong {
  display: block;
  color: #ede4f5;
  font-size: 24px;
  letter-spacing: -.03em;
}

.status-summary-card > p {
  margin: 9px 0 0;
  color: #93899f;
  font-size: 12px;
  line-height: 1.7;
}

.status-summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status-summary-actions > span {
  color: #6f657b;
  font-size: 9px;
}

.status-refresh {
  min-height: 36px;
  padding-inline: 14px;
}

.status-refresh.is-loading {
  opacity: .6;
}

.status-live-section {
  padding-block: 72px;
}

.status-live-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.status-live-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.04em;
}

.status-live-heading > p {
  max-width: 430px;
  margin: 0;
  color: #7f758a;
  font-size: 11px;
  line-height: 1.8;
}

.live-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.live-service-card,
.status-loading-card,
.status-error-card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(22,16,36,.72), rgba(10,8,17,.76));
}

.live-service-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.live-service-name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.live-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: #70677b;
  box-shadow: 0 0 12px rgba(112,103,123,.25);
}

.live-service-name h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.live-service-name p {
  margin: 6px 0 0;
  color: #746b7d;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #8e8498;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-service-detail {
  margin: 24px 0 0;
  color: #aaa1b5;
  font-size: 12px;
  line-height: 1.75;
}

.live-service-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.live-service-meta div {
  display: grid;
  gap: 6px;
}

.live-service-meta span {
  color: #665e70;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.live-service-meta strong {
  color: #c9c0d2;
  font-size: 11px;
  font-weight: 600;
}

.status-operational .live-status-dot,
.status-reachable .live-status-dot {
  background: #82ffc1;
  box-shadow: 0 0 16px rgba(130,255,193,.65);
}

.status-operational .live-status-pill,
.status-reachable .live-status-pill {
  color: #8fffc8;
  border-color: rgba(130,255,193,.2);
}

.status-degraded .live-status-dot {
  background: #ffd37c;
  box-shadow: 0 0 16px rgba(255,211,124,.55);
}

.status-degraded .live-status-pill {
  color: #ffd793;
  border-color: rgba(255,211,124,.2);
}

.status-unreachable .live-status-dot {
  background: #ff8f9d;
  box-shadow: 0 0 16px rgba(255,143,157,.52);
}

.status-unreachable .live-status-pill {
  color: #ff9aa7;
  border-color: rgba(255,143,157,.2);
}

.status-unmonitored .live-status-dot {
  background: #8c8199;
}

.status-unmonitored .live-status-pill {
  color: #9d92a8;
}

.status-loading-card,
.status-error-card {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  min-height: 170px;
  color: #988da4;
  text-align: center;
}

.status-error-card strong {
  color: #e3d8ec;
}

.status-error-card p {
  margin: 8px 0 0;
  color: #8a8194;
  font-size: 12px;
}

.status-monitoring-note {
  padding-top: 0;
}

@media (max-width: 900px) {
  .status-hero,
  .live-service-grid {
    grid-template-columns: 1fr;
  }

  .status-live-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 640px) {
  .status-hero {
    padding-block: 64px 48px;
  }

  .status-summary-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-service-meta {
    grid-template-columns: 1fr;
  }
}
