/* ——— Design tokens ——— */
:root {
  --bg: #030308;
  --bg-2: #0a0a12;
  --text: #f4f2ff;
  --muted: #9490a8;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --gold: #fbbf24;
  --glass: rgba(12, 12, 22, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 45%, var(--gold));
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --page-gutter: 1rem;
  --header-h: 5.35rem;
  --touch-target: 2.75rem;
  --scroll-lume-top: 0.55rem;
  --scroll-lume-size: 1.15rem;
  --scroll-lume-gap: 0.4rem;
  --scroll-fade-extra: 3.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 480px) {
  :root {
    --page-gutter: 1.25rem;
  }
}

@media (min-width: 640px) {
  :root {
    --page-gutter: 1.5rem;
    --header-h: 6rem;
  }
}

@media (min-width: 821px) {
  :root {
    --header-h: 6.35rem;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

body.nav-open {
  overflow: hidden;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  cursor: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Loader ——— */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-orbit {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 0.9s linear infinite;
}

.loader-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader.is-fast .loader-orbit {
  animation-duration: 0.6s;
}

.loader.is-fast .loader-bar span {
  animation-duration: 0.45s;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad);
  animation: loadbar 1.2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadbar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* ——— WebGL & atmosphere ——— */
#webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  transform: translateZ(0);
}

#neural-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 1;
  will-change: transform;
  transform: translateZ(0);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 45%,
    transparent 30%,
    rgba(3, 3, 8, 0.68) 100%
  );
}

.grid-floor {
  position: fixed;
  inset: auto 0 0;
  height: 45vh;
  z-index: 1;
  pointer-events: none;
  display: none;
  opacity: 0.08;
  background:
    linear-gradient(to top, var(--bg), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.06) 0,
      rgba(56, 189, 248, 0.06) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(167, 139, 250, 0.05) 0,
      rgba(167, 139, 250, 0.05) 1px,
      transparent 1px,
      transparent 60px
    );
  transform: perspective(500px) rotateX(72deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, black, transparent 85%);
}

/* ——— Native HUD cursor ——— */
:root {
  --cursor-reticle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%2338bdf8' stroke-width='1.5'%3E%3Cpath d='M4 11V4h7M21 4h7v7M4 21v7h7M28 21v7h-7'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23e0f2fe' stroke='none'/%3E%3C/svg%3E") 16 16, auto;
  --cursor-reticle-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%2338bdf8' stroke-width='1.5'%3E%3Cpath d='M5 14V5h9M30 5h9v9M5 30v9h9M39 30v9h-9'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='2' fill='%23e0f2fe' stroke='none'/%3E%3C/svg%3E") 22 22, auto;
}

html,
body {
  cursor: var(--cursor-reticle) !important;
}

a,
button,
input,
textarea,
.card {
  cursor: var(--cursor-reticle-hover) !important;
}

/* ——— Glass ——— */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.page-top-anchor {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 0;
}

/* ——— Scroll lume (reading progress) ——— */
.scroll-lume {
  position: fixed;
  top: var(--scroll-lume-top);
  left: 50%;
  z-index: 10050;
  width: min(calc(100% - 2rem), var(--max));
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

body.is-loaded .scroll-lume,
.scroll-lume.is-active {
  opacity: 1;
}

.scroll-lume__shell {
  position: relative;
  padding: 3px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.scroll-lume__ticks {
  position: absolute;
  inset: 3px 6px;
  border-radius: 999px;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0,
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px,
    transparent 14px
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: none;
}

.scroll-lume__channel {
  position: relative;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.scroll-lume__beam {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  transform: scale3d(0, 1, 1);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.15),
    #38bdf8 18%,
    #a78bfa 52%,
    #fbbf24 88%,
    rgba(251, 191, 36, 0.2)
  );
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  will-change: transform;
}

.scroll-lume__beam--echo {
  opacity: 0.45;
  filter: blur(2px);
  background: linear-gradient(90deg, transparent, #5ee7ff, #c4b5fd);
  box-shadow: none;
}

.scroll-lume.is-scrolling .scroll-lume__beam:not(.scroll-lume__beam--echo) {
  animation: lume-sheen 1.1s linear infinite;
}

@keyframes lume-sheen {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

.scroll-lume__cap {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  transform: translate3d(0, -50%, 0) translateX(-50%);
  will-change: transform;
}

.scroll-lume__cap-core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 45%, #0ea5e9);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.scroll-lume__cap-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.75);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 14px rgba(167, 139, 250, 0.35);
  animation: lume-cap-spin 4s linear infinite;
}

.scroll-lume.is-scrolling .scroll-lume__cap-ring {
  animation-duration: 1.2s;
}

.scroll-lume.is-complete .scroll-lume__cap-core {
  background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 50%, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.85);
}

.scroll-lume.is-complete .scroll-lume__cap-ring {
  border-color: rgba(251, 191, 36, 0.8);
}

@keyframes lume-cap-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-lume.is-scrolling .scroll-lume__beam:not(.scroll-lume__beam--echo) {
    animation: none;
  }

  .scroll-lume__cap-ring {
    animation: none;
  }
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  transition: background 0.35s var(--ease);
}

