/* =========================================================
   BG5EFA // NODE — cyberpunk single-page portfolio
   built on augmented-ui (MIT) by Jane Ori / PropJockey
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-2: #080b12;
  --panel: rgba(9, 15, 24, 0.72);
  --panel-solid: #0a111b;
  --ink: #d9f4ff;
  --muted: #7d97a6;
  --dim: #4d6371;
  --cyan: #22e6ff;
  --magenta: #ff2d8d;
  --acid: #d7ff3e;
  --line: rgba(34, 230, 255, 0.22);
  --line-soft: rgba(34, 230, 255, 0.1);
  --glow-cyan: rgba(34, 230, 255, 0.35);
  --font-display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --halo: 0 0 24px rgba(34, 230, 255, 0.18);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.4vw + 0.88rem, 1.05rem);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

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

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3, p { margin: 0; }

::selection { background: var(--cyan); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- background layers ---------- */

.fx-grid,
.fx-glow,
.fx-scan,
.fx-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-field { z-index: 0; opacity: 0.55; }

.fx-glow {
  z-index: 0;
  background:
    radial-gradient(52vw 52vw at 12% 8%, rgba(34, 230, 255, 0.12), transparent 62%),
    radial-gradient(44vw 44vw at 88% 18%, rgba(255, 45, 141, 0.1), transparent 64%),
    radial-gradient(60vw 60vw at 50% 108%, rgba(215, 255, 62, 0.05), transparent 70%);
}

.fx-grid {
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  animation: gridDrift 24s linear infinite;
}

.fx-scan {
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.fx-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 26vh;
  background: linear-gradient(to bottom, transparent, rgba(34, 230, 255, 0.06), transparent);
  animation: scan 9s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}

@keyframes scan {
  from { transform: translateY(-30vh); }
  to { transform: translateY(120vh); }
}

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

/* ---------- HUD header ---------- */

.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.9rem var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.55) 70%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.hud.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 6, 10, 0.9);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-mark {
  width: 9px; height: 9px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transform: rotate(45deg);
  align-self: center;
}

.brand-name { font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em; }

.nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a i {
  font-style: normal;
  color: var(--dim);
  margin-right: 0.35rem;
  font-size: 0.7rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.hud-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-left: clamp(0.6rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}

.dot,
.pulse {
  width: 6px; height: 6px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--acid);
  animation: blink 2.4s ease-in-out infinite;
}

.hud-tag { color: var(--dim); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.menu-btn {
  display: none;
  width: 42px; height: 38px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-btn span:not(.sr-only) {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 18px; }
.menu-btn span:nth-child(3) { top: 24px; }

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared layout ---------- */

.hero,
.section {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-head { max-width: min(100%, 54rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-head h2,
.contact-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}

.section-sub {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ok { color: var(--acid); }

/* ---------- hero ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.glitch {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11.5vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-shadow: 0 0 46px rgba(34, 230, 255, 0.22);
  margin-left: -0.04em;
}

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

.glitch::before {
  color: var(--cyan);
  transform: translate(2px, -1px);
  clip-path: inset(0 0 74% 0);
  opacity: 0.6;
  animation: glitchTop 5.4s steps(1) infinite;
}

.glitch::after {
  color: var(--magenta);
  transform: translate(-2px, 1px);
  clip-path: inset(78% 0 0 0);
  opacity: 0.55;
  animation: glitchBottom 6.1s steps(1) infinite;
}

@keyframes glitchTop {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0.55; }
  93% { transform: translate(6px, -2px); }
  95% { transform: translate(-4px, 1px); }
  97% { transform: translate(3px, 0); }
}

@keyframes glitchBottom {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0.5; }
  91% { transform: translate(-6px, 2px); }
  94% { transform: translate(4px, -1px); }
  96% { transform: translate(-2px, 1px); }
}

.hero-role {
  margin-top: 1.6rem;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--ink);
  min-height: 1.8em;
}

.prompt { color: var(--magenta); margin-right: 0.4rem; }

.caret {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  margin-left: 2px;
  background: var(--cyan);
  vertical-align: -0.16em;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-desc {
  margin-top: 1.35rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  border: 1px solid var(--cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 0 rgba(34, 230, 255, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 28px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  max-width: 34rem;
}

.hero-meta dt {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 0.3rem;
}

.hero-meta dd {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* ---------- augmented panels ---------- */

.hero-panel[data-augmented-ui],
.contact-panel[data-augmented-ui] {
  --aug-tl: 26px;
  --aug-br: 26px;
  --aug-border: 1px;
  --aug-border-bg: var(--line);
  --aug-inlay: 5px;
  --aug-inlay-bg: rgba(34, 230, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(34, 230, 255, 0.05), transparent 42%),
    linear-gradient(to bottom, rgba(10, 17, 27, 0.92), rgba(5, 8, 13, 0.96));
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--halo);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head-right { color: var(--cyan); }

.radar {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 1.3rem auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(34, 230, 255, 0.1) 18% 18.4%, transparent 18.4% 36%),
    radial-gradient(circle at 50% 50%, rgba(34, 230, 255, 0.08), transparent 68%);
  overflow: hidden;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: var(--line-soft);
}
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(34, 230, 255, 0.34), transparent 26%, transparent 100%);
  animation: sweep 4.2s linear infinite;
}

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

.radar-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
}

.blip {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: blip 3.6s ease-in-out infinite;
}
.blip.b1 { top: 28%; left: 64%; animation-delay: 0.2s; }
.blip.b2 { top: 66%; left: 36%; animation-delay: 1.1s; }
.blip.b3 { top: 44%; left: 78%; animation-delay: 2.2s; }

@keyframes blip {
  0%, 100% { opacity: 0.25; }
  18% { opacity: 1; }
  42% { opacity: 0.35; }
}

.readout { display: grid; gap: 0.1rem; }

.readout li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.78rem;
}

