@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #090909;
  --panel: #0e0e0e;
  --text: #f2f3ea;
  --muted: rgba(242, 243, 234, 0.78);
  --line: #c4ff45;
  --line-soft: rgba(196, 255, 69, 0.2);
  --line-bright: #8dff5f;
  --shadow: 0 0 18px rgba(196, 255, 69, 0.5);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Exo 2", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.015)),
    linear-gradient(90deg, rgba(141, 255, 95, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(141, 255, 95, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(141, 255, 95, 0.08), transparent 18%),
    radial-gradient(circle at 18% 88%, rgba(244, 255, 93, 0.04), transparent 20%);
  background-size: 100% 100%, 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  opacity: 0.42;
}

body::after {
  z-index: 1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 0.7px, transparent 0.7px),
    radial-gradient(rgba(141, 255, 95, 0.04) 0.7px, transparent 0.7px);
  background-position: 0 0, 14px 14px;
  background-size: 18px 18px, 22px 22px;
  opacity: 0.08;
  mix-blend-mode: screen;
}

body.is-home-page::before {
  opacity: 0.26;
}

body.is-home-page::after {
  opacity: 0.08;
}

body.is-home-page.three-ready::before {
  opacity: 0.12;
}

body.is-home-page.three-ready::after {
  opacity: 0.04;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 3;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

body.is-home-page .page-shell::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(96, 255, 67, 0.055) 0 1px, transparent 1px),
    linear-gradient(rgba(96, 255, 67, 0.035) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 14, 8, 0.02), transparent 20%, transparent 78%, rgba(10, 18, 10, 0.12));
  background-size: 92px 92px, 92px 92px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  mix-blend-mode: screen;
  animation: hudGridDrift 18s linear infinite;
}

body.is-home-page .page-shell::after {
  opacity: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(180, 255, 94, 0.16) 48%, transparent 56%),
    linear-gradient(90deg, rgba(140, 255, 70, 0.34), rgba(140, 255, 70, 0.06) 28%, transparent 55%),
    linear-gradient(90deg, transparent calc(100% - 140px), rgba(142, 255, 92, 0.18) calc(100% - 140px), rgba(142, 255, 92, 0.18) calc(100% - 138px), transparent calc(100% - 138px)),
    linear-gradient(180deg, transparent calc(100% - 120px), rgba(142, 255, 92, 0.14) calc(100% - 120px), rgba(142, 255, 92, 0.14) calc(100% - 118px), transparent calc(100% - 118px));
  background-size: 100% 220px, 240px 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 -240px, 0 0, 0 0, 0 0;
  mix-blend-mode: screen;
  animation: hudSweep 7.5s linear infinite;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.three-hero-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  overflow: hidden;
}

body.is-home-page .three-hero-bg {
  opacity: 1;
  visibility: visible;
}

.three-hero-bg::before,
.three-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.three-hero-bg::before {
  background:
    radial-gradient(58% 42% at 74% 90%, rgba(112, 255, 53, 0.62), transparent 56%),
    radial-gradient(44% 34% at 88% 82%, rgba(253, 245, 83, 0.74), transparent 52%),
    radial-gradient(38% 26% at 61% 74%, rgba(87, 255, 81, 0.34), transparent 58%),
    radial-gradient(22% 18% at 78% 66%, rgba(240, 255, 107, 0.24), transparent 56%);
  filter: blur(78px) saturate(115%);
  opacity: 1;
  transform-origin: 76% 78%;
  animation: liquidVeilA 14s ease-in-out infinite alternate;
}

.three-hero-bg::after {
  background:
    radial-gradient(74% 50% at 84% 98%, rgba(109, 255, 0, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), transparent 18%, transparent 68%, rgba(0, 0, 0, 0.09)),
    linear-gradient(180deg, rgba(12, 38, 8, 0) 56%, rgba(23, 62, 10, 0.22) 100%);
  filter: blur(30px);
  opacity: 0.92;
  transform-origin: 82% 86%;
  animation: liquidVeilB 18s ease-in-out infinite;
}

.three-hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  opacity: 0.92;
}

