:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #14171c;
  --panel-soft: #1a1e25;
  --text: #f4f4f6;
  --muted: #a6acb6;
  --accent: #b7d7ea; /* powder blue, richer */
  --accent-2: #e3b2c2; /* dusty rose, richer */
  --accent-3: #b9d6c5; /* muted mint */
  --accent-4: #e2d1a3; /* soft amber */
  --ambience-a: rgba(183, 215, 234, 0.16);
  --ambience-b: rgba(227, 178, 194, 0.12);
  --glow: rgba(169, 197, 216, 0.35);
  --glow-2: rgba(214, 167, 178, 0.28);
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --transition-duration: 1.05s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  background: radial-gradient(circle at top, var(--ambience-a), transparent 45%),
    radial-gradient(circle at 80% 20%, var(--ambience-b), transparent 50%),
    var(--bg);
  color: var(--text);
  letter-spacing: 0.02em;
  min-height: 100vh;
  text-transform: lowercase;
  cursor: none;
  display: flex;
  flex-direction: column;
}

button,
a,
input,
textarea,
select,
label {
  cursor: none !important;
}

.tab,
.tab * {
  cursor: none !important;
}

body[data-ambience="about"] {
  --ambience-a: rgba(183, 215, 234, 0.18);
  --ambience-b: rgba(227, 178, 194, 0.12);
}

body[data-ambience="now"] {
  --ambience-a: rgba(185, 214, 197, 0.2);
  --ambience-b: rgba(183, 215, 234, 0.1);
}

body[data-ambience="projects"] {
  --ambience-a: rgba(227, 178, 194, 0.2);
  --ambience-b: rgba(226, 209, 163, 0.12);
}

body[data-ambience="research"] {
  --ambience-a: rgba(226, 209, 163, 0.2);
  --ambience-b: rgba(183, 215, 234, 0.12);
}

body[data-ambience="reviews"] {
  --ambience-a: rgba(183, 215, 234, 0.18);
  --ambience-b: rgba(185, 214, 197, 0.12);
}

body[data-ambience="resume"] {
  --ambience-a: rgba(227, 178, 194, 0.18);
  --ambience-b: rgba(183, 215, 234, 0.12);
}

body[data-ambience="guestbook"] {
  --ambience-a: rgba(185, 214, 197, 0.2);
  --ambience-b: rgba(227, 178, 194, 0.12);
}

.grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 4px
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, var(--ambience-a), transparent 55%),
    radial-gradient(circle at 80% 70%, var(--ambience-b), transparent 50%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.cursor-react {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    180px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(183, 215, 234, 0.18),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(183, 215, 234, 0.7);
  box-shadow: 0 0 20px rgba(183, 215, 234, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  transition: opacity 0.2s ease;
}

.cursor::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(227, 178, 194, 0.6);
  opacity: 0.6;
}

body.cursor-on .cursor {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 32px clamp(24px, 5vw, 64px) 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  background: linear-gradient(180deg, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.7) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
}

.name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.handle {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.signature {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.now-playing-wrap {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.now-playing {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.12), rgba(227, 178, 194, 0.08));
  box-shadow: var(--shadow);
  min-width: 220px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.now-playing,
.now-playing * {
  text-decoration: none;
}

.now-playing:not([data-ready="true"]) {
  pointer-events: none;
}

.now-playing:hover {
  box-shadow: 0 0 18px rgba(183, 215, 234, 0.35);
  transform: translateY(-2px);
}

.np-label-inline {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: lowercase;
  flex: 0 0 auto;
}

.np-art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.45), rgba(227, 178, 194, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.np-meta {
  display: grid;
  gap: 4px;
}

.np-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.np-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}

.np-artist {
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.tab {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

.tab:hover,
.tab:focus-visible {
  border-color: rgba(169, 197, 216, 0.5);
  box-shadow: 0 0 18px var(--tab-glow, var(--glow));
}

.tab.is-active {
  background: linear-gradient(
    120deg,
    rgba(169, 197, 216, 0.2),
    rgba(214, 167, 178, 0.12),
    rgba(185, 214, 197, 0.14)
  );
  border-color: rgba(169, 197, 216, 0.6);
  box-shadow: 0 0 18px var(--tab-glow, var(--glow));
}

.tab.external {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.primary-nav .tab:nth-child(1) { --tab-glow: rgba(140, 190, 255, 0.35); }
.primary-nav .tab:nth-child(2) { --tab-glow: rgba(150, 205, 255, 0.35); }
.primary-nav .tab:nth-child(3) { --tab-glow: rgba(165, 215, 250, 0.35); }
.primary-nav .tab:nth-child(4) { --tab-glow: rgba(185, 210, 240, 0.35); }
.primary-nav .tab:nth-child(5) { --tab-glow: rgba(205, 195, 230, 0.32); }
.primary-nav .tab:nth-child(6) { --tab-glow: rgba(215, 180, 220, 0.3); }
.primary-nav .tab:nth-child(7) { --tab-glow: rgba(220, 170, 205, 0.3); }
.primary-nav .tab:nth-child(8) { --tab-glow: rgba(224, 160, 190, 0.3); }

.shell {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: hidden;
  transition: height 0.35s ease;
}


.panel {
  display: none;
  animation: fadeIn 0.4s ease;
  position: absolute;
  inset: 0;
  width: 100%;
  perspective: 900px;
  padding: 40px clamp(24px, 5vw, 64px) 140px;
  box-sizing: border-box;
}

.panel.is-active {
  display: block;
}

.panel.is-exiting,
.panel.is-entering {
  pointer-events: none;
}

.panel.is-exiting .card,
.panel.is-exiting .tile,
.panel.is-exiting .stack,
.panel.is-exiting .entry {
  animation: exitCards var(--transition-duration) cubic-bezier(0.15, 0.9, 0.1, 1) forwards;
  will-change: transform;
}

.panel.is-exiting .gallery,
.panel.is-exiting .panel-head,
.panel.is-exiting .panel-grid > div:not(.card):not(.stack):not(.entry),
.panel.is-exiting .resume-summary,
.panel.is-exiting .guestbook-form,
.panel.is-exiting .guestbook-entries,
.panel.is-exiting .contact-list,
.panel.is-exiting .soft-list,
.panel.is-exiting .lead,
.panel.is-exiting .title,
.panel.is-exiting p {
  animation: exitText var(--transition-duration) cubic-bezier(0.15, 0.9, 0.1, 1) forwards;
  animation-delay: 0.08s;
  will-change: transform;
}

.panel.is-entering .card,
.panel.is-entering .tile,
.panel.is-entering .stack,
.panel.is-entering .entry {
  animation: enterCards var(--transition-duration) cubic-bezier(0.15, 0.9, 0.1, 1) forwards;
  will-change: transform;
}

.panel.is-entering .gallery,
.panel.is-entering .panel-head,
.panel.is-entering .panel-grid > div:not(.card):not(.stack):not(.entry),
.panel.is-entering .resume-summary,
.panel.is-entering .guestbook-form,
.panel.is-entering .guestbook-entries,
.panel.is-entering .contact-list,
.panel.is-entering .soft-list,
.panel.is-entering .lead,
.panel.is-entering .title,
.panel.is-entering p {
  animation: enterText var(--transition-duration) cubic-bezier(0.15, 0.9, 0.1, 1) forwards;
  animation-delay: 0.12s;
  will-change: transform;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.stack {
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.08), rgba(227, 178, 194, 0.05)), var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: hidden;
}

.stack-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent-4);
  margin-bottom: 16px;
}

.stack-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.soft-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.card {
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.08), rgba(227, 178, 194, 0.05)), var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: hidden;
}

.card-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.card-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.card-meta {
  color: var(--muted);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.heatmap-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: rgba(20, 24, 30, 0.6);
  position: relative;
  overflow: hidden;
}

.heatmap-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(183, 215, 234, 0.35), rgba(227, 178, 194, 0.25));
  opacity: 0.2;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.heatmap-item[data-level="5"] { box-shadow: 0 0 18px rgba(183, 215, 234, 0.35); }
.heatmap-item[data-level="4"] { box-shadow: 0 0 14px rgba(183, 215, 234, 0.28); }
.heatmap-item[data-level="3"] { box-shadow: 0 0 12px rgba(227, 178, 194, 0.22); }
.heatmap-item[data-level="2"] { box-shadow: 0 0 8px rgba(185, 214, 197, 0.2); }

.heatmap-item:hover::after {
  transform: translateX(0);
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--stroke);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: 0.3s ease;
}

.chip:hover,
.chip.is-active {
  color: var(--text);
  border-color: rgba(214, 167, 178, 0.6);
  box-shadow: 0 0 14px var(--glow-2), 0 0 18px rgba(185, 214, 197, 0.18);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tile {
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.14), rgba(227, 178, 194, 0.1));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 140px;
  display: grid;
  gap: 12px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 120%;
  height: 60px;
  background: linear-gradient(90deg, transparent, rgba(183, 215, 234, 0.25), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  opacity: 0.8;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: inherit;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.card::before,
.stack::before,
.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: inherit;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.card > *,
.stack > *,
.tile > *,
.entry > * {
  position: relative;
  z-index: 1;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tile:hover::before {
  transform: translateX(120%);
}

.tile:hover::after {
  opacity: 1;
}

.tile-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.tile-meta {
  color: var(--muted);
}

.tile-hover {
  opacity: 0;
  transform: translateY(6px);
  color: var(--accent-3);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: 0.3s ease;
}

.tile-badge {
  align-self: start;
  justify-self: start;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-4);
  border: 1px solid rgba(226, 209, 163, 0.4);
  border-radius: 999px;
  padding: 4px 8px;
}

.tile:hover .tile-hover {
  opacity: 1;
  transform: translateY(0);
}

.contact-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

.contact-list a:hover {
  border-color: var(--accent);
}

.resume-summary {
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}

.resume-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(183, 215, 234, 0.36), rgba(227, 178, 194, 0.32));
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(183, 215, 234, 0.6);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s ease;
}