.readout span { color: var(--dim); letter-spacing: 0.18em; font-size: 0.66rem; }
.readout b { font-weight: 500; letter-spacing: 0.08em; }
.readout em { font-style: normal; color: var(--muted); font-size: 0.66rem; margin-left: 0.3rem; }

.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.bars i {
  display: block;
  width: 3px;
  height: var(--h);
  background: var(--cyan);
  opacity: 0.8;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 58ch;
}

.about-text p:first-child {
  color: var(--ink);
  font-size: 1.02rem;
}

.id-card[data-augmented-ui] {
  --aug-tr: 22px;
  --aug-bl: 22px;
  --aug-border: 1px;
  --aug-border-bg: var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 27, 0.9), rgba(6, 9, 14, 0.95));
  padding: 1.4rem;
}

.id-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.id-no { color: var(--dim); }

.id-rows { margin-top: 0.4rem; }

.id-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.8rem;
}

.id-rows dt { color: var(--dim); letter-spacing: 0.1em; flex: none; }
.id-rows dd { text-align: right; color: var(--ink); }

.barcode {
  height: 34px;
  margin-top: 1.2rem;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 11px,
    var(--ink) 11px 14px, transparent 14px 17px
  );
  opacity: 0.5;
  mask-image: linear-gradient(90deg, #000 0 68%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0 68%, transparent);
}

.ticker {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 0.7rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--dim);
}

.ticker-track span:nth-child(odd) { color: var(--muted); }

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

/* ---------- stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.mod[data-augmented-ui] {
  --aug-tl: 18px;
  --aug-br: 18px;
  --aug-border: 1px;
  --aug-border-bg: var(--line-soft);
  background: linear-gradient(170deg, rgba(12, 20, 30, 0.75), rgba(6, 9, 14, 0.9));
  padding: 1.5rem 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mod:nth-child(even)[data-augmented-ui] {
  --aug-tl: 0px;
  --aug-tr: 18px;
  --aug-bl: 18px;
  --aug-br: 0px;
}

.mod:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(34, 230, 255, 0.08);
}

.mod:hover[data-augmented-ui] { --aug-border-bg: var(--cyan); }

.mod-idx {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--magenta);
  margin-bottom: 1rem;
}

.mod h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.mod p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
  min-height: 4.6em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.tags li {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}

/* ---------- work ---------- */

.work-list {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem) 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.25s ease, padding 0.3s ease;
}

a.work:hover {
  background: linear-gradient(90deg, rgba(34, 230, 255, 0.06), transparent 70%);
  padding-left: 1rem;
}

.work-main { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: flex-start; }

.work-idx {
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.14em;
  padding-top: 0.35rem;
  flex: none;
}

.work h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.work p { color: var(--muted); font-size: 0.87rem; max-width: 60ch; }

.work-side {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.work-side .tags { margin-top: 0; justify-content: flex-end; }

.work-arrow {
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
  flex: none;
}

a.work:hover .work-arrow { transform: translate(4px, -4px); }

.work-state {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  border: 1px solid var(--line-soft);
  padding: 0.25rem 0.5rem;
}

/* ---------- contact ---------- */

.section-contact { padding-bottom: clamp(5rem, 10vw, 9rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.contact-desc {
  color: var(--muted);
  max-width: 48ch;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  text-wrap: pretty;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--cyan);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--cyan);
  transition: gap 0.25s ease, color 0.2s ease;
}

.contact-link:hover { gap: 1.2rem; color: var(--ink); }

.copy-btn {
  display: block;
  margin-top: 1.6rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover { border-color: var(--cyan); color: var(--ink); }
.copy-btn.is-copied { border-color: var(--acid); color: var(--acid); }

.log { margin-top: 0.3rem; }

.log li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.78rem;
  color: var(--muted);
}

.log time { color: var(--dim); font-size: 0.7rem; letter-spacing: 0.08em; }
.log em { font-style: normal; font-size: 0.64rem; letter-spacing: 0.14em; color: var(--dim); }
.log em.ok { color: var(--acid); }

.pulse-text { color: var(--magenta) !important; animation: blink 1.6s steps(1) infinite; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem var(--gutter);
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  width: min(100%, var(--maxw));
  margin-inline: auto;
}

.footer-mid { color: var(--muted); }

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hud-status { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 6.5rem;
    gap: 2.5rem;
    min-height: auto;
  }

  .hero-panel { max-width: 420px; }

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

  .id-card { max-width: 420px; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; }

  .nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.2rem;
    background: rgba(5, 6, 10, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
  }

  .nav a::after { display: none; }

  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }

  .work { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }

  .work-side { justify-content: space-between; }

  .work-side .tags { justify-content: flex-start; }

  .work p { font-size: 0.84rem; }

  .mod p { min-height: 0; }

  .footer { justify-content: flex-start; }
  .footer-mid { display: none; }
}

@media (max-width: 420px) {
  .hero-meta { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .fx-field { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .caret { opacity: 1; }
}
