/* ============================================================
   SECTIONS — single-page continuous-scroll layout
   Cinematic vintage aesthetic. Extends the design system in main.css.
   ============================================================ */

/* ── Film grain + scanlines (fixed overlays above content) ── */
#filmGrain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 480;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: screen;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 479;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* ── Scrolling content sits above the fixed backdrop ── */
.content {
  position: relative;
  z-index: 10;
  /* keep the last content clear of the floating bottom nav */
  padding-bottom: 130px;
}

/* Attention accent — draws the eye to key numbers and highlights */
.pop {
  color: var(--pop);
  font-weight: 700;
}

/* ── Section label ── */
.section-label {
  text-align: center;
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  padding: 96px 0 52px;
  opacity: 0.85;
  scroll-margin-top: 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 140px;
}

/* Accent lines scoped to the hero (override fixed positioning from main.css) */
.hero .line { position: absolute; z-index: 0; }
.hero .line--top { top: 24%; }
.hero .line--bottom { bottom: 22%; }

.hero__eyebrow {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--pop);
  opacity: 0.85;
  margin-bottom: 1.6rem;
}

.hero__name {
  font-family: "IM Fell English", serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow:
    0 0 44px rgba(200, 169, 110, 0.22),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hero__char--space {
  display: block;
  width: 100%;
  height: 0;
}

.hero__title {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: var(--gold);
  letter-spacing: 0.22em;
  margin-top: 1.2rem;
  opacity: 0.85;
}

.hero__summary {
  max-width: 560px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(0.78rem, 1.15vw, 0.92rem);
  color: rgba(240, 232, 216, 0.74);
  line-height: 2;
  margin-top: 2.2rem;
  letter-spacing: 0.03em;
}

.hero__scroll {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-label {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
}

.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ============================================================
   TIMELINE (education + experience)
   ============================================================ */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.timeline__spine {
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200, 169, 110, 0.22) 6%,
    rgba(200, 169, 110, 0.22) 94%,
    transparent
  );
  pointer-events: none;
}

.tl-entry {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  margin-bottom: 68px;
  align-items: start;
}

.tl-entry--left .tl-card { grid-column: 1; padding-right: 28px; }
.tl-entry--left .tl-dot  { grid-column: 2; }

.tl-entry--right .tl-dot  { grid-column: 2; }
.tl-entry--right .tl-card { grid-column: 3; padding-left: 28px; }

.tl-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.tl-dot__circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--black);
  flex-shrink: 0;
  transform-origin: center;
}

.tl-entry--current .tl-dot__circle {
  background: var(--pop);
  box-shadow: 0 0 14px rgba(95, 194, 176, 0.6), 0 0 28px rgba(95, 194, 176, 0.22);
}

.tl-dot__year {
  position: absolute;
  top: 6px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  color: rgba(200, 169, 110, 0.65);
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}

.tl-entry--left  .tl-dot__year { left:  30px; }
.tl-entry--right .tl-dot__year { right: 30px; text-align: right; }

.tl-card {
  border: 1px solid rgba(200, 169, 110, 0.18);
  background: rgba(10, 7, 3, 0.72);
  backdrop-filter: blur(6px);
  padding: 20px 22px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.tl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(200, 169, 110, 0.012) 3px,
    rgba(200, 169, 110, 0.012) 4px
  );
  pointer-events: none;
}

.tl-entry--current .tl-card {
  border-color: rgba(95, 194, 176, 0.4);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.35),
    0 2px 16px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(95, 194, 176, 0.1);
}

.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid var(--pop);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 12px;
}

.tl-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pop);
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.tl-card__type {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.62);
  margin-bottom: 6px;
}

.tl-card__title {
  font-family: "IM Fell English", serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 5px;
}

.tl-card__org {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.72rem;
  color: rgba(200, 169, 110, 0.7);
  margin-bottom: 13px;
  letter-spacing: 0.04em;
}

.tl-card__bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-card__bullets li {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.76rem;
  color: rgba(240, 232, 216, 0.62);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.tl-card__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.3;
  font-size: 0.66rem;
  top: 1px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid rgba(200, 169, 110, 0.18);
  background: rgba(10, 7, 3, 0.72);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .project-card:hover {
    border-color: rgba(200, 169, 110, 0.4);
    transform: translateY(-4px);
    box-shadow:
      inset 0 0 30px rgba(0, 0, 0, 0.35),
      0 10px 28px rgba(0, 0, 0, 0.55),
      0 0 22px rgba(200, 169, 110, 0.08);
  }
}

