/* ─────────────────────────────────────────────
   RESET & ROOT
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  /* Colors — exact Figma values */
  --magenta:  #b31461;
  --pink:     #d94a8c;
  --dark:     #252525;
  --navy:     #1e293b;
  --slate:    #6b7a90;
  --green:    #059669;
  --card-bg:  #f8fafc;
  --edu-card: #0c131d;

  /* 12-col grid @ 1440px canvas
     margin = 102px, content = 1236px
     col ≈ 84.67px, gutter = 20px          */
  --margin:  102px;
  --col:     84.67px;
  --gap:     20px;
  --max:     1440px;
  --content: 1236px;   /* max - 2×margin  */

  /* Left column in split sections
     Cards start at x=633 → left = 633-102 = 531px */
  --left-col: 531px;

  /* Font */
  --font: 'Fustat', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; color-scheme: light; }
body { font-family: var(--font); color: var(--dark); background: #fff; overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }
img  { display: block; }

/* Hard-lock light mode — prevent any browser/OS dark-mode feature from
   recoloring page elements regardless of system preference */
html, body {
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: light;
    background: #fff;
    filter: none;
  }
  body {
    background: #fff !important;
    color: #252525 !important;
  }
}

/* ─────────────────────────────────────────────
   LAYOUT HELPERS
   ───────────────────────────────────────────── */
/* Max-width container with 102px side gutters */
.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

/* Vertical rhythm between sections on white bg */
.section-gap {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Split layout: left=531px fixed, right=remaining
   Matches Figma: left text ends at x=633, cards start at x=633 */
.two-col {
  display: grid;
  grid-template-columns: var(--left-col) 1fr;
  gap: 0 var(--gap);
  align-items: start;
}
.two-col--center { align-items: center; }
.two-col__left   { width: var(--left-col); }

/* ─────────────────────────────────────────────
   TYPOGRAPHY — mirrors Figma spec
   ───────────────────────────────────────────── */
.heading-xl {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.44px;
}
.heading-xl.dark  { color: var(--dark); }
.heading-xl.white { color: #fff; }

.section-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.72px;
  color: var(--dark);
  margin-bottom: 24px;
}

.section-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--dark);
  max-width: 902px;
  margin-top: 16px;
  margin-bottom: 40px;
}

/* Color utilities */
.pink     { color: var(--pink); }
.magenta  { color: var(--magenta); }
.dark-txt { color: #0c131d; }   /* Figma exact: span "how it evolved" color */

/* ─────────────────────────────────────────────
   NAV
   Figma: dark bar x=102 y=0 w=1236 h=100
          logo at x=122 (20px inside bar)
          avatar circle at x=1246 y=14 size=72
   ───────────────────────────────────────────── */
/* ── NAV ──
   Figma: dark bar from x=102 to x=1338 (NOT full-width).
   Technique: .wrap gives 102px padding; background-clip: content-box
   restricts the dark bg to the content area only (inside the 102px margins).
   Logo at x=122 = 102 (content start) + 20px (logo padding).
   Avatar at x=1246 = content end (1338) − 20px margin − 72px size.           */
.nav {
  height: 100px;
  /* outer area is the page background (white) */
}
.nav-inner {
  height: 100%;
  background: var(--dark);
  background-clip: content-box;  /* dark only in content area = 102px inset on each side */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 24px;
  letter-spacing: -0.72px;
  color: #fff;
  padding-left: 20px;   /* 102px (wrap content start) + 20px = x=122, matches Figma */
}
.logo-bold  { font-weight: 800; }
.logo-pipe  { color: var(--magenta); }
.logo-light { font-weight: 500; }

.nav-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;  /* 20px from content-box right = x=1246 in 1440px canvas */
}

/* ─────────────────────────────────────────────
   HERO
   Figma: heading y=200 (100px below nav), w=796px
          subtitle y=342, w=894px
          hamburger menu icon x=1306 y=200
   ───────────────────────────────────────────── */