.button:hover {
  box-shadow: 0 0 18px var(--glow);
}

.embed {
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 16px;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.guestbook-form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.guestbook-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.guestbook-form input,
.guestbook-form textarea {
  background: var(--panel-soft);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
}

.guestbook-entries {
  display: grid;
  gap: 16px;
}

.entry {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(183, 215, 234, 0.08), rgba(227, 178, 194, 0.05)), var(--panel);
  border: 1px solid var(--stroke);
  display: grid;
  gap: 6px;
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: hidden;
}

.entry-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}

.entry-text {
  color: var(--muted);
}

.entry-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.entry-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.timeline-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.timeline-list span {
  color: var(--accent);
  margin-right: 10px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.12em;
}

.achievement-toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.boot-sequence {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  color: var(--accent);
  display: grid;
  place-items: center;
  z-index: 20;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-sequence.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-text {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
  font-size: 12px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.boot-line {
  opacity: 0;
  animation: bootLine 2.4s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }

.boot-bar {
  margin-top: 18px;
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: bootLoad 2.2s ease forwards;
  animation-delay: 0.4s;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.9);
  border: 1px solid rgba(183, 215, 234, 0.35);
  box-shadow: 0 0 18px rgba(183, 215, 234, 0.25);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  animation: toastPop 0.45s ease forwards;
}

.toast .w-anim {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  position: relative;
}

.toast .w-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: pulse 1.2s ease infinite;
}

.toast-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.toast-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 30, 0), rgba(20, 24, 30, 0.95) 55%);
  transform: translateX(0);
  animation: textSwipe 1.6s ease forwards;
  animation-delay: 0.45s;
}

.toast.is-blue {
  border-color: rgba(183, 215, 234, 0.55);
  box-shadow: 0 0 18px rgba(183, 215, 234, 0.35);
}

.toast.is-rose {
  border-color: rgba(227, 178, 194, 0.55);
  box-shadow: 0 0 18px rgba(227, 178, 194, 0.35);
}

.toast.is-mint {
  border-color: rgba(185, 214, 197, 0.55);
  box-shadow: 0 0 18px rgba(185, 214, 197, 0.35);
}

.toast.is-amber {
  border-color: rgba(226, 209, 163, 0.55);
  box-shadow: 0 0 18px rgba(226, 209, 163, 0.35);
}

.toast.is-blue .w-anim {
  color: var(--accent);
}

.toast.is-rose .w-anim {
  color: var(--accent-2);
}

.toast.is-mint .w-anim {
  color: var(--accent-3);
}

.toast.is-amber .w-anim {
  color: var(--accent-4);
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.is-out {
  animation: toastOut 0.35s ease forwards;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes textSwipe {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@keyframes exitCards {
  0% {
    transform: translateX(0) rotateY(0deg);
  }
  100% {
    transform: translateX(calc(var(--dir, 1) * 110vw)) rotateY(calc(var(--dir, 1) * 180deg));
  }
}

@keyframes exitText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(var(--dir, 1) * 100vw));
  }
}

@keyframes enterCards {
  0% {
    transform: translateX(calc(var(--dir, 1) * -110vw)) rotateY(calc(var(--dir, 1) * 180deg));
  }
  100% {
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes enterText {
  0% {
    transform: translateX(calc(var(--dir, 1) * -100vw));
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bootLine {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  30%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bootLoad {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes ledPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.site-footer {
  padding: 24px clamp(24px, 5vw, 64px) 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--stroke);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.95), rgba(13, 15, 18, 0.7));
  backdrop-filter: blur(10px);
  z-index: 4;
}

.status-leds {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: ledPulse 2.4s ease infinite;
}

.led:nth-child(2) {
  background: var(--accent-3);
  box-shadow: 0 0 10px rgba(185, 214, 197, 0.35);
  animation-delay: 0.4s;
}

.led:nth-child(3) {
  background: var(--accent-4);
  box-shadow: 0 0 10px rgba(226, 209, 163, 0.35);
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .resume-row {
    flex-direction: column;
  }

  .cursor {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .now-playing-wrap {
    justify-self: start;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.7);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-surface {
  width: min(780px, 90vw);
  max-height: 80vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.modal-close {
  justify-self: end;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: 0.12em;
}

.modal-meta {
  color: var(--accent-3);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.modal-summary {
  color: var(--muted);
}

.modal-full {
  white-space: pre-wrap;
  line-height: 1.6;
}

.modal-images {
  display: grid;
  gap: 12px;
}

.modal-images img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--stroke);
}