.ambient-glow-stage,
.trail-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-glow-stage {
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

body.is-home-page .ambient-glow-stage {
  opacity: 1;
  visibility: visible;
}

.glow-blob {
  position: absolute;
  z-index: 10;
  border-radius: 44% 56% 61% 39% / 42% 37% 63% 58%;
  filter: blur(138px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.yellow-blob {
  right: 2%;
  bottom: -6%;
  width: 38rem;
  height: 28rem;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 248, 84, 0.94) 0%,
      rgba(216, 255, 42, 0.78) 28%,
      rgba(216, 255, 42, 0.3) 54%,
      rgba(216, 255, 42, 0) 78%);
  opacity: 0.92;
  animation: liquidFlowYellow 16s ease-in-out infinite, blobMorph 11s ease-in-out infinite alternate;
}

.green-blob {
  right: 4%;
  bottom: -16%;
  width: 60rem;
  height: 42rem;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(61, 255, 70, 0.98) 0%,
      rgba(90, 255, 69, 0.82) 26%,
      rgba(90, 255, 69, 0.34) 54%,
      rgba(99, 255, 59, 0) 80%);
  opacity: 0.94;
  animation: liquidFlowGreen 18s ease-in-out infinite, blobMorph 13s ease-in-out infinite alternate-reverse;
}

.trail-canvas {
  z-index: 12;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px 16px 0;
  pointer-events: none;
}

.section-label,
.section-close,
.project-index,
.timeline-meta,
.card-tag,
.site-nav,
.hero-role,
.contact-listing p,
.terminal-line,
.terminal-input-row {
  font-family: "IBM Plex Mono", monospace;
}

.menu-button {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  margin-left: auto;
  background: var(--line-bright);
  box-shadow: var(--shadow);
}

.site-nav {
  position: fixed;
  top: 72px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid rgba(196, 255, 69, 0.2);
  background: rgba(4, 4, 4, 0.94);
  box-shadow: 0 0 30px rgba(196, 255, 69, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--line);
}

main {
  width: 100%;
}

.panel {
  position: relative;
  min-height: auto;
  padding: 88px 24px 28px;
}

.hero-panel {
  display: block;
  max-width: 980px;
  min-height: 100vh;
  padding-top: 18vh;
  padding-bottom: 10vh;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 6vh -8vw 4vh -4vw;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(141, 255, 95, 0.02) 0,
      rgba(141, 255, 95, 0.02) 1px,
      transparent 1px,
      transparent 7px
    ),
    linear-gradient(115deg, rgba(141, 255, 95, 0.05), transparent 24%, transparent 76%, rgba(244, 255, 93, 0.035)),
    radial-gradient(circle at 78% 24%, rgba(141, 255, 95, 0.08), transparent 22%);
  opacity: 0.38;
  mask-image: radial-gradient(circle at center, black 58%, transparent 92%);
}

.hero-copy {
  position: relative;
  z-index: 20;
  max-width: 780px;
}

.hero-stage {
  display: none !important;
}

.hero-copy h1 {
  margin: 0;
  color: #f4ff5d;
  font-weight: 500;
  text-shadow:
    0 0 8px rgba(244, 255, 93, 0.78),
    0 0 18px rgba(244, 255, 93, 0.42),
    0 0 44px rgba(196, 255, 69, 0.14);
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 18px 0 0;
  min-height: 1.8em;
  color: #33ff33;
  font-size: clamp(0.92rem, 1.16vw, 1.08rem);
  line-height: 1.6;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(51, 255, 51, 0.16),
    0 0 20px rgba(51, 255, 51, 0.08);
}

.hero-role-code {
  display: inline;
}

.hero-role-cursor {
  display: inline-block;
  min-width: 0.8em;
  margin-left: 0.08em;
  color: #33ff33;
  text-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
  animation: blink 0.5s steps(1) infinite;
}

.hero-role-cursor::before {
  content: "█";
}

.hero-intro {
  max-width: 700px;
  margin-top: 22px;
  font-size: clamp(0.9rem, 1.04vw, 1rem);
  line-height: 2;
  color: rgba(242, 243, 234, 0.78);
}

.hero-intro p {
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 10px rgba(244, 255, 93, 0.32),
    0 0 24px rgba(244, 255, 93, 0.18),
    0 0 42px rgba(125, 255, 83, 0.12);
}

.cta.primary {
  color: #101010;
  background: #f4ff5d;
  box-shadow:
    0 0 10px rgba(244, 255, 93, 0.34),
    0 0 30px rgba(244, 255, 93, 0.18);
}