.hero {
  padding-top: 100px;   /* gap between nav bottom and heading = 100px */
  padding-bottom: 60px;
}
.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.hero-text { flex: 1; }

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.44px;
  color: var(--dark);
  max-width: 796px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--dark);
  max-width: 894px;
}
.hero-menu {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 4px;   /* optical vertical alignment with heading first line */
}

/* ─────────────────────────────────────────────
   PROJECT CARDS
   Figma: card h=275px, image centred inside,
          bottom overlay ("Rectangle 9") h=100px
          title 24px white, arrow circle 48px
   ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
/* Growth & Strategy: single card, 1-col */
.card-grid--one {
  grid-template-columns: repeat(1, calc((var(--content) - 2 * var(--gap)) / 3));
}

/* ── Card animation keyframes ── */
@keyframes card-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-8px) scale(1.02); }
}
@keyframes card-shimmer {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(260%)  skewX(-15deg); }
}
@keyframes card-pulse-ring {
  0%   { opacity: 0.6; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.5); }
}

.project-card {
  position: relative;
  display: block;
  height: 275px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg, #3d7eff);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

/* Shimmer sweep pseudo-element */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%
  );
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
  z-index: 3;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.project-card:hover::after {
  animation: card-shimmer 0.65s ease forwards;
}

/* Image / inline SVG fills the full card */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  z-index: 1;
}

/* Inline SVG: fill top section, extending 12px into overlay gradient (matches Figma)
   Card = 275px tall | overlay starts at 175px | SVG extends to 163px from bottom
   preserveAspectRatio="xMidYMid meet" scales 240×180 viewBox → ~249×187px centered */
.project-card > svg.card-img,
.project-card > svg.card-svg {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 88px;
  width: 100%;
  height: calc(100% - 88px - 22px);
  display: block;
}

/* Hover speed-up is handled via JS (stores and halves each animation-duration) */

/* Pulse ring — decorative glow circle at card center top */
.project-card .card-pulse {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  z-index: 2;
  pointer-events: none;
}
.project-card .card-pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: card-pulse-ring 2.4s ease-out infinite;
}
.project-card .card-pulse::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  animation: card-pulse-ring 2.4s ease-out infinite 0.5s;
}

/* Overlay bar — bottom 100px, matching Figma "Rectangle 9" gradient asset */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  overflow: hidden;
  z-index: 4;
}
/* Gradient image from Figma used as overlay background */
.card-overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
/* Text + arrow row sits on top of the overlay bg */
.card-overlay-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}
.card-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;     /* Figma: leading-[24px] = line-height equals font-size */
  letter-spacing: -0.72px;
  color: #fff;
  flex: 1;
}
/* Arrow: ellipse circle (Figma asset) + arrow icon centred inside */
.card-arrow {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.card-arrow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-arrow-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
}

/* ─────────────────────────────────────────────
   HOW I THINK
   Figma: green bg (#059669) y=1946 h=708
          left text 531px, 4 cards 2×2 (342px each)
   ───────────────────────────────────────────── */
.think-section {
  background: var(--green);
  padding-top: 80px;
  padding-bottom: 80px;
}
.think-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: #90dec6;
  margin-top: 20px;
}
/* 2×2 grid of cards, each 342px × 304px */
.think-cards {
  display: grid;
  grid-template-columns: repeat(2, 342px);
  gap: var(--gap);
}
.think-card {
  background: #229f79;
  border-radius: 20px;
  padding: 30px;
  min-height: 304px;
  color: #fff;
}
.think-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}
.think-card h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.72px;
  margin-bottom: 12px;
}
.think-card p {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.72px;
}

/* ─────────────────────────────────────────────
   TESTIMONIALS — carousel
   Figma: dots (16px circles) y=2956
          3 cards (#f8fafc) h=402px y=3004
   ───────────────────────────────────────────── */