.site-header.is-scrolled .nav {
  background: rgba(8, 8, 16, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

.scroll-crest-fade {
  position: fixed;
  inset: 0 0 auto;
  z-index: 98;
  height: calc(var(--header-h) + var(--scroll-fade-extra));
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg) calc(var(--header-h) - 0.35rem),
    rgba(3, 3, 8, 0.92) calc(var(--header-h) + 0.15rem),
    rgba(3, 3, 8, 0.55) calc(var(--header-h) + 1.35rem),
    transparent 100%
  );
}

.scroll-crest-target {
  transition: opacity 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-crest-target {
    transition: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin: calc(var(--scroll-lume-top) + var(--scroll-lume-size) + var(--scroll-lume-gap)) auto 0;
  padding: 0.65rem 1rem 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo [data-profile="name"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.2s;
}

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

.nav-menu a.is-active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: none;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 97;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 3, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.nav-scrim[hidden] {
  display: none !important;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    z-index: 101;
    inset: calc(var(--header-h) + 0.5rem) var(--page-gutter) auto;
    flex-direction: column;
    gap: 0.15rem;
    max-height: calc(100dvh - var(--header-h) - 1.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ——— Hero ——— */
main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.25rem) 0 clamp(4.5rem, 12vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  justify-items: stretch;
  width: 100%;
}

.hero-grid > * {
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
}

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

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  perspective: 800px;
}

.hero-line {
  display: block;
}

.hero-line--grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero-deck {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius-lg);
  text-align: left;
}

.hero-deck-accent {
  flex-shrink: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.hero-deck-inner {
  min-width: 0;
  flex: 1;
}

.hero-deck-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-deck-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.1);
}

.hero-deck-lead {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-deck-lead[hidden] {
  display: none !important;
  margin: 0;
}

.hero-deck-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-deck-traits[hidden] {
  display: none !important;
}

.hero-deck-traits li {
  padding: 0.28rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-deck-kicker [data-profile="roleTitle"][hidden] {
  display: none !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease);
  cursor: none;
}

@media (pointer: coarse) {
  .btn,
  .nav-toggle,
  .filter-chip,
  .project-cta,
  .blog-card-link,
  .footer-link {
    cursor: pointer;
  }
}

.btn-glow {
  color: var(--bg);
  background: var(--grad);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.btn-glow:hover {
  box-shadow: 0 0 45px rgba(167, 139, 250, 0.45);
}

.btn-outline {
  color: var(--text);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
}

.hero-role {
  margin: -0.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.hero-now {
  margin: 0 auto 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  max-width: 36rem;
  text-align: left;
}

.hero-now-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.hero-now-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

@media (min-width: 540px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    max-width: 36rem;
    text-align: left;
  }
}

.hero-meta > div {
  min-width: 0;
}

.hero-meta dt {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollline 1.8s ease-in-out infinite;
}

@keyframes scrollline {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section--depth {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(10, 10, 18, 0.6) 30%,
    transparent
  );
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

#projects .section-head--row {
  align-items: flex-start;
}

#projects .section-sub {
  flex: 1 1 16rem;
  max-width: 28rem;
}

@media (min-width: 900px) {
  #projects .section-head--row {
    align-items: flex-end;
  }
}

.section-index {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--violet);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-lead {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.75;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .about-grid .skills-showcase {
    grid-column: 1 / -1;
  }
}