.project-card__index {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--pop);
}

.project-card__title {
  font-family: "IM Fell English", serif;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.3;
}

.project-card__desc {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.78rem;
  color: rgba(240, 232, 216, 0.64);
  line-height: 1.8;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-card__tags span {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.62rem;
  padding: 3px 9px;
  border: 1px solid rgba(200, 169, 110, 0.2);
  color: rgba(200, 169, 110, 0.7);
  letter-spacing: 0.04em;
}

.project-card[role="button"] { cursor: pointer; }

.project-card__open {
  margin-top: 12px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(214, 184, 125, 0.12);
  color: var(--pop);
  font-family: "Courier Prime", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-card__open i {
  font-size: 0.85rem;
  font-style: normal;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .project-card:hover .project-card__open i { transform: translate(3px, -3px); }
}

.project-more {
  text-align: center;
  margin-top: 34px;
}

.project-more a {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-more a:hover {
  color: var(--pop);
  border-color: var(--pop);
}

/* ============================================================
   SKILLS / CERTIFICATIONS
   ============================================================ */
.skills-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill-tag {
  font-family: "Courier Prime", "Courier New", monospace;
  padding: 5px 14px;
  border: 1px solid rgba(200, 169, 110, 0.2);
  font-size: 0.7rem;
  color: rgba(240, 232, 216, 0.6);
  letter-spacing: 0.05em;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}

/* All skills pop on hover */
@media (hover: hover) {
  .skill-tag:hover {
    color: var(--pop);
    border-color: var(--pop);
    background: var(--pop-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(95, 194, 176, 0.16);
  }
}

.skill-tag:active { transform: translateY(0) scale(0.97); }

/* Certification chips are clickable buttons */
.skill-tag--cert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(10, 7, 3, 0.45);
  font: inherit;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.7rem;
}

.cert-status {
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid currentColor;
  margin-left: 6px;
}

.cert-status--done { color: var(--gold); }
.cert-status--wip  { color: var(--pop); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.contact__headline {
  font-family: "IM Fell English", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--cream);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 40px rgba(200, 169, 110, 0.18);
}

.contact__sub {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.8rem;
  color: rgba(240, 232, 216, 0.66);
  line-height: 1.9;
  margin-bottom: 2.2rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.contact__links a {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.7);
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid rgba(200, 169, 110, 0.25);
  background: rgba(10, 7, 3, 0.55);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact__links a:hover {
  color: var(--black);
  background: var(--pop);
  border-color: var(--pop);
}

.contact__loc {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.45);
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.3);
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 620px) {
  .timeline__spine { left: 15px; }

  .tl-entry {
    grid-template-columns: 32px 1fr;
    margin-bottom: 48px;
  }

  .tl-entry--left .tl-card,
  .tl-entry--right .tl-card {
    grid-column: 2;
    grid-row: 1;
    padding-left: 16px;
    padding-right: 0;
  }

  .tl-entry--left .tl-dot,
  .tl-entry--right .tl-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .tl-dot__year { display: none; }
  .tl-card__title { font-size: 0.9rem; }

  .section-label { padding: 72px 0 40px; }
}

/* ============================================================
   ANIMATION SUPPORT (GSAP enhancements)
   ============================================================ */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Per-character spans injected into the hero name by site.js */
.hero__char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Scroll-progress line along the top edge */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 600;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(200, 169, 110, 0) 0%, var(--gold) 55%, var(--pop) 100%);
  pointer-events: none;
  opacity: 0.75;
}

/* 3D tilt context for project cards (pointer-driven on desktop) */
.project-grid { perspective: 1000px; }
.project-card { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero__char { will-change: auto; }
}

/* ============================================================
   CERTIFICATION MODAL
   ============================================================ */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cert-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: rgba(14, 10, 5, 0.98);
  border: 1px solid rgba(200, 169, 110, 0.3);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  padding: 34px 30px 30px;
  position: relative;
}

/* Subtle film texture inside the panel */
.cert-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(200, 169, 110, 0.012) 3px, rgba(200, 169, 110, 0.012) 4px);
  pointer-events: none;
}

.cert-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(240, 232, 216, 0.5);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cert-modal__close:hover {
  color: var(--pop);
  transform: scale(1.1);
}

.cert-modal__status {
  display: inline-block;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid currentColor;
  margin-bottom: 14px;
}

