:root {
  --fg: #111111;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --border: #ececec;
  --dark: #0a0a0a;
  --dark-muted: #8a8a8a;
  --accent: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

/* Page-exit zoom, like a route transition, when jumping into the "My
   works" stack section. */
html.page-exit body {
  transform: scale(0.94);
  opacity: 0;
}

a {
  color: inherit;
}

/* ---------- top bar (sticky on every section) ---------- */

header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  z-index: 100;
  font-size: 14px;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

header.topbar a {
  text-decoration: none;
  pointer-events: auto;
}

header.topbar .name {
  font-weight: 500;
  position: relative;
  display: inline-grid;
}

header.topbar .name-full,
header.topbar .name-short {
  grid-area: 1 / 1;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

header.topbar .name-short {
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}

header.topbar .name-full {
  opacity: 1;
  filter: blur(0);
}

header.topbar.is-scrolled .name-full {
  opacity: 0;
  filter: blur(4px);
}

header.topbar.is-scrolled .name-short {
  opacity: 1;
  filter: blur(0);
}

header.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

header.topbar .contact-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Top-right expandable pill nav */
header.topbar .tabnav {
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
  mix-blend-mode: normal;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.25), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* Hamburger button */
header.topbar .tabnav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

header.topbar .tabnav-hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

header.topbar .tabnav-ham-icon {
  width: 18px;
  height: 18px;
}

/* Hamburger → X animation */
header.topbar .ham-line {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
}

header.topbar .tabnav.is-open .ham-line-1 {
  transform: translateY(5px) rotate(45deg);
}
header.topbar .tabnav.is-open .ham-line-2 {
  opacity: 0;
  transform: scaleX(0);
}
header.topbar .tabnav.is-open .ham-line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hidden nav items — collapse to zero width, reveal on .is-open */
header.topbar .tabnav-expandable {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

header.topbar .tabnav.is-open .tabnav-expandable {
  max-width: 480px;
  opacity: 1;
}

header.topbar .tabnav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header.topbar .tabnav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Labels hidden by default on expandable items; Contact always shows its label */
header.topbar .tabnav-label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-4px);
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Contact label shows on hover only (same as other items) */

header.topbar .tabnav-item:hover,
header.topbar .tabnav-item.is-active {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

header.topbar .tabnav-item:hover .tabnav-label {
  max-width: 80px;
  opacity: 1;
  transform: translateX(0);
}

header.topbar .tabnav-sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  header.topbar {
    padding: 20px 22px;
    font-size: 13px;
  }

  header.topbar .tabnav-item {
    padding: 0 9px;
  }

  header.topbar .tabnav-item:hover .tabnav-label,
  header.topbar .tabnav-item:focus-visible .tabnav-label,
  header.topbar .tabnav-item.is-active .tabnav-label {
    max-width: 64px;
  }
}

/* ---------- generic section ---------- */

section {
  position: relative;
  padding: 140px 40px;
  overflow: hidden;
}

@media (max-width: 700px) {
  section {
    padding: 100px 22px;
  }
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  background: var(--dark);
  color: #f4f4f2;
  min-height: 240vh;
  position: relative;
  padding: 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: -40vh;
  left: 50%;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle, #ffffff 0%, #ffb347 28%, #5a2e00 55%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  transform: translate(-50%, 0) scale(var(--glow-scale, 0.25));
  opacity: var(--glow-opacity, 0);
  transition: transform 0.2s linear, opacity 0.2s linear;
  will-change: transform, opacity;
  z-index: 0;
}

.hero-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  background: #ffffff;
  opacity: var(--fade-opacity, 0);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s linear;
}

/* Corgis running back and forth across the hero, Colab-loading-style. */
.corgi-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.corgi {
  position: absolute;
  width: 52px;
  height: 33px;
  will-change: transform, left;
}

.corgi--ltr {
  left: -80px;
}

.corgi--rtl {
  left: 100%;
}

.corgi-svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: corgi-bob 0.5s ease-in-out infinite;
}

