:root {
  --bg: #07090c;
  --bg-soft: #0b0f12;
  --panel: #101519;
  --panel-hover: #141b20;
  --text: #f3f6f2;
  --muted: #96a19e;
  --muted-strong: #bac3c0;
  --line: rgba(221, 238, 235, 0.14);
  --line-strong: rgba(221, 238, 235, 0.28);
  --acid: #c8ff48;
  --cyan: #50dff2;
  --warm: #ffad63;
  --coral: #ff7181;
  --header-height: 68px;
  --shell: 1180px;
  --grid-shift: 0px;
  --font-sans: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--acid);
  color: #090b08;
}

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

a {
  color: inherit;
}

button {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #090b08;
  background: var(--acid);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(200, 255, 72, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.signal-canvas,
.page-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.signal-canvas {
  z-index: 0;
  opacity: 0.86;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 5px rgba(80, 223, 242, 0.16));
}

.page-grid {
  z-index: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(80, 223, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 223, 242, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
  transform: translate3d(0, var(--grid-shift), 0);
  will-change: transform;
}

.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: rgba(126, 238, 255, 0.18);
  mix-blend-mode: screen;
}

.power-surge .screen-flash {
  animation: screenSurge 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.1);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.95);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  color: #090b08;
  background: var(--acid);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(200, 255, 72, 0.18);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 850;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font: 9px/1 var(--font-mono);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 22px 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 173, 99, 0.42);
  border-radius: 4px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.support-link svg {
  width: 16px;
  height: 16px;
}

.support-link:hover,
.support-link:focus-visible {
  border-color: var(--warm);
  color: #171007;
  background: var(--warm);
  transform: translateY(-2px);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.menu-close-icon,
.menu-button[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: #090c0f;
}

.mobile-nav .shell {
  display: grid;
}

.mobile-nav a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a span {
  color: var(--cyan);
  font: 10px/1 var(--font-mono);
}

.hero {
  min-height: calc(100svh - 136px);
  display: flex;
  align-items: center;
  padding: 54px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 68px;
}

.hero-copy {
  max-width: 650px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
  color: var(--acid);
  font: 11px/1.2 var(--font-mono);
}

.status-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200, 255, 72, 0.7);
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--acid);
  border-radius: inherit;
  opacity: 0;
  animation: statusPulse 2.2s ease-out infinite;
}

.status-code {
  color: var(--muted);
}

.hero-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font: 11px/1.3 var(--font-mono);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 5px 0 0;
  color: var(--text);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(243, 246, 242, 0.06);
}

h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

h1::before {
  color: var(--cyan);
  clip-path: inset(8% 0 58% 0);
}

h1::after {
  color: var(--coral);
  clip-path: inset(62% 0 8% 0);
}

.app-ready h1::before {
  animation: titleGlitchTop 5.8s steps(1, end) 1.05s infinite;
}

.app-ready h1::after {
  animation: titleGlitchBottom 5.8s steps(1, end) 1.05s infinite;
}

.power-surge h1 {
  animation: headlineSurge 680ms ease-out 1;
}

.mobile-avatar {
  display: none;
}

.mobile-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, var(--acid), transparent 20% 46%, var(--cyan) 54%, transparent 64% 82%, var(--coral));
  -webkit-mask-image: radial-gradient(circle, transparent 0 88%, #000 90% 100%);
  mask-image: radial-gradient(circle, transparent 0 88%, #000 90% 100%);
  animation: energySpin 4.6s linear infinite;
}

.power-surge .mobile-avatar {
  animation: mobileAvatarImpact 720ms ease-out 1;
}

.hero-role {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 760;
  line-height: 1.35;
}

.hero-description {
  max-width: 600px;
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.85;
}

.welcome-line {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  color: var(--muted-strong);
  background: rgba(80, 223, 242, 0.055);
  font-size: 13px;
  line-height: 1.65;
}

.welcome-line svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: var(--cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  position: relative;
  min-width: 142px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-170%) skewX(-18deg);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
  animation: buttonCurrent 620ms ease-out 1;
}