.cert-modal__title {
  font-family: "IM Fell English", serif;
  font-size: 1.5rem;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 6px;
}

.cert-modal__issuer {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.72rem;
  color: rgba(200, 169, 110, 0.7);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.cert-modal__desc {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.78rem;
  color: rgba(240, 232, 216, 0.66);
  line-height: 1.85;
  margin-bottom: 20px;
}

.cert-modal__credential {
  margin-bottom: 22px;
  border: 1px solid rgba(214, 184, 125, 0.18);
  background: rgba(214, 184, 125, 0.035);
}

.cert-modal__credential > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 14px;
}

.cert-modal__credential > div + div { border-top: 1px solid rgba(214, 184, 125, 0.13); }

.cert-modal__credential span,
.cert-modal__credential strong {
  font-family: "Courier Prime", monospace;
  font-size: 0.66rem;
  line-height: 1.5;
}

.cert-modal__credential span {
  color: var(--pop);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-modal__credential strong { color: rgba(244, 237, 223, 0.7); font-weight: 400; }

.cert-modal__verify {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pop);
  color: var(--black);
  background: var(--pop);
  font-family: "Courier Prime", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-modal__verify:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(101, 214, 194, 0.18); }

.cert-modal__topics-label {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 12px;
}

.cert-modal__topics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cert-modal__topics li {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.74rem;
  color: rgba(240, 232, 216, 0.6);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.cert-modal__topics li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--pop);
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .cert-modal-overlay { transition: none; }
}

/* ============================================================
   PROJECT CASE-STUDY PREVIEW
   ============================================================ */
body.modal-open { overflow: hidden; }