.cta.secondary {
  color: #f4ff5d;
  background: transparent;
  border-color: rgba(244, 255, 93, 0.7);
}

.hero-stage {
  position: relative;
  min-height: 540px;
}

.hero-screen {
  position: relative;
  isolation: isolate;
  width: min(100%, 880px);
  height: min(66vw, 540px);
  margin-left: auto;
  border: 1px solid rgba(196, 255, 69, 0.12);
  border-radius: 10px;
  overflow: hidden;
  --hx: 68%;
  --hy: 62%;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.9), rgba(14, 14, 14, 0.95));
}

.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle 240px at var(--hx) calc(var(--hy) + 6%), rgba(125, 255, 83, 0.28), transparent 56%),
    radial-gradient(circle 180px at calc(var(--hx) + 12%) calc(var(--hy) + 12%), rgba(244, 255, 93, 0.24), transparent 54%),
    radial-gradient(circle 320px at 36% 84%, rgba(125, 255, 83, 0.1), transparent 52%);
  pointer-events: none;
}

.hero-screen::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 320px;
  height: 52px;
  right: 15%;
  top: 33%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 255, 93, 0), rgba(244, 255, 93, 0.9) 26%, rgba(244, 255, 93, 0.02) 80%);
  filter: blur(3px);
  transform: rotate(12deg);
  opacity: 0.92;
  animation: swooshFloat 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image:
    linear-gradient(rgba(196, 255, 69, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 255, 69, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  filter: blur(84px);
  pointer-events: none;
}

.glow-a {
  width: 560px;
  height: 560px;
  left: 6%;
  bottom: -180px;
  background: rgba(132, 255, 65, 0.32);
  animation: driftHero 8s ease-in-out infinite;
}

.glow-b {
  width: 320px;
  height: 320px;
  right: 18%;
  bottom: 22px;
  background: rgba(196, 255, 69, 0.22);
  animation: driftHero 10s ease-in-out infinite reverse;
}

.glow-c {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: -10px;
  background: rgba(234, 255, 87, 0.18);
  animation: driftHero 9s ease-in-out infinite;
}

.hero-orbit,
.hero-swoosh,
.hero-pointer-trail {
  position: absolute;
  pointer-events: none;
}

.hero-orbit {
  border-radius: 50%;
  border: 1px solid rgba(234, 255, 87, 0.18);
  filter: blur(0.2px);
}

.orbit-a {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: -80px;
  opacity: 0.3;
}

.orbit-b {
  width: 280px;
  height: 280px;
  right: 14%;
  bottom: 24px;
  opacity: 0.22;
}

.hero-swoosh {
  width: 220px;
  height: 30px;
  right: 20%;
  top: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 255, 83, 0), rgba(125, 255, 83, 0.82) 30%, rgba(125, 255, 83, 0));
  filter: blur(6px);
  transform: rotate(-24deg);
  box-shadow: 0 0 24px rgba(125, 255, 83, 0.22);
  animation: swooshFloat2 6.2s ease-in-out infinite;
}

.hero-pointer-trail {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 255, 93, 0.2), rgba(125, 255, 83, 0.12) 36%, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: left 120ms ease, top 120ms ease, opacity 180ms ease;
}

.hero-pulse {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(234, 255, 87, 0.65);
  background: radial-gradient(circle, rgba(234, 255, 87, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulseClick 700ms ease-out forwards;
  pointer-events: none;
}

.content-panel,
.projects-panel,
.experience-panel {
  display: flex;
  flex-direction: column;
}

.section-label,
.section-close {
  color: var(--line);
  text-shadow: var(--shadow);
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 600;
}

.section-intro {
  max-width: 760px;
  margin: 2px 0 22px;
  color: rgba(242, 243, 234, 0.7);
  font-size: 0.98rem;
  line-height: 1.72;
}

.section-label {
  margin-bottom: 18px;
}

.section-close {
  margin-top: auto;
}

.about-layout,
.experience-layout {
  display: grid;
  gap: 18px;
}

.about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.info-card,
.screen-shell,
.skills-panel,
.mini-terminal,
.contact-listing {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 255, 69, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 20, 18, 0.74), rgba(7, 8, 7, 0.88)),
    rgba(10, 10, 10, 0.72);
  box-shadow:
    0 0 0 1px rgba(196, 255, 69, 0.025) inset,
    0 18px 48px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(122, 255, 82, 0.035);
  backdrop-filter: blur(16px) saturate(108%);
  -webkit-backdrop-filter: blur(16px) saturate(108%);
  transform: translateY(0);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.info-card::before,
.screen-shell::before,
.skills-panel::before,
.mini-terminal::before,
.contact-listing::before,
.info-card::after,
.screen-shell::after,
.skills-panel::after,
.mini-terminal::after,
.contact-listing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius);
}

