@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* ── Warm stone palette — light mode ── */
  --bg: #fafaf9;         /* warm white reading surface */
  --surface: #f0ece7;    /* warm off-white — visibly distinct from bg */
  --card: #ffffff;       /* pure white — lifts above surface */
  --text: #1c1917;       /* warm near-black */
  --muted: #57534e;      /* stone-600 — warm mid-tone */
  --soft: #78716c;       /* stone-500 — warm secondary */
  --border: #e2dcd5;     /* soft warm grey — defines edges without outlining */
  --accent: #1c1917;
  --tag: #e8e3dc;        /* warm pill background */
  --shadow:
    0 1px 2px rgba(28, 25, 23, 0.05),
    0 8px 24px rgba(28, 25, 23, 0.07),
    0 20px 48px rgba(28, 25, 23, 0.05);  /* 3-layer warm shadow */
}

:root[data-theme="dark"] {
  --bg: #050505;
  --surface: #101010;
  --card: #171717;
  --text: #fafafa;
  --muted: #d4d4d4;
  --soft: #a3a3a3;
  --border: #2a2a2a;
  --accent: #fafafa;
  --tag: #2a2a2a;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;  /* crisper Inter on macOS/retina */
  -moz-osx-font-smoothing: grayscale;
  transition: background 240ms ease, color 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled a,
  body.cursor-enabled button,
  body.cursor-enabled [role="button"] {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 160ms ease, width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .cursor-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--text);
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--text) 62%, transparent);
    border-radius: 999px;
  }

  body.cursor-visible .cursor-dot,
  body.cursor-visible .cursor-ring {
    opacity: 1;
  }

  body.cursor-hovering .cursor-ring {
    width: 58px;
    height: 58px;
    border-color: var(--text);
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }

  body.modal-open.cursor-hovering .cursor-ring {
    background: color-mix(in srgb, var(--text) 10%, transparent);
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

h1,
h2,
h3,
.brand,
.hero-primary,
.nav-resume,
.modal-actions a,
.modal-back {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background: var(--bg);
}

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

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

.section-shell,
.site-header,
.contact-section > .section-shell {
  width: min(100% - 32px, 1152px);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: rgba(28, 25, 23, 0.45); /* warm semi-transparent — softer than solid black */
  transform-origin: left center;
}

:root[data-theme="dark"] .scroll-progress span {
  background: #f5f5f5;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(100% - 32px, 820px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(120, 100, 80, 0.12);
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.85);
  margin-top: 14px;
  padding: 10px 12px 10px 20px;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.08), 0 1px 3px rgba(28, 25, 23, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  margin-right: auto;
  font-size: 20px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--tag);
  outline: none;
}

.nav-links a:hover,
.hero-actions a:hover,
.footer-links a:hover,
.section-heading a:hover {
  color: var(--text);
}

.nav-resume {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px; /* pill — consistent with all other CTAs */
  background: var(--text);
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}

:root[data-theme="dark"] .nav-resume {
  background: #f9fafb;
  color: #050505;
}

:root[data-theme="dark"] .site-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 13, 0.82);
  box-shadow: none;
}

:root[data-theme="dark"] .theme-toggle {
  background: var(--card);
  color: var(--text);
}

.theme-toggle {
  display: inline-grid;
  width: 48px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--text);
  outline: 0;
}

:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle:focus-visible {
  border-color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(92vh - 72px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  padding: 58px 0 84px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(#c8c2bb 1px, transparent 1px),
    linear-gradient(90deg, #c8c2bb 1px, transparent 1px); /* warm grey grid lines */
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.hero-blur {
  position: absolute;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(120, 113, 108, 0.1); /* warm stone — visible on warm white */
  filter: blur(80px);
  pointer-events: none;
}

/* Keep a hint of cool on the top-right blur for subtle warm/cool balance */
.hero-blur-two {
  background: rgba(59, 130, 246, 0.08);
}

.hero-blur-one {
  left: 10%;
  top: 18%;
}

.hero-blur-two {
  right: 12%;
  top: 22%;
}

.hero-blur-three {
  left: 46%;
  bottom: 8%;
}

:root[data-theme="dark"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  opacity: 0.18;
}

:root[data-theme="dark"] .hero-blur {
  background: rgba(255, 255, 255, 0.035);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "stage";
  max-width: 840px;
  justify-items: center;
}

.terminal-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.terminal-toggle:hover,
.terminal-toggle:focus-visible {
  border-color: var(--text);
  outline: 0;
}

.terminal-toggle[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.hero-view {
  grid-area: stage;
  display: grid;
  justify-items: center;
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.hero-view-normal {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.hero-view-terminal {
  width: min(100%, 760px);
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  pointer-events: none;
}

.hero.is-terminal .hero-view-normal {
  opacity: 0;
  transform: translateY(-14px);
  visibility: hidden;
  pointer-events: none;
}

.hero.is-terminal .hero-view-terminal {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.terminal-panel {
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #101010;
  color: #f9fafb;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.18);
  text-align: left;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 18px;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #f87171;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #34d399;
}

.terminal-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(22px, 4vw, 36px);
  white-space: pre-wrap;
}

.terminal-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.75;
}

.terminal-command {
  color: #a7f3d0;
}

:root[data-theme="dark"] .terminal-toggle {
  background: var(--card);
  color: var(--text);
}

:root[data-theme="dark"] .terminal-toggle[aria-pressed="true"] {
  background: #f9fafb;
  color: #050505;
}

:root[data-theme="dark"] .terminal-panel {
  border-color: #2a2a2a;
  box-shadow: none;
}

.hero-symbols {
  position: absolute;
  inset: 36px 0 84px;
  z-index: 1;
  pointer-events: none;
}

.hero-symbol {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  left: var(--x);
  top: var(--y);
  min-height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  color: var(--text);
  padding: 0 13px;
  opacity: 0.25;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--d);
  transform-origin: center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }

  50% {
    transform: translateY(-14px) rotate(var(--r));
  }
}

:root[data-theme="dark"] .hero-symbol {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(16, 16, 16, 0.72);
  color: #f9fafb;
  opacity: 0.22;
}

.hero-avatar {
  width: 176px;
  height: 176px;
  margin: 0 0 34px;
  border: 6px solid var(--border);
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08; /* slightly more forgiving on narrow viewports */
}

.hero-text {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.status-dot {
  position: relative;
  padding-left: 18px;
}

.status-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0 26px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
}

:root[data-theme="dark"] .hero-avatar {
  border-color: #262626;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .hero-kicker {
  background: #101010;
  color: #d4d4d4;
}

:root[data-theme="dark"] .hero-primary {
  background: #f9fafb;
  color: #050505;
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.hero-actions a {
  color: var(--muted);
  font-weight: 700;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -42px;
  padding-bottom: 84px;
}

.proof-strip article {
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.proof-strip span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.proof-strip p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

:root[data-theme="dark"] .proof-strip article {
  background: var(--card);
  box-shadow: none;
}

.section-block {
  background: var(--surface);
  padding: 96px 0;
}

.about-block {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

:root[data-theme="dark"] .about-block {
  background: var(--surface);
}

:root[data-theme="dark"] .section-block {
  background: var(--surface);
}

:root[data-theme="dark"] .section-kicker {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
  color: #d4d4d4;
}

.section-kicker {
  display: table;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--soft);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;   /* editorial uppercase label */
  text-transform: uppercase;
}

.section-shell > h2,
.about-grid h2,
.contact-section h2 {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  color: var(--text); /* full-contrast — acts as a real section anchor */
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 56px;
  align-items: center;
  max-width: 1060px;
}

.about-story .section-kicker,
.about-story h2 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.about-story h2 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
}

.body-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75; /* more breathing room between lines */
}

.body-copy p {
  margin: 0;
}

.about-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 22px;
}

:root[data-theme="dark"] .about-panel {
  background: var(--card);
  box-shadow: none;
}

.about-panel-card {
  border-left: 4px solid rgba(28, 25, 23, 0.2); /* purposeful accent — visible but not harsh */
  border-radius: 0 14px 14px 0;
  background: var(--surface);
  padding: 14px 16px;
}

:root[data-theme="dark"] .about-panel-card {
  background: var(--surface);
  border-left-color: #525252;
}

:root[data-theme="dark"] .about-panel-card:nth-child(2),
:root[data-theme="dark"] .about-panel-card:nth-child(3) {
  border-left-color: #525252;
}

.about-panel-card:nth-child(2) {
  border-left-color: rgba(28, 25, 23, 0.2);
}

.about-panel-card:nth-child(3) {
  border-left-color: rgba(28, 25, 23, 0.2);
}

.panel-label {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.about-panel-card p:not(.panel-label) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quick-bits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.quick-bits button {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

:root[data-theme="dark"] .quick-bits button {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}

.quick-bits button:hover,
.quick-bits button:focus-visible {
  border-color: var(--text);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
  outline: 0;
}

:root[data-theme="dark"] .quick-bits button:hover,
:root[data-theme="dark"] .quick-bits button:focus-visible {
  box-shadow: none;
}

.skills-section {
  padding: 96px 0;
}

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

.skill-group {
  --skill: var(--text);
  --skill-bg: var(--surface);
  --skill-border: var(--border);
  display: grid;
  align-content: start;
  min-height: 0;
  border: 1px solid var(--skill-border);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  padding: 28px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.1);
}

.skill-group[data-tone="game"] {
  --skill: var(--text);
  --skill-bg: var(--surface);
  --skill-border: var(--border);
}

.skill-group[data-tone="ai"] {
  --skill: var(--text);
  --skill-bg: var(--surface);
  --skill-border: var(--border);
}

.skill-group[data-tone="systems"] {
  --skill: var(--text);
  --skill-bg: var(--surface);
  --skill-border: var(--border);
}

.skill-group-label {
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--muted);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}

.skill-group h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.skill-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.skill-detail-grid div {
  border-top: 1px solid var(--border);
  padding: 14px 0 0;
}

.skill-detail-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-detail-grid strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.skill-chip-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
}

.skill-note {
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--soft);
  font-size: 13px;
}

:root[data-theme="dark"] .skill-group {
  --skill: #d4d4d4;
  --skill-bg: #101010;
  --skill-border: #2a2a2a;
  background: var(--card);
  border-color: var(--border);
  box-shadow: none;
}

:root[data-theme="dark"] .skill-group-label {
  background: #2a2a2a;
  color: #fafafa;
}

:root[data-theme="dark"] .skill-chip-row span {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

:root[data-theme="dark"] .skill-detail-grid div {
  border-color: var(--border);
}

:root[data-theme="dark"] .skill-group:hover {
  box-shadow: none;
}

.experience-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  cursor: pointer;
}

.experience-card:hover,
.experience-card:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 4px;
}