.dots {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.dot--on {
  background: var(--dark);
  transform: scale(1.2);
}

/* Carousel wrapper */
.testi-carousel-wrap {
  overflow: hidden;
  position: relative;
}
.testi-track {
  display: flex;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testi-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.testi-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.testi-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.testi-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.testi-head > div {
  margin-top: 11px;
  flex: 1;
  min-width: 0;
}
.testi-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testi-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--dark);
}
.testi-role {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.42px;
  color: #574d4d;
  margin-top: 5px;
}
.testi-li {
  margin-left: auto;
  flex-shrink: 0;
  margin-top: 13px;
  position: relative;
  z-index: 1;
}
.testi-li img { width: 24px; height: 24px; }
.testi-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
}
.testi-quote {
  flex: 1;
}
.testi-quote p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: var(--dark);
  margin: 0;
}
.testi-quote p + p {
  margin-top: 1.4em;
}

/* ─────────────────────────────────────────────
   ABOUT / STATS
   Figma: dark bg (#252525) y=3506 h=503
          heading left (531px col), stats right
          10+ x=633, 8+ x=905 (+272px), 5+ x=1177 (+272px)
          gap between stat groups = 100px
   ───────────────────────────────────────────── */
.about-section {
  background: var(--dark);
  padding-top: 125px;
  padding-bottom: 150px;         /* extra breathing room below stats (matches Figma) */
}
/* Override center-align for about: stats align to top of heading, not mid */
.about-section .two-col { align-items: flex-start; }

.about-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.72px;
  color: rgba(255,255,255,0.6);  /* muted — matches Figma gray-white */
  margin-top: 20px;
  max-width: 422px;
}
.stats-row {
  display: flex;
  gap: 100px;   /* Figma: 905-633-172 = 100px between stat groups */
  align-items: flex-start;
  padding-top: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 172px;
}
.stat-num {
  font-size: 64px;               /* larger — matches Figma prominence */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--pink);
}
.stat-label {
  font-size: 20px;               /* smaller + lighter — matches Figma label style */
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.4px;
  color: #9a9898;
}

/* ─────────────────────────────────────────────
   EXPERIENCE GRID
   Figma: 3-col cards (#f8fafc) h=219px, rows y=4331/4570
          row 3 col 1 only: h=219px y=4809
   ───────────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.exp-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  min-height: 240px;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              background 0.18s ease;
}
.exp-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
  background: #fff;
}
.exp-card:hover .exp-avatar {
  transform: scale(1.06);
}
.exp-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}
.exp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.exp-avatar--dialog {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exp-avatar--dialog img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exp-avatar--dialog img:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: auto;
}
.exp-card:hover .exp-avatar--dialog {
  transform: scale(1.06);
}
.exp-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--dark);
}
.exp-co {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  color: #574d4d;
  letter-spacing: -0.48px;
  margin-top: 5px;
}
.exp-co strong { font-weight: 500; }
.exp-date { font-weight: 300; }
.exp-desc {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: var(--dark);
}

/* ─────────────────────────────────────────────
   EDUCATION
   Figma: slate bg (#6b7a90) y=5128 h=503
   Left col heading: x=102, w=406px (sits within 531px col)
   Cards: x=634–1338 = 704px total (3 cols × 220px + 2 × 20px gap)
   Card h=201px (row 1), 200px (row 2)
   Internal: 30px padding, logo 29px, gap 16px, cert, issuer at ~145px from top
   ───────────────────────────────────────────── */
.edu-section {
  background: var(--slate);
  padding-top: 60px;
  padding-bottom: 60px;
}
/* Constrain heading to 406px (Figma width) — stays within 531px left col */
.edu-section .heading-xl {
  max-width: 406px;
}
.edu-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: #fff;
  margin-top: 20px;
  max-width: 406px;
}
.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;            /* Figma gap between cards = 20px */
}
.edu-card {
  background: var(--edu-card);
  border-radius: 20px;
  padding: 30px;
  min-height: 201px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
a.edu-card {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}
a.edu-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
a.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
}
a.edu-card:hover::before {
  animation: edu-shimmer 0.65s ease-in-out forwards;
}
@keyframes edu-shimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}
/* Logo: exact pixel dimensions per Figma measurements */
.edu-logo {
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  margin-bottom: 16px;  /* 16px gap between logo and cert title (Figma: 5244-5228=16px) */
}
.edu-logo--westminster { width: 120px; height: 29px; }
.edu-logo--scrum       { width: 162px; height: 28px; }
.edu-logo--hfi         { width: 55px;  height: 29px; }