.info-card::before,
.screen-shell::before,
.skills-panel::before,
.mini-terminal::before,
.contact-listing::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 68%, rgba(179, 255, 94, 0.028) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at 82% 82%, rgba(106, 255, 84, 0.065), transparent 30%);
  opacity: 0.78;
}

.info-card::after,
.screen-shell::after,
.skills-panel::after,
.mini-terminal::after,
.contact-listing::after {
  inset: auto -14% -24% 26%;
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(114, 255, 0, 0.09) 0%, rgba(114, 255, 0, 0.055) 30%, rgba(114, 255, 0, 0) 72%);
  filter: blur(40px);
  opacity: 0.5;
  transform: translate3d(0, 0, 0) scale(1);
  animation: glassDrift 11s ease-in-out infinite alternate;
}

.info-card:hover,
.screen-shell:hover,
.skills-panel:hover,
.mini-terminal:hover,
.contact-listing:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 255, 69, 0.16);
  box-shadow:
    0 0 0 1px rgba(196, 255, 69, 0.045) inset,
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(122, 255, 82, 0.055);
}

.info-card:hover::after,
.screen-shell:hover::after,
.skills-panel:hover::after,
.mini-terminal:hover::after,
.contact-listing:hover::after {
  opacity: 0.68;
  transform: translate3d(-2%, -2%, 0) scale(1.05);
}

.info-card h2,
.project-text h2,
.timeline-item h3,
.experience-subsection h3,
.about-block h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.info-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.info-list div {
  margin-bottom: 4px;
}

.info-list dt {
  color: var(--line);
  margin-bottom: 6px;
}

.info-list dd,
.info-card p,
.project-text p,
.timeline-item p,
.experience-subsection li,
.contact-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.97rem;
}

.info-list dd + dd {
  margin-top: 6px;
}

.tag-cloud-static {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud-static span,
.radar-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(196, 255, 69, 0.2);
  border-radius: 999px;
  color: var(--line);
  background: rgba(196, 255, 69, 0.04);
}

.info-card-primary {
  min-height: 100%;
}

.info-card-secondary {
  display: flex;
  flex-direction: column;
}

.about-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-block {
  min-height: 100%;
  padding: 16px 16px 14px;
  border: 1px solid rgba(196, 255, 69, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 18, 14, 0.78), rgba(7, 7, 7, 0.88)),
    rgba(10, 10, 10, 0.72);
}

.about-block h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  color: var(--line-bright);
}

.about-block-full {
  grid-column: 1 / -1;
}

.about-bullet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.about-bullet-list li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

.about-bullet-list-compact {
  gap: 6px;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 42vw);
  gap: 24px;
  align-items: start;
}

.projects-copy {
  display: grid;
  gap: 14px;
}

.project-text {
  padding: 18px 18px 16px;
  border-left: 2px solid rgba(196, 255, 69, 0.12);
  border-radius: 0 14px 14px 0;
  opacity: 0.52;
  scroll-margin-top: 120px;
  transition: opacity 220ms ease, border-color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.project-text.is-active {
  opacity: 1;
  border-color: var(--line);
  transform: translateX(6px);
  background: linear-gradient(90deg, rgba(196, 255, 69, 0.08), rgba(196, 255, 69, 0.02) 55%, transparent);
}

.project-index {
  display: block;
  color: var(--line);
  margin-bottom: 10px;
}

.project-text h3 {
  margin: 8px 0 12px;
  color: var(--line-bright);
  font-size: 1.16rem;
}

.project-actions {
  margin-top: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 9px 14px;
  border: 1px solid rgba(196, 255, 69, 0.28);
  border-radius: 999px;
  color: var(--line);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-link:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 255, 93, 0.7);
  background: rgba(196, 255, 69, 0.08);
  box-shadow: 0 0 18px rgba(196, 255, 69, 0.16);
}