.magnetic-control {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  translate: var(--magnetic-x) var(--magnetic-y);
  will-change: translate;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: #0a0d08;
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 0 22px rgba(200, 255, 72, 0.13);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(16, 21, 25, 0.66);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ddff87;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.countdown-wrap {
  width: min(100%, 580px);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.countdown-heading {
  min-width: 104px;
  display: grid;
  gap: 5px;
}

.countdown-heading span {
  color: var(--muted);
  font: 9px/1 var(--font-mono);
}

.countdown-heading strong {
  color: var(--acid);
  font: 13px/1 var(--font-mono);
}

.countdown-values {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.countdown-values > span {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.countdown-values strong {
  min-width: 2ch;
  display: inline-block;
  color: var(--text);
  font: 21px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.countdown-values span:first-child strong {
  min-width: 3ch;
}

.countdown-values small {
  color: var(--muted);
  font-size: 10px;
}

.countdown-values i {
  color: var(--line-strong);
  font: normal 15px/1 var(--font-mono);
}

.birthday-greeting {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 173, 99, 0.5);
  border-radius: 4px;
  background: rgba(255, 173, 99, 0.08);
}

.birthday-greeting svg {
  width: 38px;
  height: 38px;
  color: var(--warm);
}

.birthday-greeting div {
  display: grid;
  gap: 4px;
}

.birthday-greeting span {
  color: var(--warm);
  font: 9px/1 var(--font-mono);
}

.birthday-greeting strong {
  font-size: 20px;
}

.birthday-mode .status-pulse {
  background: var(--warm);
  box-shadow: 0 0 18px rgba(255, 173, 99, 0.8);
}

.identity-stage {
  --portrait-x: 0px;
  --portrait-y: 0px;
  --orbit-x: 0px;
  --orbit-y: 0px;
  --ring-x: 0px;
  --ring-y: 0px;
  --trace-x: 0px;
  --trace-y: 0px;
  --label-x: 0px;
  --label-y: 0px;
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  justify-self: end;
  isolation: isolate;
}

.identity-stage::before,
.identity-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.identity-stage::before {
  inset: 16%;
  z-index: -2;
  border: 1px solid rgba(80, 223, 242, 0.13);
  transform: rotate(45deg);
}

.identity-stage::after {
  top: 50%;
  right: 0;
  left: 0;
  z-index: -2;
  height: 1px;
  background: rgba(200, 255, 72, 0.2);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(80, 223, 242, 0.22);
  border-radius: 50%;
  pointer-events: none;
  translate: var(--orbit-x) var(--orbit-y);
}

.energy-ring {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.74;
  background: conic-gradient(from 0deg, transparent 0 10%, var(--cyan) 15%, transparent 23% 44%, var(--acid) 51%, transparent 59% 78%, var(--coral) 84%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 66%, #000 67% 70%, transparent 71% 100%);
  mask-image: radial-gradient(circle, transparent 0 66%, #000 67% 70%, transparent 71% 100%);
  filter: drop-shadow(0 0 7px rgba(80, 223, 242, 0.58));
  translate: var(--ring-x) var(--ring-y);
}

.energy-ring-outer {
  inset: 8%;
  animation: energySpin 8s linear infinite;
}

.energy-ring-inner {
  inset: 18%;
  opacity: 0.52;
  animation: energySpinReverse 5.5s linear infinite;
}

.orbit-outer {
  inset: 3%;
  border-style: dashed;
  animation: orbitSpin 24s linear infinite;
}

.orbit-inner {
  inset: 15%;
  border-color: rgba(200, 255, 72, 0.22);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: orbitSpinReverse 17s linear infinite;
}

.orbit-outer i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.orbit-outer i:nth-child(1) { top: 11%; left: 20%; }
.orbit-outer i:nth-child(2) { top: 54%; right: -4px; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.orbit-outer i:nth-child(3) { bottom: 4%; left: 34%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }

.electric-trace {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  translate: var(--trace-x) var(--trace-y);
}

.electric-trace path {
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 5px rgba(80, 223, 242, 0.7));
  animation: traceMove 5s linear infinite;
}

.avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--acid);
  border-radius: 50%;
  background: #11171a;
  box-shadow:
    0 0 0 9px rgba(200, 255, 72, 0.06),
    0 0 0 10px rgba(200, 255, 72, 0.17),
    0 0 42px rgba(80, 223, 242, 0.22);
  transform: translate3d(calc(-50% + var(--portrait-x)), calc(-50% + var(--portrait-y)), 0);
  transition: transform 160ms ease-out, box-shadow 220ms ease;
}

.birthday-mode .avatar-frame {
  box-shadow:
    0 0 0 10px rgba(255, 173, 99, 0.1),
    0 0 0 11px rgba(255, 173, 99, 0.42),
    0 0 58px rgba(255, 173, 99, 0.35);
}

.power-surge .avatar-frame {
  animation: avatarImpact 760ms cubic-bezier(0.18, 0.85, 0.24, 1) 1;
}

.power-surge .energy-ring-outer {
  animation: ringImpact 820ms ease-out 1;
}

.power-surge .energy-ring-inner {
  animation: ringImpactReverse 680ms ease-out 70ms 1;
}

.power-surge .electric-trace path {
  animation: traceDischarge 760ms ease-out 1;
}

.avatar-frame img,
.mobile-avatar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--acid);
  background: #11171a;
  font-size: 64px;
  font-weight: 900;
}

.avatar-scan {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  height: 2px;
  background: rgba(200, 255, 72, 0.8);
  box-shadow: 0 0 14px rgba(200, 255, 72, 0.8);
  animation: avatarScan 4.8s ease-in-out infinite;
}

.identity-code,
.identity-label {
  position: absolute;
  color: var(--muted);
  font: 9px/1.65 var(--font-mono);
  translate: var(--label-x) var(--label-y);
}

.identity-code {
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-code span {
  color: var(--acid);
}

.code-top { top: 4%; right: 8%; }
.code-bottom { bottom: 4%; left: 8%; }
.label-left { top: 31%; left: 0; }
.label-right { right: 0; bottom: 28%; text-align: right; }

.daily-signal {
  min-height: 92px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 16, 0.9);
}

.daily-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.daily-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font: 10px/1 var(--font-mono);
}

.daily-label svg {
  width: 20px;
  height: 20px;
}

.daily-inner blockquote {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}

.daily-inner blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.daily-inner blockquote footer {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.signal-index {
  color: rgba(200, 255, 72, 0.5);
  font: 10px/1 var(--font-mono);
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-heading h2,
.support-inner h2 {
  margin: 9px 0 0;
  font-size: 44px;
  font-weight: 860;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: right;
}

.projects-section {
  background: rgba(7, 9, 12, 0.72);
}

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

.project-card {
  --project-accent: var(--acid);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(16, 21, 25, 0.9);
  text-decoration: none;
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 18%, var(--project-accent) 26%, transparent 34% 68%, rgba(243, 246, 242, 0.8) 74%, transparent 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.project-card > * {
  position: relative;
  z-index: 2;
}

.project-card-cyan { --project-accent: var(--cyan); }
.project-card-warm { --project-accent: var(--coral); }

.project-card:hover,
.project-card:focus-visible {
  border-color: color-mix(in srgb, var(--project-accent) 70%, transparent);
  background: var(--panel-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  transform: translateY(-5px);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
  animation: edgeCurrent 1.35s linear infinite;
}

.project-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 24%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--project-accent) 14%, transparent), transparent);
  transform: translateX(-180%) skewX(-16deg);
  will-change: transform;
}

.project-card:hover .project-scan,
.project-card:focus-visible .project-scan {
  opacity: 1;
  animation: cardScan 850ms ease-out 1;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 9px/1 var(--font-mono);
}

.project-topline span:last-child {
  color: var(--project-accent);
}

.project-icon {
  width: 60px;
  height: 60px;
  margin-top: 44px;
  color: var(--project-accent);
}

.js .project-card .project-icon path,
.js .project-card .project-icon rect,
.js .project-card .project-icon circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

.js .project-card.is-visible .project-icon path,
.js .project-card.is-visible .project-icon rect,
.js .project-card.is-visible .project-icon circle {
  animation: iconCircuitDraw 980ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--reveal-delay, 0ms) + 180ms) forwards;
}

.project-content {
  margin-top: 28px;
}

.project-content h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 820;
}

.project-content p {
  min-height: 54px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font: 11px/1 var(--font-mono);
}

.project-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-footer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--project-accent);
  transition: transform 180ms ease;
}

.project-card:hover .project-footer svg,
.project-card:focus-visible .project-footer svg {
  transform: translate(2px, -2px);
}

.blog-section {
  border-top: 1px solid var(--line);
  background: #0c1013;
}

.blog-heading-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.blog-heading-side p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: right;
}

.blog-admin-link {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: #0b0f12;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.blog-admin-link svg {
  width: 18px;
  height: 18px;
}

.blog-admin-link:hover,
.blog-admin-link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.blog-status {
  min-height: 18px;
  margin: -16px 0 22px;
  color: rgba(80, 223, 242, 0.68);
  font: 9px/1.4 var(--font-mono);
}

.blog-list {
  border-top: 1px solid var(--line-strong);
}

.blog-entry {
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 150px 24px;
  align-items: center;
  gap: 24px;
  padding: 22px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, padding 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-entry.has-cover {
  grid-template-columns: 92px 112px minmax(0, 1fr) 150px 24px;
}

.blog-entry-cover {
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0d1215;
}

.blog-entry-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: filter 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-entry:hover .blog-entry-cover img,
.blog-entry:focus-visible .blog-entry-cover img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.035);
}

.blog-entry:hover,
.blog-entry:focus-visible {
  padding-right: 14px;
  padding-left: 22px;
  background: rgba(80, 223, 242, 0.055);
}

.blog-entry-index {
  color: var(--cyan);
  font: 9px/1 var(--font-mono);
}