/* HFI logo — vector with 3 stacked clip-path layers from Figma */
.hfi-logo {
  width: 55px;
  height: 29px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.hfi-clip {
  position: absolute;
  top: -153.08%;
  right: -56%;
  bottom: -151.86%;
  left: -55.33%;
}
.hfi-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  margin: 0;
  display: block;
}
.edu-logo--ixdf        { width: 48px;  height: 48px; image-rendering: -webkit-optimize-contrast; }  /* square icon */
.edu-logo--pendo       { width: 125px; height: 29px; }

.edu-cert {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.48px;
  color: #fff;
  margin-bottom: 0;
}
.edu-issuer {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.42px;
  color: #aaa;
  margin-top: auto;     /* push issuer to near bottom — matches Figma y=145px from card top */
  padding-top: 8px;
}

/* ─────────────────────────────────────────────
   BEYOND THE SCREEN
   Figma: white bg; 3 music cards y=5888 h=275
          card 1: w=473px, card 2: w=473px, card 3: w=249px
          total = 473+20+473+20+249 = 1235 ≈ content width
   ───────────────────────────────────────────── */
.music-grid {
  display: grid;
  grid-template-columns: 473px 473px 1fr;
  gap: var(--gap);
  align-items: start;
}
.music-thumb {
  width: 100%;
  height: 275px;
  object-fit: cover;
  border-radius: 20px;           /* fully rounded — all 4 corners */
  display: block;
}
.music-desc {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.72px;
  color: var(--dark);
  padding: 16px 0 0;
}
.music-desc strong { font-weight: 700; }

/* Embedded YouTube video thumbnail */
.video-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 275px;
  border-radius: 20px;           /* matches .music-thumb radius */
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.music-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* native cover fit — no scaling hacks needed */
  pointer-events: none;
}
.video-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;               /* captures clicks → opens YouTube */
}

/* YouTube "View all" card */
.music-card--yt {
  height: 275px;
  border: 1px solid #f61c0d;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.music-card--yt:hover { background: rgba(246,28,13,0.05); }
.yt-icon  { width: 72px; height: 72px; }
.yt-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.72px;
  color: var(--dark);
}

/* ─────────────────────────────────────────────
   FOOTER / CONTACT
   Figma: navy bg (#1e293b); heading+sub+CTAs left;
          socials right, aligned with CTA row (flex-end)
          copyright: separate white bar below navy
   ───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

/* Scroll-to-top button — straddles the footer top edge (43px above, 57px inside),
   right-aligned to the content grid boundary at all viewport widths */
.scroll-top-btn {
  position: absolute;
  top: -43px;
  right: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin)));
  width: 100px;
  height: 100px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}
.scroll-top-btn:hover  { opacity: 0.85; transform: translateY(-4px); }
.scroll-top-btn:active { opacity: 0.7;  transform: translateY(-2px); }
.scroll-top-btn img    { display: block; width: 100%; height: 100%; }