.projects-visual {
  position: sticky;
  top: 96px;
}

.screen-shell {
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.screen-bar {
  display: flex;
  gap: 7px;
  padding: 4px 0 12px;
}

.screen-bar span,
.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(196, 255, 69, 0.55);
  box-shadow: 0 0 10px rgba(196, 255, 69, 0.32);
}

.screen-stage {
  position: relative;
  aspect-ratio: 1.2 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #080808;
}

.screen-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
    linear-gradient(rgba(196, 255, 69, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 4px;
  pointer-events: none;
}

.project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.project-video.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.placeholder-video {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.placeholder-video strong {
  display: block;
  margin-bottom: 10px;
  color: var(--line);
  font-size: 1.5rem;
}

.showcase-board {
  width: 100%;
  height: 100%;
}

.eatwhat-board {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.phone-shot {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f4f4f1);
  color: #151515;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.phone-slideshow {
  padding: 0;
  background: #f8f8f6;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}

.slide.is-visible {
  opacity: 1;
}

.phone-home {
  grid-row: 1 / span 2;
}

.phone-home strong {
  color: #111;
  font-size: 2rem;
  margin: 0;
}

.phone-home p,
.phone-map p,
.account-card p {
  color: rgba(21, 21, 21, 0.68);
  line-height: 1.6;
}

.phone-home button {
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 700;
  background: #111;
  color: #fff;
}

.shot-title {
  margin: 0 0 12px;
  font-weight: 800;
  color: #111;
}

.shot-chip-row,
.shot-budget-row,
.account-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shot-chip-row span,
.shot-budget-row span,
.account-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f0f0f0;
}

.shot-chip-row .active,
.shot-budget-row .active {
  background: #111;
  color: #fff;
}

.shot-input {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.phone-map {
  text-align: left;
  background: #f8f8f6;
}

.slideshow-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.account-board {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.account-card {
  width: 100%;
  height: 100%;
  padding: 28px;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #f3f3f0);
  color: #111;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  text-align: left;
}

.account-card-image {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.account-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8, 10, 8, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.account-card .account-overlay strong {
  color: #d8ff72;
  text-shadow:
    0 0 10px rgba(196, 255, 69, 0.22),
    0 2px 12px rgba(0, 0, 0, 0.48);
}

.account-card .account-overlay p {
  margin: 8px 0 0;
  color: rgba(246, 255, 218, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
}

.account-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #111;
}

.account-stats {
  margin-top: 18px;
}

.account-stats span {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.experience-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.82fr);
  gap: 22px;
}

.timeline-column {
  position: relative;
  padding-left: 18px;
}

.timeline-column::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 255, 69, 0.75), rgba(196, 255, 69, 0.08));
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 22px;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 14px rgba(196, 255, 69, 0.7);
}

.timeline-meta {
  color: var(--line);
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.timeline-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.timeline-points li {
  color: rgba(242, 243, 234, 0.76);
  line-height: 1.62;
  font-size: 0.9rem;
}

.skills-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius);
}

.radar-shell {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(141, 255, 95, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.92), rgba(6, 6, 6, 0.96));
}

.radar-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 18%, rgba(196, 255, 69, 0.1) 18.5%, transparent 19%, transparent 34%, rgba(196, 255, 69, 0.1) 34.5%, transparent 35%, transparent 49%, rgba(196, 255, 69, 0.1) 49.5%, transparent 50%),
    linear-gradient(rgba(196, 255, 69, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 255, 69, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 68px 68px, 68px 68px;
}

.radar-pulse {
  position: absolute;
  inset: 14% 14%;
  border-radius: 50%;
  border: 1px solid rgba(196, 255, 69, 0.28);
  box-shadow: 0 0 24px rgba(196, 255, 69, 0.18);
  animation: pulse 3.6s ease-in-out infinite;
}

.radar-tags {
  position: absolute;
  inset: 0;
}

.radar-tags span {
  position: absolute;
  font-size: 0.88rem;
}

.radar-tags span:nth-child(1) { top: 16%; left: 10%; }
.radar-tags span:nth-child(2) { top: 10%; right: 14%; }
.radar-tags span:nth-child(3) { top: 36%; right: 8%; }
.radar-tags span:nth-child(4) { bottom: 16%; right: 15%; }
.radar-tags span:nth-child(5) { bottom: 8%; left: 18%; }
.radar-tags span:nth-child(6) { top: 46%; left: 4%; }
.radar-tags span:nth-child(7) { top: 28%; left: 26%; }
.radar-tags span:nth-child(8) { bottom: 30%; left: 30%; }

.quote-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 84px;
  padding-bottom: 28px;
  overflow: hidden;
}