.corgi--rtl .corgi-svg {
  animation-name: corgi-bob-rtl;
}

/* Resting pose: stop mid-stride animations and settle down into a lying-down
   pose instead of freezing mid-step. The body settles slightly toward the
   ground and the legs tuck up underneath it (rather than squashing the
   whole SVG, which distorted the head/ears). */
.corgi.is-paused .corgi-svg {
  animation: none;
  transform: translateY(4px);
  transition: transform 0.35s ease-out;
}

.corgi--rtl.is-paused .corgi-svg {
  transform: translateY(4px) scaleX(-1);
}

/* Legs shrink upward from where they meet the belly, so they stay attached
   to the body as short tucked-in stubs instead of swinging away from it. */
.corgi.is-paused .leg {
  animation: none;
  transform-origin: top center;
  transform: scaleY(0.35);
  transition: transform 0.35s ease-out;
}

/* Running legs: a single rect per leg, swinging back and forth and lifting
   slightly off the ground mid-stride for a simple walking step. Diagonal
   leg pairs (leg-a / leg-b) are offset by half a cycle. */
.leg {
  transform-box: fill-box;
  transform-origin: top center;
  animation: walk-leg 0.5s ease-in-out infinite;
}

.leg-b {
  animation-delay: -0.25s;
}

@keyframes corgi-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes corgi-bob-rtl {
  0%, 100% { transform: translateY(0) scaleX(-1); }
  50% { transform: translateY(-2px) scaleX(-1); }
}

@keyframes walk-leg {
  0%   { transform: rotate(26deg); }
  25%  { transform: rotate(0deg) translateY(-2.5px) scaleY(0.9); }
  50%  { transform: rotate(-26deg); }
  75%  { transform: rotate(0deg); }
  100% { transform: rotate(26deg); }
}

