/* ──────────────────────────────────────────────────────────────────────────
   Akshatha Amaresh Pampanna — résumé site
   Palette: deep space blue, soft cream paper, warm gold accent.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #05070d;
  --bg-soft: #0a0e18;
  --paper: #fafaf6;
  --paper-soft: #f1ede1;
  --ink: #0d121d;
  --ink-soft: #2a3245;
  --muted: #6b7185;
  --muted-light: #aab0c0;
  --line: rgba(255, 255, 255, 0.08);
  --line-paper: rgba(13, 18, 29, 0.08);
  --gold: #d4a55a;
  --gold-bright: #f5c25a;
  --accent: #6aa3ff;
  --accent-soft: #4a8dff;

  --max-width: 1080px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;

  --shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Top bar ──────────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.78), rgba(5, 7, 13, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 14.5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold-bright);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted-light);
}
.topbar__nav a {
  transition: color 0.2s ease;
}
.topbar__nav a:hover {
  color: var(--paper);
}
.topbar__cta {
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold-bright);
  font-weight: 500;
}
.topbar__cta:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (max-width: 720px) {
  .topbar__nav a:not(.topbar__cta) {
    display: none;
  }
}

/* ── Stage (globe) ────────────────────────────────────────────────────────── */

.stage {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  background: var(--bg);
  color: var(--muted-light);
  z-index: 5;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.stage__loading.loading--gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold-bright);
  border-radius: 99px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: absolute;
  left: clamp(20px, 6vw, 64px);
  bottom: clamp(60px, 10vh, 110px);
  z-index: 10;
  display: flex;
  /* Top-align so the portrait sits beside the eyebrow + headline rather than the CTA. */
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  max-width: 800px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero--gone {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.hero__copy {
  flex: 1 1 auto;
  max-width: 580px;
}

/* Hero portrait — looking-through-the-lens shot, framed like a film print. */
.hero__photo {
  position: relative;
  flex: 0 0 auto;
  /* Top-padding nudges the photo down slightly so its centre lines up with the headline, not the eyebrow. */
  margin: 26px 0 0;
  width: clamp(120px, 13vw, 168px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 165, 90, 0.28);
  box-shadow:
    0 24px 50px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(212, 165, 90, 0.16);
  transform: rotate(-2.4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
}
.hero__photo:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 32px 70px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(245, 194, 90, 0.4);
}
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight contrast/saturation lift to match the page palette. */
  filter: contrast(1.05) saturate(1.05);
}
.hero__photo::after {
  /* Subtle inner vignette so the photo blends with the dark page rather than feeling stuck on. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, transparent 50%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.hero__photo-caption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero__photo {
    width: 110px;
  }
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--paper);
}
.hero__title .accent {
  color: var(--gold-bright);
  font-style: italic;
}

.hero__sub {
  font-size: 16px;
  color: var(--muted-light);
  margin: 0 0 28px;
  max-width: 540px;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.hero__hint a {
  color: var(--muted-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--sm {
  padding: 10px 16px;
  font-size: 13.5px;
}
.btn--primary {
  background: var(--gold-bright);
  color: var(--bg);
  box-shadow: 0 16px 40px -12px rgba(245, 194, 90, 0.55);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: #ffd270;
  box-shadow: 0 22px 50px -12px rgba(245, 194, 90, 0.7);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── HUD (during journey) ─────────────────────────────────────────────────── */

.hud {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(8, 12, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 14px 20px 18px;
  border-radius: 18px;
  min-width: 360px;
}

.hud__progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud__progress-track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
.hud__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-bright), #fff3c2);
  transition: width 0.5s ease;
  border-radius: 99px;
}

.hud__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hud__dot {
  --accent: var(--gold-bright);
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hud__dot:hover {
  transform: scale(1.25);
}
.hud__dot--done {
  background: rgba(255, 255, 255, 0.55);
}
.hud__dot--active {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  transform: scale(1.4);
}

.hud__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud__btn {
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.hud__btn:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.14);
}
.hud__btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.hud__btn--primary {
  background: var(--gold-bright);
  color: var(--bg);
  border-color: transparent;
}
.hud__btn--primary:hover:not([disabled]) {
  background: #ffd270;
  color: var(--bg);
}
.hud__btn--ghost {
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted-light);
}
.hud__count {
  font-size: 13px;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: center;
}

@media (max-width: 540px) {
  .hud {
    min-width: 0;
    width: calc(100% - 32px);
    padding: 12px 14px 14px;
  }
}

/* ── Floating pin label (Google-Maps-style info pill that tracks the active pin) ── */