/* Earned credentials and the next learning milestone. */
.skill-tag--cert.cert-earned,.skill-tag--cert.cert-learning { padding: 18px 22px; border-radius: 12px; gap: 14px; text-align: left; position: relative; overflow: hidden; }
.skill-tag--cert small { display: inline-block; margin-top: 6px; max-width: 240px; line-height: 1.5; font-size: .64rem; }
.skill-tag--cert.cert-earned { background: linear-gradient(120deg,#102f36,#163b55 60%,#332a46); border-color: #67d6c2; color: #eefcff; box-shadow: inset 0 1px rgba(255,255,255,.15); }
.cert-earned .cert-status { color: #8cf0cb; }
.cert-emblem { display: grid; place-items: center; width: 42px; height: 48px; flex-shrink: 0; background: linear-gradient(140deg,#54d5c0,#6686ff); color: white; font-size: 1.2rem; border-radius: 8px 8px 18px 18px; }
.cert-earned::after { content: ''; position: absolute; inset: -100% -50%; background: linear-gradient(110deg,transparent 43%,rgba(255,255,255,.24) 50%,transparent 57%); transform: translateX(-80%); pointer-events: none; }
.skill-tag--cert.cert-learning { filter: grayscale(1); color: #ddd; background: #181818; border-color: #777; }
.cert-learning .cert-emblem { background: #3a3a3a; }
.credential-proof { margin: 20px 0; padding: 18px; border: 1px solid var(--pop); background: rgba(101,214,194,.06); }
.credential-proof dt { color: var(--gold); font: .65rem 'Courier Prime',monospace; margin-top: 14px; }
.credential-proof dt:first-child { margin-top: 0; }
.credential-proof dd { color: var(--cream); font: .85rem/1.6 'Courier Prime',monospace; overflow-wrap: anywhere; user-select: all; }
.credential-note,.course-track { font: .72rem/1.7 'Courier Prime',monospace; color: #ccc; margin: 18px 0; }
.course-track { border: 1px solid #666; padding: 20px; }
.course-track progress { width: 100%; height: 12px; margin: 16px 0; accent-color: #ddd; }
.course-track ol { list-style: none; border-left: 1px solid #777; padding-left: 18px; }
.course-track li { padding: 9px 0; }
.cert-dialog-learning { filter: grayscale(1); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .skill-tag--cert.cert-earned:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 12px 32px rgba(101,214,194,.25); }
  .cert-earned:hover::after { transform: translateX(80%); transition: transform .85s ease; }
}
@media (max-width:480px) { .skill-tag--cert.cert-earned,.skill-tag--cert.cert-learning { width: 100%; padding: 14px; gap: 10px; } .skill-tag--cert .cert-status { margin-left: auto; } }
@media (prefers-reduced-motion:reduce) { .cert-earned,.cert-learning { transition: none!important; } }

.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 780;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 3, 2, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.project-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100svh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.85fr);
  overflow: auto;
  border: 1px solid rgba(214, 184, 125, 0.25);
  background: #080a08;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.75);
}

.project-modal__close {
  position: absolute;
  z-index: 12;
  top: 16px;
  right: 17px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(5, 7, 6, 0.72);
  font: 300 1.65rem/1 serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-modal__close:hover { color: var(--pop); border-color: var(--pop); transform: rotate(5deg); }

.project-modal__visual {
  min-height: 640px;
  padding: clamp(32px, 5vw, 62px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(101, 214, 194, 0.14), transparent 56%), #0b100e;
}

.project-modal__visual--recipe { background: radial-gradient(circle at 42% 40%, rgba(223, 171, 92, 0.2), transparent 55%), #15110b; }
.project-modal__visual--motionscope { background: radial-gradient(circle at 50% 40%, rgba(101, 214, 194, 0.19), transparent 55%), #07110f; }
.project-modal__visual--hrizons { background: radial-gradient(circle at 58% 35%, rgba(97, 131, 255, 0.2), transparent 55%), #080d1b; }
.project-modal__visual--automation { background: radial-gradient(circle at 50% 45%, rgba(105, 220, 145, 0.14), transparent 55%), #07100a; }

.preview-window {
  width: min(100%, 560px);
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 14px;
  background: rgba(8, 10, 8, 0.9);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.52), 0 0 55px rgba(101, 214, 194, 0.07);
  transform: perspective(1000px) rotateY(3deg) rotateX(1deg);
}

.preview-window__bar {
  height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(244, 237, 223, 0.1);
  color: rgba(244, 237, 223, 0.34);
  font-family: "Courier Prime", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.preview-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 237, 223, 0.2); }
.preview-window__bar span { margin-left: auto; }

.preview-recipe { height: calc(100% - 38px); display: grid; grid-template-columns: 28% 1fr; color: #f3e9d5; background: #17140f; }
.preview-recipe aside { padding: 28px 17px; display: flex; flex-direction: column; gap: 17px; background: #201a12; font: 0.58rem "Courier Prime", monospace; color: rgba(243,233,213,.5); }
.preview-recipe aside b { margin-bottom: 12px; color: #e0a84f; font: 1.2rem "IM Fell English", serif; }
.preview-recipe__main { padding: 40px 28px; }
.preview-recipe__main small { color: #e0a84f; font: 0.48rem "Courier Prime", monospace; letter-spacing: .16em; }
.preview-recipe__main h3 { margin: 10px 0 20px; font: 2rem "IM Fell English", serif; }
.preview-search { padding: 12px 13px; display: flex; justify-content: space-between; border: 1px solid rgba(224,168,79,.25); color: rgba(243,233,213,.48); font: .52rem "Courier Prime", monospace; }
.preview-search b { color: #e0a84f; }
.preview-recipe__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; }
.preview-recipe__cards i { aspect-ratio: .78; border-radius: 7px; background: linear-gradient(145deg, rgba(224,168,79,.28), rgba(255,255,255,.03)); }

.preview-motion { height: calc(100% - 38px); padding: 54px 38px; color: #edf8f6; background-image: linear-gradient(rgba(101,214,194,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(101,214,194,.04) 1px, transparent 1px); background-size: 28px 28px; }
.preview-motion small { color: var(--pop); font: .5rem "Courier Prime", monospace; letter-spacing: .2em; }
.preview-motion h3 { margin: 14px 0 26px; font: 2.2rem/1.02 "IM Fell English", serif; }
.preview-motion__input { padding: 8px 8px 8px 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(101,214,194,.24); color: rgba(237,248,246,.4); font: .52rem "Courier Prime", monospace; }
.preview-motion__input b { padding: 10px 12px; color: #06110f; background: var(--pop); }
.preview-motion__stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 38px; }
.preview-motion__stats span { display: flex; flex-direction: column; gap: 5px; color: rgba(237,248,246,.35); font: .47rem "Courier Prime", monospace; text-transform: uppercase; }
.preview-motion__stats strong { color: #edf8f6; font: 1.35rem "IM Fell English", serif; }

.preview-hrizons { position: relative; height: calc(100% - 38px); padding: 62px 40px; overflow: hidden; color: white; background: linear-gradient(135deg,#0c1637,#151b31 60%,#0b1025); }
.preview-hrizons small { color: #83a8ff; font: .5rem "Courier Prime", monospace; letter-spacing: .18em; }
.preview-hrizons h3 { position: relative; z-index: 2; margin: 14px 0 18px; font: 2.45rem/1 "IM Fell English", serif; }
.preview-hrizons p { position: relative; z-index: 2; max-width: 230px; color: rgba(255,255,255,.55); font: .58rem/1.6 "Courier Prime", monospace; }
.preview-hrizons > b { position: relative; z-index: 2; display: inline-block; margin-top: 24px; color: #83a8ff; font: .52rem "Courier Prime", monospace; }
.preview-hrizons__orbit { position: absolute; width: 270px; height: 270px; right: -80px; bottom: -55px; border: 1px solid rgba(131,168,255,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(131,168,255,.04),0 0 0 70px rgba(131,168,255,.025); }

.preview-terminal { height: calc(100% - 38px); padding: 58px 36px; color: rgba(220,255,231,.62); background: #07100a; font: .63rem/2 "Courier Prime", monospace; }
.preview-terminal em { color: #74df96; font-style: normal; }
.preview-terminal span { margin-right: 14px; color: rgba(116,223,150,.38); }
.preview-terminal .success { margin-top: 24px; color: #74df96; }
.preview-terminal__meter { height: 4px; margin-top: 28px; background: rgba(116,223,150,.1); }
.preview-terminal__meter i { display: block; width: 88%; height: 100%; background: #74df96; box-shadow: 0 0 16px rgba(116,223,150,.5); }

.project-modal__details { padding: clamp(64px, 7vw, 92px) clamp(34px, 5vw, 62px) 48px; }
.project-modal__eyebrow { display: flex; justify-content: space-between; gap: 20px; color: var(--pop); font: .6rem "Courier Prime", monospace; letter-spacing: .14em; text-transform: uppercase; }
.project-modal__details h2 { margin: 24px 0 16px; color: var(--cream); font: clamp(2.5rem,4.6vw,4.5rem)/.96 "IM Fell English", serif; letter-spacing: -.035em; }
.project-modal__summary { color: rgba(244,237,223,.62); font: .78rem/1.78 "Courier Prime", monospace; }
.project-modal__meta { display: grid; grid-template-columns: repeat(3,1fr); margin: 28px 0; border-block: 1px solid rgba(214,184,125,.16); }
.project-modal__meta div { padding: 13px 8px 13px 0; display: flex; flex-direction: column; gap: 6px; }
.project-modal__meta span,.project-modal__label { color: rgba(214,184,125,.55); font: .51rem "Courier Prime", monospace; letter-spacing: .13em; text-transform: uppercase; }
.project-modal__meta strong { color: var(--cream); font: .64rem "Courier Prime", monospace; }
.project-modal__section ul { margin: 13px 0 0; padding: 0; list-style: none; }
.project-modal__section li { position: relative; padding: 5px 0 5px 17px; color: rgba(244,237,223,.58); font: .7rem/1.55 "Courier Prime", monospace; }
.project-modal__section li::before { content: '—'; position: absolute; left: 0; color: var(--pop); }
.project-modal__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.project-modal__stack span { padding: 5px 10px; border: 1px solid rgba(214,184,125,.18); border-radius: 999px; color: rgba(214,184,125,.7); font: .55rem "Courier Prime", monospace; }
.project-modal__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.project-modal__actions .button { cursor: pointer; }
.project-modal__note { margin-top: 14px; color: rgba(244,237,223,.34); font: .57rem/1.5 "Courier Prime", monospace; }

@media (max-width: 860px) {
  .project-modal-overlay { padding: 0; }
  .project-modal { width: 100%; height: 100svh; max-height: none; grid-template-columns: 1fr; }
  .project-modal__visual { min-height: 58svh; }
  .project-modal__details { padding-top: 50px; }
}

@media (max-width: 520px) {
  .project-modal__visual { min-height: 48svh; padding: 54px 18px 24px; }
  .preview-window { transform: none; }
  .preview-motion,.preview-hrizons { padding: 42px 25px; }
  .preview-recipe__main { padding: 28px 18px; }
  .preview-recipe aside { padding: 22px 11px; }
  .project-modal__meta { grid-template-columns: 1fr; }
  .project-modal__meta div + div { border-top: 1px solid rgba(214,184,125,.1); }
  .project-modal__actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .project-modal-overlay { transition: none; }
}

/* ============================================================
   2026 VISUAL REFRESH — editorial cinema
   ============================================================ */
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(214, 184, 125, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 184, 125, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black 0, transparent 72%);
  mask-image: radial-gradient(circle at 50% 20%, black 0, transparent 72%);
}

.ambient-orb {
  position: fixed;
  z-index: 1;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.08;
}

.ambient-orb--gold { top: -20vw; right: -12vw; background: var(--gold); }
.ambient-orb--teal { bottom: 4vh; left: -24vw; background: var(--pop); opacity: 0.055; }

.vignette {
  background: radial-gradient(ellipse 90% 80% at 50% 34%, transparent 25%, rgba(0, 0, 0, 0.88) 100%);
}

.content { overflow: clip; }

.section-label {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  opacity: 1;
}

.section-label span {
  font-family: "Courier Prime", monospace;
  font-size: 0.64rem;
  color: var(--pop);
  letter-spacing: 0.22em;
  transform: translateY(2px);
}

.section-label::after {
  content: '';
  height: 1px;
  flex: 1;
  margin-left: 12px;
  background: linear-gradient(90deg, var(--hairline), transparent);
}

/* Hero */
.hero {
  min-height: 100svh;
  padding: 80px 32px 118px;
  text-align: left;
}

.hero .line { width: min(1120px, 82vw); opacity: 0.4; }
.hero .line--top { top: 9%; }
.hero .line--bottom { bottom: 9%; }

.hero__inner {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}

.hero__copy { position: relative; z-index: 2; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.34em;
}

.hero__eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--pop);
  box-shadow: 0 0 12px rgba(101, 214, 194, 0.7);
}

.hero__name {
  max-width: 720px;
  font-size: clamp(4.4rem, 9vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), 0 0 55px rgba(214, 184, 125, 0.12);
}

.hero__title {
  max-width: 590px;
  margin-top: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.hero__summary {
  max-width: 570px;
  margin-top: 1.35rem;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--hairline);
  color: var(--cream);
  font-family: "Courier Prime", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button--primary { color: var(--black); background: var(--pop); border-color: var(--pop); }
.button--ghost { background: rgba(5, 7, 6, 0.45); }

@media (hover: hover) {
  .button:hover { transform: translateY(-3px); }
  .button--primary:hover { box-shadow: 0 12px 30px rgba(101, 214, 194, 0.2); }
  .button--ghost:hover { color: var(--gold); border-color: rgba(214, 184, 125, 0.55); }
}

.hero__visual {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
}

.hero__portrait-halo {
  position: absolute;
  inset: 7% -12% -5% 8%;
  border-radius: 48%;
  background: radial-gradient(circle at 55% 45%, rgba(101, 214, 194, 0.18), rgba(214, 184, 125, 0.08) 42%, transparent 70%);
  filter: blur(28px);
}

.hero__portrait-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.15;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 184, 125, 0.38);
  background: #111;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.58), -20px 22px 65px rgba(101, 214, 194, 0.06);
}

.hero__portrait-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(244, 237, 223, 0.22);
  pointer-events: none;
}

.hero__portrait-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,6,0.08) 45%, rgba(5,7,6,0.86) 100%);
  pointer-events: none;
}

.hero__portrait-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(0.82) contrast(1.08) sepia(0.05);
  transform: scale(1.035);
}

.hero__portrait-caption {
  position: absolute;
  z-index: 3;
  right: 27px;
  bottom: 24px;
  left: 27px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: "Courier Prime", monospace;
  font-size: 0.57rem;
  color: rgba(244, 237, 223, 0.72);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__portrait-action {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--black);
  background: rgba(101, 214, 194, 0.88);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.hero__portrait-action strong {
  font-family: "IM Fell English", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
}

.hero__portrait-action small {
  font-family: "Courier Prime", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .hero__portrait-card:hover .hero__portrait-action,
  .hero__portrait-card:focus-visible .hero__portrait-action {
    opacity: 1;
    transform: scale(1);
  }

  .hero__portrait-card:hover img { transform: scale(1.08); }
}

.hero__portrait-card img { transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }

.hero__status {
  position: absolute;
  z-index: 4;
  top: 11%;
  left: -38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(101, 214, 194, 0.32);
  background: rgba(5, 7, 6, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--pop);
  font-family: "Courier Prime", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.hero__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 12px var(--pop);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero__monogram {
  position: absolute;
  right: -28px;
  bottom: -24px;
  z-index: 4;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 184, 125, 0.35);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-family: "IM Fell English", serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.hero__proof {
  width: min(1120px, 100%);
  margin-top: 58px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}

.hero__proof > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-right: 24px;
}

.hero__proof > div + div { padding-left: 24px; border-left: 1px solid var(--hairline); }

.hero__proof strong {
  color: var(--cream);
  font-family: "IM Fell English", serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 400;
}

.hero__proof span {
  color: rgba(244, 237, 223, 0.48);
  font-family: "Courier Prime", monospace;
  font-size: 0.57rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__scroll { left: auto; right: 30px; transform: none; }

/* Timelines */
.timeline { max-width: 1040px; }
.tl-entry { grid-template-columns: 1fr 82px 1fr; margin-bottom: 78px; }
.tl-entry--left .tl-card { padding-right: 28px; }
.tl-entry--right .tl-card { padding-left: 28px; }
.tl-entry--left .tl-dot__year { left: 48px; }
.tl-entry--right .tl-dot__year { right: 48px; }

.tl-card,
.project-card {
  background: linear-gradient(145deg, rgba(18, 18, 14, 0.88), rgba(8, 9, 7, 0.78));
  border-color: var(--hairline);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tl-card { padding-top: 24px; padding-bottom: 24px; }
.tl-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 22px;
  width: 42px;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
}

.tl-card__title { font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.tl-card__bullets li { font-size: 0.78rem; }

/* Projects */
.project-grid {
  max-width: 1080px;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  grid-column: span 6;
  min-height: 280px;
  padding: 34px 32px;
  overflow: hidden;
  isolation: isolate;
}

.project-card:nth-child(1),
.project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(2),
.project-card:nth-child(3) { grid-column: span 5; }

.project-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 214, 194, 0.13), transparent 68%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 7px;
  color: rgba(214, 184, 125, 0.025);
  font-family: "IM Fell English", serif;
  font-size: 7rem;
}

.project-card:nth-child(1)::after { content: '01'; }
.project-card:nth-child(2)::after { content: '02'; }
.project-card:nth-child(3)::after { content: '03'; }
.project-card:nth-child(4)::after { content: '04'; }

@media (hover: hover) {
  .project-card:hover::before { transform: scale(1.55); }
  .project-card:hover .project-card__title { color: var(--pop); }
}

.project-card__index { font-size: 0.62rem; }
.project-card__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); transition: color 0.3s ease; }
.project-card__desc { font-size: 0.8rem; max-width: 52ch; }
.project-card__tags span { border-radius: 999px; background: rgba(214, 184, 125, 0.035); }
.project-more { margin-top: 44px; }

/* Skills */
.skills-section { max-width: 1040px; }
.skills-grid { gap: 10px; }
.skill-tag { padding: 9px 16px; border-radius: 999px; background: rgba(14, 15, 12, 0.45); }

/* Contact */
.contact {
  max-width: 1080px;
  margin-top: 120px;
  padding: 0 48px 78px;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 85% 20%, rgba(101, 214, 194, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(18, 18, 14, 0.84), rgba(7, 8, 6, 0.72));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.35);
}

.contact .section-label { width: 100%; padding-top: 48px; padding-bottom: 58px; }
.contact__eyebrow {
  margin-bottom: 12px;
  color: var(--pop);
  font-family: "Courier Prime", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact__headline { font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: 0.95; letter-spacing: -0.035em; }
.contact__headline em { color: var(--gold); font-weight: 400; }
.contact__sub { max-width: 620px; margin: 1.4rem auto 2.4rem; font-size: 0.84rem; }
.contact__links a { min-width: 116px; }

.site-footer {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr); gap: 48px; }
  .hero__name { font-size: clamp(4rem, 10vw, 6.5rem); }
  .hero__visual { width: min(100%, 330px); }
  .hero__status { left: -22px; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 112px 24px 100px; }
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero__copy { text-align: left; }
  .hero__name { font-size: clamp(4.3rem, 20vw, 7rem); }
  .hero__visual { width: min(86vw, 390px); justify-self: center; align-self: center; }
  .hero__status { left: -12px; }
  .hero__monogram { right: -12px; }
  .hero__proof { margin-top: 72px; grid-template-columns: 1fr; }
  .hero__proof > div { padding: 13px 0; }
  .hero__proof > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .hero__scroll { display: none; }
  .section-label { padding-top: 100px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card:nth-child(1), .project-card:nth-child(2),
  .project-card:nth-child(3), .project-card:nth-child(4) { grid-column: 1; min-height: 0; }
  .contact { width: calc(100% - 32px); margin-top: 96px; padding: 0 22px 58px; }
  .contact .section-label { width: 100%; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 620px) {
  .timeline__spine { left: 39px; }
  .tl-entry { grid-template-columns: 32px 1fr; }
  .tl-card { padding: 22px 20px !important; }
}

@media (max-width: 480px) {
  .hero { padding-right: 20px; padding-left: 20px; }
  .hero__name { font-size: clamp(3.8rem, 19vw, 5rem); }
  .hero__title { font-size: 1.12rem; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .hero__portrait-caption { right: 22px; left: 22px; }
  .section-label { width: calc(100% - 40px); font-size: 2rem; gap: 12px; }
  .section-label::after { margin-left: 4px; }
  .project-grid, .timeline, .skills-section { padding-right: 20px; padding-left: 20px; }
  .project-card { padding: 28px 24px; }
  .contact__links { display: grid; grid-template-columns: 1fr 1fr; }
  .contact__links a { padding: 12px 10px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__status i { animation: none; }
  .ambient-orb { display: none; }
}

/* ============================================================
   PERSONAL PHOTO REEL
   ============================================================ */
body.gallery-open { overflow: hidden; }

.photo-gallery {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 4, 3, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.photo-gallery.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.photo-gallery__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100svh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  overflow: auto;
  border: 1px solid rgba(214, 184, 125, 0.28);
  background:
    radial-gradient(circle at 90% 10%, rgba(101, 214, 194, 0.09), transparent 30%),
    #080a08;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.75);
  transform: translateY(22px) scale(0.985);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}

.photo-gallery.open .photo-gallery__dialog { transform: translateY(0) scale(1); }

.photo-gallery__close {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(5, 7, 6, 0.68);
  font: 300 1.65rem/1 serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.photo-gallery__close:hover { color: var(--pop); border-color: var(--pop); transform: rotate(5deg); }

.photo-gallery__stage {
  position: relative;
  min-height: min(720px, calc(100svh - 58px));
  overflow: hidden;
  background: #111;
}

.photo-gallery__image-wrap { position: absolute; inset: 0; overflow: hidden; }

.photo-gallery__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 4, 3, 0.72));
  pointer-events: none;
}

.photo-gallery__image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(1.04);
  transition: opacity 0.18s ease, transform 0.75s cubic-bezier(.2,.7,.2,1), object-position 0.75s ease;
}

.photo-gallery__image-wrap img.is-switching { opacity: 0; transform: scale(1.08); }

.photo-gallery__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.08) 3px 4px);
}

.photo-gallery__stamp {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 23px;
  color: rgba(244, 237, 223, 0.76);
  font-family: "Courier Prime", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.photo-gallery__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(5, 7, 6, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 1.15rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.photo-gallery__arrow:hover { color: var(--black); border-color: var(--pop); background: var(--pop); }
.photo-gallery__arrow--prev { left: 18px; }
.photo-gallery__arrow--next { right: 18px; }

.photo-gallery__copy {
  padding: clamp(64px, 8vw, 100px) clamp(32px, 5vw, 64px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-gallery__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  color: var(--pop);
  font-family: "Courier Prime", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-gallery__copy h2 {
  margin: 32px 0 18px;
  color: var(--cream);
  font-family: "IM Fell English", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.photo-gallery__copy p {
  color: rgba(244, 237, 223, 0.62);
  font-family: "Courier Prime", monospace;
  font-size: 0.79rem;
  line-height: 1.85;
}

.photo-gallery__dots {
  display: flex;
  gap: 9px;
  margin-top: 38px;
}

.photo-gallery__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(244, 237, 223, 0.16);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.photo-gallery__dot.active { width: 58px; background: var(--pop); }

@media (max-width: 760px) {
  .photo-gallery { padding: 0; }
  .photo-gallery__dialog {
    width: 100%;
    height: 100svh;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(48svh, 1fr) auto;
    border: 0;
  }
  .photo-gallery__stage { min-height: 0; }
  .photo-gallery__copy { padding: 32px 26px 30px; }
  .photo-gallery__copy h2 { margin: 20px 0 12px; font-size: 2.65rem; }
  .photo-gallery__dots { margin-top: 22px; }
  .photo-gallery__close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-gallery,
  .photo-gallery__dialog,
  .photo-gallery__image-wrap img,
  .hero__portrait-action { transition: none; }
}