.quote-stage {
  position: relative;
  width: min(100%, 1320px);
  padding: 4vh 3vw 3vh;
  text-align: center;
}

.quote-lines {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  justify-items: center;
}

.quote-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 1em;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.quote-char {
  display: inline-block;
  color: #f6f85d;
  text-shadow:
    0 0 10px rgba(246, 248, 93, 0.72),
    0 0 28px rgba(246, 248, 93, 0.3),
    0 0 54px rgba(172, 255, 86, 0.16);
  animation: quotePopIn 240ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.quote-char-space {
  width: 0.42em;
}

.quote-char-strong {
  font-weight: 800;
}

.quote-mark {
  position: absolute;
  color: #8dff5f;
  font-size: clamp(4rem, 6.6vw, 6rem);
  line-height: 1;
  text-shadow:
    0 0 12px rgba(141, 255, 95, 0.8),
    0 0 28px rgba(141, 255, 95, 0.3);
}

.quote-mark-open {
  top: 14%;
  left: 2%;
}

.quote-mark-close {
  right: 2%;
  bottom: 26%;
}

.quote-credit {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

@media (min-width: 1081px) {
  .content-panel,
  .projects-panel,
  .experience-panel,
  .contact-panel {
    min-height: 100vh;
  }

  .about-layout,
  .projects-layout,
  .experience-layout {
    min-height: calc(100vh - 190px);
  }

  .projects-copy,
  .timeline-column {
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 255, 69, 0.35) transparent;
  }

  .projects-copy::-webkit-scrollbar,
  .timeline-column::-webkit-scrollbar {
    width: 6px;
  }

  .projects-copy::-webkit-scrollbar-thumb,
  .timeline-column::-webkit-scrollbar-thumb {
    background: rgba(196, 255, 69, 0.3);
    border-radius: 999px;
  }

  .projects-visual,
  .skills-panel {
    max-height: calc(100vh - 220px);
  }

  .screen-stage {
    height: min(54vh, 560px);
    aspect-ratio: auto;
  }

  .contact-panel .polaroid-wall {
    margin-top: 0;
    gap: 16px;
  }

  .contact-panel .polaroid-card {
    height: 280px;
  }

  .contact-panel .mini-terminal,
  .contact-panel .contact-listing {
    margin-top: 16px;
  }
}

.contact-panel {
  min-height: 100vh;
}

.contact-intro {
  max-width: 720px;
  margin: 8px 0 24px;
}

.polaroid-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.polaroid-card {
  height: 360px;
  perspective: 1200px;
}

.polaroid-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

.polaroid-card:hover .polaroid-inner {
  transform: rotateY(180deg) rotateZ(-2deg);
}

.polaroid-card:nth-child(1) {
  transform: rotate(-2deg);
}

.polaroid-card:nth-child(2) {
  transform: translateY(18px) rotate(1.5deg);
}

.polaroid-card:nth-child(3) {
  transform: rotate(-1deg);
}

.polaroid-face {
  position: absolute;
  inset: 0;
  padding: 20px;
  border-radius: 10px;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #f2efe8;
  color: #1a1a1a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.polaroid-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 20px;
}

.polaroid-photo {
  position: absolute;
  inset: 18px 18px 82px;
  overflow: hidden;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.polaroid-front strong {
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.polaroid-front small {
  color: rgba(26, 26, 26, 0.65);
  position: relative;
  z-index: 1;
}

.front-voice {
  background: #f5f0ea;
}

.front-energy {
  background: #f5f0ea;
}

.front-thinker {
  background: #f5f0ea;
}

.front-voice .polaroid-photo {
  background-image: url("assets/podcast-logo.jpg");
}

.front-energy .polaroid-photo {
  background-image: url("assets/sports-photo.jpeg");
}

.front-thinker .polaroid-photo {
  background-image: url("assets/portfolio-cover-real.jpg");
}

.polaroid-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.polaroid-back .card-tag {
  color: #58703a;
}

.mini-terminal {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(196, 255, 69, 0.04);
}

.terminal-body {
  padding: 16px;
}

.terminal-line {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.terminal-line code {
  color: var(--line);
}

.terminal-input-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--line);
}

.terminal-input-row input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.podcast-player {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
}

.podcast-player[hidden] {
  display: none !important;
}

.player-card {
  width: min(92vw, 420px);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(196, 255, 69, 0.18);
  background: #0d0d0d;
  box-shadow: 0 0 40px rgba(196, 255, 69, 0.12);
}

.player-card p,
.player-card a {
  color: var(--text);
}

.player-copy {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.player-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(196, 255, 69, 0.24);
  color: var(--line);
  text-decoration: none;
}

.player-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--line);
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-listing {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
}

.contact-lower-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.contact-lower-row .mini-terminal,
.contact-lower-row .contact-listing {
  margin-top: 0;
}

.contact-title {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-listing a {
  color: var(--line);
  text-decoration: none;
}

.contact-icon-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.contact-icon-link {
  display: flex;
  appearance: none;
  border: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 16px;
  background: rgba(196, 255, 69, 0.08);
  color: var(--line);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.contact-icon-link:hover {
  transform: translateY(-1px);
  background: rgba(196, 255, 69, 0.12);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(196, 255, 69, 0.14);
}

.contact-icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 4, 4, 0.94);
  color: rgba(242, 243, 234, 0.84);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.contact-icon-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(20, 26, 20, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(196, 255, 69, 0.08),
    0 0 12px rgba(196, 255, 69, 0.06);
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-icon-link-xhs .contact-icon svg {
  width: 34px;
  height: 34px;
}

.contact-card-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
}

.contact-card-modal[hidden] {
  display: none !important;
}

.contact-card-sheet {
  width: min(92vw, 360px);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(196, 255, 69, 0.18);
  background: #0d0d0d;
  box-shadow: 0 0 40px rgba(196, 255, 69, 0.12);
}

.contact-card-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.contact-card-qr {
  display: block;
  width: min(100%, 276px);
  margin: 0 auto 14px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.contact-card-copy {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-card-copy strong,
.contact-card-copy a {
  color: var(--line);
}

.medal-rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
}

.drop {
  position: absolute;
  top: -10vh;
  font-size: 2rem;
  animation: fall 2.8s linear forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1); opacity: 1; }
}

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

@keyframes driftHero {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(26px, -18px, 0); }
}

