:root {
  --bg: #0a0b0d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eaec;
  --muted: #8b9099;
  --accent: #7cf3c5;
  --accent-rgb: 124, 243, 197;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.mono { font-family: var(--mono); }

/* ---------- Boot sequence ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.booting #boot { display: flex; }
html.booting, html.booting body { overflow: hidden; }
.booting .char, .booting .fade-up, .booting .nav, .booting .accent .ul,
.booting .scroll-hint, .booting .visual-in { animation-play-state: paused !important; }

.shutter {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #050607;
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.18, 1);
}
.shutter::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.shutter::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 24px 2px rgba(var(--accent-rgb), 0.8);
  opacity: 0; transition: opacity 0.2s;
}
.shutter.top { top: 0; }
.shutter.top::after { bottom: 0; }
.shutter.bottom { bottom: 0; }
.shutter.bottom::after { top: 0; }
#boot.open .shutter::after { opacity: 1; }
#boot.open .shutter.top { transform: translateY(-100%); }
#boot.open .shutter.bottom { transform: translateY(100%); }

.boot-inner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(780px, 90vw);
  font-size: 13px; color: #9aa0a8;
  transition: opacity 0.3s;
}
.boot-log { white-space: pre-wrap; line-height: 1.7; min-height: 15em; }
.boot-log .ts { color: #4b515a; }
.boot-log .ok { color: var(--accent); }
.boot-log b { color: var(--text); }
.boot-bar { height: 2px; margin-top: 20px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.boot-bar span {
  display: block; height: 100%; width: 0;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  transition: width 0.15s;
}
.boot-hint {
  position: absolute; right: 28px; bottom: 22px;
  font-size: 12px; color: #4b515a;
  transition: opacity 0.3s;
}
#boot .boot-logo {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.6em;
  line-height: 1.2; text-align: center;
  font-size: clamp(4rem, 15vw, 11rem); font-weight: 800; letter-spacing: 0.12em;
  text-shadow: 0 0 50px rgba(var(--accent-rgb), 0.45);
  opacity: 0; transform: scale(0.9); filter: blur(14px);
  pointer-events: none;
}
#boot.logo .boot-inner, #boot.logo .boot-hint, #boot.open .boot-inner, #boot.open .boot-hint { opacity: 0; }
#boot.logo .boot-logo {
  opacity: 1; transform: none; filter: none;
  transition: opacity 0.5s, transform 0.8s var(--ease), filter 0.5s;
}
#boot.open .boot-logo {
  opacity: 0; transform: scale(1.7); filter: blur(16px);
  transition: opacity 0.7s, transform 1s var(--ease), filter 0.7s;
}

/* ---------- Glitch ---------- */
.glitchable { position: relative; }
.glitchable::before, .glitchable::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  pointer-events: none; opacity: 0;
}
.glitchable::before { color: #ff4d8d; }
.glitchable::after { color: #4dd8ff; }
.glitchable.glitch::before { opacity: 0.9; animation: glitchA 0.5s steps(2, end) both; }
.glitchable.glitch::after { opacity: 0.9; animation: glitchB 0.5s steps(2, end) both; }
.glitchable.glitch { animation: jitter 0.5s steps(3, end) both; }

/* ---------- Background layers & cursor ---------- */
#bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.cursor-glow {
  position: fixed; left: 0; top: 0;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07), transparent 60%);
  pointer-events: none; z-index: 1;
  will-change: transform;
  opacity: 0; transition: opacity 0.4s;
}
.cursor-glow.on { opacity: 1; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200;
  pointer-events: none; border-radius: 50%;
  opacity: 0; will-change: transform;
}
.has-cursor .cursor { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring.hover {
  width: 66px; height: 66px; margin: -33px 0 0 -33px;
  background: rgba(var(--accent-rgb), 0.08); border-color: var(--accent);
}
.cursor-ring.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #6aa8ff);
  transform-origin: left; transform: scaleX(0);
  z-index: 20;
}
main, .nav, footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(5vw, 20px);
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.85), rgba(10, 11, 13, 0));
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease);
  animation: fadeDown 0.8s var(--ease) 0.2s both;
}
.nav.hide { transform: translateY(-100%); }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 6px; }
.nav nav a {
  position: relative;
  padding: 6px 12px;
  font-size: 0.9rem; color: var(--muted);
  transition: color 0.3s;
}
.nav nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav nav a:hover, .nav nav a.active { color: var(--text); }
.nav nav a:hover::after, .nav nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  max-width: 1240px; margin: 0 auto;
  padding: 110px max(5vw, 20px) 90px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: 20px;
}
.hero-text { position: relative; z-index: 2; }
.eyebrow {
  font-size: 0.85rem; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 22px;
}
.title {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.title .accent {
  display: inline-block;
  font-size: 1.45em; line-height: 1.05;
  color: var(--accent); white-space: nowrap;
}
.title .accent .ul {
  position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.06em;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: grow 1s var(--ease) 1.1s forwards;
}
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg);
  filter: blur(10px);
  animation: charIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 150ms);
}
.char.space { width: 0.28em; }
.title .accent .char { text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4); }

