:root {
  --bg: #050608;
  --glass-bg: rgba(255, 255, 255, 0.038);
  --glass-bg-elevated: rgba(255, 255, 255, 0.058);
  --glass-dock: rgba(22, 24, 30, 0.62);
  --glass-modal: rgba(24, 26, 32, 0.78);

  --border-base: rgba(255, 255, 255, 0.09);
  --border-fresnel: rgba(255, 255, 255, 0.22);
  --shadow-ambient: 0 24px 60px -16px rgba(0, 0, 0, 0.72);
  --shadow-contact: 0 4px 14px -2px rgba(0, 0, 0, 0.45);

  --text: #f5f5f7;
  --text-secondary: rgba(235, 235, 245, 0.68);
  --text-muted: rgba(235, 235, 245, 0.42);
  --accent: #7cc4fa;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-card: 22px;
  --radius-media: 14px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.58;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
}

/* Volumetric Ambient Light Field for Glass Refraction */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.light-field {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform;
  transition: transform 0.6s var(--ease-fluid);
}

.field-sapphire {
  width: 680px;
  height: 680px;
  top: -220px;
  right: 4%;
  background: radial-gradient(circle, rgba(56, 139, 253, 0.24) 0%, rgba(56, 139, 253, 0.04) 50%, transparent 72%);
  animation: driftA 22s ease-in-out infinite alternate;
}

.field-tungsten {
  width: 540px;
  height: 540px;
  top: 28%;
  left: -140px;
  background: radial-gradient(circle, rgba(245, 179, 102, 0.14) 0%, rgba(245, 179, 102, 0.02) 55%, transparent 75%);
  animation: driftB 26s ease-in-out infinite alternate;
}

.field-silver {
  width: 620px;
  height: 620px;
  bottom: -200px;
  right: 18%;
  background: radial-gradient(circle, rgba(165, 180, 210, 0.16) 0%, transparent 70%);
  animation: driftA 28s ease-in-out infinite alternate-reverse;
}

@keyframes driftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-32px, 28px, 0) scale(1.06); }
}

@keyframes driftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(38px, -24px, 0) scale(1.05); }
}

/* Page Shell (scales gently back when modal sheet opens) */
.page-shell {
  transition: transform 0.45s var(--ease-fluid), opacity 0.45s var(--ease-fluid), filter 0.45s var(--ease-fluid);
  transform-origin: center top;
}

.page-shell.sheet-open {
  transform: scale(0.985);
  opacity: 0.68;
  filter: blur(2px);
}

.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Floating Liquid Glass Capsule Navigation */
.nav-dock-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 1.25rem;
  margin-top: 14px;
}

.nav-dock {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 54px;
  padding: 0 0.75rem 0 1.25rem;
  border-radius: 999px;
  background: var(--glass-dock);
  backdrop-filter: blur(36px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04),
    0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.brand {
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-email {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s var(--ease-spring);
}

.nav-email:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
}

/* Main Spatial Rhythm */
.main-content {
  padding-top: 4.75rem;
  padding-bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
}

/* Intro */
.intro {
  max-width: 66ch;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}

.intro h1 {
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-role {
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
}

.intro-bio {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.85rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Liquid Glass Pills (Social & Badges) */
.glass-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease-spring), color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a.glass-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

a.glass-pill:active {
  transform: scale(0.97);
}

.arrow {
  opacity: 0.55;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease;
}

a:hover .arrow {
  opacity: 1;
  transform: translate(1.5px, -1.5px);
}

/* Section Headers */
.section {
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* Apple Segmented Control with Sliding Frosted Thumb */
.segmented-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.segmented-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.38s var(--ease-spring), width 0.38s var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  color: var(--text);
}

/* =====================================================================
   LIQUID GLASS CARD WITH ACTIVE CURSOR REFLECTIONS & RIM LIGHT
   ===================================================================== */
.glass-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  border-radius: var(--radius-card);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.025) 55%,
    rgba(255, 255, 255, 0.015) 100%
  );
  backdrop-filter: blur(40px) saturate(185%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(185%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.03),
    var(--shadow-contact),
    var(--shadow-ambient);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-spring),
    border-color 0.3s ease,
    box-shadow 0.45s var(--ease-spring);
}

/* Active Rim-Light Border Reflection */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.55),
    rgba(124, 196, 250, 0.18) 35%,
    transparent 65%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

/* Active Surface Specular Glare */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    560px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.015) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1;
}

.featured-card:hover,
.project-card:hover,
.content-card:hover {
  transform: translateY(-2px);
}

/* Ensure inner content sits above specular overlay */
.glass-card > * {
  position: relative;
  z-index: 3;
}

/* Featured HonestHands Card */
.featured-card {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 1.85rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.featured-media {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 30px rgba(0, 0, 0, 0.45);
  background: #06070a;
  display: flex;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-fluid);
}

.featured-card:hover .featured-media img {
  transform: scale(1.018);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.featured-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.65rem 0 0.75rem;
}

.hh-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.featured-body h3 {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured-body p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.featured-foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 2x2 Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.meta-tag {
  color: var(--accent);
}

.meta-id,
.meta-status {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.project-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.91rem;
  line-height: 1.58;
  flex: 1;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spec-pills span {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
}

/* Liquid Glass Action Button */
.btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.46rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), background 0.2s ease, border-color 0.2s ease;
}

.btn-glass:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.09) 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass:active {
  transform: scale(0.96);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.btn-link:hover {
  color: var(--text);
}

/* About & Experience */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: start;
}

.about-card,
.experience-card {
  padding: 1.75rem;
}

.about-card h3,
.experience-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.95rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

.about-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 1.35rem 0 0.7rem;
  color: var(--text);
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.clean-list li {
  padding-left: 1rem;
  position: relative;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.exp-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.exp-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
}

.exp-top strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-top span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.exp-role {
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-item p {
  margin-top: 0.42rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Blog & Cookbook */
.empty-card {
  padding: 2.15rem;
}

.empty-title {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.empty-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.content-card {
  padding: 1.65rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.content-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.content-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.recipe-specs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* Liquid Glass Sheet Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 4, 7, 0.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--glass-modal);
  display: flex;
  flex-direction: column;
  animation: sheetIn 0.38s var(--ease-spring) forwards;
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-head h3 {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}

.modal-close {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.modal-body {
  padding: 1.6rem 1.75rem;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.modal-body h4 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.35rem 0 0.5rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 0.9rem;
}

.modal-body ul,
.modal-body ol {
  padding-left: 1.2rem;
  margin-bottom: 0.95rem;
}

.modal-body li {
  margin-bottom: 0.38rem;
}

.modal-body pre {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-media);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  margin: 0.85rem 0 1.05rem;
}

.modal-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--accent);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease-fluid), transform 0.65s var(--ease-fluid);
}

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

/* Responsive */
@media (max-width: 860px) {
  .featured-card,
  .projects-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-email {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(20, 22, 28, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-links.open {
    display: flex;
  }

  .segmented-control {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light-field {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glass-card,
  .segmented-thumb,
  .page-shell {
    transition: none;
  }
}
