:root {
  --ink: #111719;
  --ink-deep: #0c1113;
  --panel: #1b2427;
  --text: #f0f0e9;
  --muted: #a8b5b5;
  --cyan: #a3d5c6;
  --magenta: #c4b8dc;
  --line: rgba(216, 233, 227, .12);
  --max-width: 1120px;
  --signal-x: 50%;
  --signal-y: 28%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .023) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .28;
  pointer-events: none;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.circuit-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.circuit-backdrop::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at var(--signal-x) var(--signal-y), rgba(163,213,198,.045), transparent 52%),
    radial-gradient(ellipse at 90% 12%, rgba(196,184,220,.055), transparent 44%);
  opacity: .8;
}

.circuit-backdrop i {
  position: absolute;
  width: 120px;
  height: 76px;
  border: 1px solid rgba(163,213,198,.18);
  box-shadow: inset 0 0 22px rgba(163,213,198,.04);
  border-radius: 24px;
  opacity: .14;
}

.circuit-backdrop i::before,
.circuit-backdrop i::after {
  position: absolute;
  content: "";
  background: rgba(196,184,220,.28);
}

.circuit-backdrop i::before { top: 50%; right: -72px; width: 72px; height: 1px; }
.circuit-backdrop i::after { right: -76px; top: calc(50% - 4px); width: 8px; height: 8px; }
.circuit-backdrop i:nth-child(1) { top: 14%; left: 6%; }
.circuit-backdrop i:nth-child(2) { top: 42%; right: 7%; transform: scale(.82); }
.circuit-backdrop i:nth-child(3) { bottom: 12%; left: 18%; transform: scale(.7); }
.circuit-backdrop i:nth-child(4) { bottom: 24%; right: 24%; transform: scale(.55); }

body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.reveal-ready [data-reveal] { opacity: 1; }
.reveal-ready [data-reveal].is-revealed { animation: section-enter .55s ease backwards; }
.opening-complete .hero-copy.is-revealed { animation-delay: .06s; }
.opening-complete .identity-panel.is-revealed { animation-delay: .16s; }
@keyframes section-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after { animation-play-state: paused !important; }