.blog-entry-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.blog-entry-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  font-weight: 790;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-entry-copy > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-entry-meta {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font: 9px/1.2 var(--font-mono);
  text-align: right;
}

.blog-entry-meta span {
  max-width: 100%;
  overflow: hidden;
  color: rgba(200, 255, 72, 0.68);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-entry-arrow {
  width: 21px;
  height: 21px;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.blog-entry:hover .blog-entry-arrow,
.blog-entry:focus-visible .blog-entry-arrow {
  color: var(--acid);
  transform: translate(2px, -2px);
}

.blog-skeleton {
  min-height: 132px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-content: center;
  gap: 9px 24px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  opacity: 0.48;
}

.blog-skeleton span,
.blog-skeleton i {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(80, 223, 242, 0.12), rgba(255, 255, 255, 0.045));
  background-size: 240% 100%;
  animation: blogLoading 1.45s linear infinite;
}

.blog-skeleton span {
  width: 56px;
  grid-row: 1 / 3;
  align-self: center;
}

.blog-skeleton i:nth-child(2) { width: min(440px, 70%); }
.blog-skeleton i:nth-child(3) { width: min(620px, 92%); opacity: 0.62; }

.blog-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.blog-empty strong {
  color: var(--text);
  font-size: 16px;
}

.blog-empty span {
  font-size: 12px;
}

.blog-empty-error strong { color: var(--coral); }

.blog-more-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blog-more-button svg {
  width: 18px;
  height: 18px;
}

.blog-more-button:hover,
.blog-more-button:focus-visible {
  border-color: var(--acid);
  color: #080a08;
  background: var(--acid);
}

body.post-open {
  overflow: hidden;
}

body.post-open .reading-progress {
  opacity: 0;
}

.post-dialog {
  position: fixed;
  inset: 0;
  z-index: 1700;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--text);
  background: #090c0e;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-dialog[open] {
  display: block;
}

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

.post-dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.post-dialog-shell {
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(rgba(80, 223, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 223, 242, 0.035) 1px, transparent 1px),
    #090c0e;
  background-size: 64px 64px;
}

.post-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(12px, env(safe-area-inset-top)) 28px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 12, 0.9);
  backdrop-filter: blur(14px);
}

.post-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.post-brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  color: #0a0c08;
  background: var(--acid);
}

.post-brand svg {
  width: 19px;
  height: 19px;
}

.post-brand strong {
  overflow: hidden;
  font: 10px/1 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-toolbar-actions {
  display: flex;
  gap: 8px;
}

.post-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: #0c1114;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.post-icon-button svg {
  width: 19px;
  height: 19px;
}

.post-icon-button:hover,
.post-icon-button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.post-article {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.post-loading,
.post-article > div {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
}

.post-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font: 10px/1.4 var(--font-mono);
}

#postContent {
  padding: 72px 0 92px;
}

.post-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font: 10px/1 var(--font-mono);
}

.post-article h2 {
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 840;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.post-excerpt {
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.75;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font: 10px/1.4 var(--font-mono);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.post-tags span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--acid);
  background: #0d1215;
  font: 9px/1 var(--font-mono);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  object-fit: cover;
  background: #0d1215;
}

.post-body {
  margin-top: 50px;
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
  color: #d5dcda;
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.post-cover:not([hidden]) + .post-body {
  margin-top: 30px;
}

.post-body p {
  margin: 0;
  white-space: pre-line;
}

.post-body p + p {
  margin-top: 1.45em;
}

.post-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 28px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 10, 12, 0.94);
  font: 9px/1 var(--font-mono);
}

.post-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(200, 255, 72, 0.64);
}