@keyframes liquidFlowYellow {
  0% {
    transform: translate3d(0%, 0%, 0) rotate(0deg) scale(1);
    opacity: 0.76;
  }
  20% {
    transform: translate3d(-6%, 4%, 0) rotate(12deg) scale(1.08);
    opacity: 0.88;
  }
  35% {
    transform: translate3d(-10%, 8%, 0) rotate(24deg) scale(0.98);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(5%, 10%, 0) rotate(45deg) scale(0.9);
    opacity: 0.9;
  }
  68% {
    transform: translate3d(8%, 4%, 0) rotate(68deg) scale(1.04);
    opacity: 0.78;
  }
  82% {
    transform: translate3d(2%, -2%, 0) rotate(36deg) scale(1.12);
    opacity: 0.84;
  }
  100% {
    transform: translate3d(0%, 0%, 0) rotate(0deg) scale(1);
    opacity: 0.76;
  }
}

@keyframes liquidFlowGreen {
  0% {
    transform: translate3d(0%, 0%, 0) rotate(0deg) scale(1);
    opacity: 0.68;
  }
  18% {
    transform: translate3d(4%, -3%, 0) rotate(-10deg) scale(1.06);
    opacity: 0.78;
  }
  34% {
    transform: translate3d(-3%, -7%, 0) rotate(-22deg) scale(0.94);
    opacity: 0.88;
  }
  50% {
    transform: translate3d(-8%, -10%, 0) rotate(-38deg) scale(1.1);
    opacity: 0.72;
  }
  66% {
    transform: translate3d(-2%, -4%, 0) rotate(-58deg) scale(0.92);
    opacity: 0.9;
  }
  84% {
    transform: translate3d(5%, 2%, 0) rotate(-28deg) scale(1.05);
    opacity: 0.76;
  }
  100% {
    transform: translate3d(0%, 0%, 0) rotate(0deg) scale(1);
    opacity: 0.68;
  }
}

