:root {
  --bg: #0a0b0d;
  --bg-strong: #101114;
  --bg-card: rgba(255, 255, 255, 0.03);
  --surface: #131518;
  --surface-soft: #16181c;
  --surface-tint: rgba(56, 239, 186, 0.03);
  --ink: #e8eaed;
  --ink-soft: #a1a7b4;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --primary: #38efba;
  --primary-deep: #2dd4a0;
  --primary-soft: rgba(56, 239, 186, 0.08);
  --accent: #6ee7c2;
  --accent-soft: rgba(110, 231, 194, 0.06);
  --warm: #f5c542;
  --warm-soft: rgba(245, 197, 66, 0.08);
  --danger: #ef4444;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --max-width: 1200px;
  --header-offset: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.25, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(56, 239, 186, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(110, 231, 194, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(56, 239, 186, 0.015) 0%, transparent 50%);
  background-attachment: fixed;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Structural Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

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

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

button,
input,
textarea {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #38efba);
  box-shadow: 0 0 16px rgba(56, 239, 186, 0.4);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.08s ease-out;
  will-change: transform;
  pointer-events: none;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(56, 239, 186, 0.05), transparent 70%);
}

main {
  padding: 0 24px 120px;
}

section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  scroll-margin-top: var(--header-offset);
}

.section {
  padding-top: 120px;
}

/* Header & Floating Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 20px 24px 0;
}

.navbar {
  position: relative;
  width: min(100%, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  transition:
    background-color 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.navbar.scrolled {
  background: rgba(10, 11, 13, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0a0b0d;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(56, 239, 186, 0.3);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(56, 239, 186, 0.2);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e8eaed, #a1a7b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  will-change: transform;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(56, 239, 186, 0.06);
}

.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

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

.nav-cv,
.nav-cta,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    background 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    filter 0.3s var(--ease-soft);
  will-change: transform;
  padding: 0 22px;
}

.nav-cv:active,
.nav-cta:active,
.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.nav-cv {
  padding: 0 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-cv:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 0 20px;
  color: #0a0b0d;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 20px rgba(56, 239, 186, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(56, 239, 186, 0.3);
  filter: brightness(1.08);
}

.hamburger {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.hamburger span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.25s var(--ease);
}

.hamburger.active .line1 {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 100px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  align-items: center;
  gap: 80px;
  padding-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 15%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.hero::after {
  content: "DEVELOPER / PORTFOLIO / 2026";
  position: absolute;
  left: -80px;
  top: 50%;
  color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: "IBM Plex Mono", monospace;
}

.hero-copy {
  max-width: 800px;
  position: relative;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(56, 239, 186, 0.15);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(56, 239, 186, 0.05);
  box-shadow: 0 4px 12px rgba(56, 239, 186, 0.05);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--primary); }
  50% { opacity: 0.5; box-shadow: 0 0 14px var(--primary); }
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}

.hero-location i {
  color: var(--primary);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  font-size: 80px;
  background: linear-gradient(135deg, #ffffff 40%, #a1a7b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.35;
}

.hero-lede {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-specialties span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 500;
  transition:
    border-color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  will-change: transform;
}

.hero-specialties span:hover {
  border-color: rgba(56, 239, 186, 0.2);
  background: rgba(56, 239, 186, 0.05);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-specialties i {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn-primary {
  color: #0a0b0d;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 20px rgba(56, 239, 186, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 239, 186, 0.32);
  filter: brightness(1.08);
}

.btn-secondary {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.03),
    var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  overflow: hidden;
}

.proof-item {
  padding: 20px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.proof-item span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.proof-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Glassmorphism Cards Spotlight Styles */
.portrait-panel,
.about-panel,
.operating-item,
.education-card,
.capability-card,
.achievement-card,
.project-card,
.contact-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.45s var(--ease-smooth),
    border-color 0.4s var(--ease-soft),
    box-shadow 0.45s var(--ease-smooth),
    background 0.4s var(--ease-soft);
  will-change: transform;
  overflow: hidden;
}

.portrait-panel::before,
.about-panel::before,
.operating-item::before,
.education-card::before,
.capability-card::before,
.achievement-card::before,
.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(56, 239, 186, 0.04),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero Visual IDE Window */
.hero-visual {
  align-self: center;
  display: flex;
  align-items: center;
}