.pin-label {
  --accent: var(--gold-bright);
  position: absolute;
  z-index: 18;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
  /* Anchor: bottom-centre of label sits at the projected pin position, then nudged up so it floats above. */
  transform: translate(-50%, calc(-100% - 22px));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease;
}
.pin-label::after {
  /* Little tail pointing at the pin. */
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: rgba(8, 12, 22, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.pin-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ── Popup card ───────────────────────────────────────────────────────────── */

.popup {
  --accent: var(--gold-bright);
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 48px);
  transform: translateY(-50%);
  width: min(380px, calc(100% - 40px));
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 28px 26px 26px;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  z-index: 25;
}
.popup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, var(--accent), transparent 28%);
  opacity: 0.18;
  mix-blend-mode: screen;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
.popup--enter {
  animation: popupIn 0.45s ease-out both;
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-light);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.popup__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper);
}

.popup__year {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.popup__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--paper);
}

.popup__role {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted-light);
  font-weight: 500;
}

.popup__city {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.popup__summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--paper);
  line-height: 1.55;
  opacity: 0.92;
}

.popup__highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px;
}
.popup__highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted-light);
  line-height: 1.5;
}
.popup__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}

.popup__final {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
/* `display: flex` above overrides the user-agent `display: none` from the [hidden] attribute. */
.popup__final[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .popup {
    top: auto;
    bottom: 130px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: none;
    max-height: 50vh;
  }
  @keyframes popupIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Content (resume sections) — dark premium theme ───────────────────────── */

.content {
  position: relative;
  background: var(--bg);
  color: var(--paper);
  z-index: 2;
  /* Subtle radial glow at the top so the transition from the globe stage feels seamless. */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 165, 90, 0.07), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(74, 141, 255, 0.05), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.content::before {
  content: "";
  display: block;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--bg));
  margin-top: -100px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}
.section + .section {
  /* Slim top accent line that fades, gives a sense of progression between sections. */
  border-top: 1px solid transparent;
}
.section:last-of-type {
  border-bottom: 0;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid rgba(212, 165, 90, 0.45);
  background: rgba(212, 165, 90, 0.06);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.section__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--paper);
  max-width: 880px;
}
.section__title .accent {
  color: var(--gold-bright);
  font-style: italic;
}

.section__lede {
  font-size: 17px;
  color: var(--muted-light);
  max-width: 720px;
  line-height: 1.7;
  margin: 0;
}

/* ── Scroll-reveal animation ─────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: 0.05s;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Badges (About) ──────────────────────────────────────────────────────── */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--paper);
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.badge--accent {
  background: linear-gradient(135deg, var(--gold-bright), #e0a040);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(245, 194, 90, 0.5);
}

/* ── Stats highlight ─────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 4px 22px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  background: linear-gradient(180deg, var(--paper) 30%, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}
@media (max-width: 720px) {
  .stat {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    padding-bottom: 4px;
  }
  .stat:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* ── Principles ──────────────────────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.principle {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.principle:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 165, 90, 0.32);
  box-shadow: 0 22px 60px -28px rgba(212, 165, 90, 0.5);
}
.principle__index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.principle__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--paper);
}
.principle__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-light);
}

/* ── Skills ──────────────────────────────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.skill-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 165, 90, 0.3);
}
.skill-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 16px;
  font-weight: 500;
}
.skill-card__label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
}
.skill-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-card__list li {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--paper);
  letter-spacing: 0.005em;
}

/* ── Projects ────────────────────────────────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.project-card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card::before {
  /* Subtle gold sheen on the top border. */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 90, 0.55), transparent);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 165, 90, 0.32);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.7);
}
.project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.project-card__head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}
.project-card__platforms {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.project-card__blurb {
  margin: 0;
  font-size: 14.5px;
  color: var(--paper);
  line-height: 1.6;
  opacity: 0.92;
}
.project-card__role {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-light);
  line-height: 1.55;
}
.project-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--gold-bright);
  font-weight: 500;
  letter-spacing: 0.02em;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.project-card__link:hover {
  border-bottom-color: var(--gold-bright);
}

/* ── Certifications ──────────────────────────────────────────────────────── */

.cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.cert {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert:hover {
  transform: translateX(2px);
  border-left-color: var(--gold-bright);
}
.cert__name {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.cert__issuer {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.section--contact {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.contact .section__lede {
  margin-bottom: 32px;
}
.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__buttons .btn--primary {
  background: var(--gold-bright);
  color: var(--bg);
  box-shadow: 0 16px 40px -12px rgba(245, 194, 90, 0.55);
}
.contact__buttons .btn--primary:hover {
  background: #ffd270;
}
.contact__buttons .btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__buttons .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.contact__phone {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  padding: 28px clamp(20px, 5vw, 48px);
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.footer p {
  margin: 0;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ── Responsive tweaks ────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero {
    bottom: 90px;
  }
  .hud {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .spinner {
    animation: none;
  }
  .popup--enter {
    animation: none;
  }
}