.skills-showcase {
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
}

.skills-showcase-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.skills-showcase:hover .skills-showcase-shine,
.skills-showcase:focus-within .skills-showcase-shine {
  opacity: 1;
}

.skills-showcase-head {
  margin-bottom: 1.25rem;
}

.skills-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.skills-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.skills-scroll {
  overflow: visible;
  margin: 0;
  padding: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: row;
  gap: 0.45rem 0.4rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: none;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.45rem 0.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 16, 0.35);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}

.skill-tile__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 0%,
    color-mix(in srgb, var(--skill-brand) 45%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.skill-tile:hover,
.skill-tile:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--skill-brand) 55%, var(--glass-border));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 28px color-mix(in srgb, var(--skill-brand) 22%, transparent);
}

.skill-tile:hover .skill-tile__glow,
.skill-tile:focus-within .skill-tile__glow {
  opacity: 1;
}

.skill-tile__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--skill-brand) 12%, rgba(0, 0, 0, 0.52));
  border: 1px solid color-mix(in srgb, var(--skill-brand) 28%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.skill-tile__glyph {
  width: 1.05rem;
  height: 1.05rem;
  background: color-mix(in srgb, var(--skill-glyph, var(--skill-brand)) 86%, #f0eeff 14%);
  opacity: 0.94;
  -webkit-mask-image: var(--skill-mask);
  mask-image: var(--skill-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.skill-tile:hover .skill-tile__glyph,
.skill-tile:focus-within .skill-tile__glyph {
  opacity: 1;
  background: color-mix(in srgb, var(--skill-glyph, var(--skill-brand)) 92%, #ffffff 8%);
  filter: drop-shadow(
    0 0 6px color-mix(in srgb, var(--skill-brand) 55%, transparent)
  );
}

.skill-tile__monogram {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--skill-brand);
}

.skill-tile__name {
  position: relative;
  z-index: 1;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 1.35vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .skill-tile:hover,
  .skill-tile:focus-within {
    transform: none;
  }
}

@media (max-width: 640px) {
  .skill-tile {
    min-height: 2.65rem;
    padding: 0.35rem 0.2rem;
    gap: 0.25rem;
  }

  .skill-tile__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .skill-tile__glyph {
    width: 0.9rem;
    height: 0.9rem;
  }
}

/* ——— Experience ——— */
.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-left: 0.5rem;
}

.exp-marker {
  width: 12px;
  height: 12px;
  margin-top: 1.5rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.exp-card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
}

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

.exp-role {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.exp-period {
  font-size: 0.8125rem;
  color: var(--muted);
}

.exp-company {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--cyan);
}

.exp-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.exp-highlights {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.exp-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* ——— Education ——— */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-left: 0.5rem;
}

.edu-marker {
  width: 12px;
  height: 12px;
  margin-top: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.edu-card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
}

.edu-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.35rem;
}

.edu-top-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.edu-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
}

.edu-badge--pursuing {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.edu-badge--completed {
  color: #a5f3fc;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.edu-degree {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edu-period {
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 480px) {
  .edu-period {
    white-space: nowrap;
  }
}

.edu-school {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--cyan);
}

.edu-details {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

#education .section-sub {
  max-width: 28rem;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-copy-text {
  color: var(--muted);
  line-height: 1.75;
}

.about-copy-text p {
  margin: 0;
}

.about-copy-text p + p {
  margin-top: 1rem;
}

.about-copy-text strong {
  color: var(--text);
  font-weight: 500;
}

.github-spotlight {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
}

.github-spotlight-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.github-spotlight-title {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.github-spotlight-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 0.15s ease-out;
  min-height: 100%;
}

.service-card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .service-card-shine {
  opacity: 1;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.service-title {
  margin: 0.65rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-desc {
  flex: 1 1 auto;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
}

#services .section-sub {
  max-width: 36rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-tags--tech {
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.service-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem 0.32rem 0.38rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--tech-brand, #38bdf8) 22%, var(--glass-border));
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--tech-brand, #38bdf8) 8%, rgba(12, 12, 22, 0.72)),
      rgba(6, 6, 14, 0.82)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .service-tech:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tech-brand, #38bdf8) 36%, var(--glass-border));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 6px 18px color-mix(in srgb, var(--tech-brand, #38bdf8) 14%, transparent);
  }
}

.service-tech__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tech-brand, #38bdf8) 11%, rgba(0, 0, 0, 0.55));
  border: 1px solid color-mix(in srgb, var(--tech-brand, #38bdf8) 24%, rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-tech__glyph {
  width: 1.1rem;
  height: 1.1rem;
  background: color-mix(in srgb, var(--tech-glyph, var(--tech-brand, #a78bfa)) 75%, #b8b4c8 25%);
  opacity: 0.88;
  -webkit-mask-image: var(--tech-mask);
  mask-image: var(--tech-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

@media (hover: hover) and (pointer: fine) {
  .service-tech:hover .service-tech__glyph {
    opacity: 1;
    background: color-mix(in srgb, var(--tech-glyph, var(--tech-brand, #a78bfa)) 85%, #e8e6f2 15%);
  }
}

.service-tech__mono {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--tech-brand, var(--violet));
}

.service-tech__name {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .service-tech:hover {
    transform: none;
  }
}

.section-link {
  align-self: flex-end;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--gold);
}

/* ——— Projects ——— */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.filter-chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.filter-chip.is-active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.project-empty {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.project-stack {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .project-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  --project-lift: 0px;
  --project-scale: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) translate3d(0, var(--project-lift), 0)
    scale(var(--project-scale)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.25s ease;
}

#project-grid .project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.14),
    transparent 42%,
    rgba(167, 139, 250, 0.12)
  );
  transition: opacity 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #project-grid .project-card:hover {
    --project-lift: -10px;
    --project-scale: 1.028;
    z-index: 4;
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(56, 189, 248, 0.22),
      0 0 48px rgba(56, 189, 248, 0.16),
      0 0 72px rgba(167, 139, 250, 0.1);
  }

  #project-grid .project-card:hover::before {
    opacity: 1;
  }

  #project-grid .project-card:hover .project-media img {
    transform: scale(1.07);
  }
}

.project-card--featured {
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  #project-grid .project-card--featured:hover {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(56, 189, 248, 0.35),
      0 0 56px rgba(56, 189, 248, 0.22),
      0 0 88px rgba(167, 139, 250, 0.12);
  }
}

.project-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.55s var(--ease);
}

.project-media--placeholder {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(56, 189, 248, 0.22), transparent),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(167, 139, 250, 0.2), transparent),
    linear-gradient(145deg, rgba(12, 12, 22, 0.9), rgba(3, 3, 8, 0.95));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.project-media-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 242, 255, 0.75);
}

.project-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.project-card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #project-grid .project-card:hover .project-card-shine {
    opacity: 1;
  }
}