.portrait-panel {
  width: 100%;
  padding: 16px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    var(--shadow-lg);
  overflow: visible;
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 239, 186, 0.15), rgba(110, 231, 194, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.window-controls .dot.red { background-color: #ef4444; }
.window-controls .dot.yellow { background-color: #f59e0b; }
.window-controls .dot.green { background-color: #38efba; }

.portrait-header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.portrait-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.portrait-code {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(56, 239, 186, 0.15);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(56, 239, 186, 0.06);
  font-size: 10.5px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}

.portrait-stage {
  position: relative;
  margin-bottom: 20px;
}

.portrait-frame {
  aspect-ratio: 0.95 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.92);
  transition: transform 0.5s var(--ease);
}

.portrait-panel:hover .portrait-frame img {
  transform: scale(1.03);
}

.portrait-badge {
  position: absolute;
  min-width: 90px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    var(--shadow-md);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.portrait-badge strong {
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1;
}

.portrait-badge span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "IBM Plex Mono", monospace;
}

.portrait-badge-top {
  top: 20px;
  left: -20px;
  animation: badge-float-top 5s ease-in-out infinite;
}

.portrait-badge-bottom {
  right: -20px;
  bottom: 25px;
  animation: badge-float-bottom 5.5s ease-in-out infinite 0.75s;
}

@keyframes badge-float-top {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes badge-float-bottom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.portrait-copy {
  padding: 16px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portrait-copy p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.portrait-copy h2 {
  margin-top: 8px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.portrait-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.portrait-focus span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-signals {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.profile-signals div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}

.profile-signals dt {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}

.profile-signals dd {
  color: var(--muted);
  font-size: 12.5px;
}

/* Sections & Headings */
.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #a1a7b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.about-panel {
  padding: 36px;
  color: var(--ink);
}

.about-panel h3 {
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.about-panel p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.about-panel p + p {
  margin-top: 20px;
}

.panel-kicker {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.operating-grid {
  display: grid;
  gap: 14px;
}

.operating-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  align-items: flex-start;
}

.operating-num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(56, 239, 186, 0.06);
  font-weight: 700;
  border: 1px solid rgba(56, 239, 186, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(56, 239, 186, 0.05);
}

.operating-content h3 {
  font-size: 20px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 6px;
}

.operating-content p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

.operating-item:hover,
.education-card:hover,
.capability-card:hover,
.achievement-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 239, 186, 0.2);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(56, 239, 186, 0.06);
  background: rgba(255, 255, 255, 0.05);
}

/* Education Section */
.education-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 40px 1fr;
  gap: 20px;
  align-items: stretch;
}

.timeline-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 18px;
}

.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--bg);
  margin-top: 22px;
  z-index: 2;
  box-shadow: 0 0 12px rgba(56, 239, 186, 0.25);
}

.timeline-line {
  width: 2px;
  background: rgba(56, 239, 186, 0.12);
  flex-grow: 1;
  z-index: 1;
  position: relative;
  top: 0;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.education-card-wrapper {
  padding-bottom: 40px;
}

.education-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.education-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.edu-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: var(--surface);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edu-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.edu-title-group {
  display: grid;
  gap: 4px;
}

.edu-title-group h3 {
  font-size: 20px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.edu-title-group h4 {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
}

.edu-meta {
  font-size: 13px;
  color: var(--muted);
}

.edu-period {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(56, 239, 186, 0.06);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(56, 239, 186, 0.1);
  font-family: "IBM Plex Mono", monospace;
}

.education-body {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 4px;
}

.edu-grade {
  color: var(--primary);
  font-weight: 600;
  font-size: 14.5px;
}

.edu-grade strong {
  font-size: 16px;
  color: var(--ink);
}

.edu-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .timeline-meta {
    justify-content: flex-start;
    padding-top: 0;
  }
  .timeline-indicator {
    display: none;
  }
  .education-card-wrapper {
    padding-bottom: 20px;
  }
}

/* Skills Section */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.capability-card {
  grid-column: span 2;
  padding: 28px;
  background: var(--bg-card);
}

.capability-card:nth-child(4),
.capability-card:nth-child(5) {
  grid-column: span 3;
}

.capability-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(56, 239, 186, 0.06);
  font-size: 20px;
  border: 1px solid rgba(56, 239, 186, 0.1);
}

.capability-card:nth-child(1) .capability-icon {
  color: #38efba;
  background: rgba(56, 239, 186, 0.06);
  border-color: rgba(56, 239, 186, 0.12);
}

.capability-card:nth-child(2) .capability-icon {
  color: #6ee7c2;
  background: rgba(110, 231, 194, 0.06);
  border-color: rgba(110, 231, 194, 0.12);
}

.capability-card:nth-child(3) .capability-icon {
  color: #34d399;
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.12);
}

.capability-card:nth-child(4) .capability-icon {
  color: #2dd4a0;
  background: rgba(45, 212, 160, 0.06);
  border-color: rgba(45, 212, 160, 0.12);
}

.capability-card:nth-child(5) .capability-icon {
  color: #a7f3d0;
  background: rgba(167, 243, 208, 0.04);
  border-color: rgba(167, 243, 208, 0.1);
}

.capability-card h3 {
  font-size: 20px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.capability-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  font-weight: 500;
  font-family: "IBM Plex Mono", monospace;
  transition:
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  will-change: transform;
}

.chip-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
  display: inline-block;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.chip-row span:hover {
  background: rgba(56, 239, 186, 0.06);
  border-color: rgba(56, 239, 186, 0.15);
  color: var(--primary);
  transform: translateY(-1px);
}