/* Color variants — different breeds/colorways for the running pups. */
.corgi--sable .p-main    { fill: #e8985a; }
.corgi--sable .p-light   { fill: #fdf3e7; }
.corgi--sable .p-accent  { fill: #fbd2ad; }

.corgi--tricolor .p-main   { fill: #3a3a3a; }
.corgi--tricolor .p-light  { fill: #fdf3e7; }
.corgi--tricolor .p-accent { fill: #c97f3a; }

.corgi--merle .p-main    { fill: #a7b2c2; }
.corgi--merle .p-light   { fill: #f5f7fa; }
.corgi--merle .p-accent  { fill: #7e8a9c; }

.corgi--cream .p-main    { fill: #f0d9b5; }
.corgi--cream .p-light   { fill: #fffaf0; }
.corgi--cream .p-accent  { fill: #e0bd8c; }

.scroll-hint {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  color: #f4f4f2;
  opacity: 1;
  transition: color 0.3s linear, opacity 0.4s ease;
}

.scroll-hint svg {
  display: block;
}

.hero-bottom {
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 40px;
  z-index: 2;
  opacity: var(--content-opacity, 1);
  transition: opacity 0.2s linear;
}

.hero-bottom .tagline {
  font-size: 15px;
  color: #cfcfca;
  margin-bottom: 22px;
}

.hero-bottom hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  max-width: 480px;
  margin: 0 auto 22px;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #b8b8b3;
}

.hero-social a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.hero-social a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .hero-social {
    gap: 18px;
  }
}

.hero-info {
  position: fixed;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 13px;
  color: #7a7a76;
  z-index: 2;
  opacity: var(--content-opacity, 1);
  transition: opacity 0.2s linear;
}

.hero-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-icon {
  font-size: 14px;
  filter: grayscale(1);
  opacity: 0.8;
}

@media (max-width: 700px) {
  .hero-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    bottom: 16px;
  }
}

/* ============================================================
   2. INTRO + FLOATING CARDS
   ============================================================ */

.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.intro .section-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 0 0 8px;
  line-height: 1.35;
}

.intro p {
  color: #555;
  max-width: 380px;
  margin: 0 auto;
  font-size: 13px;
}

.float-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  perspective: 1800px;
}

.float-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.22),
              0 10px 24px -12px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(0.18) rotate(var(--rot, 0deg));
  animation:
    floatMove var(--cycle-duration, 14s) linear infinite var(--cycle-delay, 0s),
    floatFade var(--cycle-duration, 14s) ease-in-out infinite var(--cycle-delay, 0s);
}

/* Continuous linear sweep: card travels from the field center straight
   through its resting spot and on past it, growing the whole way — no
   pause at the "resting" point, so motion never appears to stop.
   A fixed per-card tilt (--rot) keeps it rotated like a scattered
   mockup collage throughout the travel. */
@keyframes floatMove {
  0% {
    transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(0.18) rotate(var(--rot, 0deg));
  }
  100% {
    transform: translate(calc(var(--from-x, 0) * -0.4), calc(var(--from-y, 0) * -0.4)) scale(1.18) rotate(var(--rot, 0deg));
  }
}

/* Fades in shortly after launch and out shortly before the loop restarts,
   independent of the (always-moving) transform above. */
@keyframes floatFade {
  0%, 100% { opacity: 0; }
  18%, 78% { opacity: 1; }
}

.float-card-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.float-card--ai .float-card-icon,
.float-card--asb .float-card-icon {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(26, 26, 26, 0.65);
}

.float-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 65%, transparent 100%);
}

.float-card-label span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}


/* visual "screenshots" — CSS-only stand-ins for project imagery */
.float-card--vex {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px),
    linear-gradient(145deg, #2b2b2b, #0f0f0f);
}

.float-card--ai {
  background:
    radial-gradient(circle at 25% 20%, rgba(224, 95, 113, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(106, 138, 224, 0.3) 0%, transparent 50%),
    linear-gradient(160deg, #fdf6ee 0%, #f4eee6 100%);
}

.float-card--art {
  background: linear-gradient(160deg, #d9694f 0%, #e8a36b 55%, #f2d6b3 100%);
}

.float-card--ball {
  background:
    radial-gradient(circle at 75% 30%, rgba(224,118,46,0.4) 0%, transparent 35%),
    linear-gradient(160deg, #2e2e2e, #3f3f3f);
}

.float-card--asb {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #f7f5f1, #ece8e1);
}

.float-card--cyber {
  background:
    repeating-linear-gradient(180deg, rgba(120,255,170,0.1) 0 1px, transparent 1px 16px),
    linear-gradient(160deg, #10241c, #060a08);
}

.float-card--lift {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #3a3a3a, #1c1c1c);
}

.float-card--violin {
  background: linear-gradient(150deg, #6b3a1f 0%, #a9683a 55%, #d9a36b 100%);
}

/* hand-placed positions + sizes, desktop, plus the offset each card
   travels from (roughly the field center) to reach its resting spot */
.float-card--vex    { top: 8%;   left: 6%;   width: 220px; height: 220px; --from-x: calc(44vw - 110px); --from-y: calc(42vh - 110px); --cycle-duration: 16s; --cycle-delay: 0s; --rot: -6deg; }
.float-card--ai     { top: 6%;   right: 14%; width: 160px; height: 160px; --from-x: calc(-36vw + 80px); --from-y: calc(44vh - 80px); --cycle-duration: 14s; --cycle-delay: 2.5s; --rot: 5deg; }
.float-card--art    { top: 46%;  left: 3%;   width: 200px; height: 200px; --from-x: calc(47vw - 100px); --from-y: calc(4vh - 100px); --cycle-duration: 18s; --cycle-delay: 5s; --rot: 4deg; }
.float-card--ball   { bottom: 16%; right: 8%; width: 150px; height: 150px; --from-x: calc(-42vw + 75px); --from-y: calc(-34vh + 75px); --cycle-duration: 15s; --cycle-delay: 7.5s; --rot: -8deg; }
.float-card--asb    { top: 40%;  left: 36%;  width: 120px; height: 120px; --from-x: calc(14vw - 60px); --from-y: calc(10vh - 60px); --cycle-duration: 13s; --cycle-delay: 1.2s; --rot: 7deg; }
.float-card--cyber  { bottom: 8%; left: 38%;  width: 170px; height: 170px; --from-x: calc(12vw - 85px); --from-y: calc(-42vh + 85px); --cycle-duration: 17s; --cycle-delay: 4s; --rot: -5deg; }
.float-card--lift   { top: 25%;  left: 46%;  width: 120px; height: 120px; --from-x: calc(4vw - 60px); --from-y: calc(25vh - 60px); --cycle-duration: 12s; --cycle-delay: 6.2s; --rot: 3deg; }
.float-card--violin { bottom: 30%; right: 30%; width: 130px; height: 130px; --from-x: calc(-20vw + 65px); --from-y: calc(-20vh + 65px); --cycle-duration: 19s; --cycle-delay: 8.7s; --rot: -4deg; }

.float-card--ai .float-card-label,
.float-card--asb .float-card-label {
  color: #1a1a1a;
  background: linear-gradient(to top, rgba(255,255,255,0.85), transparent);
}

.float-card--ai .float-card-label span,
.float-card--asb .float-card-label span {
  color: rgba(26, 26, 26, 0.6);
}

@media (max-width: 900px) {
  .float-field {
    display: none;
  }
}

/* ============================================================
   2b. SELECTED WORKS DIVIDER
   ============================================================ */

.selected-works {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  padding: 64px 40px 0;
}

.selected-works-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.selected-works-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shimmer-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--fg) 0%, var(--muted) 50%, var(--fg) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerMove 3.5s linear infinite, shimmerSpacing 3.5s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes shimmerSpacing {
  0%, 100% { letter-spacing: 0; }
  50% { letter-spacing: 0.04em; }
}

.arrow-down {
  display: inline-block;
  animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.selected-works-timer {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .selected-works {
    padding: 40px 22px 0;
  }
}

/* ============================================================
   3. STICKY ACTIVITY STACK
   ============================================================ */

.stack-section {
  height: calc(var(--stack-count, 6) * 100vh);
  padding: 0;
  overflow: visible;
}

.stack {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.stack-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
}

.stack-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 0;
  opacity: var(--intro-opacity, 1);
  transform: scale(var(--intro-scale, 1));
}

.stack-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}

.intro-word {
  transform: translateX(var(--intro-word-x, 0));
}

.intro-word-left {
  --intro-word-x: calc(-1 * var(--intro-split, 0px));
}

.intro-word-right {
  --intro-word-x: var(--intro-split, 0px);
}

.intro-cycle {
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  vertical-align: bottom;
}

.intro-cycle-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro-cycle-track span {
  height: 1.3em;
  line-height: 1.3em;
  display: block;
}

.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(380px, calc(100% - 80px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: var(--p, 0);
  transform-origin: center top;
  transform: translateX(-50%) translateY(calc(-50% + var(--ty, 100vh))) translateX(var(--tx, 0px)) translateZ(var(--tz, 0px)) scale(var(--scale, 1)) rotateX(var(--rx, 0deg));
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.stack-card .stack-tag {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
}

.stack-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 24px;
  margin: 0 0 10px;
}

.stack-card p {
  color: #444;
  margin: 0 0 8px;
}

.stack-card .stack-date {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 700px) {
  .stack-card {
    padding: 28px 22px;
  }
}

/* ============================================================
   4. WHY ME
   ============================================================ */

.why .section-inner {
  text-align: center;
}

.why h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 24px;
}

.why p {
  color: #444;
  font-size: 17px;
}

/* ============================================================
   5. HOW I LEAD (stages)
   ============================================================ */

.stages h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 56px;
}

.stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.stage:last-child {
  border-bottom: 1px solid var(--border);
}

.stage .stage-num {
  color: var(--muted);
  font-size: 14px;
}

.stage h3 {
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 17px;
}

.stage p {
  margin: 0;
  color: #555;
}

/* ============================================================
   6. MY STORY
   ============================================================ */

.story h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 48px;
}

.story p {
  color: #444;
  margin: 0 0 22px;
}

.story-avatar {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 44px;
  margin: 12px auto 0;
  filter: grayscale(1);
}

/* ============================================================
   7. FOOTER
   ============================================================ */

footer.site-footer {
  background: var(--bg);
  padding: 100vh 40px 60px;
}

.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px 24px;
}

.footer-label {
  font-size: 14px;
  color: var(--muted);
  padding-top: 2px;
}

.footer-col .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 15px;
  flex-wrap: wrap;
}

.footer-col .row .right {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.footer-col .group-title {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 18px 0 4px;
}

.footer-col .group-title:first-child {
  margin-top: 0;
}

.footer-col ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 14px;
}

.footer-tags .tag {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 6px 6px 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .footer-label {
    margin-top: 22px;
  }
}

/* ============================================================
   5. AWARDS TIMELINE (scroll-driven horizontal conveyor belt)
   ============================================================ */

/* Override generic section rules — overflow:visible is required so
   position:sticky inside works correctly (overflow:hidden on an ancestor
   breaks sticky). */
.awards-section {
  overflow: visible;
  padding: 0;
  margin-top: 70vh;
  background: #fff;
  color: var(--fg);
}

/* The sticky panel fills exactly one viewport height and stays pinned
   while the outer section scrolls past it, creating the "extra scroll
   room" that JS converts into horizontal movement. */
.awards-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

/* Header + hint removed — timeline is now a pure divider strip */
.awards-header,
.awards-hint { display: none; }

/* Belt: full-height horizontal window, cards stretch edge-to-edge */
.awards-belt {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 28px 48px;
  box-sizing: border-box;
}

/* Track: the full double-length strip that slides horizontally.
   width: max-content prevents the belt's flex algorithm from
   shrinking the track down to belt-width, which would make
   scrollWidth return ~belt-width instead of the real content width. */
.awards-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

/* One set of 13 cards. */
.awards-set {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
  align-items: stretch;
}

/* Individual award card — taller, wider, with visual icon area */
.award-card {
  width: 290px;
  height: 380px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.1);
  border-top-width: 3px;
  padding: 18px 16px 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.award-card:hover {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .award-card { transition: none; }
  .award-card:hover { transform: none; box-shadow: none; }
}

/* ── Category colour tokens ── */

/* VEX Robotics — electric blue */
.award-card--vex {
  border-color: rgba(34, 85, 204, 0.3);
  border-top-color: #2255cc;
}
.award-card--vex:hover { box-shadow: 0 10px 32px rgba(34, 85, 204, 0.2); }
.award-card--vex .award-cat { color: rgba(34, 85, 204, 0.9); }
.award-card--vex .award-icon { background: rgba(34, 85, 204, 0.05); color: rgba(34, 85, 204, 0.3); }

/* Varsity Basketball — burnt orange */
.award-card--vball {
  border-color: rgba(196, 64, 0, 0.3);
  border-top-color: #c44000;
}
.award-card--vball:hover { box-shadow: 0 10px 32px rgba(196, 64, 0, 0.2); }
.award-card--vball .award-cat { color: rgba(196, 64, 0, 0.9); }
.award-card--vball .award-icon { background: rgba(196, 64, 0, 0.05); color: rgba(196, 64, 0, 0.3); }

/* JV Basketball — dark teal */
.award-card--jv {
  border-color: rgba(26, 110, 92, 0.3);
  border-top-color: #1a6e5c;
}
.award-card--jv:hover { box-shadow: 0 10px 32px rgba(26, 110, 92, 0.2); }
.award-card--jv .award-cat { color: rgba(26, 110, 92, 0.9); }
.award-card--jv .award-icon { background: rgba(26, 110, 92, 0.05); color: rgba(26, 110, 92, 0.3); }

/* Board Recognition — gold */
.award-card--gold {
  border-color: rgba(155, 95, 0, 0.3);
  border-top-color: #9b5f00;
}
.award-card--gold:hover { box-shadow: 0 10px 32px rgba(155, 95, 0, 0.2); }

.award-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.35);
  margin: 0 0 8px;
  display: block;
}