.opening[hidden] { display: none; }
.opening-active { overflow: hidden; }
.opening {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 24px 90px;
  background: radial-gradient(ellipse at 50% 40%, #1c302f, #0c1113 66%);
  overflow: hidden;
}
.opening__wordmark { position: absolute; top: 32px; left: 40px; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .1em; }
.opening__board { position: absolute; inset: 0; background-image: linear-gradient(rgba(163,213,198,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(163,213,198,.025) 1px, transparent 1px); background-size: 56px 56px; }
.opening__board i { position: absolute; top: 40%; width: 36vw; height: 1px; background: linear-gradient(90deg, transparent, rgba(163,213,198,.5)); opacity: 0; transform: scaleX(0); transform-origin: left; }
.opening__board i:nth-child(1) { left: 0; }
.opening__board i:nth-child(2) { right: 0; transform-origin: right; background: linear-gradient(90deg, rgba(163,213,198,.5), transparent); }
.opening__board i:nth-child(3) { left: 0; margin-top: 54px; width: 29vw; }
.opening__board i:nth-child(4) { right: 0; margin-top: -54px; width: 29vw; transform-origin: right; }
.opening__scene { position: relative; display: grid; justify-items: center; gap: 40px; }
.opening__symbol { position: relative; display: grid; place-items: center; width: 260px; height: 220px; }
.opening__orbit { position: absolute; width: 270px; aspect-ratio: 1; border: 1px solid rgba(163,213,198,.18); border-radius: 50%; opacity: 0; }
.opening__orbit::before { position: absolute; inset: -32px; border: 1px dashed rgba(163,213,198,.12); border-radius: 50%; content: ""; }
.opening__orbit::after { position: absolute; top: 28%; left: 3%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px rgba(163,213,198,.4); content: ""; }
.opening__chip { position: relative; z-index: 1; display: grid; width: 154px; aspect-ratio: 1; border: 1px solid rgba(163,213,198,.6); border-radius: 22px; place-items: center; opacity: 0; transform: rotate(-12deg); background: linear-gradient(145deg, #334b48, #18282a 60%, #283139); box-shadow: 12px 20px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.16); }
.opening__chip::before { position: absolute; inset: -12px; content: ""; background: linear-gradient(90deg, transparent 0 9px, rgba(163,213,198,.6) 9px 13px, transparent 13px 24px) top / 24px 8px repeat-x, linear-gradient(90deg, transparent 0 9px, rgba(163,213,198,.6) 9px 13px, transparent 13px 24px) bottom / 24px 8px repeat-x, linear-gradient(0deg, transparent 0 9px, rgba(163,213,198,.6) 9px 13px, transparent 13px 24px) left / 8px 24px repeat-y, linear-gradient(0deg, transparent 0 9px, rgba(163,213,198,.6) 9px 13px, transparent 13px 24px) right / 8px 24px repeat-y; }
.opening__chip::after { position: absolute; inset: 10px; border: 1px solid rgba(163,213,198,.16); border-radius: 14px; content: ""; }
.opening__chip span { color: var(--text); font-size: 3.2rem; font-weight: 600; letter-spacing: -.05em; }
.opening__identity { display: grid; gap: 12px; text-align: center; opacity: 0; }
.opening__identity p { margin: 0 0 4px; color: var(--cyan); font: .6rem/1.4 monospace; letter-spacing: .2em; }
.opening__identity strong { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 550; line-height: 1.3; letter-spacing: .12em; }
.opening__identity span { color: var(--muted); font: .65rem/1.4 monospace; letter-spacing: .25em; }
.opening__footer { position: absolute; right: 40px; bottom: 28px; left: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.opening__footer > span { color: var(--muted); font-size: .8rem; }
.opening__skip { color: var(--cyan); border-color: var(--line); background: rgba(12,17,19,.6); }
.opening__skip kbd { color: var(--muted); font: .65rem/1 monospace; }
.opening.is-playing { animation: opening-dissolve 3.1s ease both; }
.opening.is-playing .opening__board i { animation: opening-signal 1.9s ease both; }
.opening.is-playing .opening__chip { animation: opening-chip 2.7s cubic-bezier(.2,.7,.2,1) both; }
.opening.is-playing .opening__orbit { animation: opening-orbit 2.5s .2s ease both; }
.opening.is-playing .opening__identity { animation: opening-name 1.8s .65s ease both; }
.opening.opening--reduced { animation: none !important; }
.opening.opening--reduced .opening__board,
.opening.opening--reduced .opening__orbit { display: none; }
.opening.opening--reduced .opening__chip,
.opening.opening--reduced .opening__identity { animation: none !important; opacity: 1; transform: none; }
@keyframes opening-dissolve { 0%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes opening-chip { 0%, 6% { opacity: 0; transform: scale(.86) rotate(-18deg); } 35%, 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes opening-name { from { opacity: 0; transform: translateY(12px); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes opening-orbit { from { opacity: 0; transform: scale(.85); } 45%, 100% { opacity: 1; transform: scale(1); } }
@keyframes opening-signal { 0% { opacity: 0; transform: scaleX(0); } 40%, 65% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }

button.opening-replay { display: inline-flex; gap: 8px; margin-top: 12px; padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 400; font-size: .75rem; box-shadow: none; }
button.opening-replay:hover { color: var(--cyan); transform: none; }
button.opening-replay span { font-size: 1.1rem; }
button.opening-replay[hidden] { display: none; }

@media (max-width: 600px), (max-height: 600px) {
  .opening { padding: 55px 20px 75px; }
  .opening__scene { gap: 24px; }
  .opening__symbol { width: 200px; height: 180px; }
  .opening__chip { width: 126px; border-radius: 18px; }
  .opening__chip span { font-size: 2.7rem; }
  .opening__orbit { width: 220px; }
  .opening__orbit::before { inset: -22px; }
  .opening__wordmark { top: 22px; left: 22px; }
  .opening__footer { right: 20px; left: 20px; bottom: 20px; gap: 10px; }
  .opening__footer > span { font-size: .68rem; }
  .opening__skip { padding: 12px 15px; font-size: .75rem; }
}

@media (max-height: 500px) and (min-width: 601px) {
  .opening__scene { grid-template-columns: auto auto; gap: 44px; }
  .opening__identity { text-align: left; }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -64px;
  left: 16px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  padding: 0 max(28px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(17, 23, 25, .88);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand span { color: var(--cyan); }

.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease;
}

.site-header nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--cyan);
  border-radius: 2px;
  transition: right .2s ease, left .2s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current] { color: var(--cyan); }
.site-header nav a[aria-current]::after { right: 0; left: 0; }

.signal {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  color: var(--cyan);
  font-size: .75rem;
  letter-spacing: .04em;
}

.signal i {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(163,213,198,.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(290px, .86fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  min-height: min(820px, calc(100svh - 80px));
  padding: clamp(76px, 8vw, 120px) max(28px, calc((100vw - var(--max-width)) / 2));
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 210px;
  content: "";
  opacity: .1;
}

.hero::before {
  top: 8%;
  right: -80px;
  background:
    linear-gradient(90deg, rgba(163,213,198,.28) 0 1px, transparent 1px),
    linear-gradient(rgba(163,213,198,.16) 0 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero::after {
  bottom: 8%;
  left: -120px;
  background:
    linear-gradient(90deg, rgba(196,184,220,.22) 0 1px, transparent 1px),
    linear-gradient(rgba(196,184,220,.12) 0 1px, transparent 1px);
  background-size: 38px 38px;
}

.eyebrow,
.section-heading p,
.closing > p {
  margin: 0;
  color: var(--cyan);
  font: .72rem/1.4 monospace;
  letter-spacing: .18em;
}

.hero h1 {
  max-width: 820px;
  margin: 20px 0 25px;
  font-size: clamp(4rem, 6.4vw, 5.6rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .04em;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--cyan);
  font: 400 .95rem/1.6 "Consolas", monospace;
  letter-spacing: .27em;
  vertical-align: top;
}

.hero h1 br { display: none; }
.hero .eyebrow { font: 400 .85rem/1.6 "Microsoft YaHei", sans-serif; letter-spacing: .08em; }

.hero-lead {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.public-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  max-width: 680px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.public-profile div:last-child { grid-column: 1 / -1; }

.public-profile div {
  min-width: 0;
  padding: 0;
}

.public-profile dt {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
}

.public-profile dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.public-profile a {
  color: var(--text);
  text-decoration-color: rgba(163,213,198,.55);
  text-underline-offset: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 22px;
  border: 1px solid var(--cyan);
  color: var(--ink);
  background: var(--cyan);
  border-radius: 12px;
  gap: 12px;
  box-shadow: none;
  font: 600 .86rem/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 22px rgba(0,0,0,.15);
}

.button--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

.button--small {
  min-height: 44px;
  padding: 11px 15px;
  font-size: .78rem;
}

.button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 4px;
}

.identity-panel {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1.1;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: radial-gradient(ellipse at 50% 38%, rgba(163,213,198,.12), transparent 65%), linear-gradient(155deg, rgba(255,255,255,.025), rgba(196,184,220,.035));
  box-shadow: 0 28px 70px rgba(0,0,0,.16);
}

.identity-panel::before,
.identity-panel::after {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(163,213,198,.12);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.identity-panel::after { width: 92%; border-style: dashed; opacity: .5; }

.panel-label,
.panel-code {
  position: absolute;
  top: 27px;
  font: .57rem/1 monospace;
  letter-spacing: .08em;
}

.panel-label { left: 26px; color: var(--muted); }
.panel-code { right: 26px; color: var(--muted); }

.chip-core {
  position: absolute;
  top: 44%;
  left: 50%;
  display: grid;
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid rgba(163,213,198,.35);
  border-radius: 22px;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: linear-gradient(145deg, #334b48, #18282a 60%, #283139);
  box-shadow: 10px 18px 35px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.15);
}

.chip-core::before,
.chip-core::after {
  position: absolute;
  content: "";
}

.chip-core::before {
  inset: -14px;
  background:
    linear-gradient(90deg, transparent 0 9px, rgba(163,213,198,.55) 9px 13px, transparent 13px 24px) top / 24px 8px repeat-x,
    linear-gradient(90deg, transparent 0 9px, rgba(163,213,198,.55) 9px 13px, transparent 13px 24px) bottom / 24px 8px repeat-x,
    linear-gradient(0deg, transparent 0 9px, rgba(163,213,198,.55) 9px 13px, transparent 13px 24px) left / 8px 24px repeat-y,
    linear-gradient(0deg, transparent 0 9px, rgba(163,213,198,.55) 9px 13px, transparent 13px 24px) right / 8px 24px repeat-y;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}

.chip-core::after {
  inset: 11px;
  border: 1px solid rgba(163,213,198,.15);
  border-radius: 14px;
}

.chip-core span {
  z-index: 1;
  color: var(--text);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -.04em;
}

.panel-metrics {
  position: absolute;
  right: 26px;
  bottom: 25px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.panel-metrics p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: .55rem/1.7 monospace;
}

.panel-metrics strong {
  display: block;
  color: var(--text);
  margin-bottom: 7px;
  font: 500 .85rem/1.4 "Microsoft YaHei", sans-serif;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ticker {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(163,213,198,.015);
  font: .7rem/1.6 monospace;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
}

.ticker span { margin-right: 38px; }
.ticker span:first-child { color: var(--cyan); font-family: "Microsoft YaHei", sans-serif; letter-spacing: .02em; margin-right: auto; padding-right: 38px; }

.content-section {
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: clamp(76px, 8vw, 104px) 24px;
}

.section-heading {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 0;
}

.section-heading::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: none;
}

.section-heading h2,
.closing h2 {
  margin: 14px 0 0;
  font-size: 2.2rem;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: .02em;
}

.section-heading > span {
  color: var(--muted);
  font-size: .8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 280px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(27,36,39,.72);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  isolation: isolate;
}

.project-card::before,
.skill-grid article::before,
.closing::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 0;
  content: "";
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(163,213,198,.3);
  transform: translateY(-3px);
}

.reveal-ready .project-card.is-revealed:hover { transform: translateY(-3px); }

.project-card--wide { grid-column: 1 / -1; }

.project-card--featured {
  grid-row: span 2;
  min-height: 582px;
  background: radial-gradient(ellipse at 20% 0, rgba(163,213,198,.12), transparent 65%), rgba(27,36,39,.85);
}

.project-card--featured::after {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted);
  content: "";
}

.project-card--chip::before {
  position: absolute;
  top: auto;
  right: clamp(24px, 4vw, 40px);
  bottom: 32px;
  left: auto;
  width: 128px;
  height: 86px;
  border: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(163,213,198,.24) 1px, transparent 1px),
    linear-gradient(rgba(163,213,198,.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .2;
}

.card-index {
  margin: 0;
  color: var(--cyan);
  font: .68rem/1 monospace;
  letter-spacing: .1em;
}

.card-index span { margin-left: 14px; color: var(--muted); font: .75rem/1.4 "Microsoft YaHei", sans-serif; letter-spacing: .02em; }

.project-card h3 {
  margin: 30px 0 13px;
  font-size: 1.55rem;
  font-weight: 550;
  line-height: 1.5;
}

.project-card--featured h3 {
  margin-top: 168px;
  font-size: 2.1rem;
}

.project-card > p:not(.card-index, .award-chip) {
  max-width: 620px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.9;
}

.sound-bars {
  position: absolute;
  top: 88px;
  left: clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 80px;
}

.sound-bars i {
  width: 7px;
  border-radius: 4px;
  background: linear-gradient(var(--cyan), rgba(163,213,198,.25));
  animation: pulse 2.8s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(1) { height: 22%; animation-delay: -.2s; }
.sound-bars i:nth-child(2) { height: 48%; animation-delay: -.6s; }
.sound-bars i:nth-child(3) { height: 76%; animation-delay: -.4s; }
.sound-bars i:nth-child(4) { height: 100%; animation-delay: -.8s; }
.sound-bars i:nth-child(5) { height: 53%; animation-delay: -.1s; }
.sound-bars i:nth-child(6) { height: 82%; animation-delay: -.7s; }
.sound-bars i:nth-child(7) { height: 38%; animation-delay: -.3s; }
.sound-bars i:nth-child(8) { height: 68%; animation-delay: -.5s; }
.sound-bars i:nth-child(9) { height: 28%; animation-delay: -.9s; }

@keyframes pulse { to { transform: scaleY(.55); filter: brightness(1.1); } }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.award-chip {
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: .72rem;
}

.award-chip {
  margin-top: 12px;
  border-color: transparent;
  background: rgba(196,184,220,.065);
  color: #d0c3df;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-details { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.project-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: var(--cyan); font-size: .82rem; cursor: pointer; list-style: none; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 4px; }
.project-details summary span { font-size: 1rem; transition: transform .2s ease; }
.project-details[open] summary span { transform: rotate(45deg); }
.project-details ul { display: grid; gap: 12px; margin: 14px 0 4px; padding-left: 18px; color: var(--muted); font-size: .82rem; line-height: 1.85; }
.project-details strong { color: var(--text); font-weight: 500; }
.collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 54px 0 22px; }
.collection-heading h3 { margin: 0; font-size: 1.2rem; font-weight: 500; }
.collection-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.exploration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exploration-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.018); }
.exploration-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--cyan); background: rgba(163,213,198,.065); font: 1.4rem/1 sans-serif; }
.project-stage { color: var(--muted); font-size: .67rem; }
.exploration-card h3 { margin: 25px 0 4px; color: var(--text); font-size: 1.15rem; font-weight: 550; line-height: 1.55; }
.exploration-card .project-repository { margin: 0 0 18px; color: var(--cyan); font: .65rem/1.6 monospace; letter-spacing: .04em; }
.exploration-card > p:not(.project-repository) { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.95; }
.project-notes { display: grid; gap: 10px; padding: 20px 0 24px 16px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.85; }
.project-notes li::marker { color: var(--cyan); }
.exploration-card .tag-list { margin-top: auto; gap: 6px; }
.exploration-card .tag-list li { font-size: .65rem; padding: 4px 8px; }
.learning-notes { display: grid; grid-template-columns: .8fr 2fr; gap: 40px; margin-top: 36px; padding: 30px 0 0; border-top: 1px solid var(--line); }
.learning-notes__intro > span { color: var(--cyan); font: .62rem/1.5 monospace; letter-spacing: .12em; }
.learning-notes__intro h3 { margin: 12px 0 6px; font-size: 1.05rem; font-weight: 500; }
.learning-notes__intro p { margin: 0; color: var(--muted); font-size: .8rem; }
.learning-notes__items { display: grid; gap: 22px; }
.learning-notes__items article + article { padding-top: 22px; border-top: 1px solid var(--line); }
.learning-notes__items article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.learning-notes h4 { margin: 0; font-size: .9rem; font-weight: 500; }
.learning-source { color: var(--muted); font-size: .67rem; }
.learning-notes__items p { margin: 8px 0; color: var(--muted); font-size: .82rem; line-height: 1.85; }
.learning-notes__items a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--cyan); font-size: .77rem; text-underline-offset: 5px; }
.practice-note { margin-top: 28px; padding-left: 18px; border-left: 2px solid rgba(163,213,198,.25); }
.practice-note p { margin: 0 0 8px; color: var(--text); font-size: .9rem; }
.practice-note span { color: var(--muted); font-size: .84rem; }

@media (max-width: 1000px) {
  .exploration-grid { grid-template-columns: 1fr; gap: 16px; }
  .exploration-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .exploration-heading { grid-column: 1 / -1; }
  .exploration-card h3, .exploration-card > p { grid-column: 1; }
  .exploration-card h3 { margin-top: 20px; }
  .project-notes { grid-column: 2; grid-row: 2 / 5; padding-top: 20px; }
  .exploration-card .tag-list { grid-column: 1 / -1; margin-top: 20px; }
}

@media (max-width: 600px) {
  .collection-heading { display: block; margin-top: 36px; }
  .collection-heading p { margin-top: 8px; }
  .exploration-card { display: flex; padding: 24px; }
  .exploration-card .tag-list { margin-top: auto; }
  .learning-notes { grid-template-columns: 1fr; gap: 24px; }
  .learning-notes__items article > div { display: block; }
  .learning-source { display: block; margin-top: 5px; }
}

.game-frame {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink-deep);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  overflow: hidden;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font: .66rem/1 monospace;
  letter-spacing: .08em;
}

.game-hud span:last-child { color: var(--magenta); }

#runner-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  touch-action: manipulation;
  cursor: pointer;
}

#game-start,
#game-jump,
#game-pause { touch-action: manipulation; }

#game-duck { touch-action: none; }

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
}

.game-actions kbd {
  margin-left: 7px;
  padding: 2px 5px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
}

.game-actions .button--ghost kbd {
  color: var(--cyan);
  background: rgba(163,213,198,.1);
}

#game-status {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-grid article {
  position: relative;
  min-height: 228px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  isolation: isolate;
}

.skill-grid strong {
  color: var(--cyan);
  font: .8rem/1 monospace;
}

.skill-grid h3 {
  margin: 32px 0 12px;
  font-weight: 550;
  font-size: 1.12rem;
}

.skill-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.award-timeline {
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 0 0 34px 25px;
  border-left: 1px solid rgba(163,213,198,.15);
}

.award-timeline li::before {
  position: absolute;
  top: 6px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 0 5px var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

.award-timeline li:hover::before { transform: scale(1.25); }

.award-timeline time {
  color: var(--cyan);
  font: .8rem/1.4 monospace;
}

.award-timeline h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
  font-weight: 550;
}

.award-timeline p {
  margin: 0;
  color: var(--muted);
}

.closing {
  position: relative;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 20px auto 52px;
  padding: clamp(54px, 8vw, 96px) 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 110%, rgba(163,213,198,.09), transparent 70%), rgba(255,255,255,.018);
  text-align: center;
  isolation: isolate;
}

.closing > p { color: var(--cyan); }

.closing > span {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .1em;
}

.closing .hero-actions { justify-content: center; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: .75rem;
}

footer p { margin: 0; }
footer span { margin-inline: 8px; }

::selection { color: var(--ink); background: var(--cyan); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .signal { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero h1 { font-size: 5rem; }
  .identity-panel { width: min(82vw, 400px); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--featured {
    grid-row: auto;
    min-height: 440px;
  }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .circuit-backdrop::before { opacity: .42; }
  .circuit-backdrop i:nth-child(n+3) { display: none; }
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 0 16px;
  }
  .site-header nav { gap: 2px; }
  .site-header nav a {
    font-size: .75rem;
    letter-spacing: 0;
  }
  .hero {
    gap: 42px;
    padding: 52px 20px;
  }
  .hero h1 { font-size: 3.9rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { flex: 1 1 150px; }
  .identity-panel { width: 100%; max-width: 400px; aspect-ratio: 1.3; border-radius: 24px; }
  .identity-panel::before { width: 49%; }
  .identity-panel::after { width: 65%; }
  .identity-panel .chip-core { width: 31%; border-radius: 16px; }
  .chip-core span { font-size: 2.2rem; }
  .panel-label, .panel-code { top: 21px; font-size: .5rem; }
  .panel-label { left: 20px; }
  .panel-code { right: 20px; }
  .panel-metrics { bottom: 18px; right: 20px; left: 20px; }
  .panel-metrics p { padding-top: 9px; }
  .panel-metrics strong { font-size: .75rem; margin-bottom: 4px; }
  .ticker { padding-inline: 20px; }
  .content-section { padding: 68px 20px; }
  .section-heading { align-items: start; }
  .section-heading h2,
  .closing h2 { font-size: 1.75rem; }
  .section-heading > span { display: none; }
  .project-card {
    min-height: 260px;
    padding: 23px;
  }
  .project-card h3 { font-size: 1.55rem; }
  .project-card--featured { min-height: 470px; }
  .project-card--featured h3 {
    margin-top: 140px;
    font-size: 1.8rem;
  }
  .game-hud { font-size: .58rem; }
  .game-hud span:last-child { display: none; }
  .game-controls button { flex: 1 1 110px; }
  .game-actions {
    order: -1;
    flex: 1 1 100%;
    grid-template-columns: 1fr 1fr;
  }
  .game-actions button {
    min-height: 58px;
    font-size: .9rem;
  }
  #game-status { text-align: center; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-grid article { min-height: 170px; }
  .award-timeline li {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding-left: 14px;
  }
  .award-timeline p { font-size: .88rem; }
  .closing {
    width: calc(100% - 28px);
    margin-bottom: 28px;
  }
  footer { flex-direction: column; gap: 6px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 3.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