@media (max-width: 768px) {
  .scroll-top-btn { width: 72px; height: 72px; top: -30px; }
}
@media (max-width: 480px) {
  .scroll-top-btn { width: 56px; height: 56px; top: -24px; }
}
.footer-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;         /* socials sit level with the CTA buttons */
  gap: 40px;
}
.footer-left { flex: 1; }
.footer-heading {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.44px;
  color: #fff;
  max-width: 466px;
  margin-bottom: 20px;
}
.footer-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.72px;
  color: rgba(255,255,255,0.75);
  max-width: 422px;
  margin-bottom: 40px;
}
.footer-cta   { display: flex; gap: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 48px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.48px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover { opacity: 0.92; transform: translateY(-2px); }
.btn--blue { background: #2563eb; }
.btn--pink { background: #e11d74; }

/* reset <button> defaults for .btn triggers */
button.btn { border: none; outline: none; }

/* shimmer on pink button only */
.btn--pink::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn--pink:hover::before {
  animation: btn-shimmer 0.6s ease-in-out forwards;
}
@keyframes btn-shimmer {
  0%   { left: -75%; }
  100% { left: 125%; }
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.footer-socials a:hover { opacity: 0.75; }
.footer-socials a img { width: 40px; height: 40px; display: block; }

/* Copyright — white bar below the navy footer */
.footer-copy-bar {
  background: #fff;
  padding: 20px 0;
}
.footer-copy {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.28px;
  color: var(--slate);
}

/* ─────────────────────────────────────────────
   MAIL PICKER POPOVER
   ───────────────────────────────────────────── */
.mail-picker {
  position: relative;
  display: inline-block;
}
.mail-picker__menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  min-width: 210px;
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 500;
  animation: mail-menu-in 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.mail-picker__menu.is-open { display: block; }

@keyframes mail-menu-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mail-picker__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.mail-picker__item:hover { background: rgba(255,255,255,0.08); }
.mail-picker__item svg { width: 18px; height: 18px; flex-shrink: 0; }
.mail-picker__item--muted { color: rgba(255,255,255,0.45); font-weight: 400; }
.mail-picker__item--muted:hover { color: rgba(255,255,255,0.7); }

.mail-picker__divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 4px;
}

/* ─────────────────────────────────────────────
   AVATAR LIGHTBOX
   ───────────────────────────────────────────── */
#nav-avatar-trigger {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
#nav-avatar-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.avatar-lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}
.avatar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.avatar-lightbox__box {
  position: relative;
  z-index: 1;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.avatar-lightbox.is-open .avatar-lightbox__box {
  transform: scale(1);
}
.avatar-lightbox__img {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.avatar-lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.avatar-lightbox__close:hover {
  background: rgba(30, 41, 59, 1);
  transform: scale(1.1);
}
.avatar-lightbox__close svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .avatar-lightbox__img { width: 85vw; height: 85vw; max-width: 380px; max-height: 380px; }
}

/* ─────────────────────────────────────────────
   EDU CARD — CLICKABLE (Westminster BEng)
   ───────────────────────────────────────────── */
.edu-card--clickable {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}
.edu-card--clickable:hover,
.edu-card--clickable:focus-visible {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  outline: none;
}
.edu-card--clickable::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.edu-card--clickable:hover::before {
  animation: edu-shimmer 0.65s ease-in-out forwards;
}

/* ─────────────────────────────────────────────
   DEGREE PDF MODAL
   ───────────────────────────────────────────── */
.degree-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.degree-modal.is-open { display: flex; }

.degree-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(6px);
  animation: modal-fade-in 0.25s ease;
}

.degree-modal__box {
  position: relative;
  width: min(900px, 92vw);
  height: min(85vh, 700px);
  background: #1a2235;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: modal-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.degree-modal__iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.degree-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(10, 15, 25, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.degree-modal__newtab {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.degree-modal__newtab:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.degree-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.degree-modal__close:hover {
  background: rgba(30, 41, 59, 1);
  transform: scale(1.1);
}
.degree-modal__close svg { width: 16px; height: 16px; }

.degree-modal__blocked {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
}
.degree-modal__blocked-text {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.degree-modal__blocked-sub {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  margin: 0;
}
.degree-modal__blocked-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
}
.degree-modal__blocked-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-slide-up { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 600px) {
  .degree-modal__box { width: 95vw; height: 88vh; border-radius: 12px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — fluid, app-like mobile system
   ───────────────────────────────────────────── */

/* ── 1280px: Large tablet / small desktop ── */
@media (max-width: 1280px) {
  :root { --margin: 60px; --left-col: 400px; }
  .think-cards    { grid-template-columns: repeat(2, 1fr); }
  .think-card     { min-width: 0; }
  .stats-row      { gap: 48px; }
  .music-grid     { grid-template-columns: 1fr 1fr; }
  .music-card--yt { grid-column: span 2; height: 180px; }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  :root { --margin: 40px; --left-col: 320px; }
  .hero-title     { font-size: clamp(32px, 4vw, 48px); }
  .heading-xl     { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.96px; }
  .section-sub,
  .hero-sub,
  .about-sub,
  .think-sub,
  .edu-sub,
  .footer-sub     { font-size: clamp(18px, 2.2vw, 24px); }
  .stat-num       { font-size: clamp(44px, 5.5vw, 64px); }
  .footer         { padding-top: 80px; padding-bottom: 80px; }
  .footer-heading { font-size: clamp(32px, 4vw, 48px); }
  .about-section  { padding-top: 90px; padding-bottom: 100px; }
}

/* ── 768px: Tablet portrait ── */
@media (max-width: 768px) {
  :root { --margin: 28px; --left-col: 100%; }

  /* Nav */
  .nav            { height: 72px; }
  .nav-logo       { font-size: 20px; padding-left: 12px; }
  .nav-avatar     { width: 52px; height: 52px; margin-right: 12px; }

  /* Hero */
  .hero           { padding-top: 52px; padding-bottom: 40px; }
  .hero-inner     { flex-direction: column; gap: 16px; }
  .hero-menu      { display: none; }
  .hero-title     { font-size: clamp(28px, 5.5vw, 40px); margin-bottom: 14px; }
  .hero-sub       { font-size: clamp(16px, 2.5vw, 20px); }

  /* Section spacing */
  .section-gap    { padding-top: 52px; padding-bottom: 52px; }
  .heading-xl     { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.72px; }
  .section-sub    { font-size: clamp(16px, 2.5vw, 20px); margin-bottom: 28px; }
  .section-label  { font-size: 20px; margin-bottom: 16px; }

  /* Two-col stacks */
  .two-col        { grid-template-columns: 1fr; gap: 32px 0; }
  .two-col__left  { width: 100%; }

  /* Project cards 2-col */
  .card-grid      { grid-template-columns: repeat(2, 1fr); }
  .project-card   { height: 240px; }
  .card-title     { font-size: 18px; }

  /* How I Think */
  .think-section  { padding-top: 56px; padding-bottom: 56px; }
  .think-cards    { grid-template-columns: repeat(2, 1fr); }
  .think-card     { min-width: 0; min-height: auto; padding: 24px; }
  .think-card h3  { font-size: 20px; }
  .think-card p   { font-size: 18px; }
  .think-icon     { width: 56px; height: 56px; margin-bottom: 14px; }
  .think-sub      { font-size: 18px; }

  /* Testimonials */
  .testi-slide    { grid-template-columns: 1fr; }
  .testi-card     { padding: 24px; }
  .testi-name     { font-size: 20px; }
  .testi-quote p  { font-size: 17px; }
  .dots           { gap: 14px; margin-bottom: 24px; }
  .dot            { width: 13px; height: 13px; }

  /* About / Stats */
  .about-section  { padding-top: 72px; padding-bottom: 80px; }
  .about-sub      { font-size: 18px; }
  .stats-row      { gap: 40px; flex-wrap: wrap; }
  .stat-num       { font-size: clamp(40px, 7vw, 56px); }
  .stat-label     { font-size: 16px; }

  /* Experience */
  .exp-grid       { grid-template-columns: repeat(2, 1fr); }
  .exp-card       { padding: 24px; min-height: auto; }
  .exp-head       { margin-bottom: 20px; }
  .exp-name       { font-size: 20px; }
  .exp-desc       { font-size: 17px; }

  /* Education */
  .edu-section    { padding-top: 52px; padding-bottom: 52px; }
  .edu-cards      { grid-template-columns: repeat(2, 1fr); }
  .edu-card       { padding: 24px; min-height: auto; }
  .edu-sub        { font-size: 18px; }

  /* Music */
  .music-grid     { grid-template-columns: 1fr 1fr; }
  .music-thumb    { height: 200px; }
  .video-thumb-wrapper { height: 200px; }
  .music-card--yt { grid-column: span 2; height: 140px; }
  .music-desc     { font-size: 18px; }

  /* Footer */
  .footer         { padding-top: 64px; padding-bottom: 64px; }
  .footer-body    { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer-heading { font-size: clamp(28px, 5vw, 40px); }
  .footer-sub     { font-size: 18px; margin-bottom: 28px; }
  .footer-socials { flex-wrap: wrap; gap: 10px; }
}

/* ── 600px: Large phone ── */
@media (max-width: 600px) {
  :root { --margin: 20px; }

  /* Nav — go full-width dark, drop the desktop inset clip */
  .nav            { height: 64px; background: var(--dark); }
  .nav-inner      { background: transparent; background-clip: unset; padding-left: 0; padding-right: 0; }
  .nav-logo       { font-size: 18px; padding-left: 20px; }
  .nav-avatar     { width: 44px; height: 44px; margin-right: 20px; }

  /* Hero */
  .hero           { padding-top: 40px; padding-bottom: 32px; }
  .hero-title     { font-size: clamp(24px, 7vw, 32px); }
  .hero-sub       { font-size: 15px; line-height: 1.5; }

  /* Typography */
  .heading-xl     { font-size: clamp(24px, 7vw, 32px); letter-spacing: -0.6px; }
  .section-sub    { font-size: 15px; line-height: 1.5; }
  .section-label  { font-size: 18px; }

  /* Project cards */
  .card-grid      { grid-template-columns: 1fr; }
  .project-card   { height: 220px; }
  .card-title     { font-size: 16px; line-height: 1.3; }
  .card-overlay   { height: 88px; }
  .card-arrow     { width: 40px; height: 40px; }
  .card-arrow-icon { width: 20px; height: 20px; }

  /* How I Think */
  .think-section  { padding-top: 48px; padding-bottom: 48px; }
  .think-cards    { grid-template-columns: 1fr; }
  .think-card     { padding: 20px; }
  .think-card h3  { font-size: 18px; }
  .think-card p   { font-size: 15px; }
  .think-sub      { font-size: 15px; }

  /* Testimonials */
  .testi-card     { padding: 20px; }
  .testi-avatar   { width: 52px; height: 52px; }
  .testi-head     { gap: 12px; margin-bottom: 18px; }
  .testi-name     { font-size: 18px; }
  .testi-quote p  { font-size: 15px; }
  .dot            { width: 12px; height: 12px; }

  /* About / Stats */
  .about-section  { padding-top: 52px; padding-bottom: 60px; }
  .stats-row      { flex-direction: column; gap: 24px; }
  .stat-num       { font-size: 52px; }
  .stat-label     { font-size: 15px; }
  .about-sub      { font-size: 16px; }

  /* Experience */
  .exp-grid       { grid-template-columns: 1fr; }
  .exp-avatar     { width: 56px; height: 56px; }
  .exp-avatar--dialog { width: 56px; height: 56px; }
  .exp-name       { font-size: 18px; }
  .exp-desc       { font-size: 15px; }

  /* Education */
  .edu-cards      { grid-template-columns: 1fr; }
  .edu-card       { padding: 20px; }
  .edu-cert       { font-size: 15px; }
  .edu-sub        { font-size: 15px; }

  /* Music */
  .music-grid     { grid-template-columns: 1fr; }
  .music-card--yt { grid-column: span 1; height: 120px; }
  .music-thumb    { height: 200px; }
  .video-thumb-wrapper { height: 200px; }
  .music-desc     { font-size: 16px; }
  .yt-label       { font-size: 18px; }
  .yt-icon        { width: 48px; height: 48px; }

  /* Footer */
  .footer         { padding-top: 48px; padding-bottom: 48px; }
  .footer-heading { font-size: clamp(24px, 7vw, 32px); }
  .footer-sub     { font-size: 15px; margin-bottom: 24px; }
  .footer-cta     { flex-direction: column; gap: 12px; width: 100%; }
  .btn            { width: 100%; max-width: 360px; }
  .mail-picker    { width: 100%; max-width: 360px; }
  .mail-picker__menu { left: 0; right: auto; min-width: 100%; }
  .footer-socials { gap: 8px; }
  .footer-socials a img { width: 36px; height: 36px; }
  .footer-copy    { font-size: 12px; }

  /* Degree modal */
  .degree-modal__box { width: 95vw; height: 88vh; border-radius: 12px; }
  .avatar-lightbox__img { width: 85vw; height: 85vw; max-width: 340px; max-height: 340px; }
}

/* ── 480px: Medium-small phone ── */
@media (max-width: 480px) {
  :root { --margin: 16px; }

  .nav-logo       { padding-left: 16px; }
  .nav-avatar     { margin-right: 16px; }
  .hero-title     { font-size: clamp(22px, 7.5vw, 26px); }
  .heading-xl     { font-size: clamp(22px, 7.5vw, 26px); }
  .section-gap    { padding-top: 40px; padding-bottom: 40px; }
  .think-section,
  .about-section,
  .edu-section    { padding-top: 40px; padding-bottom: 48px; }
  .stat-num       { font-size: 44px; }
  .testi-name     { font-size: 16px; }
  .testi-role     { font-size: 12px; }
  .exp-name       { font-size: 16px; }
  .footer-heading { font-size: 22px; }
  .nav-logo       { font-size: 16px; }
}

/* ── Touch devices: disable hover-only interactions ── */
@media (hover: none) {
  .project-card:hover       { transform: none; box-shadow: none; }
  .project-card:hover::after { animation: none; }
  .exp-card:hover           { transform: none; box-shadow: none; background: var(--card-bg); }
  .exp-card:hover .exp-avatar,
  .exp-card:hover .exp-avatar--dialog { transform: none; }
  .edu-card--clickable:hover,
  a.edu-card:hover          { transform: none; box-shadow: none; }
  .btn:hover                { opacity: 1; transform: none; }
  .btn--pink:hover::before  { animation: none; }
  #nav-avatar-trigger:hover { transform: none; box-shadow: none; }
}

/* ─────────────────────────────────────────────
   THINK ICON MICRO-ANIMATIONS
   ───────────────────────────────────────────── */

/* 1 · Clarity — plant breathes upward from its base */
@keyframes coc-breathe {
  0%,100% { transform: scale(1)    translateY(0);   }
  50%     { transform: scale(1.07) translateY(-4px); }
}
.coc-icon { transform-origin: 36px 58px; animation: coc-breathe 3s ease-in-out infinite; }
.think-card:hover .coc-icon { animation-duration: 1.5s; }

/* 2 · Product — top face of box lifts open */
@keyframes pof-lid {
  0%,22%   { transform: translateY(0);    }
  50%,68%  { transform: translateY(-7px); }
  92%,100% { transform: translateY(0);    }
}
.pof-lid { animation: pof-lid 3.4s ease-in-out infinite; }
.think-card:hover .pof-lid { animation-duration: 1.7s; }

/* 3 · Impact — cursor flies in from upper-right, ripple on bullseye */
@keyframes ioo-arrow {
  0%,8%    { transform: translate(14px,-14px); opacity: 0; }
  30%,78%  { transform: translate(0,0);        opacity: 1; }
  96%,100% { transform: translate(14px,-14px); opacity: 0; }
}
@keyframes ioo-ripple {
  0%,30%  { transform: scale(1); opacity: 0; }
  34%     { transform: scale(1); opacity: 0.6; }
  70%     { transform: scale(4); opacity: 0;  }
  100%    { transform: scale(1); opacity: 0; }
}
.ioo-arrow  { animation: ioo-arrow  3.2s ease-in-out infinite; }
.ioo-ripple { transform-origin: 34.7px 37.4px; animation: ioo-ripple 3.2s ease-in-out infinite; }
.think-card:hover .ioo-arrow,
.think-card:hover .ioo-ripple { animation-duration: 1.6s; }

/* 4 · Alignment — whole icon drifts upward, resets smoothly */
@keyframes adg-rise {
  0%,10%   { transform: translateY(5px);  opacity: 0.72; }
  32%,65%  { transform: translateY(0);    opacity: 1;    }
  88%,100% { transform: translateY(-4px); opacity: 0.72; }
}
.adg-icon { animation: adg-rise 2.8s ease-in-out infinite; }
.think-card:hover .adg-icon { animation-duration: 1.4s; }