.award-card--gold .award-cat {
  color: rgba(140, 85, 0, 0.85);
}

.award-year {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 300;
  color: var(--fg);
  margin: 0 0 6px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.award-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Icon / visual area — fills remaining card height */
.award-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 8px;
  margin: 12px 0 12px;
  min-height: 72px;
  overflow: hidden;
  color: rgba(17, 17, 17, 0.18);
}

.award-icon svg {
  width: 60px;
  height: 60px;
}

.award-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.award-icon--zoom img {
  object-fit: cover;
}

.award-card--gold .award-icon {
  background: rgba(155, 95, 0, 0.05);
  color: rgba(155, 95, 0, 0.32);
}

.award-sub {
  font-size: 11.5px;
  color: rgba(17, 17, 17, 0.55);
  margin: 0 0 16px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .awards-belt { padding: 20px 16px; }
  .award-card  { width: 220px; border-radius: 10px; padding: 16px 14px 0; border-top-width: 3px; }
}

/* ============================================================
   8. CLOSING CTA
   ============================================================ */

.closing {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.closing-header {
  margin-bottom: 64px;
}

.closing .eyebrow {
  margin-bottom: 20px;
}

.closing-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.closing-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}

.closing-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.closing-email {
  display: block;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.closing-email:hover {
  color: var(--muted);
  border-color: var(--muted);
}

.closing-right {
  padding-top: 4px;
}

.closing-skills-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.closing-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: #f2f2f2;
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.01em;
}