@keyframes blobMorph {
  0% {
    border-radius: 42% 58% 64% 36% / 40% 36% 64% 60%;
  }
  50% {
    border-radius: 58% 42% 48% 52% / 62% 38% 46% 54%;
  }
  100% {
    border-radius: 36% 64% 52% 48% / 44% 58% 42% 56%;
  }
}

@keyframes liquidVeilA {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(-2%, 2%, 0) scale(1.06) rotate(-4deg);
  }
  100% {
    transform: translate3d(3%, -1%, 0) scale(0.97) rotate(3deg);
  }
}

@keyframes liquidVeilB {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  35% {
    transform: translate3d(2%, -2%, 0) scale(1.03) rotate(2deg);
  }
  70% {
    transform: translate3d(-1%, 1%, 0) scale(0.98) rotate(-3deg);
  }
  100% {
    transform: translate3d(1%, 0, 0) scale(1.04) rotate(1deg);
  }
}

@keyframes hudGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 92px 0, 0 92px, 0 0;
  }
}

@keyframes hudSweep {
  0% {
    background-position: 0 -240px, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 calc(100% + 240px), 0 0, 0 0, 0 0;
  }
}

@keyframes glassDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, -2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(2%, 2%, 0) scale(0.98);
  }
}

@keyframes swooshFloat {
  0%, 100% { transform: rotate(13deg) translate3d(0, 0, 0); opacity: 0.9; }
  50% { transform: rotate(8deg) translate3d(20px, -10px, 0); opacity: 0.65; }
}

@keyframes swooshFloat2 {
  0%, 100% { transform: rotate(-24deg) translate3d(0, 0, 0); opacity: 0.58; }
  50% { transform: rotate(-18deg) translate3d(-18px, 10px, 0); opacity: 0.9; }
}

@keyframes pulseClick {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes quotePopIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-panel,
  .projects-layout,
  .experience-layout,
  .about-layout,
  .polaroid-wall {
    grid-template-columns: 1fr;
  }

  .projects-visual,
  .skills-panel {
    position: relative;
    top: auto;
  }

  .hero-stage {
    min-height: 380px;
  }

  .hero-screen {
    height: 380px;
    margin-left: 0;
  }

  .eatwhat-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about-matrix {
    grid-template-columns: 1fr;
  }

  .about-block-full {
    grid-column: auto;
  }

  .phone-home {
    grid-row: auto;
  }

  .quote-panel {
    min-height: 64vh;
  }

  .quote-mark-open {
    left: 0;
  }

  .quote-mark-close {
    right: 0;
    bottom: 24%;
  }

}

@media (max-width: 720px) {
  .panel {
    padding: 84px 16px 22px;
  }

  .yellow-blob {
    width: 20rem;
    height: 16rem;
    right: 10%;
    bottom: 12%;
    filter: blur(100px);
  }

  .green-blob {
    width: 30rem;
    height: 24rem;
    right: -8%;
    bottom: -8%;
    filter: blur(110px);
  }

  .site-nav {
    left: 16px;
    right: 16px;
    min-width: auto;
  }

  .contact-icon-grid {
    flex-wrap: wrap;
  }

  .contact-lower-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 5.9rem);
  }

  .quote-line {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.03em;
  }

  .quote-stage {
    padding-top: 4vh;
  }

  .quote-mark {
    font-size: 3rem;
  }

  .quote-mark-open {
    top: 8%;
    left: 0;
  }

  .quote-mark-close {
    right: 0;
    bottom: 30%;
  }

  .hero-screen {
    height: 280px;
  }

  .polaroid-card {
    height: 320px;
  }

  .project-text {
    padding: 16px 14px 14px;
  }

  .timeline-points li,
  .about-bullet-list li,
  .info-list dd {
    font-size: 0.9rem;
  }

  .contact-icon-link {
    width: 48px;
    height: 48px;
  }
}