.chip-row span:hover::before {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* Achievements Section */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-card {
  background: var(--bg-card);
}

.achievement-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.achievement-card:hover .achievement-media img {
  transform: scale(1.05);
}

.achievement-content {
  padding: 24px;
}

.card-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid rgba(56, 239, 186, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: "IBM Plex Mono", monospace;
}

.achievement-content h3 {
  font-size: 22px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin: 12px 0 8px;
}

.achievement-content p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Projects Section */
.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 24px;
}

.filter-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  will-change: transform;
  font-family: "IBM Plex Mono", monospace;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.filter-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.filter-btn.active {
  color: #0a0b0d;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(56, 239, 186, 0.25);
  font-weight: 700;
}

.project-grid {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  background: var(--bg-card);
}

.project-card.is-hidden {
  display: none !important;
}

.project-card:not(.is-hidden) {
  animation: projectFadeIn 0.45s var(--ease-smooth) both;
}

@keyframes projectFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  z-index: 2;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.project-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 0 8px var(--primary);
  flex-shrink: 0;
}

.project-copy h3 {
  font-size: 28px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}

.project-copy p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-media {
  min-height: 330px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.featured-project:nth-of-type(even) .project-copy {
  order: 2;
}

.featured-project:nth-of-type(even) .project-media {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.project-meta span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.015);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}

.project-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  will-change: transform;
}

.project-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 239, 186, 0.2);
  background: rgba(56, 239, 186, 0.06);
  color: var(--primary);
}

/* Contact Section */
.contact-section {
  padding-bottom: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(56, 239, 186, 0.04) 0%, rgba(110, 231, 194, 0.03) 100%), var(--bg-card);
  border-color: rgba(56, 239, 186, 0.1);
  box-shadow: var(--shadow-lg);
}

.contact-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, #a1a7b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-copy p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
}

.contact-card .eyebrow {
  margin-bottom: 16px;
  background: rgba(56, 239, 186, 0.06);
  border-color: rgba(56, 239, 186, 0.12);
  color: var(--primary);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions .btn-primary {
  width: 100%;
}

.contact-actions .btn-secondary {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.contact-links a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
  transition:
    color 0.35s var(--ease-soft),
    background-color 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 239, 186, 0.25);
  background: rgba(56, 239, 186, 0.08);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(56, 239, 186, 0.15);
}

/* Site Footer */
.site-footer {
  padding: 40px 24px 50px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "IBM Plex Mono", monospace;
}

/* Reveal Transitions */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 60ms);
}

.reveal[data-delay="1"] { --reveal-delay: 1; }
.reveal[data-delay="2"] { --reveal-delay: 2; }
.reveal[data-delay="3"] { --reveal-delay: 3; }
.reveal[data-delay="4"] { --reveal-delay: 4; }
.reveal[data-delay="5"] { --reveal-delay: 5; }
.reveal[data-delay="6"] { --reveal-delay: 6; }
.reveal[data-delay="7"] { --reveal-delay: 7; }

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

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .hero::before,
  .hero::after {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    background: rgba(10, 11, 13, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.03),
      var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
    z-index: 1000;
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--ink-soft);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 50px;
    gap: 48px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .portrait-panel {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 24px;
  }

  .portrait-header {
    grid-column: 1 / -1;
  }

  .portrait-copy {
    align-self: start;
  }

  .profile-signals {
    align-self: start;
    padding-top: 0;
  }

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

@media (max-width: 980px) {
  main {
    padding-inline: 20px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .section {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .about-grid,
  .contact-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .featured-project:nth-of-type(even) .project-copy {
    order: initial;
  }

  .featured-project:nth-of-type(even) .project-media {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .project-media {
    min-height: 280px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-card,
  .capability-card:nth-child(4),
  .capability-card:nth-child(5) {
    grid-column: span 1;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 36px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  main {
    padding-inline: 16px;
    padding-bottom: 96px;
  }

  .site-header {
    padding: 14px 16px 0;
  }

  .navbar {
    padding: 8px 14px;
    min-height: 64px;
  }

  .brand-copy small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(26px, 8.2vw, 42px);
  }

  .hero-lede {
    font-size: 16.5px;
  }

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

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

  .btn {
    width: 100%;
  }

  .portrait-panel {
    display: block;
  }

  .portrait-badge-top {
    left: 10px;
  }

  .portrait-badge-bottom {
    right: 10px;
  }

  .profile-signals div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 30px;
  }

  .section-intro {
    font-size: 16px;
  }

  .about-panel,
  .contact-card {
    padding: 24px;
  }

  .operating-item {
    grid-template-columns: 1fr;
  }

  .operating-item span {
    grid-row: auto;
  }

  .education-card,
  .capability-card,
  .achievement-content,
  .project-copy {
    padding: 24px;
  }

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

  .project-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .project-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;
  }

  .project-copy h3 {
    font-size: 24px;
  }

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

  .contact-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .hero-specialties {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 26px;
  }
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-smooth),
    transform 0.85s var(--ease-smooth);
  will-change: opacity, transform;
}

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

/* Staggered Delays for Cascade Effect */
.js-enabled .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js-enabled .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js-enabled .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

.js-enabled .reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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