.closing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.closing-copyright {
  font-size: 13px;
  color: var(--muted);
}

.coffee-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.closing-coffee {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coffee-cup {
  width: 100%;
  height: 100%;
  color: #1a1a1a;
}

.steam {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 40px;
  pointer-events: none;
}

.steam-particle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.22);
  filter: blur(2px);
  opacity: 0;
  transform-origin: bottom center;
  animation: steam-rise 3.2s ease-in infinite;
}

.steam-particle:nth-child(1) {
  left: 50%;
  width: 7px;
  animation-delay: 0s;
  animation-duration: 3.4s;
}

.steam-particle:nth-child(2) {
  left: 38%;
  width: 5px;
  animation-delay: 1.1s;
  animation-duration: 3s;
}

.steam-particle:nth-child(3) {
  left: 64%;
  width: 5px;
  animation-delay: 2.1s;
  animation-duration: 3.6s;
}

@keyframes steam-rise {
  0% {
    transform: translate(-50%, 0) scale(0.7);
    opacity: 0;
    filter: blur(1.5px);
  }
  20% {
    opacity: 0.45;
  }
  50% {
    transform: translate(calc(-50% + 6px), -20px) scale(1.15) rotate(4deg);
    opacity: 0.3;
    filter: blur(2.5px);
  }
  80% {
    opacity: 0.12;
  }
  100% {
    transform: translate(calc(-50% - 9px), -42px) scale(1.6) rotate(-6deg);
    opacity: 0;
    filter: blur(4px);
  }
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--fg);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  transition: opacity 0.2s ease;
}

.connect-btn:hover {
  opacity: 0.75;
}

.coffee-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.coffee-link:hover {
  color: var(--fg);
}

/* mobile */
@media (max-width: 700px) {
  .closing-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .closing-headline {
    font-size: clamp(28px, 8vw, 48px);
  }
}

/* ============================================================
   Contact section
   ============================================================ */
.contact-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 120px 40px;
  text-align: left;
}

.contact-inner {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-eyebrow {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-email {
  display: block;
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.08s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, color 0.2s ease;
}

.contact-email:hover {
  color: var(--muted);
}

.contact-socials {
  display: flex;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.16s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}

.contact-socials a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.contact-socials a:hover {
  color: var(--fg);
}

/* Reveal: triggered by generic .is-visible class from script.js */
.contact-eyebrow.is-visible,
.contact-email.is-visible,
.contact-socials.is-visible {
  opacity: 1;
  transform: translateY(0);
}