.post-footer button {
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

@keyframes blogLoading {
  to { background-position: -140% 0; }
}

.about-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a0d10;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.about-heading {
  position: relative;
  min-height: 430px;
}

.about-bolt {
  --charge: 0;
  position: absolute;
  top: 132px;
  left: 0;
  width: 160px;
  height: 224px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(200, 255, 72, 0.24);
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.about-bolt svg {
  width: 132px;
  height: 205px;
  overflow: visible;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-bolt-fill {
  fill: var(--acid);
  transform: scaleY(var(--charge));
  transform-origin: 40px 124px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-bolt.is-charging .about-bolt-fill {
  transition: none;
}

.about-bolt-outline,
.about-bolt-core {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.about-bolt-outline {
  stroke: currentColor;
  stroke-width: 2;
  transition: color 220ms ease, stroke-width 220ms ease;
}

.about-bolt-core {
  stroke: var(--acid);
  stroke-width: 1;
  stroke-dasharray: 8 18;
  opacity: 0;
}

.about-bolt-aura,
.about-bolt::before,
.about-bolt::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(200, 255, 72, 0.28);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.42);
}

.about-bolt-aura {
  z-index: -1;
  border-color: rgba(80, 223, 242, 0.34);
}

.about-bolt::after {
  width: 156px;
  height: 156px;
  border-style: dashed;
}

.about-bolt:hover svg,
.about-bolt:focus-visible svg,
.about-bolt.is-charging svg {
  filter: drop-shadow(0 0 10px rgba(200, 255, 72, 0.38));
  transform: scale(1.025);
}

.about-bolt:hover .about-bolt-outline,
.about-bolt:focus-visible .about-bolt-outline,
.about-bolt.is-charging .about-bolt-outline {
  color: rgba(200, 255, 72, 0.72);
}

.about-bolt.is-charging .about-bolt-core {
  opacity: 0.92;
  animation: boltCurrent 440ms linear infinite;
}

.about-bolt.is-charging .about-bolt-aura {
  animation: boltChargeRing 920ms ease-out infinite;
}

.about-bolt.is-charging::before {
  animation: boltChargeRing 920ms ease-out 280ms infinite;
}

.about-bolt.is-complete svg {
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 28px rgba(200, 255, 72, 0.9));
  animation: boltUnlock 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-bolt.is-complete::after {
  animation: boltRelease 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-content {
  padding-top: 4px;
}

.about-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-content .about-lead {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 27px;
  font-weight: 760;
  line-height: 1.5;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.about-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-strong);
  background: #0f1417;
  font: 11px/1 var(--font-mono);
}

.identity-list {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}

.identity-list div {
  min-height: 62px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.identity-list dt {
  color: var(--muted);
  font-size: 12px;
}

.identity-list dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.identity-list .identity-index {
  margin: 0;
  color: rgba(80, 223, 242, 0.45);
  font: 10px/1 var(--font-mono);
}

.contact-section {
  background: rgba(7, 9, 12, 0.74);
}

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

.contact-card {
  position: relative;
  min-width: 0;
  min-height: 242px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(16, 21, 25, 0.86);
  text-decoration: none;
  isolation: isolate;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 2px;
  pointer-events: none;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(80, 223, 242, 0.72);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

a.contact-card.contact-main {
  padding: 24px;
}

article.contact-card .contact-main {
  min-height: 186px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.contact-card:hover,
.contact-card:focus-visible,
.contact-card:focus-within {
  z-index: 2;
  border-color: rgba(80, 223, 242, 0.55);
  background: var(--panel-hover);
  transform: translateY(-4px);
}

.contact-card:hover::before,
.contact-card:focus-visible::before,
.contact-card:focus-within::before {
  transform: scaleY(1);
  transform-origin: top;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  margin-bottom: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  background: #0b1013;
}

.contact-icon svg {
  width: 23px;
  height: 23px;
}

.contact-icon-qq svg {
  width: 27px;
  height: 27px;
}

.contact-icon-bili { color: #5bd9ff; }
.contact-icon-mail { color: var(--warm); }
.contact-icon-github { color: var(--acid); }

.contact-card:hover .contact-icon svg,
.contact-card:focus-visible .contact-icon svg,
.contact-card:focus-within .contact-icon svg {
  animation: contactSignal 460ms ease-out 1;
}

.contact-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.contact-copy small {
  color: var(--muted);
  font: 10px/1 var(--font-mono);
}

.contact-copy strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-arrow {
  position: absolute;
  top: 25px;
  right: 24px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.contact-card:hover .contact-arrow,
.contact-card:focus-visible .contact-arrow,
.contact-card:focus-within .contact-arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.copy-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: #0a0d08;
  background: var(--acid);
}

.support-band {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--warm);
  color: #171007;
}

.support-inner {
  min-height: 240px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.support-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 16, 7, 0.28);
  border-radius: 6px;
}

.support-icon svg {
  width: 42px;
  height: 42px;
}

.support-inner .section-kicker {
  color: rgba(23, 16, 7, 0.68);
}

.support-inner h2 {
  font-size: 36px;
}

.support-inner p:last-child {
  margin: 9px 0 0;
  color: rgba(23, 16, 7, 0.72);
  font-size: 14px;
}

.support-button {
  color: var(--text);
  background: #15100b;
  border-color: #15100b;
}

.support-button:hover,
.support-button:focus-visible {
  color: var(--acid);
  background: #07090c;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #07090c;
}

.footer-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.footer-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(200, 255, 72, 0.6);
}

.back-to-top {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-2px);
}

body.capsule-open {
  overflow: hidden;
}

.time-capsule {
  --capsule-base: #050809;
  --capsule-surface: rgba(8, 13, 14, 0.88);
  --capsule-text: #f4f7f2;
  --capsule-muted: #9aa8a5;
  --capsule-accent: #c8ff48;
  --capsule-secondary: #50dff2;
  --capsule-line: rgba(211, 238, 229, 0.18);
  --capsule-grid-color: rgba(80, 223, 242, 0.065);
  --capsule-fill: #f5f7f4;
  --capsule-effects-opacity: 0.7;
  --capsule-custom-base: #102a2e;
  --capsule-origin-x: 50vw;
  --capsule-origin-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--capsule-text);
  background: var(--capsule-base);
  font-family: var(--font-sans);
  opacity: 0;
  clip-path: circle(0 at var(--capsule-origin-x) var(--capsule-origin-y));
  transition: clip-path 720ms cubic-bezier(0.72, 0, 0.14, 1), opacity 180ms ease;
}

.time-capsule[open] {
  display: block;
}

.time-capsule.is-visible {
  opacity: 1;
  clip-path: circle(160vmax at var(--capsule-origin-x) var(--capsule-origin-y));
}

.time-capsule::backdrop {
  background: #020303;
}

.time-capsule[data-theme="crimson"] {
  --capsule-base: #310016;
  --capsule-surface: rgba(63, 2, 29, 0.9);
  --capsule-muted: #ddabb9;
  --capsule-accent: #ff668b;
  --capsule-secondary: #ffc5d2;
  --capsule-line: rgba(255, 208, 219, 0.2);
  --capsule-grid-color: rgba(255, 186, 203, 0.06);
  --capsule-fill: #fff7f9;
}

.time-capsule[data-theme="mono"] {
  --capsule-base: #090a0a;
  --capsule-surface: rgba(15, 16, 16, 0.92);
  --capsule-muted: #a5a8a7;
  --capsule-accent: #f4f5f2;
  --capsule-secondary: #aeb4b2;
  --capsule-line: rgba(255, 255, 255, 0.17);
  --capsule-grid-color: rgba(255, 255, 255, 0.045);
  --capsule-fill: #f5f5f3;
}

.time-capsule[data-theme="custom"] {
  --capsule-base: var(--capsule-custom-base);
  --capsule-surface: rgba(5, 9, 10, 0.82);
  --capsule-accent: #c8ff48;
  --capsule-secondary: #50dff2;
  --capsule-grid-color: rgba(255, 255, 255, 0.055);
}

.capsule-background,
.capsule-grid,
.capsule-sweep,
.capsule-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.capsule-background {
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(80, 223, 242, 0.05) 58.1%, transparent 58.35%),
    radial-gradient(circle at 72% 54%, rgba(200, 255, 72, 0.09), transparent 37%),
    linear-gradient(160deg, #071011 0%, var(--capsule-base) 48%, #030506 100%);
}

.time-capsule[data-theme="crimson"] .capsule-background {
  background:
    linear-gradient(112deg, transparent 0 62%, rgba(255, 197, 210, 0.07) 62.1%, transparent 62.35%),
    radial-gradient(circle at 78% 44%, rgba(255, 102, 139, 0.14), transparent 39%),
    linear-gradient(145deg, #1b000c 0%, var(--capsule-base) 50%, #5e0c27 100%);
}

.time-capsule[data-theme="mono"] .capsule-background {
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, 0.05) 58.1%, transparent 58.35%),
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.065), transparent 38%),
    linear-gradient(150deg, #030303, #111212 52%, #050606);
}

.time-capsule[data-theme="custom"] .capsule-background {
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, 0.07) 58.1%, transparent 58.35%),
    radial-gradient(circle at 72% 50%, rgba(80, 223, 242, 0.11), transparent 40%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.62), transparent 56%, rgba(0, 0, 0, 0.46)),
    var(--capsule-base);
}

.capsule-field {
  z-index: 2;
  opacity: var(--capsule-effects-opacity);
  mix-blend-mode: screen;
}