.project-index {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--violet);
}

.project-title {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.project-outcome {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
}

.project-outcome-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.project-card-body .project-links {
  margin-top: 1rem;
}

.project-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.15);
  color: #d8b4fe;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.project-cta:hover {
  color: var(--gold);
}

/* ——— Contact ——— */
.section-contact {
  padding-bottom: 3rem;
}

.section-message {
  padding-bottom: 5rem;
}

.message-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

.message-lead {
  margin: -0.5rem 0 1.75rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message-form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .message-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.message-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.message-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;
  min-height: 0;
  cursor: text;
}

.message-form textarea {
  min-height: 140px;
  line-height: 1.6;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: rgba(148, 144, 168, 0.65);
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.message-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.message-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.message-status.is-success {
  color: #6ee7b7;
}

.message-status.is-error {
  color: #fca5a5;
}

#contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#contact-status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.testimonials-grid {
  overflow: hidden;
  touch-action: pan-y;
}

.testimonial-card {
  margin: 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  will-change: transform, opacity;
}

.testimonial-card.is-exiting-next {
  animation: testimonial-exit-next 0.42s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.testimonial-card.is-exiting-prev {
  animation: testimonial-exit-prev 0.42s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.testimonial-card.is-entering[data-direction="next"] {
  animation: testimonial-enter-next 0.42s cubic-bezier(0, 0, 0.2, 1) both;
}

.testimonial-card.is-entering[data-direction="prev"] {
  animation: testimonial-enter-prev 0.42s cubic-bezier(0, 0, 0.2, 1) both;
}

@keyframes testimonial-exit-next {
  to { opacity: 0; transform: translateX(-2rem); }
}

@keyframes testimonial-exit-prev {
  to { opacity: 0; transform: translateX(2rem); }
}

@keyframes testimonial-enter-next {
  from { opacity: 0; transform: translateX(2rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes testimonial-enter-prev {
  from { opacity: 0; transform: translateX(-2rem); }
  to { opacity: 1; transform: translateX(0); }
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.15rem;
}

.carousel-control {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.testimonials-count {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.testimonial-quote {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-name {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

.section--writing {
  padding-bottom: 2rem;
}

.writing-teaser {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
}

.writing-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.writing-teaser-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.writing-teaser-title a {
  color: inherit;
  text-decoration: none;
}

.writing-teaser-title a:hover {
  color: var(--cyan);
}

.writing-teaser-excerpt {
  margin: 0 0 1.25rem;
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.contact-actions .contact-email {
  margin-bottom: 0;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
}

.contact-lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.25s,
    background 0.25s;
}

.social-pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-identity,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-identity p {
  margin: 0;
  color: var(--text);
}

.footer-status,
.footer-repo,
.footer-specs-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 9px #6ee7b7;
  animation: footer-status-pulse 1.6s ease-in-out infinite;
}

@keyframes footer-status-pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

.footer-clock,
#footer-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-repo,
.footer-specs-button {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-repo:hover,
.footer-specs-button:hover,
.footer-specs-button:focus-visible {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

.footer-repo span:last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
}

.footer-specs-button {
  cursor: pointer;
  font: inherit;
}

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

.specs-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
}

.specs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.7);
  backdrop-filter: blur(5px);
}

.specs-drawer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(28rem, calc(100% - 2rem));
  padding: 2rem;
  border-radius: var(--radius-lg);
  animation: specs-in 0.35s var(--ease) both;
}

@keyframes specs-in {
  from { opacity: 0; transform: translateX(2rem); }
  to { opacity: 1; transform: translateX(0); }
}

.specs-drawer h2 {
  margin: 0.5rem 0 2rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.specs-drawer ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs-drawer li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
}

.specs-drawer strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.specs-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

body.specs-open {
  overflow: hidden;
}

.footer-link {
  position: relative;
  z-index: 1;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

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

.muted {
  margin-inline: 0.35rem;
}

/* ——— Blog pages ——— */
.page-main {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 1rem);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero-inner {
  max-width: 40rem;
}

.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

.section--blog {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.blog-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-read::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.blog-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-card-title a {
  text-decoration: none;
  color: var(--text);
}

.blog-card-title a:hover {
  color: var(--cyan);
}

.blog-card-excerpt {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.blog-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
}

.blog-card-link:hover {
  color: var(--cyan);
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.blog-empty code {
  font-size: 0.9em;
  color: var(--cyan);
}

.post-wrap {
  padding: 1.5rem 0 5rem;
  max-width: 42rem;
}

.post-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.post-back:hover {
  color: var(--cyan);
}

.post-article {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.post-meta span::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-tags {
  margin-top: 1rem;
  margin-bottom: 0;
}

.post-not-found {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.post-not-found h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.post-not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.prose {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose pre {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  color: #a5f3fc;
}

.page-hero-inner--wide {
  max-width: 52rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.resume-updated {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.section--resume {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.resume-viewer {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.resume-viewer.resume-viewer--pdf {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: clamp(0.65rem, 2vw, 1rem) clamp(0.65rem, 2vw, 1rem) 0.35rem;
}

.resume-viewer.resume-viewer--embed {
  min-height: min(58vh, 880px);
}

@media (min-width: 641px) {
  .resume-viewer.resume-viewer--embed {
    min-height: min(72vh, 880px);
  }
}

.resume-pdf-pages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
}

.resume-pdf-pages:not([hidden]) + .resume-frame,
.resume-pdf-pages:not([hidden]) + .resume-object {
  display: none !important;
}

.resume-frame[hidden],
.resume-object[hidden],
.resume-document[hidden],
.resume-pdf-pages[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
}

.resume-pdf-page-wrap {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.resume-pdf-page {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.resume-viewer:not(.resume-viewer--pdf) {
  min-height: 0;
  overflow: visible;
}

.resume-document {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  text-align: left;
}

.resume-doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.resume-doc-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.resume-doc-role {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.resume-doc-contact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.resume-doc-contact a {
  color: var(--cyan);
  text-decoration: none;
}

.resume-doc-contact a:hover {
  text-decoration: underline;
}

.resume-doc-sep {
  margin: 0 0.45rem;
  opacity: 0.55;
}

.resume-doc-section {
  margin-bottom: 2rem;
}

.resume-doc-section:last-child {
  margin-bottom: 0;
}

.resume-doc-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.resume-doc-summary {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 52rem;
}

.resume-doc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-doc-skills li {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.resume-doc-entry {
  margin-bottom: 1.35rem;
}

.resume-doc-entry:last-child {
  margin-bottom: 0;
}

.resume-doc-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.2rem;
}

.resume-doc-entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.resume-doc-entry-period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.resume-doc-entry-sub {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.resume-doc-entry-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.resume-doc-list {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.resume-doc-list li {
  margin-bottom: 0.35rem;
}

.resume-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}

.resume-doc-tags span {
  font-size: 0.75rem;
  color: var(--muted);
}

.resume-doc-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-doc-social a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.resume-doc-social a:hover {
  text-decoration: underline;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .scroll-lume,
  .scroll-crest-fade,
  #webgl,
  .vignette,
  .grid-floor,
  .loader,
  .page-hero,
  .resume-actions,
  .resume-updated {
    display: none !important;
  }

  .resume-viewer {
    border: none;
    box-shadow: none;
    background: transparent !important;
  }

  .resume-document {
    padding: 0;
    color: #111;
  }

  .resume-doc-name,
  .resume-doc-entry-title,
  .resume-doc-summary,
  .resume-doc-list,
  .resume-doc-entry-desc {
    color: #111 !important;
  }

  .resume-doc-section-title,
  .resume-doc-role,
  .resume-doc-contact,
  .resume-doc-entry-period {
    color: #444 !important;
  }

  .resume-doc-entry-sub {
    color: #0066aa !important;
  }

  .resume-doc-skills li {
    border-color: #ccc;
    background: #f5f5f5;
    color: #111;
  }
}

.resume-frame,
.resume-object {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(70vh, 1200px);
  min-height: 0;
  border: 0;
  background: #0a0a12;
}

@media (min-width: 641px) {
  .resume-frame,
  .resume-object {
    height: min(92vh, 1200px);
    min-height: min(480px, 70vh);
  }
}

.resume-object-fallback {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.resume-object-fallback a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.resume-object-fallback a:hover {
  text-decoration: underline;
}

.resume-viewer {
  opacity: 1;
}

@media (max-width: 640px) {
  .resume-frame,
  .resume-object {
    height: min(65vh, 100%);
  }

  .resume-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-actions .btn {
    width: 100%;
  }

  .hero-deck {
    max-width: none;
    padding: 1rem 1rem 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .message-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .message-form-footer .btn {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-link {
    white-space: normal;
    align-self: flex-start;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
  }

  .exp-item,
  .edu-item {
    gap: 0.85rem;
  }

  .exp-marker,
  .edu-marker {
    margin-top: 1.15rem;
  }

  .exp-card,
  .edu-card {
    padding: 1.15rem 1.1rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .loader-orbit,
  .scroll-hint-line,
  .chip::before {
    animation: none;
  }

  .project-card,
  .service-card,
  .writing-teaser,
  .blog-card {
    transform: none;
    --project-lift: 0px;
    --project-scale: 1;
  }

  #project-grid .project-card::before {
    opacity: 0 !important;
  }

  #project-grid .project-card:hover .project-media img {
    transform: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .project-card.is-filtered-out {
    opacity: 1;
    transform: none;
  }

  .nav-menu {
    transition: none;
  }
}

/* ——— Responsive: readable type & safe media ——— */
video {
  max-width: 100%;
  height: auto;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-title {
  overflow-wrap: break-word;
}

.skills-showcase {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .skills-showcase {
    overflow-x: hidden;
  }
}

.post-wrap {
  width: min(100%, 42rem);
  margin-inline: auto;
  padding-inline: 0;
}

.page-main .container {
  width: min(100% - 2 * var(--page-gutter), var(--max));
}