.experience-company {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}

.company-logo {
  width: 58px;
  height: auto;
  border-radius: 8px;
}

:root[data-theme="dark"] .experience-card {
  background: var(--card);
  box-shadow: none;
}

:root[data-theme="dark"] .company-logo {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.experience-body h3 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.2;
}

.experience-body p {
  max-width: 880px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.experience-line {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.experience-body p.experience-line + p.experience-line {
  margin-top: 0;
}

.compact-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compact-facts span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
}

:root[data-theme="dark"] .compact-facts span {
  background: #101010;
}

.experience-skill-line,
.project-skill-line {
  color: var(--text);
  font-weight: 800;
}

.experience-body .experience-skill-line {
  margin-top: 10px;
}

.card-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.experience-body ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.work-section {
  padding: 96px 0;
}

.work-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: flex-start;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  cursor: pointer;
}

.project-card.reverse .project-preview {
  order: 0;
}

.project-card:hover,
.project-card:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 4px;
}

:root[data-theme="dark"] .project-card {
  background: var(--card);
  box-shadow: none;
}

:root[data-theme="dark"] .project-card:hover,
:root[data-theme="dark"] .project-card:focus-visible {
  outline-color: var(--border);
}

.project-preview {
  display: grid;
  width: 70px;
  min-height: 70px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  padding: 8px;
}