.capsule-grid {
  z-index: 1;
  opacity: var(--capsule-effects-opacity);
  background-image:
    linear-gradient(var(--capsule-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--capsule-grid-color) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  animation: capsuleGridDrift 18s linear infinite;
}

.capsule-sweep {
  z-index: 3;
  top: -24%;
  height: 24%;
  opacity: var(--capsule-effects-opacity);
  background: linear-gradient(to bottom, transparent, rgba(200, 255, 72, 0.035) 76%, rgba(200, 255, 72, 0.28));
  box-shadow: 0 1px 0 rgba(200, 255, 72, 0.4);
  animation: capsuleSweep 7.2s cubic-bezier(0.3, 0.1, 0.2, 1) infinite;
}

.time-capsule[data-theme="crimson"] .capsule-sweep {
  background: linear-gradient(to bottom, transparent, rgba(255, 197, 210, 0.03) 76%, rgba(255, 197, 210, 0.22));
  box-shadow: 0 1px 0 rgba(255, 197, 210, 0.36);
}

.capsule-radar {
  position: absolute;
  top: 50%;
  right: -110px;
  z-index: 1;
  width: 520px;
  height: 520px;
  border: 1px solid color-mix(in srgb, var(--capsule-secondary) 16%, transparent);
  border-radius: 50%;
  opacity: var(--capsule-effects-opacity);
  pointer-events: none;
  transform: translateY(-50%);
}

.capsule-radar::before,
.capsule-radar::after,
.capsule-radar span {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--capsule-secondary) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.capsule-radar::before { inset: 17%; }
.capsule-radar::after { inset: 34%; }
.capsule-radar span:first-child { inset: 49% -12%; border-radius: 0; border-width: 1px 0 0; }
.capsule-radar span:last-child { inset: -12% 49%; border-radius: 0; border-width: 0 0 0 1px; }

.capsule-radar span:last-child::after {
  position: absolute;
  top: 50%;
  left: -1px;
  width: 260px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--capsule-secondary), transparent);
  transform-origin: left;
  animation: capsuleRadar 9s linear infinite;
}

.capsule-static .capsule-grid,
.capsule-static .capsule-sweep,
.capsule-static .capsule-radar span:last-child::after {
  animation-play-state: paused;
}

.capsule-interface {
  position: relative;
  z-index: 4;
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.capsule-toolbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(14px, env(safe-area-inset-top)) 32px 14px;
  border-bottom: 1px solid var(--capsule-line);
  background: color-mix(in srgb, var(--capsule-base) 72%, transparent);
  backdrop-filter: blur(14px);
}

.capsule-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.capsule-brand > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.capsule-brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.capsule-brand small {
  overflow: hidden;
  color: var(--capsule-muted);
  font: 9px/1.2 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capsule-brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--capsule-accent) 48%, transparent);
  color: var(--capsule-accent);
  background: color-mix(in srgb, var(--capsule-base) 84%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--capsule-accent) 16%, transparent);
}

.capsule-brand-icon svg {
  width: 22px;
  height: 22px;
}

.capsule-actions {
  display: flex;
  gap: 8px;
}

.capsule-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--capsule-line);
  border-radius: 3px;
  color: var(--capsule-text);
  background: color-mix(in srgb, var(--capsule-base) 76%, transparent);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.capsule-icon-button svg {
  width: 20px;
  height: 20px;
}

.capsule-icon-button:hover,
.capsule-icon-button:focus-visible {
  border-color: var(--capsule-accent);
  color: var(--capsule-accent);
  background: color-mix(in srgb, var(--capsule-accent) 9%, var(--capsule-base));
  transform: translateY(-1px);
}

.capsule-main {
  width: min(1120px, calc(100% - 64px));
  min-height: 0;
  margin: 0 auto;
  padding: 44px 0 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--capsule-accent) transparent;
}

.capsule-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding-bottom: 34px;
}

.capsule-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--capsule-secondary);
  font: 10px/1 var(--font-mono);
}

.capsule-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--capsule-accent);
  box-shadow: 0 0 14px var(--capsule-accent);
  animation: capsuleLive 1.8s ease-out infinite;
}

.capsule-intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: 50px;
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: 0;
}

.capsule-intro > div:first-child > p:last-child {
  margin: 12px 0 0;
  color: var(--capsule-muted);
  font-size: 14px;
}

.capsule-clock {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.capsule-clock time,
.capsule-clock small {
  color: var(--capsule-muted);
  font-size: 10px;
}

.capsule-clock strong {
  color: var(--capsule-accent);
  font-size: 44px;
  font-weight: 520;
  line-height: 1.1;
  text-shadow: 0 0 26px color-mix(in srgb, var(--capsule-accent) 30%, transparent);
}

.capsule-timeline {
  border-bottom: 1px solid var(--capsule-line);
}

.capsule-metric {
  --progress: 0%;
  padding: 22px 0 24px;
  border-top: 1px solid var(--capsule-line);
}

.capsule-metric-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.capsule-metric-copy p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.capsule-metric-copy p:last-child {
  color: var(--capsule-muted);
  text-align: right;
}

.capsule-metric-copy span {
  color: var(--capsule-muted);
  font-size: 12px;
}

.capsule-metric-copy strong {
  color: var(--capsule-text);
  font-size: 17px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.capsule-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--capsule-text) 12%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--capsule-text) 7%, transparent);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.22);
}

.capsule-track::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  opacity: 0.2;
  background: repeating-linear-gradient(90deg, transparent 0 46px, currentColor 47px, transparent 48px);
}

.capsule-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: linear-gradient(90deg, var(--capsule-fill), color-mix(in srgb, var(--capsule-fill) 82%, var(--capsule-accent)));
  box-shadow: 0 0 22px color-mix(in srgb, var(--capsule-accent) 38%, transparent);
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-fill::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  content: "";
  background: #fff;
  box-shadow: 0 0 12px 3px var(--capsule-accent);
}

.capsule-percent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 10px/1 var(--font-mono);
  mix-blend-mode: difference;
  font-variant-numeric: tabular-nums;
}

.capsule-footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 32px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--capsule-line);
  color: var(--capsule-muted);
  background: color-mix(in srgb, var(--capsule-base) 76%, transparent);
  font: 9px/1.2 var(--font-mono);
  backdrop-filter: blur(14px);
}

.capsule-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capsule-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--capsule-accent);
  box-shadow: 0 0 10px var(--capsule-accent);
}

.capsule-settings {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.capsule-settings-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: default;
  opacity: 0;
  transition: opacity 260ms ease;
}

.capsule-settings-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(410px, 100%);
  height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-left: 1px solid var(--capsule-line);
  color: var(--capsule-text);
  background: color-mix(in srgb, var(--capsule-base) 92%, #060809);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-settings.is-open .capsule-settings-scrim {
  opacity: 1;
}

.capsule-settings.is-open .capsule-settings-panel {
  transform: translateX(0);
}

.capsule-settings-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--capsule-line);
}

.capsule-settings-panel > header p,
.capsule-settings-panel > header h3 {
  margin: 0;
}

.capsule-settings-panel > header p {
  margin-bottom: 6px;
  color: var(--capsule-secondary);
  font: 9px/1 var(--font-mono);
}

.capsule-settings-panel > header h3 {
  font-size: 24px;
  line-height: 1.2;
}

.capsule-setting-group,
.capsule-color-setting,
.capsule-range-setting,
.capsule-toggle-setting {
  padding: 24px 0;
  border-bottom: 1px solid var(--capsule-line);
}

.capsule-setting-label {
  margin: 0 0 14px;
  color: var(--capsule-muted);
  font-size: 11px;
  font-weight: 700;
}

