/* Fonts from kotlinlang.org: JetBrains Sans + JetBrains Mono */
@font-face {
  font-family: "JetBrains Sans";
  src:
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/webfonts/JetBrainsSans-Regular.woff2") format("woff2"),
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/webfonts/JetBrainsSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Sans";
  src:
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/webfonts/JetBrainsSans-SemiBold.woff2") format("woff2"),
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/webfonts/JetBrainsSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Sans";
  src:
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/variable/JetBrainsSans[wght].woff2") format("woff2-variations"),
    url("https://resources.jetbrains.com/storage/jetbrains-sans/google-fonts/v1.309/variable/JetBrainsSans[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  /* Dracula palette */
  --bg: #282a36;
  --bg-elevated: #21222c;
  --bg-soft: #2d303e;
  --bg-deep: #21222c;
  --current: #44475a;
  --ink: #f8f8f2;
  --muted: #6272a4;
  --muted-bright: #c7cce0;
  --comment: #6272a4;
  --accent: #bd93f9;
  --accent-hover: #cbb2f9;
  --accent-pink: #ff79c6;
  --cyan: #8be9fd;
  --green: #50fa7b;
  --orange: #ffb86c;
  --yellow: #f1fa8c;
  --red: #ff5555;
  --line: #44475a;
  --panel-muted: #6272a4;
  --code-bg: #21222c;
  --code-bar: #191a21;
  --code-ink: #f8f8f2;
  --code-muted: #6272a4;
  --code-kw: #ff79c6;
  --code-ann: #bd93f9;
  --code-type: #8be9fd;
  --code-fn: #50fa7b;
  --code-str: #f1fa8c;
  --header-bg: rgba(40, 42, 54, 0.88);
  --status-bg: rgba(33, 34, 44, 0.7);
  --section-alt: rgba(33, 34, 44, 0.55);
  --toast-bg: rgba(33, 34, 44, 0.96);
  --btn-on-accent: #282a36;
  --glow-accent: rgba(189, 147, 249, 0.12);
  --glow-pink: rgba(255, 121, 198, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
  --font: "JetBrains Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 10px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-elevated: #ffffff;
  --bg-soft: #ffffff;
  --bg-deep: #e9ebf4;
  --current: #d5d8e5;
  --ink: #282a36;
  --muted: #6272a4;
  --muted-bright: #44475a;
  --comment: #6272a4;
  --accent: #7c5cbf;
  --accent-hover: #6b4db0;
  --accent-pink: #c44d8f;
  --cyan: #0f7a8a;
  --green: #2d8a57;
  --orange: #b7791f;
  --yellow: #9a8610;
  --red: #c43c3c;
  --line: #d5d8e5;
  --panel-muted: #6272a4;
  --code-bg: #f7f8fc;
  --code-bar: #eceef5;
  --code-ink: #282a36;
  --code-muted: #6272a4;
  --code-kw: #c44d8f;
  --code-ann: #7c5cbf;
  --code-type: #0f7a8a;
  --code-fn: #2d8a57;
  --code-str: #9a8610;
  --header-bg: rgba(244, 245, 250, 0.9);
  --status-bg: rgba(255, 255, 255, 0.85);
  --section-alt: rgba(255, 255, 255, 0.7);
  --toast-bg: rgba(255, 255, 255, 0.96);
  --btn-on-accent: #ffffff;
  --glow-accent: rgba(124, 92, 191, 0.12);
  --glow-pink: rgba(196, 77, 143, 0.08);
  --shadow: rgba(40, 42, 54, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(900px 520px at 100% 0%, var(--glow-accent), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, var(--glow-pink), transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 35%, var(--bg-deep) 100%);
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1rem var(--pad);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

[data-theme="dark"] .theme-toggle__icon--moon,
[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: min(86vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad) clamp(3rem, 7vh, 5rem);
}

.hero-copy {
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-role {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-name {
  position: relative;
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  cursor: default;
}

.hero-name.is-glitch {
  animation: name-glitch 0.45s steps(2, end) infinite;
  text-shadow:
    2px 0 var(--accent-pink),
    -2px 0 var(--cyan);
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--current);
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(80, 250, 123, 0.55);
  animation: pulse-dot 1.6s ease-out infinite;
}

#status-text {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#status-text.is-swap {
  opacity: 0;
  transform: translateY(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-on-accent);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--btn-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-accent);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.hero-meta {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-panel {
  border: 1px solid var(--current);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: 0 24px 48px var(--shadow);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--code-bar);
  border-bottom: 1px solid var(--current);
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.panel-dots {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 4px 50%, #ff5555 3px, transparent 3.5px),
    radial-gradient(circle at 16px 50%, #f1fa8c 3px, transparent 3.5px),
    radial-gradient(circle at 28px 50%, #50fa7b 3px, transparent 3.5px);
  flex: 0 0 auto;
}

.panel-file {
  color: var(--code-ink);
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-lang {
  color: var(--code-type);
  flex: 0 0 auto;
}

.hero-code {
  margin: 0;
  padding: 1.15rem 1.2rem 1.35rem;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.05vw, 0.82rem);
  line-height: 1.6;
  white-space: pre;
  overflow: auto;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-code code {
  display: block;
}

.c-line {
  display: block;
  min-height: 1.6em;
}

.c-kw { color: var(--code-kw); }
.c-ann { color: var(--code-ann); }
.c-type { color: var(--code-type); }
.c-fn { color: var(--code-fn); }
.c-str { color: var(--code-str); }
.c-pkg { color: var(--code-muted); }
.c-cmt { color: var(--code-muted); font-style: italic; }

.c-cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 0.15ch;
  vertical-align: text-bottom;
  background: var(--accent-pink);
  animation: blink 1s step-end infinite;
}

.hero-panel:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 48px rgba(189, 147, 249, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.25rem, 8vh, 5.25rem) var(--pad);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lead {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.job {
  display: grid;
  grid-template-columns: minmax(11rem, 0.75fr) 1.6fr;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.job-meta time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.job-role {
  color: var(--accent-pink);
  font-size: 0.92rem;
  font-weight: 600;
}

.job-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.job-body h3 a {
  text-decoration: none;
}

.job-company a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.company-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.company-logo--wide {
  width: auto;
  height: 22px;
  border-radius: 4px;
  padding: 3px 6px;
}

.job-body > p {
  margin: 0 0 0.85rem;
  color: var(--muted-bright);
}

.duties {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted-bright);
}

.duties li + li {
  margin-top: 0.3rem;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.chips li:hover {
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(255, 121, 198, 0.08);
}

.section-stack {
  width: 100%;
  max-width: none;
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.stack-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-grid li {
  padding: 1.2rem 1.1rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stack-grid span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-grid strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.education {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) 1fr;
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.education h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.education p {
  margin: 0;
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.metrics-card {
  margin: 0;
}

.metrics-card figcaption {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metrics-card a {
  display: block;
  text-decoration: none;
}

.metrics-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

@media (max-width: 720px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contacts a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contacts span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts strong {
  font-size: 1.1rem;
  font-weight: 650;
}

.contacts a:hover strong {
  color: var(--accent);
}

.section-tech {
  border-top: 1px solid var(--line);
  background: var(--section-alt);
}

.tech-groups {
  display: grid;
  gap: 1.75rem;
}

.tech-group h3 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.75rem;
}

.tech-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 92px;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tech-icons li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(189, 147, 249, 0.12);
}

.tech-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.tech-icons img.tech-logo--dark {
  background: #111;
  padding: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.4rem var(--pad) 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
}

.footer-joke {
  color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 40;
  min-width: min(90vw, 280px);
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--toast-bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fun-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
}

.bat {
  position: absolute;
  top: 12%;
  font-size: 1.1rem;
  opacity: 0;
  filter: grayscale(0.2);
}

.b1 { left: -10%; }
.b2 { left: -14%; top: 22%; }

body.is-party .b1 {
  animation: bat-fly 0.9s ease-out forwards;
}

body.is-party .b2 {
  animation: bat-fly 0.9s ease-out 0.08s forwards;
}

.logo {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 18px rgba(255, 121, 198, 0.35);
}

body.pong-open {
  overflow: hidden;
}

.pong-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pong-modal[hidden] {
  display: none;
}

.pong-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(4px);
}

.pong-terminal {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  border: 1px solid var(--current);
  border-radius: 12px;
  background: #191a21;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: rise-in 0.28s ease;
}

.pong-term-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #0d0e12;
  border-bottom: 1px solid var(--current);
  color: var(--comment);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pong-term-dots {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 4px 50%, #ff5555 3px, transparent 3.5px),
    radial-gradient(circle at 16px 50%, #f1fa8c 3px, transparent 3.5px),
    radial-gradient(circle at 28px 50%, #50fa7b 3px, transparent 3.5px);
  flex: 0 0 auto;
}

.pong-term-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c7d0dc;
}

.pong-term-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pong-term-close:hover {
  color: var(--accent-pink);
}

.pong-screen {
  padding: 0.85rem 1rem 1rem;
  background: #111;
}

.pong-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.pong-labels span:last-child {
  text-align: right;
}

.pong-pause {
  border: 0;
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  background: #8be9fd;
  color: #111;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(139, 233, 253, 0.45);
}

.pong-pause:hover {
  filter: brightness(1.08);
}

#pong-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #333;
  background: #000;
  image-rendering: pixelated;
}

.pong-help {
  margin: 0.65rem 0 0;
  color: #6272a4;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .pong-labels {
    font-size: 0.72rem;
  }

  .pong-help {
    font-size: 0.65rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(80, 250, 123, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(80, 250, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(80, 250, 123, 0);
  }
}

@keyframes name-glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(1px, -1px);
  }
  60% {
    transform: translate(-1px, 0);
  }
  80% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes bat-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8) rotate(-8deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(110vw, -18vh) scale(1.15) rotate(12deg);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .hero-panel {
    order: -1;
    max-width: 100%;
  }

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

  .job,
  .education {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

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

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }

  .hero-panel {
    margin-inline: calc(var(--pad) * -0.15);
  }
}

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

  .hero-copy,
  .hero-panel,
  .reveal,
  .status-dot,
  .c-cursor,
  .bat,
  .hero-name.is-glitch {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-name.is-glitch {
    text-shadow: none;
  }
}
