:root {
  --bg: #040814;
  --bg-2: #0a1028;
  --text: #f0f4ff;
  --muted: #a8b8e8;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --accent: #9eb0ff;
  --accent-2: #5ee7ff;
  --glow-cyan: rgba(94, 231, 255, 0.45);
  --glow-violet: rgba(167, 139, 250, 0.4);
  --glow-blue: rgba(99, 140, 255, 0.5);
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section-y: clamp(5rem, 11vw, 7.25rem);
  --section-y-mobile: clamp(5.5rem, 14vw, 6.75rem);
  --copy-leading: 1.72;
  --copy-leading-tight: 1.62;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Minimal, low-contrast scrollbars across the site */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(188, 204, 245, 0.34) rgba(255, 255, 255, 0.04);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(188, 204, 245, 0.34) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(214, 224, 252, 0.36), rgba(160, 176, 224, 0.3));
  border: 2px solid rgba(8, 12, 30, 0.8);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(230, 238, 255, 0.48), rgba(174, 191, 242, 0.42));
}

main {
  padding-bottom: clamp(1.25rem, 4vw, 2rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #172a67 0%, var(--bg) 42%, #03050d 100%);
  line-height: 1.65;
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.6rem;
  z-index: 1000;
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0b132f;
  color: #f0f4ff;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 8% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 60% at 92% 8%, rgba(129, 140, 248, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 165, 233, 0.08), transparent 45%),
    radial-gradient(35rem 35rem at 12% 10%, rgba(110, 228, 255, 0.12), transparent 62%),
    radial-gradient(40rem 40rem at 87% 16%, rgba(138, 166, 255, 0.16), transparent 66%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 38%, #050a18 100%);
  animation: drift 18s var(--ease-out) infinite alternate;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
  background-size: 22px 22px;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -10px, 0) scale(1.04);
  }
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  margin-top: 1rem;
  margin-bottom: 0.15rem;
  border-bottom: none;
  background: transparent;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: lowercase;
}

.wordmark__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px var(--glow-cyan);
}

.top-nav {
  display: flex;
  gap: 0.32rem;
  flex-wrap: wrap;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-nav a {
  color: #eaf1ff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 0.24rem 0.1rem;
  border: none;
  background: transparent;
  transition:
    transform 0.35s var(--ease-out),
    text-shadow 0.35s var(--ease-out),
    color 0.25s var(--ease-out);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12rem;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 170, 255, 0), rgba(94, 170, 255, 0.95), rgba(94, 170, 255, 0));
  transform: scaleX(0.35);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.28s var(--ease-out);
}

.top-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
  text-shadow:
    0 0 10px rgba(94, 170, 255, 0.45),
    0 0 22px rgba(94, 170, 255, 0.22);
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.wordmark:focus-visible,
.top-nav a:focus-visible,
.resume-viewer__action:focus-visible,
.resume-viewer__close:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* old underline animation removed; hover now uses pill glow */

main > section.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding-top: clamp(5rem, 14vw, 6.75rem);
  padding-bottom: clamp(3.75rem, 10vw, 5.5rem);
  isolation: isolate;
}

main > section:not(.hero) {
  padding-block: var(--section-y);
}