.lead {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted); margin-bottom: 18px;
  text-wrap: balance;
}
.terminal {
  font-size: 0.9rem; color: #c9ccd2;
  min-height: 1.75em; margin-bottom: 38px;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.terminal .prompt { color: var(--accent); }
.caret {
  display: inline-block; width: 0.55em; height: 1.1em;
  margin-left: 2px; vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: inherit; font-size: 0.95rem; color: inherit;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.btn.primary { background: var(--accent); color: #06130e; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.35); }
.click-hint { margin-top: 30px; font-size: 0.78rem; color: #5b6068; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px;
  width: 24px; height: 38px; margin-left: -12px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 12px;
  animation: fadeIn 1s 2s both;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent);
  animation: wheel 1.8s var(--ease) infinite;
}

/* ---------- 3D board ---------- */
.hero-visual {
  position: relative; height: 620px;
  display: grid; place-items: center;
}
.visual-in { animation: fadeIn 1.2s ease 0.2s both; }
.scene { perspective: 1300px; perspective-origin: 50% 35%; }
.pcb-float, .pcb { transform-style: preserve-3d; }
.pcb {
  position: relative; width: 240px; height: 327px;
  transform: rotateX(56deg) rotateZ(-34deg);
  --e: 0;
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(calc(var(--z) + var(--e) * var(--ez)));
  overflow: visible;
}
.l-shadow {
  inset: -18%; width: auto; height: auto;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  filter: blur(8px);
}
.l-edge path { fill: #0b2a1e; }
.l-base .sub { fill: url(#sm); stroke: rgba(var(--accent-rgb), 0.4); stroke-width: 0.6; }
.l-base .fingers rect { fill: url(#au); }
.l-trace .cu path { fill: none; stroke: #1d6e52; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.l-trace .pads rect { fill: #a7adb3; }
.l-trace .vias circle { fill: #071a12; stroke: #2c9a72; stroke-width: 1; }
.l-trace .flow {
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-dasharray: 7 70;
  animation: flow 3s linear infinite;
}
.l-silk .box { fill: none; stroke: rgba(235, 238, 240, 0.6); stroke-width: 0.7; }
.l-silk .dot { fill: rgba(235, 238, 240, 0.75); }
.l-silk text { font-family: var(--mono); fill: rgba(235, 238, 240, 0.8); }
.l-silk .t { font-size: 6.5px; font-weight: 700; }
.l-silk .s { font-size: 5px; }
.l-comp .ic { fill: #141518; }
.l-comp .leg { fill: #b9bfc5; }
.l-comp .pin1 { fill: #2e3035; }
.l-comp .it { font-family: var(--mono); font-size: 4.5px; fill: #80868e; }
.l-comp .xtal-in { fill: none; stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.8; }
.l-comp .xt { font-family: var(--mono); font-size: 5px; fill: #4a5056; }
.l-comp .cap .body { fill: #b38b55; }
.l-comp .cap .term { fill: #d6dadf; }
.l-glow { opacity: calc(0.35 + var(--e) * 0.5); }
.l-glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 46.7%, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb), 0) 34%);
  animation: breathe 3s ease-in-out infinite;
}
.l-chip, .chip { transform-style: preserve-3d; }
.chip { position: absolute; left: 27.27%; top: 30%; width: 45.45%; height: 33.33%; }
.chip-slice { position: absolute; inset: 0; border-radius: 4px; background: #050506; }
.chip-face {
  position: absolute; inset: 0; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, #25262a, #0c0d0f 60%, #18191c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: var(--mono); color: #8a9098;
}
.chip-face b { font-size: 14px; color: #dcdee2; letter-spacing: 0.04em; }
.chip-face span { font-size: 8px; letter-spacing: 0.1em; }
.chip-face::before {
  content: ""; position: absolute; left: 9px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #2e3035;
}
.chip-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.1) 48%, transparent 60%);
  background-size: 260% 100%;
  animation: sheen 5s ease-in-out infinite;
}

.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 18px;
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d);
}
.ready .callout { opacity: 1; transform: none; }
.callout b { color: var(--text); font-weight: 600; }
.callout span { color: var(--muted); }
.callout i {
  position: absolute; left: 0; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: ping 2s infinite;
}
.callout::before {
  content: ""; position: absolute; left: 3px; top: 16px; height: 26px; width: 1px;
  background: linear-gradient(var(--accent), transparent); opacity: 0.6;
}
.c1 { top: 4%; left: -4%; --d: 0ms; }
.c2 { top: 30%; right: -6%; --d: 150ms; }
.c3 { bottom: 26%; left: -6%; --d: 300ms; }
.c4 { bottom: 9%; right: 2%; --d: 450ms; }
.visual-hint {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: #5b6068; white-space: nowrap;
}

/* ---------- Statement ---------- */
.statement {
  max-width: 1120px; margin: 0 auto;
  padding: 24vh max(5vw, 20px);
}
.statement-tag { display: block; color: var(--accent); font-size: 0.85rem; margin-bottom: 22px; }
.statement p {
  font-size: clamp(1.9rem, 4.8vw, 3.9rem);
  font-weight: 800; line-height: 1.35; letter-spacing: -0.01em;
}
.fc { color: rgba(255, 255, 255, 0.1); transition: color 0.35s, text-shadow 0.35s; }
.fc.on { color: var(--text); }
.hl .fc.on { color: var(--accent); text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.4); }

/* ---------- Sections ---------- */
.section {
  max-width: 1120px; margin: 0 auto;
  padding: 120px max(5vw, 20px);
}
.section-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 52px;
}
.section-head .num { color: var(--accent); font-size: 0.9rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head .jp { color: var(--muted); font-size: 0.95rem; opacity: 0.7; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.about-text p { font-size: 1.08rem; color: #c4c7cd; margin-bottom: 18px; }
.facts { border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.facts div:hover { padding-left: 8px; }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { font-size: 0.95rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; height: 100%;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.card::before, .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.card::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.1), transparent 40%);
}
.card::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.icon {
  width: 34px; height: 34px; margin-bottom: 22px;
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease);
}
.card:hover .icon { transform: translateY(-3px) scale(1.06); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono); font-size: 0.74rem;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: #b5b9c0;
  white-space: nowrap;
}

/* Marquee */
.marquee {
  position: relative; z-index: 2;
  padding: 30px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.track.reverse { animation-direction: reverse; animation-duration: 44s; margin-top: 14px; }
.marquee:hover .track { animation-play-state: paused; }
.track span {
  font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.28);
  padding: 0 28px; white-space: nowrap;
  transition: color 0.3s;
}
.track span::before { content: "◆"; color: rgba(var(--accent-rgb), 0.5); font-size: 0.5em; margin-right: 28px; vertical-align: middle; }
.track span:hover { color: var(--text); }

/* Projects */
.projects { border-bottom: 1px solid var(--line); }
.project {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr 220px; gap: 28px;
  padding: 32px 12px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.project::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.07), transparent 70%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.project:hover::before { transform: scaleX(1); }
.project > * { position: relative; }
.project h3 { font-size: 1.2rem; margin-bottom: 8px; transition: transform 0.5s var(--ease), color 0.3s; }
.project:hover h3 { transform: translateX(8px); color: var(--accent); }
.project h3 .arrow { display: inline-block; opacity: 0; transform: translateX(-8px); transition: 0.4s var(--ease); }
.project:hover h3 .arrow { opacity: 1; transform: none; }
.project p { color: var(--muted); font-size: 0.94rem; max-width: 560px; }
.project .tags { justify-content: flex-end; }
.status { font-size: 0.78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5b6068; }
.status.doing { color: var(--accent); }
.status.doing::before { background: var(--accent); animation: ping 1.8s infinite; }
.status.ongoing::before { background: #6aa8ff; }

/* Now */
.now { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.now li {
  padding: 22px 24px;
  border-left: 2px solid var(--line);
  transition: border-color 0.4s, background 0.4s;
}
.now li:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.02); }
.now span { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.05em; }
.now p { margin-top: 6px; color: #c4c7cd; }

/* Contact */
.contact { padding-bottom: 140px; }
.contact-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 18px; }
.big-link {
  display: inline-block;
  font-size: clamp(1.6rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), #6aa8ff) no-repeat 0 100% / 0% 100%, linear-gradient(var(--text), var(--text));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transition: background-size 0.7s var(--ease);
  word-break: break-all;
}
.big-link:hover { background-size: 100% 100%, auto; }
.big-link .arrow { display: inline-block; transition: transform 0.5s var(--ease); -webkit-text-fill-color: var(--accent); }
.big-link:hover .arrow { transform: translate(6px, -6px); }
.contact-actions { margin-top: 32px; }
.copy-btn.copied { border-color: var(--accent); color: var(--accent); }

footer {
  max-width: 1120px; margin: 0 auto;
  padding: 28px max(5vw, 20px) 40px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem;
}

/* ---------- Keyframes ---------- */
.fade-up { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes charIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@keyframes flow { to { stroke-dashoffset: -77; } }
@keyframes breathe { 50% { opacity: 0.45; transform: scale(1.08); } }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@keyframes jitter { 0% { transform: translate(0); } 33% { transform: translate(-2px, 1px); } 66% { transform: translate(2px, -1px); } 100% { transform: translate(0); } }
@keyframes glitchA {
  0% { clip-path: inset(8% 0 72% 0); transform: translate(-6px, 0); }
  20% { clip-path: inset(58% 0 12% 0); transform: translate(5px, 0); }
  40% { clip-path: inset(30% 0 46% 0); transform: translate(-3px, 0); }
  60% { clip-path: inset(78% 0 4% 0); transform: translate(6px, 0); }
  80% { clip-path: inset(4% 0 86% 0); transform: translate(-4px, 0); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes glitchB {
  0% { clip-path: inset(66% 0 10% 0); transform: translate(6px, 0); }
  20% { clip-path: inset(12% 0 70% 0); transform: translate(-5px, 0); }
  40% { clip-path: inset(44% 0 30% 0); transform: translate(4px, 0); }
  60% { clip-path: inset(2% 0 80% 0); transform: translate(-6px, 0); }
  80% { clip-path: inset(84% 0 2% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { height: 540px; }
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project .tags { justify-content: flex-start; }
  .now { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav nav a { padding: 6px 7px; font-size: 0.82rem; }
  .nav nav a::after { left: 7px; right: 7px; }
  .section { padding: 90px 20px; }
  .cards { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
  .hero-visual { height: 440px; }
  .scene { transform: scale(0.78); }
  .callouts { display: none; }
  .boot-inner { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .reveal, .char { opacity: 1; transform: none; filter: none; }
  .fc { color: var(--text); }
  html { scroll-behavior: auto; }
}