.preview-enora {
  background: linear-gradient(135deg, #1a1410, #2d2418); /* dark warm-black — shows gold logo cleanly */
}

.preview-vibe {
  background: #000000; /* pure black — matches Vibe brand */
}

.project-logo-preview {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 7px;
}

.project-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.preview-janadesh {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

:root[data-theme="dark"] .preview-enora {
  background: linear-gradient(135deg, #1a1410, #2d2418);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .preview-vibe {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .project-logo-preview {
  background: #fafafa;
  border-color: #2a2a2a;
}

:root[data-theme="dark"] .preview-janadesh {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.project-type {
  margin: 0 0 2px;
  color: var(--soft);
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.project-content h3 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.2;
}

.project-content p:not(.project-type) {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-meta {
  margin-top: 0;
  color: var(--soft);
  font-size: 16px;
}

.project-content p.project-meta {
  margin-top: 0;
  color: var(--soft);
}

.project-content p.project-skill-line {
  margin-top: 10px;
  color: var(--text);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.certificate-intro {
  max-width: 620px;
  margin: -24px auto 0;
  color: var(--muted);
  text-align: center;
}

.credential-card {
  display: flex;
  min-height: 154px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 24px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.credential-card:hover,
.credential-card:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 4px;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .credential-card {
  background: var(--card);
  box-shadow: none;
}

.certificate-grid h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

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

.credential-type {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credential-action {
  display: inline-flex;
  min-width: 96px;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

:root[data-theme="dark"] .credential-action {
  background: #f9fafb;
  color: #050505;
  border-color: #f9fafb;
}

.contact-section {
  padding: 96px 0 56px;
  text-align: center;
}

.contact-section > .section-shell {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: clamp(40px, 6vw, 72px) 24px;
}

:root[data-theme="dark"] .contact-section {
  background: var(--bg);
}

:root[data-theme="dark"] .contact-section > .section-shell {
  background: var(--card);
}

.contact-copy {
  max-width: 560px;
  margin: -24px auto 24px;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin-bottom: 28px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.copyright {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header,
body.modal-open main,
body.modal-open .contact-section {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

:root[data-theme="dark"] body.modal-open .site-header,
:root[data-theme="dark"] body.modal-open main,
:root[data-theme="dark"] body.modal-open .contact-section {
  filter: none;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

  .has-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-symbol {
    animation: none;
  }

  .hero-view,
  .terminal-toggle {
    transition: none;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

:root[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: none;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(60vw, 760px);
  min-height: min(60vh, 520px);
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.28);
  padding: 48px;
}

:root[data-theme="dark"] .modal-card {
  border: 1px solid var(--border);
  background: #0d0d0d;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

:root[data-theme="dark"] .modal-close {
  background: #171717;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
}

.modal-label {
  display: table;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--muted);
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
}

.modal-card h2 {
  margin: 0 44px 18px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.modal-card p:not(.modal-label) {
  color: var(--muted);
  font-size: 17px;
}

.modal-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding-left: 20px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.modal-actions a,
.modal-actions button,
.modal-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
}

.modal-actions a,
.modal-actions button {
  background: var(--text);
  color: var(--bg);
}

.modal-actions a:hover,
.modal-actions a:focus-visible,
.modal-actions button:hover,
.modal-actions button:focus-visible,
.modal-back:hover,
.modal-back:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .modal-actions a,
:root[data-theme="dark"] .modal-actions button {
  background: #f9fafb;
  color: #050505;
  border-color: #f9fafb;
}

:root[data-theme="dark"] .modal-back {
  background: #171717;
}

@media (max-width: 900px) {
  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-symbols {
    inset: 44px 0 80px;
    opacity: 0.48;
  }

  .hero-symbol:nth-child(n + 7) {
    display: none;
  }

  .hero-symbol {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero {
    gap: 48px;
    padding-top: 48px;
  }

  .about-grid {
    gap: 32px;
  }

  .skills-groups {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    margin-top: -22px;
    padding-bottom: 56px;
  }

  .proof-strip article {
    min-height: auto;
  }

  .proof-strip p {
    max-width: none;
  }

  .experience-company {
    width: fit-content;
  }

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

  .modal-card {
    width: min(100%, 720px);
    min-height: 62vh;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: auto;
    width: min(100% - 20px, 520px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border-radius: 24px;
    padding: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 4px;
    margin: 0;
    order: 1;
  }

  .nav-actions {
    order: 0;
    gap: 8px;
  }

  .theme-toggle {
    order: 2;
  }

  .nav-resume {
    order: 3;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-symbols {
    display: none;
  }

  .hero-avatar {
    width: 136px;
    height: 136px;
    margin-bottom: 24px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-meta {
    display: grid;
    gap: 8px;
  }

  .hero-primary {
    width: min(100%, 240px);
  }

  .about-story h2 {
    font-size: 26px;
  }

  .about-panel {
    padding: 18px;
  }

  .skill-group {
    min-height: auto;
    padding: 22px;
  }

  .proof-strip {
    width: min(100% - 24px, 520px);
  }

  .skill-detail-grid {
    margin-top: 18px;
  }

  .skill-chip-row {
    margin-top: 18px;
  }

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

  .project-card,
  .experience-card,
  .credential-card {
    padding: 24px;
  }

  .credential-card {
    flex-direction: column;
  }

  .credential-action {
    width: 100%;
  }

  .company-logo {
    width: 58px;
  }

  .project-preview {
    width: 70px;
    min-height: 70px;
    font-size: 13px;
  }

  .modal-card {
    padding: 34px 24px 28px;
  }
}

/* ═══════════════════════════════════════════════════════════
   POLISH PASS — Micro-interactions, Motion & Depth
   All rules below are additive overrides. Safe to remove as
   a single block if you want to revert any changes.
   ═══════════════════════════════════════════════════════════ */

/* ── Keyframe: hero element entrance ── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero — staggered entrance for each element ──
   Each element animates in sequence from top to bottom.
   `animation-fill-mode: both` keeps opacity:0 before delay fires. */
.hero .hero-avatar {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.hero .hero-kicker {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 170ms both;
}

.hero h1 {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 250ms both;
}

.hero .hero-text {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 330ms both;
}

.hero .hero-meta {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}

.hero .hero-primary {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 460ms both;
}

.hero .hero-actions {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

/* ── Hero primary CTA — hover lift and press ── */
.hero-primary {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-primary:hover,
.hero-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.22);
  outline: none;
}

.hero-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
  transition-duration: 60ms;
}

:root[data-theme="dark"] .hero-primary:hover {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

/* ── Hero action links — slide-in underline on hover ── */
.hero-actions a {
  position: relative;
  transition: color 160ms ease;
}

.hero-actions a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-actions a:hover {
  color: var(--text);
}

.hero-actions a:hover::after {
  transform: scaleX(1);
}

/* ── Nav links — spring easing (override) ── */
.nav-links a {
  transition: background 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Nav resume CTA — hover lift and press ── */
.nav-resume {
  transition: transform 140ms ease;
}

.nav-resume:hover,
.nav-resume:focus-visible {
  transform: translateY(-1px) scale(1.02);
  outline: none;
}

.nav-resume:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 60ms;
}

/* ── Proof-strip articles — hover lift + theme transition ── */
.proof-strip article {
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.proof-strip article:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.1);
}

:root[data-theme="dark"] .proof-strip article:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

/* ── Skill card — spring hover + better shadow ── */
.skill-group {
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.skill-group:hover {
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.13);
}

:root[data-theme="dark"] .skill-group:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
}

/* ── Skill chip — hover lift ── */
.skill-chip-row span {
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.skill-chip-row span:hover {
  transform: translateY(-2px);
  border-color: var(--text);
}

/* ── Card-action label — slide underline on parent hover ── */
.card-action {
  border-bottom: none;
  position: relative;
  padding-bottom: 1px;
}

.card-action::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .card-action::after,
.project-card:focus-visible .card-action::after,
.experience-card:hover .card-action::after,
.experience-card:focus-visible .card-action::after {
  transform: scaleX(1);
}

/* ── Project cards — spring hover + glow shadow ── */
.project-card {
  transition:
    background 220ms ease,
    border-color 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(24, 24, 27, 0.26);
  box-shadow: 0 30px 64px rgba(17, 24, 39, 0.13);
}

:root[data-theme="dark"] .project-card:hover,
:root[data-theme="dark"] .project-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* ── Experience card — spring hover ── */
.experience-card {
  transition:
    background 220ms ease,
    border-color 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.experience-card:hover,
.experience-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(24, 24, 27, 0.26);
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.12);
}

:root[data-theme="dark"] .experience-card:hover,
:root[data-theme="dark"] .experience-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

/* ── Credential cards — spring hover ── */
.credential-card {
  transition:
    background 220ms ease,
    border-color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.credential-card:hover,
.credential-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(24, 24, 27, 0.26);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.11);
}

:root[data-theme="dark"] .credential-card:hover,
:root[data-theme="dark"] .credential-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

/* ── Quick-bits buttons — press state ── */
.quick-bits button:active {
  transform: translateY(1px) !important;
  transition-duration: 60ms !important;
}

/* ── Terminal toggle — press state ── */
.terminal-toggle:active {
  transform: translateY(1px);
  transition-duration: 60ms;
}

/* ── Modal action buttons — press state ── */
.modal-actions a:active,
.modal-actions button:active,
.modal-back:active {
  transform: translateY(1px) !important;
  transition-duration: 60ms !important;
}

/* ── Contact email — lean-in hover ── */
.contact-email {
  transition: transform 180ms ease;
  text-underline-offset: 5px;
  display: inline-block;
}

.contact-email:hover {
  transform: translateX(4px);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ── Footer links — slide-in underline ── */
.footer-links a {
  position: relative;
  transition: color 160ms ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* ── Modal card — slide-up entrance animation ──
   When aria-hidden flips to "false", the card transitions
   from scale(0.97)/translateY to its natural position. */
.modal-card {
  transform: translateY(22px) scale(0.97);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay[aria-hidden="false"] .modal-card {
  transform: translateY(0) scale(1);
}

/* ── Surface elements — smooth theme-switch transition ── */
.section-block,
.about-block,
.about-panel,
.about-panel-card {
  transition: background 240ms ease, border-color 240ms ease;
}

/* ── Scroll reveal — richer easing (override) ──
   Changes from plain `ease` to an expo-out curve for a
   snappier arrival. Also increases travel distance slightly. */
.has-reveal .reveal {
  transform: translateY(24px);
  transition:
    opacity 580ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 580ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Reduced motion guard — disable all new animations ── */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-avatar,
  .hero .hero-kicker,
  .hero h1,
  .hero .hero-text,
  .hero .hero-meta,
  .hero .hero-primary,
  .hero .hero-actions {
    animation: none;
  }

  .card-action::after,
  .hero-actions a::after,
  .footer-links a::after {
    transition: none;
  }

  .has-reveal .reveal {
    transition: none;
  }

  .modal-card {
    transition: none;
    transform: none;
  }
}

/* ── Custom text selection — crafted, not browser-default blue ── */
::selection {
  background: rgba(28, 25, 23, 0.12);
  color: inherit;
}

:root[data-theme="dark"] ::selection {
  background: rgba(250, 250, 249, 0.18);
  color: inherit;
}

/* ── Snake Game ── */

.snake-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.snake-controls {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.snake-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.85);
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.snake-toggle:hover,
.snake-toggle:focus-visible {
  border-color: var(--text);
  outline: 0;
}

.snake-toggle[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.12);
}

:root[data-theme="dark"] .snake-toggle {
  background: rgba(13, 13, 13, 0.82);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

:root[data-theme="dark"] .snake-toggle[aria-pressed="true"] {
  background: #f9fafb;
  color: #050505;
}

.snake-score-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}

:root[data-theme="dark"] .snake-score-hud {
  background: rgba(13, 13, 13, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

.snake-hint {
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
}

/* Hide snake on mobile */
@media (max-width: 767px) {
  .snake-controls,
  .snake-canvas {
    display: none !important;
  }
}