.capsule-background-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.capsule-background-option {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--capsule-muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.capsule-background-option[aria-pressed="true"] {
  color: var(--capsule-text);
}

.capsule-swatch {
  position: relative;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--capsule-line);
  border-radius: 3px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.capsule-background-option:hover .capsule-swatch,
.capsule-background-option:focus-visible .capsule-swatch,
.capsule-background-option[aria-pressed="true"] .capsule-swatch {
  border-color: var(--capsule-accent);
  transform: translateY(-2px);
}

.capsule-background-option[aria-pressed="true"] .capsule-swatch::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.swatch-circuit {
  background:
    linear-gradient(rgba(80, 223, 242, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 223, 242, 0.14) 1px, transparent 1px),
    #061011;
  background-size: 12px 12px;
}

.swatch-crimson { background: linear-gradient(145deg, #25000f, #8b1737); }
.swatch-mono { background: linear-gradient(145deg, #020202, #3f4241); }
.swatch-custom { background: linear-gradient(145deg, var(--capsule-custom-base), #050708); }

.capsule-color-setting,
.capsule-toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.capsule-color-setting > span,
.capsule-toggle-setting > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.capsule-color-setting strong,
.capsule-range-setting strong,
.capsule-toggle-setting strong {
  font-size: 13px;
}

.capsule-color-setting small,
.capsule-toggle-setting small {
  color: var(--capsule-muted);
  font-size: 10px;
}

.capsule-color-setting input {
  width: 48px;
  height: 34px;
  flex: 0 0 48px;
  padding: 3px;
  border: 1px solid var(--capsule-line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.capsule-range-setting > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.capsule-range-setting output {
  color: var(--capsule-accent);
  font: 11px/1 var(--font-mono);
}

.capsule-range-setting input {
  width: 100%;
  height: 4px;
  display: block;
  accent-color: var(--capsule-accent);
  cursor: pointer;
}

.capsule-toggle-setting {
  position: relative;
  padding-right: 54px;
  cursor: pointer;
}

.capsule-toggle-setting input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.capsule-toggle-setting i {
  position: absolute;
  top: 50%;
  right: 0;
  width: 42px;
  height: 23px;
  border: 1px solid var(--capsule-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease;
}

.capsule-toggle-setting i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  content: "";
  background: var(--capsule-muted);
  transition: transform 180ms ease, background 180ms ease;
}

.capsule-toggle-setting input:checked + i {
  border-color: color-mix(in srgb, var(--capsule-accent) 60%, transparent);
  background: color-mix(in srgb, var(--capsule-accent) 16%, transparent);
}

.capsule-toggle-setting input:checked + i::after {
  background: var(--capsule-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--capsule-accent) 60%, transparent);
  transform: translateX(19px);
}

.capsule-toggle-setting input:focus-visible + i {
  outline: 2px solid var(--capsule-accent);
  outline-offset: 4px;
}

.capsule-reset-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 24px;
  padding: 0 16px;
  border: 1px solid var(--capsule-line);
  border-radius: 3px;
  color: var(--capsule-text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.capsule-reset-button svg {
  width: 17px;
  height: 17px;
}

.capsule-reset-button:hover,
.capsule-reset-button:focus-visible {
  border-color: var(--capsule-accent);
  color: #090b08;
  background: var(--capsule-accent);
}

@keyframes boltCurrent {
  to { stroke-dashoffset: -52; }
}

@keyframes boltChargeRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.42); }
  24% { opacity: 0.74; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes boltUnlock {
  0% { transform: scale(1); }
  22% { transform: scale(1.13) skewX(-3deg); }
  44% { transform: scale(0.96) skewX(2deg); }
  100% { transform: scale(1.04); }
}

@keyframes boltRelease {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.32); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes capsuleGridDrift {
  to { background-position: 52px 52px, 52px 52px; }
}

@keyframes capsuleSweep {
  0%, 16% { transform: translateY(-110%); opacity: 0; }
  22% { opacity: var(--capsule-effects-opacity); }
  78% { opacity: 0.52; }
  86%, 100% { transform: translateY(520%); opacity: 0; }
}

@keyframes capsuleRadar {
  to { transform: rotate(360deg); }
}

@keyframes capsuleLive {
  0% { opacity: 0.45; transform: scale(0.72); }
  55% { opacity: 1; }
  100% { opacity: 0.45; transform: scale(1.25); }
}

@media (max-width: 820px) {
  .capsule-toolbar {
    min-height: 68px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .capsule-main {
    width: min(100% - 36px, 680px);
    padding: 30px 0 24px;
  }

  .capsule-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 26px;
  }

  .capsule-intro h2 { font-size: 36px; }

  .capsule-clock {
    justify-items: start;
  }

  .capsule-clock strong { font-size: 36px; }

  .capsule-metric { padding: 18px 0 20px; }
  .capsule-metric-copy strong { font-size: 15px; }

  .capsule-radar {
    right: -230px;
    width: 430px;
    height: 430px;
  }

  .capsule-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 520px) {
  .capsule-brand small { display: none; }
  .capsule-brand-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .capsule-actions { gap: 6px; }
  .capsule-icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .capsule-main { width: calc(100% - 28px); padding-top: 24px; }
  .capsule-kicker { font-size: 9px; }
  .capsule-intro h2 { font-size: 30px; }
  .capsule-intro > div:first-child > p:last-child { font-size: 12px; }
  .capsule-clock strong { font-size: 32px; }

  .capsule-metric-copy {
    gap: 12px;
  }

  .capsule-metric-copy p {
    display: grid;
    gap: 2px;
  }

  .capsule-metric-copy p:last-child { justify-items: end; }
  .capsule-metric-copy span { font-size: 10px; }
  .capsule-metric-copy strong { font-size: 14px; }
  .capsule-track { height: 17px; }
  .capsule-footer span:first-child { display: none; }
  .capsule-footer { justify-content: flex-end; }
  .capsule-settings-panel { padding-right: 18px; padding-left: 18px; }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: calc(100% - 40px);
  padding: 11px 15px;
  border: 1px solid rgba(200, 255, 72, 0.5);
  border-radius: 4px;
  color: #0a0d08;
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.js .hero-copy.reveal > .system-status,
.js .hero-copy.reveal > .hero-heading-row,
.js .hero-copy.reveal > .hero-role,
.js .hero-copy.reveal > .hero-description,
.js .hero-copy.reveal > .welcome-line,
.js .hero-copy.reveal > .hero-actions,
.js .hero-copy.reveal > .countdown-wrap,
.js .hero-copy.reveal > .birthday-greeting {
  opacity: 0;
  transform: translateY(12px);
}

.js .hero-copy.reveal.is-visible > .system-status { animation: signalConnect 520ms ease-out 80ms forwards; }
.js .hero-copy.reveal.is-visible > .hero-heading-row { animation: signalConnect 620ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards; }
.js .hero-copy.reveal.is-visible > .hero-role { animation: signalConnect 540ms ease-out 360ms forwards; }
.js .hero-copy.reveal.is-visible > .hero-description { animation: signalConnect 540ms ease-out 450ms forwards; }
.js .hero-copy.reveal.is-visible > .welcome-line { animation: signalConnect 540ms ease-out 540ms forwards; }
.js .hero-copy.reveal.is-visible > .hero-actions { animation: signalConnect 540ms ease-out 630ms forwards; }
.js .hero-copy.reveal.is-visible > .countdown-wrap,
.js .hero-copy.reveal.is-visible > .birthday-greeting { animation: signalConnect 540ms ease-out 720ms forwards; }

.js.reveal-fallback .reveal {
  opacity: 1;
  transform: none;
}

.js.reveal-fallback .hero-copy.reveal > * {
  opacity: 1;
  transform: none;
  animation: none;
}

.js.reveal-fallback .project-icon path,
.js.reveal-fallback .project-icon rect,
.js.reveal-fallback .project-icon circle {
  stroke-dashoffset: 0;
}

@keyframes statusPulse {
  0% { opacity: 0.65; transform: scale(0.65); }
  70%, 100% { opacity: 0; transform: scale(1.65); }
}

@keyframes screenSurge {
  0%, 100% { opacity: 0; }
  7% { opacity: 0.42; }
  13% { opacity: 0.08; }
  19% { opacity: 0.3; }
  42% { opacity: 0.04; }
}

@keyframes signalConnect {
  0% { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  45% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes titleGlitchTop {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89% { opacity: 0.72; transform: translate(5px, -1px); }
  90% { opacity: 0.2; transform: translate(-3px, 1px); }
  91% { opacity: 0; transform: translate(0, 0); }
  96% { opacity: 0.55; transform: translate(2px, 0); }
  97% { opacity: 0; }
}

@keyframes titleGlitchBottom {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89% { opacity: 0.55; transform: translate(-5px, 1px); }
  90% { opacity: 0.25; transform: translate(3px, 0); }
  91% { opacity: 0; transform: translate(0, 0); }
  96% { opacity: 0.48; transform: translate(-2px, 1px); }
  97% { opacity: 0; }
}

@keyframes headlineSurge {
  0% { text-shadow: 0 0 0 transparent; }
  12% { text-shadow: -5px 0 0 rgba(80, 223, 242, 0.8), 5px 0 0 rgba(255, 113, 129, 0.62), 0 0 34px rgba(200, 255, 72, 0.55); }
  22% { text-shadow: 2px 0 0 rgba(80, 223, 242, 0.45), -2px 0 0 rgba(255, 113, 129, 0.35); }
  48% { text-shadow: 0 0 30px rgba(200, 255, 72, 0.18); }
  100% { text-shadow: 0 0 28px rgba(243, 246, 242, 0.06); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes energySpin {
  to { transform: rotate(360deg); }
}

@keyframes energySpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes avatarImpact {
  0% { scale: 0.96; filter: brightness(0.82); }
  16% { scale: 1.045; filter: brightness(1.65) saturate(1.2); }
  34% { scale: 0.985; filter: brightness(1.08); }
  100% { scale: 1; filter: none; }
}

@keyframes mobileAvatarImpact {
  0% { scale: 0.94; box-shadow: 0 0 0 0 rgba(200, 255, 72, 0); }
  18% { scale: 1.08; box-shadow: 0 0 0 9px rgba(200, 255, 72, 0.12), 0 0 42px rgba(80, 223, 242, 0.6); }
  48% { scale: 0.99; }
  100% { scale: 1; }
}

@keyframes ringImpact {
  0% { scale: 0.52; opacity: 0; transform: rotate(0); }
  18% { opacity: 1; }
  70% { scale: 1.13; opacity: 0.72; }
  100% { scale: 1; opacity: 0.74; transform: rotate(150deg); }
}

@keyframes ringImpactReverse {
  0% { scale: 0.58; opacity: 0; transform: rotate(0); }
  25% { opacity: 0.9; }
  100% { scale: 1; opacity: 0.52; transform: rotate(-170deg); }
}

@keyframes traceMove {
  0%, 72% { stroke-dashoffset: 0; opacity: 0.32; }
  78% { opacity: 1; }
  88% { stroke-dashoffset: -42; opacity: 0.85; }
  94%, 100% { stroke-dashoffset: -64; opacity: 0.32; }
}

@keyframes traceDischarge {
  0% { stroke-dashoffset: 110; opacity: 0; }
  12% { opacity: 1; }
  58% { stroke-dashoffset: 0; opacity: 1; stroke-width: 2.5; }
  100% { stroke-dashoffset: -28; opacity: 0.45; stroke-width: 1.5; }
}

@keyframes avatarScan {
  0%, 12% { top: 8%; opacity: 0; }
  22% { opacity: 0.8; }
  72% { opacity: 0.45; }
  84%, 100% { top: 92%; opacity: 0; }
}

@keyframes cardScan {
  from { transform: translateX(-180%) skewX(-16deg); }
  to { transform: translateX(520%) skewX(-16deg); }
}

@keyframes edgeCurrent {
  to { transform: rotate(360deg); }
}

@keyframes iconCircuitDraw {
  0% { stroke-dashoffset: 150; opacity: 0.2; }
  55% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes contactSignal {
  0% { scale: 1; filter: drop-shadow(0 0 0 transparent); }
  38% { scale: 1.16; filter: drop-shadow(0 0 8px currentColor); }
  62% { scale: 0.96; }
  100% { scale: 1; filter: none; }
}

@keyframes buttonCurrent {
  from { transform: translateX(-170%) skewX(-18deg); }
  to { transform: translateX(520%) skewX(-18deg); }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 28px;
  }

  h1 { font-size: 78px; }

  .identity-stage { max-width: 440px; }

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

  .contact-card { min-height: 220px; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }

  .desktop-nav { display: none; }
  .menu-button { display: grid; }

  .mobile-nav {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

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

  h1 { font-size: 64px; }
  .hero-role { font-size: 22px; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 320px;
  }

  .project-icon { margin-top: 30px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .about-bolt {
    position: relative;
    top: auto;
    left: auto;
    width: 138px;
    height: 188px;
    margin: 32px auto 0;
  }

  .about-bolt svg {
    width: 105px;
    height: 164px;
  }

  .support-inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 44px 0;
  }

  .support-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 40px, var(--shell));
  }

  .header-inner { gap: 12px; }

  .support-link {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .support-link span { display: none; }

  .hero {
    min-height: calc(100svh - 124px);
    padding: 38px 0 34px;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    max-width: none;
  }

  .system-status { margin-bottom: 20px; }

  .mobile-avatar {
    position: relative;
    width: 108px;
    height: 108px;
    display: block;
    flex: 0 0 108px;
    overflow: hidden;
    border: 2px solid var(--acid);
    border-radius: 50%;
    background: var(--panel);
    box-shadow: 0 0 0 6px rgba(200, 255, 72, 0.06), 0 0 26px rgba(80, 223, 242, 0.16);
  }

  .mobile-avatar .avatar-fallback { font-size: 34px; }

  h1 { font-size: 56px; }

  .hero-role {
    margin-top: 16px;
    font-size: 21px;
  }

  .hero-description {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.75;
  }

  .welcome-line {
    min-height: 44px;
    margin-top: 14px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .button {
    min-width: 0;
    min-height: 44px;
  }

  .countdown-wrap {
    gap: 15px;
    margin-top: 18px;
    padding-top: 13px;
  }

  .countdown-heading { min-width: 86px; }
  .countdown-values { gap: 5px; }
  .countdown-values strong { font-size: 18px; }
  .countdown-values small { font-size: 9px; }

  .identity-stage { display: none; }

  .daily-inner {
    min-height: 108px;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 18px 0;
  }

  .daily-label { grid-column: 1; }
  .signal-index { grid-column: 2; grid-row: 1; }

  .daily-inner blockquote {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
  }

  .daily-inner blockquote p { font-size: 13px; }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-heading h2,
  .about-heading h2 {
    font-size: 34px;
  }

  .section-heading > p {
    margin: 0;
    font-size: 13px;
    text-align: left;
  }

  .blog-heading-side {
    justify-content: flex-start;
  }

  .blog-heading-side p {
    max-width: none;
    font-size: 13px;
    text-align: left;
  }

  .blog-status {
    margin-top: -8px;
  }

  .blog-entry {
    min-height: 142px;
    grid-template-columns: 64px minmax(0, 1fr) 22px;
    gap: 8px 16px;
    padding: 20px 8px;
  }

  .blog-entry.has-cover {
    grid-template-columns: 64px 92px minmax(0, 1fr) 22px;
  }

  .blog-entry.has-cover .blog-entry-index {
    grid-column: 1;
  }

  .blog-entry.has-cover .blog-entry-cover {
    width: 92px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .blog-entry.has-cover .blog-entry-copy,
  .blog-entry.has-cover .blog-entry-meta {
    grid-column: 3;
  }

  .blog-entry.has-cover .blog-entry-arrow {
    grid-column: 4;
  }

  .blog-entry:hover,
  .blog-entry:focus-visible {
    padding-right: 6px;
    padding-left: 10px;
  }

  .blog-entry-index {
    grid-row: 1 / 3;
  }

  .blog-entry-copy {
    grid-column: 2;
  }

  .blog-entry-copy strong {
    font-size: 18px;
  }

  .blog-entry-meta {
    grid-column: 2;
    display: flex;
    justify-items: start;
    gap: 12px;
    text-align: left;
  }

  .blog-entry-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .blog-skeleton {
    grid-template-columns: 64px minmax(0, 1fr);
    padding-right: 8px;
    padding-left: 8px;
  }

  .post-toolbar,
  .post-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .post-loading,
  .post-article > div {
    width: min(680px, calc(100% - 36px));
  }

  #postContent {
    padding: 54px 0 72px;
  }

  .post-article h2 {
    font-size: 36px;
  }

  .post-excerpt {
    font-size: 16px;
  }

  .project-card {
    min-height: 310px;
    padding: 21px;
  }

  .project-content h3 { font-size: 22px; }
  .project-content p { min-height: auto; }

  .about-content .about-lead { font-size: 22px; }
  .about-content > p { font-size: 14px; }

  .identity-list div {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

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

  .contact-card { min-height: 218px; }

  a.contact-card.contact-main,
  article.contact-card .contact-main {
    padding: 18px;
  }

  .contact-icon {
    margin-bottom: 38px;
  }

  .contact-arrow {
    top: 19px;
    right: 18px;
  }

  .contact-copy strong { font-size: 12px; }

  .support-inner {
    min-height: 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 22px 18px;
  }

  .support-icon {
    width: 52px;
    height: 52px;
  }

  .support-icon svg {
    width: 30px;
    height: 30px;
  }

  .support-inner h2 { font-size: 28px; }
  .support-button { grid-column: 1 / -1; width: 100%; }

  .footer-inner {
    min-height: 132px;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding: 24px 0;
  }

  .footer-status {
    grid-column: 1;
    grid-row: 2;
  }

  .back-to-top {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .brand-copy small { display: none; }

  .hero { padding-top: 30px; }

  .system-status {
    font-size: 9px;
  }

  .status-code { display: none; }

  .mobile-avatar {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  h1 { font-size: 48px; }
  .hero-role { font-size: 19px; }

  .hero-actions { gap: 8px; }
  .button { padding: 0 11px; font-size: 12px; }

  .blog-heading-side p { max-width: calc(100% - 54px); }
  .blog-entry { grid-template-columns: minmax(0, 1fr) 20px; }
  .blog-entry-index { grid-column: 1; grid-row: 1; }
  .blog-entry-copy { grid-column: 1; grid-row: 2; }
  .blog-entry-copy > span { white-space: normal; }
  .blog-entry-meta { grid-column: 1; grid-row: 3; flex-wrap: wrap; }
  .blog-entry-arrow { grid-column: 2; grid-row: 1 / 4; }
  .blog-entry.has-cover { grid-template-columns: 76px minmax(0, 1fr) 20px; }
  .blog-entry.has-cover .blog-entry-index { grid-column: 1 / 3; grid-row: 1; }
  .blog-entry.has-cover .blog-entry-cover { width: 76px; grid-column: 1; grid-row: 2 / 4; }
  .blog-entry.has-cover .blog-entry-copy { grid-column: 2; grid-row: 2; }
  .blog-entry.has-cover .blog-entry-meta { grid-column: 2; grid-row: 3; }
  .blog-entry.has-cover .blog-entry-arrow { grid-column: 3; grid-row: 1 / 4; }
  .blog-skeleton { grid-template-columns: 1fr; }
  .blog-skeleton span { grid-row: auto; }
  .post-brand strong { display: none; }
  .post-article h2 { font-size: 30px; }
  .post-excerpt { font-size: 14px; }
  .post-body { margin-top: 36px; padding-top: 30px; font-size: 15px; }
  .post-footer > span { display: none; }
  .post-footer { justify-content: flex-end; }

  .countdown-wrap {
    justify-content: space-between;
    gap: 8px;
  }

  .countdown-heading { min-width: 70px; }
  .countdown-values { gap: 3px; }
  .countdown-values strong { font-size: 16px; }
  .countdown-values small { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-card {
    min-height: 190px;
  }

  article.contact-card .contact-main {
    min-height: 134px;
  }

  .contact-icon { margin-bottom: 26px; }
  .contact-copy strong { font-size: 14px; }

  .support-inner {
    grid-template-columns: 1fr;
  }

  .support-icon { display: none; }
  .support-button { grid-column: 1; }
}

@media (hover: none) {
  .project-card:hover,
  .contact-card:hover,
  .support-link:hover,
  .button:hover,
  .back-to-top:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

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

  .js .hero-copy.reveal > * {
    opacity: 1;
    transform: none;
  }

  .js .project-icon path,
  .js .project-icon rect,
  .js .project-icon circle {
    stroke-dashoffset: 0;
  }

  h1::before,
  h1::after,
  .screen-flash {
    display: none;
  }

  .signal-canvas { opacity: 0.35; }
}
