/* ============================================================
   PORTFOLIO — Zhou Zixi
   Design System Tokens & Global Styles
   ============================================================ */

:root {
  /* ── Color Palette (OKLCH) ── */
  --color-bg:        oklch(12% 0.015 262);
  --color-bg-alt:    oklch(15.5% 0.014 262);
  --color-surface:   oklch(18.5% 0.013 262);
  --color-surface-hi:oklch(23% 0.012 262);
  --color-border:    oklch(28% 0.012 262);

  --color-primary:   oklch(63% 0.19 268);
  --color-primary-dim: oklch(53% 0.15 268);
  --color-secondary: oklch(72% 0.14 197);
  --color-accent:    oklch(67% 0.17 286);

  --color-text:      oklch(93% 0.003 264);
  --color-text-dim:  oklch(72% 0.01 264);
  --color-text-muted:oklch(55% 0.01 264);

  --color-glow:      oklch(63% 0.19 268 / 0.25);
  --color-glow-strong: oklch(63% 0.19 268 / 0.45);

  /* ── Typography ── */
  --font-display:  'Sora', 'Noto Sans SC', sans-serif;
  --font-body:     'Noto Sans SC', 'Sora', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.5rem;
  --text-5xl:   3.5rem;
  --text-6xl:   5rem;

  /* ── Spacing (4px base) ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  0.75rem;
  --space-lg:  1rem;
  --space-xl:  1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
  --space-6xl: 8rem;

  /* ── Radii ── */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  0.875rem;
  --radius-xl:  1.25rem;
  --radius-full:9999px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md:  0 4px 16px oklch(0% 0 0 / 0.4);
  --shadow-lg:  0 8px 32px oklch(0% 0 0 / 0.5);
  --shadow-glow:0 0 40px var(--color-glow);

  /* ── Transitions ── */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* ── Layout ── */
  --nav-height: 4rem;
  --content-max: 72rem;
  --content-padding: var(--space-2xl);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-dim);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

ul { list-style: none; }

img, svg { display: block; }

::selection {
  background: oklch(63% 0.19 268 / 0.35);
  color: var(--color-text);
}

/* ============================================================
   BACKGROUND CANVAS
   ============================================================ */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration-base) var(--ease-out-quart),
              box-shadow var(--duration-base) var(--ease-out-quart);
}

.nav.scrolled {
  background: oklch(12% 0.015 262 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.06);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dim);
  transition: color var(--duration-fast);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-base) var(--ease-out-expo);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6xl) var(--content-padding) var(--space-4xl);
}

.hero-content {
  text-align: center;
  max-width: 48rem;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.1s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.25s forwards;
}

.hero-name-en {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.35s forwards;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.45s forwards;
}

.hero-title-static {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-dim);
}

.hero-title-sep {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-tagline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
  min-height: 1.6em;
  border-right: 2px solid transparent;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.65s forwards;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.hero-orb:first-child {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -150px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb--secondary {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid oklch(63% 0.19 268 / 0.06);
  animation: ringRotate 30s linear infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    var(--color-text-muted),
    transparent
  );
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8em 1.8em;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out-quart);
  letter-spacing: 0.02em;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-text);
  box-shadow: 0 4px 20px var(--color-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--color-glow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: oklch(63% 0.19 268 / 0.06);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  padding: var(--space-6xl) var(--content-padding);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-primary);
  background: oklch(63% 0.19 268 / 0.08);
  padding: 0.25em 0.6em;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-4xl);
  align-items: start;
}

.about-intro {
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.about-detail {
  font-size: var(--text-base);
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.text-highlight {
  color: var(--color-primary);
  font-weight: 500;
}

.about-stats {
  display: flex;
  gap: var(--space-3xl);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* About Card */
.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.about-card-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}

.about-card-school {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
}

.about-card-major {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-top: var(--space-xs);
}

.about-card-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.about-card-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xl) 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.skill-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-base), transform var(--duration-base);
}

.skill-category:hover {
  border-color: oklch(63% 0.19 268 / 0.35);
  transform: translateY(-2px);
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.skill-cat-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.3em 0.7em;
  background: oklch(63% 0.19 268 / 0.07);
  color: var(--color-text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  letter-spacing: 0.02em;
}

.skill-tag:hover {
  background: oklch(63% 0.19 268 / 0.15);
  color: var(--color-primary);
}

.skill-tag--lang {
  background: oklch(72% 0.14 197 / 0.08);
  color: var(--color-secondary);
}

.skill-tag--lang:hover {
  background: oklch(72% 0.14 197 / 0.18);
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--duration-base) var(--ease-out-quart);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--duration-base);
  z-index: -1;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.project-card:hover::before {
  opacity: 0.15;
}

.project-card-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  background: oklch(63% 0.19 268 / 0.1);
  color: var(--color-primary);
  width: fit-content;
  letter-spacing: 0.04em;
}

.project-card-badge--tool {
  background: oklch(35% 0.14 145 / 0.15);
  color: oklch(65% 0.14 145);
}

.project-card-badge--workflow {
  background: oklch(35% 0.18 40 / 0.15);
  color: oklch(65% 0.18 40);
}

.project-card-badge--unity {
  background: oklch(35% 0.1 310 / 0.15);
  color: oklch(68% 0.12 310);
}

.project-card-badge--gamedev {
  background: oklch(35% 0.16 30 / 0.15);
  color: oklch(68% 0.16 30);
}

.project-card-badge--web {
  background: oklch(35% 0.14 200 / 0.15);
  color: oklch(68% 0.14 200);
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.project-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.5;
  flex: 1;
}

.project-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25em 0.6em;
  background: oklch(100% 0 0 / 0.04);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  max-width: 48rem;
}

.timeline-item {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-surface-hi);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: all var(--duration-base);
}

.timeline-dot--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 16px var(--color-glow);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin: var(--space-sm) 0;
}

.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  flex: 1;
  transition: border-color var(--duration-base);
}

.timeline-card:hover {
  border-color: oklch(63% 0.19 268 / 0.3);
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}

.timeline-badge--active {
  background: oklch(35% 0.14 145 / 0.15);
  color: oklch(65% 0.14 145);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  max-width: 42rem;
}

.contact-cta {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-text-dim);
  transition: all var(--duration-base) var(--ease-out-quart);
}

.contact-link-card:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateX(4px);
  background: var(--color-surface-hi);
}

.contact-link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) var(--content-padding);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   ANIMATIONS – Keyframes
   ============================================================ */

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

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -40px) scale(1.08); }
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-quart),
              transform 0.7s var(--ease-out-quart);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-quart),
              transform 0.5s var(--ease-out-quart);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .nav-links {
    display: none;
  }

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

  .section {
    padding: var(--space-4xl) var(--space-xl);
  }

  .section--alt {
    padding: var(--space-4xl) var(--space-xl);
  }

  .hero {
    padding: var(--space-5xl) var(--space-xl) var(--space-3xl);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-wrap {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero-title-sep {
    display: none;
  }

  .about-stats {
    justify-content: space-between;
  }

  .hero-orb:first-child {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
  }

  .hero-orb--secondary {
    width: 250px;
    height: 250px;
  }
}