.hero-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.light-band {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.light-band--1 {
  width: clamp(250px, 36vw, 520px);
  height: clamp(110px, 14vw, 180px);
  top: 12%;
  left: -6%;
  background: linear-gradient(120deg, rgba(98, 239, 255, 0.4), rgba(138, 166, 255, 0.08));
}

.light-band--2 {
  width: clamp(230px, 38vw, 640px);
  height: clamp(120px, 16vw, 220px);
  top: 32%;
  right: -16%;
  transform: rotate(-14deg);
  background: linear-gradient(120deg, rgba(178, 201, 255, 0.35), rgba(181, 242, 255, 0.05));
}

.light-band--3 {
  width: clamp(200px, 26vw, 430px);
  height: clamp(100px, 12vw, 150px);
  bottom: 18%;
  left: 36%;
  transform: rotate(8deg);
  background: linear-gradient(120deg, rgba(166, 187, 255, 0.24), rgba(124, 227, 255, 0.06));
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8.4vw, 6.2rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(41, 66, 140, 0.35);
}

.subtitle {
  margin: 0;
  color: #dbe4ff;
  font-size: clamp(1.04rem, 2.8vw, 1.52rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pitch {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.8vw, 1.22rem);
  text-wrap: balance;
}

@media (min-width: 720px) {
  .pitch {
    white-space: nowrap;
    max-width: none;
  }
}

.hero-actions {
  margin-top: clamp(1.85rem, 4.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.hero-cta {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  appearance: none;
  isolation: isolate;
  transition:
    transform 0.38s var(--ease-out),
    box-shadow 0.38s var(--ease-out),
    border-color 0.38s var(--ease-out),
    background 0.38s var(--ease-out),
    color 0.28s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.hero-cta__body {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-cta__text {
  line-height: 1.2;
}

.hero-cta__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.92;
}

.hero-cta--primary {
  color: #030712;
  background: linear-gradient(135deg, #f4f8ff 0%, #b8d4ff 42%, #7ddbff 88%, #9ae8ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 6px 24px rgba(94, 231, 255, 0.22),
    0 16px 48px rgba(99, 140, 255, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hero-cta__glow {
  position: absolute;
  inset: -35%;
  z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(94, 231, 255, 0.35), transparent 42%);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.hero-cta__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.hero-cta__shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: hero-cta-shine 4.2s var(--ease-out) infinite;
}

@keyframes hero-cta-shine {
  0%,
  12% {
    transform: translateX(-20%) skewX(-18deg);
  }
  38%,
  100% {
    transform: translateX(320%) skewX(-18deg);
  }
}

.hero-cta--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 32px rgba(94, 231, 255, 0.3),
    0 22px 56px rgba(99, 140, 255, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-cta--primary:hover .hero-cta__glow {
  opacity: 0.9;
}

.hero-cta--primary:active {
  transform: translateY(-1px) scale(0.988);
}

.hero-cta--resume {
  color: #f0f4ff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(6, 12, 32, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 36px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(99, 140, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-cta__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-cta--resume:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(8, 14, 36, 0.55) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 44px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(94, 231, 255, 0.1);
}

.hero-cta--resume:active {
  transform: translateY(-1px) scale(0.988);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.hero-cta:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta__shine::after {
    animation: none;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.05rem;
    padding: 0.15rem 0;
  }

  .hero-actions .hero-cta {
    width: 100%;
    max-width: 21rem;
    min-height: 3.1rem;
    justify-content: center;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-actions .hero-cta--primary .hero-cta__body,
  .hero-actions .hero-cta--resume .hero-cta__body {
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    justify-content: center;
  }

  /* Give the buttons a stacked, less-boring layout */
  .hero-actions .hero-cta--primary {
    position: relative;
    z-index: 2;
    transform: translateY(-0.15rem);
  }

  .hero-actions .hero-cta--resume {
    position: relative;
    z-index: 1;
    transform: translateY(0.28rem);
  }
}

body.resume-viewer-open {
  overflow: hidden;
}

.resume-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 3.5vw, 1.35rem);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-viewer.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.resume-viewer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(3, 6, 18, 0.76);
  backdrop-filter: blur(16px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.resume-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-viewer.is-open .resume-viewer__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.resume-viewer__chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 28, 0.35);
}

.resume-viewer__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbe4ff;
}

.resume-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.resume-viewer__action {
  color: #c8d6ff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-viewer__action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.resume-viewer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-viewer__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.resume-viewer__frame {
  flex: 1;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: rgba(2, 4, 12, 0.55);
}

.resume-viewer__iframe {
  flex: 1;
  width: 100%;
  min-height: min(68vh, 600px);
  border: 0;
  background: #0b0f1f;
}

.resume-viewer__fallback {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-viewer__fallback a {
  color: #c8d6ff;
  font-weight: 600;
}

.panel {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(129, 140, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(56, 189, 248, 0.08), transparent 55%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 28%,
    transparent 52%
  );
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(199, 218, 255, 0.18);
  opacity: 0.55;
}

.about {
  display: grid;
  gap: clamp(1.25rem, 4vw, 1.75rem);
  align-items: start;
  padding: clamp(1.45rem, 4.5vw, 1.75rem) clamp(1.2rem, 4vw, 1.5rem);
}

.about-panel.about {
  position: relative;
}

.about-image-wrap {
  overflow: hidden;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 10.5rem;
  width: 100%;
  margin: 0 auto;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.about-panel .about-image-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-image {
  width: 100%;
  max-height: 12.5rem;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.about-content {
  min-width: 0;
}

.about-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(200, 210, 245, 0.72);
}

.about-meta {
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.05rem);
  padding-bottom: clamp(0.65rem, 2vw, 0.85rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: clamp(0.8rem, 1.9vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(178, 190, 228, 0.82);
  line-height: 1.55;
  max-width: 40rem;
}

.about-meta__line {
  display: block;
}

.about-meta__line + .about-meta__line {
  margin-top: 0.2rem;
}

.about-body {
  max-width: 40rem;
}

.about-body p {
  margin: 0;
  color: var(--muted);
  line-height: var(--copy-leading);
  font-size: clamp(0.96rem, 2.3vw, 1.04rem);
}

.about-body p + p {
  margin-top: clamp(0.95rem, 2.5vw, 1.15rem);
}

.section-head h2,
.site-footer h2 {
  margin: 0 0 clamp(0.75rem, 2.5vw, 1rem);
  font-size: clamp(1.6rem, 3.3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-weight: 700;
}

.section-head--projects {
  max-width: 40rem;
  margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
}

.section-kicker {
  margin: 0 0 clamp(0.55rem, 2vw, 0.75rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0.95;
}

.section-head--projects h2 {
  margin-bottom: clamp(0.65rem, 2.5vw, 0.85rem);
  background: linear-gradient(105deg, #ffffff 0%, #c8d8ff 45%, #8ec5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-lede {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.68;
  max-width: min(36ch, 100%);
}

.project-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 1.85rem);
  margin-top: clamp(0.25rem, 1vw, 0.5rem);
  align-items: stretch;
}

.project-card__tilt {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: calc(1.35rem - 1px);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

.project-card {
  position: relative;
  border-radius: 1.35rem;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.04) 55%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.project-card__glow {
  position: absolute;
  inset: -40%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.project-card--equities .project-card__glow {
  background:
    radial-gradient(circle at 78% 12%, var(--glow-cyan), transparent 42%),
    radial-gradient(circle at 12% 88%, var(--glow-blue), transparent 45%);
}

.project-card--macro .project-card__glow {
  background:
    radial-gradient(circle at 85% 18%, var(--glow-violet), transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(56, 189, 248, 0.35), transparent 48%);
}

.project-card__gridlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
}

.project-card__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 4vw, 1.5rem) clamp(1.3rem, 3.8vw, 1.45rem) clamp(1.45rem, 4vw, 1.6rem);
  border-radius: calc(1.35rem - 1px);
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(175deg, rgba(8, 12, 32, 0.72) 0%, rgba(4, 8, 22, 0.92) 55%, rgba(3, 6, 16, 0.96) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: clamp(0.95rem, 3vw, 1.1rem);
}

.project-card__index {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.project-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #c8d8ff;
}

.project-card--equities .project-card__label {
  border-color: rgba(94, 231, 255, 0.25);
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.08);
}

.project-card--macro .project-card__label {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
}

.project-card h3 {
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.05rem);
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 2.3vw, 1rem);
  line-height: var(--copy-leading);
  max-width: 52ch;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(99, 140, 255, 0.12);
}

.project-card:hover .project-card__glow,
.project-card:focus-within .project-card__glow {
  opacity: 0.85;
  transform: scale(1.05);
}

.project-card--equities:hover,
.project-card--equities:focus-within {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 72px rgba(94, 231, 255, 0.14);
}

.project-card--macro:hover,
.project-card--macro:focus-within {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 72px rgba(167, 139, 250, 0.14);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(1rem, 3vw, 1.2rem);
}

.project-card .tags span {
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dce8ff;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(6, 10, 28, 0.85), rgba(6, 10, 28, 0.85)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06)) border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.card-links {
  margin-top: auto;
  padding-top: clamp(1.15rem, 3.5vw, 1.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: #e8eeff;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    color 0.25s var(--ease-out);
}

.card-cta__icon {
  transition: transform 0.35s var(--ease-out);
  opacity: 0.9;
}

.card-cta:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(99, 140, 255, 0.2);
  color: #ffffff;
}

.card-cta:hover .card-cta__icon {
  transform: translateX(4px);
}

.card-cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.experience {
  padding: 0;
}

.experience-showcase {
  position: relative;
  border-radius: 1.35rem;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.04) 55%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.experience-showcase__glow {
  position: absolute;
  inset: -40%;
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
  background:
    radial-gradient(circle at 70% 15%, var(--glow-cyan), transparent 40%),
    radial-gradient(circle at 18% 82%, var(--glow-violet), transparent 44%),
    radial-gradient(circle at 45% 50%, var(--glow-blue), transparent 55%);
}

.experience-showcase__gridlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 95% 75% at 50% -10%, black 18%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% -10%, black 18%, transparent 70%);
}

.experience-showcase__inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 4vw, 1.5rem) clamp(1.3rem, 3.8vw, 1.45rem) clamp(1.45rem, 4vw, 1.6rem);
  border-radius: calc(1.35rem - 1px);
  background:
    radial-gradient(ellipse 100% 65% at 50% -25%, rgba(255, 255, 255, 0.09), transparent 55%),
    linear-gradient(175deg, rgba(8, 12, 32, 0.76) 0%, rgba(4, 8, 22, 0.94) 52%, rgba(3, 6, 16, 0.97) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.experience-showcase__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.experience-showcase__index {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.experience-showcase__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #c8d8ff;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
}

.experience-showcase__title {
  margin: 0 0 clamp(0.65rem, 2.2vw, 0.85rem);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
  background: linear-gradient(105deg, #ffffff 0%, #c8d8ff 48%, #8ec5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.experience-showcase__lede {
  margin: 0 0 clamp(1.15rem, 3.5vw, 1.4rem);
  font-size: clamp(0.9rem, 2.1vw, 1rem);
  color: var(--muted);
  line-height: 1.68;
  max-width: min(52ch, 100%);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-grid--experience {
  margin: 0 0 clamp(1.45rem, 4vw, 1.75rem);
}

.skills-grid--experience span {
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dce8ff;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(6, 10, 28, 0.85), rgba(6, 10, 28, 0.85)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)) border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.experience-tiles {
  display: grid;
  gap: clamp(1.2rem, 4vw, 1.45rem);
}

.experience-tile {
  position: relative;
  padding: clamp(1.15rem, 3.5vw, 1.25rem) clamp(1.15rem, 3.5vw, 1.3rem) clamp(1.25rem, 3.8vw, 1.4rem);
  border-radius: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 100%),
    rgba(6, 10, 26, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.experience-tile:hover {
  border-color: rgba(167, 190, 255, 0.28);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(99, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.experience-tile__tag {
  display: inline-block;
  margin-bottom: clamp(0.6rem, 2vw, 0.75rem);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0.95;
}

.experience-tile h3 {
  margin: 0;
  font-size: clamp(1.02rem, 2.1vw, 1.14rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.experience-tile p {
  margin: clamp(0.65rem, 2vw, 0.75rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2.2vw, 0.98rem);
  line-height: var(--copy-leading);
  max-width: 52ch;
}

.site-footer {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 13vw, 6.25rem) 0 clamp(3.75rem, 10vw, 4.5rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 88%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.site-footer p {
  color: var(--muted);
  margin: clamp(0.65rem, 2.5vw, 0.9rem) auto 0;
  max-width: min(34rem, 100%);
  padding: 0 clamp(0.5rem, 3vw, 1rem);
  line-height: 1.68;
  font-size: clamp(0.95rem, 2.3vw, 1.02rem);
}

.footer-links {
  margin-top: clamp(1.5rem, 4.5vw, 2rem);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  row-gap: 1rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card__glow {
    transition: none;
  }

  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }

  .experience-tile {
    transition: none;
  }

  .experience-tile:hover {
    transform: none;
  }
}

@media (min-width: 760px) {
  main > section.hero {
    padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  }

  #about {
    padding-block: clamp(2.5rem, 4vw, 3.75rem);
  }

  .about {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: clamp(1.35rem, 3.5vw, 1.85rem);
    padding: 1.3rem 1.5rem 1.35rem;
    align-items: start;
  }

  .about-image-wrap {
    margin: 0;
    max-width: 11rem;
  }

  .about-content {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-meta {
    letter-spacing: 0.01em;
  }

  .about-image {
    max-height: min(13rem, 36vh);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .experience-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }
}

/* Desktop: content-sized column, less vertical padding, no forced full-viewport hero */
@media (min-width: 960px) {
  :root {
    --section-y: clamp(2.4rem, 3.2vw, 3.35rem);
  }

  .container {
    width: min(880px, 88vw);
  }

  main > section.hero {
    min-height: calc(100vh - 80px);
    align-content: center;
    padding-top: clamp(5rem, 14vw, 6.75rem);
    padding-bottom: clamp(3.75rem, 10vw, 5.5rem);
  }

  h1 {
    font-size: clamp(2.3rem, 3.6vw, 3.25rem);
    letter-spacing: -0.038em;
    text-shadow: 0 8px 28px rgba(41, 66, 140, 0.28);
  }

  .subtitle {
    font-size: clamp(1rem, 1.35vw, 1.14rem);
  }

  .pitch {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(0.96rem, 1.25vw, 1.05rem);
  }

  .hero-actions {
    margin-top: clamp(1rem, 2vw, 1.35rem);
  }

  #about {
    padding-block: clamp(1.75rem, 2.5vw, 2.5rem);
  }

  .about {
    padding: 1.05rem 1.15rem 1.1rem;
    gap: 1.25rem;
  }

  .about-content {
    padding-left: 1.25rem;
  }

  .section-head--projects {
    margin-bottom: clamp(0.75rem, 1.8vw, 1rem);
  }

  .section-head h2,
  .site-footer h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  }

  .project-grid {
    gap: 1.1rem;
    margin-top: 0.15rem;
  }

  .project-card__inner {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .experience-showcase__inner {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .experience-showcase__top {
    margin-bottom: 0.65rem;
  }

  .experience-showcase__index {
    font-size: 1.85rem;
  }

  .experience-showcase__title {
    font-size: clamp(1.2rem, 2vw, 1.48rem);
    margin-bottom: 0.45rem;
  }

  .experience-showcase__lede {
    margin-bottom: clamp(0.8rem, 1.8vw, 1rem);
  }

  .experience-tiles {
    gap: 1rem;
  }

  .site-footer {
    padding: clamp(2.65rem, 5vw, 3.35rem) 0 clamp(2.15rem, 4vw, 2.85rem);
  }

  .footer-links {
    margin-top: clamp(1.1rem, 2.5vw, 1.35rem);
    gap: 0.65rem 0.85rem;
  }
}

@media (max-width: 559px) {
  body {
    line-height: 1.68;
  }

  main > section:not(.hero) {
    padding-block: var(--section-y-mobile);
  }

  main > section.hero {
    padding-bottom: clamp(4.25rem, 12vw, 5.25rem);
  }

  .about-meta {
    letter-spacing: 0.01em;
    font-size: 0.78rem;
  }

  .about-image-wrap {
    margin-bottom: 0.25rem;
  }

  .experience-showcase__top {
    margin-bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 0.9rem;
    margin-top: 0.6rem;
    margin-bottom: 0.15rem;
  }

  .wordmark {
    font-size: 0.83rem;
  }

  .site-header__inner {
    padding: 0.55rem 0.7rem;
    gap: 0.42rem;
  }

  .top-nav {
    gap: 0.42rem;
  }

  .hero {
    min-height: calc(100vh - 58px);
    padding-top: clamp(4.5rem, 12vw, 5.25rem);
  }

  .project-card__index {
    font-size: 1.85rem;
  }

  .project-card__inner {
    padding: 1.35rem 1.2rem 1.45rem;
  }

  .experience-showcase__index {
    font-size: 1.85rem;
  }

  .experience-showcase__inner {
    padding: 1.35rem 1.2rem 1.45rem;
  }
}
