/* ==========================================================
   portfolio.css — Ayodeji Akintilo Portfolio
   ========================================================== */

:root {
  /* Backgrounds — neutral off-white, equal RGB channels */
  --bg-deep:       #f5f5f5;
  --bg-dark:       #efefef;
  --bg-card:       #ffffff;
  --bg-elevated:   #e8e8e8;

  /* Accent — vivid amber for keyword highlights only */
  --accent:        hsl(33, 90%, 46%);
  --accent-warm:   hsl(38, 85%, 40%);
  --accent-bright: hsl(43, 80%, 54%);

  /* Gradient — hue +10° start→end, lightness +12%, same saturation */
  --gradient:      linear-gradient(135deg, hsl(28, 90%, 46%) 0%, hsl(43, 86%, 58%) 100%);

  /* Text — neutral grey scale, no warm tint */
  --text-primary:  hsl(0, 0%, 10%);
  --text-sub:      hsl(0, 0%, 38%);
  --text-muted:    hsl(0, 0%, 58%);

  /* Borders */
  --border:        rgba(0, 0, 0, 0.07);
  --border-lit:    rgba(180, 110, 20, 0.28);
  --border-solid:  #e0e0e0;

  /* Surface shadow — soft depth on white */
  --surface-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
                    0 2px 8px rgba(0, 0, 0, 0.04),
                    0 10px 30px rgba(0, 0, 0, 0.07);

  --tr-fast:      0.15s ease;
  --tr-med:       0.35s ease;
  --tr-slow:      0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Space Grotesk', sans-serif;
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-xl:    40px;
  --max-w:        1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  width: 92%;
  margin: 0 auto;
}

/* ── Gradient text (keywords only) ── */
.g-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll progress ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--gradient);
  z-index: 9999;
}

/* ── AYO Reveal Section ── */
.ayo-reveal {
  position: relative;
  height: 200vh;
  background: transparent;
  margin-bottom: -100vh;
  z-index: 2;
}
@media (max-width: 768px) {
  .ayo-reveal { height: 130vh; margin-bottom: -100vh; }
}
.ayo-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.ayo-bg {
  position: absolute;
  inset: 0;
  background: #0a1628;
  transition: none;
  z-index: 0;
}
.ayo-clip-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.ayo-stroke-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 6px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
#ayo-stroke-path {
  fill: none;
  stroke: rgba(255, 250, 240, 0.90);
  stroke-width: 2.5;
  opacity: 1;
  transform: translate(12px, 12px);
}
.ayo-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: url(#ayo-clip);
  -webkit-clip-path: url(#ayo-clip);
}
.ayo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* ── Navigation ── */
.p-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--tr-med), padding var(--tr-med),
              border-color var(--tr-med), box-shadow var(--tr-med);
  border-bottom: 1px solid transparent;
}
.p-nav.scrolled {
  background: rgba(247, 246, 243, 0.97);
  padding: 0.7rem 0;
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: var(--max-w);
  width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-primary);
}
.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: 100px;
  transition: color var(--tr-fast), background var(--tr-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 0.78rem;
  transition: all var(--tr-fast);
}
.nav-social a:hover {
  color: var(--accent);
  border-color: var(--border-lit);
  background: rgba(180, 110, 20, 0.06);
}
.nav-hire-mobile { display: none; }
.nav-hire {
  padding: 7px 18px;
  background: var(--text-primary);
  color: var(--bg-card);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
  white-space: nowrap;
}
.nav-hire:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--tr-fast);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh; /* excludes mobile browser chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-card);
}
/* ── Full-width image-mask canvas ── */
#hero-mask-canvas {
  display: block;
  /* Break out of .hero-content max-width constraint */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 1.2rem 0 0.8rem;
  /* height set dynamically by JS (~48vh); this is a pre-load fallback */
  min-height: clamp(180px, 40vh, 520px);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Line field canvas */
#hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Soft warm glow — barely-there gradient for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(255, 190, 80, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(255, 160, 60, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  padding: 0 1.5rem;
  will-change: transform, opacity;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(180, 110, 20, 0.07);
  border: 1px solid rgba(180, 110, 20, 0.20);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  opacity: 0;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-name-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-name-inner {
  display: block;
  /* initial state set by GSAP */
}

/* Per-character spans for staggered animation */
.n-char {
  display: inline-block;
}

/* Animated gradient fill for first name */
.n-gradient {
  display: inline-block;
  background: linear-gradient(
    90deg,
    hsl(33, 72%, 42%) 0%,
    hsl(44, 88%, 68%) 35%,
    hsl(38, 80%, 58%) 60%,
    hsl(33, 72%, 42%) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 5s ease-in-out infinite;
}
@keyframes nameShimmer {
  0%   { background-position: 100% 50%; }
  50%  { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-sub);
  margin-bottom: 1rem;
  opacity: 0;
}
.hero-typewriter {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-sub);
  min-height: 1.8em;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.tw-text { color: var(--accent); font-weight: 600; }
.tw-cursor {
  color: var(--accent);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--tr-med);
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-solid);
}
.btn-ghost:hover {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  z-index: 3;
}
.scroll-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--border-solid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--text-sub);
  animation: bounce 2.2s ease infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ── Shared section styles ── */
.section-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  text-wrap: balance;
}
.section-body {
  font-size: 1.02rem;
  color: var(--text-sub);
  max-width: 580px;
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .section-body { margin: 0 auto; }

/* ── Heading line-mask reveal ── */
.heading-reveal .h-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.heading-reveal .h-line-inner {
  display: block;
  will-change: transform;
}

/* ── Parallax image ── */
.parallax-frame {
  overflow: hidden;
  position: relative;
}
.parallax-img {
  will-change: transform;
  transform: scale(1.14) translateY(0px);
}

/* ── About ── */
.about-section {
  padding: 80px 0 100px;
  background: var(--bg-card);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin: 0 auto 80px;
  max-width: 760px;
  text-align: center;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-elevated);
  position: relative;
}
.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-frame:hover img { transform: scale(1.04); }
.about-img-accent {
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0.35;
}
.about-img-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  box-shadow: var(--surface-shadow);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-ic {
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}
.about-text p { color: var(--text-sub); font-size: 1rem; margin-bottom: 1rem; line-height: 1.75; }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-solid);
  background: var(--bg-deep);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
}
.credentials {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.cred-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.cred-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.cred-row:last-child { border-bottom: none; }
.cred-body { flex: 1; min-width: 0; }
.cred-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.cred-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 0.15rem;
}
.cred-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cred-divider {
  height: 1px;
  background: var(--border-solid);
  margin: 0.5rem 0;
}

/* ── Stats ── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-solid);
  box-shadow: var(--surface-shadow);
}
.stat-cell {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  text-align: center;
}
.stat-val {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}
.stat-n {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-sub);
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ── Client name tickertape ── */
.name-ticker {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
  margin-bottom: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.name-ticker::-webkit-scrollbar { display: none; }
.name-ticker-strip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}
.ticker-sep {
  color: var(--accent);
  opacity: 0.5;
  font-weight: 400;
}

/* ── Projects ── */
.projects-section {
  padding: 100px 0;
  background: var(--bg-deep);
}
.filter-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.flt-btn {
  padding: 7px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-solid);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--tr-fast);
}
.flt-btn:hover, .flt-btn.on {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-card);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.proj-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  box-shadow: var(--surface-shadow);
  transition: border-color var(--tr-med), box-shadow var(--tr-med), transform var(--tr-med), opacity var(--tr-med);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.proj-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-thumb-video { transform: scale(1.05); }
.proj-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06),
              0 20px 60px rgba(0,0,0,0.14);
}
.proj-card.faded {
  opacity: 0.2;
  pointer-events: none;
  transform: scale(0.97);
}
.proj-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.proj-thumb-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.05em;
  transition: transform 0.5s ease;
  position: relative;
}
.proj-card:hover .proj-thumb-bg { transform: scale(1.05); }
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.07); }
.proj-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.28) 100%);
  opacity: 0;
  transition: opacity var(--tr-med);
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-ov-inner {
  transform: translateY(10px);
  transition: transform var(--tr-med);
}
.proj-card:hover .proj-ov-inner { transform: translateY(0); }
.proj-ov-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 200, 100, 0.9);
  display: block;
  margin-bottom: 4px;
}
.proj-ov-inner h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.proj-ov-inner p { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.45; margin-bottom: 10px; }
.proj-ov-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 200, 100, 0.9);
  transition: gap var(--tr-fast);
}
.proj-ov-link:hover { gap: 9px; }
.proj-foot {
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-foot-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.proj-foot-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.proj-year {
  font-size: 0.72rem;
  color: var(--text-sub);
}

/* ── Experience ── */
.exp-section {
  padding: 100px 0;
  background: var(--bg-card);
}
.exp-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.exp-sticky { position: sticky; top: 100px; }
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-solid);
}
.tl-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
  position: relative;
}
.tl-dot {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-solid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--tr-med);
  z-index: 1;
}
.tl-item:hover .tl-dot {
  border-color: var(--accent);
  background: rgba(180, 110, 20, 0.08);
  color: var(--accent);
}
.tl-body { flex: 1; padding-top: 4px; }
.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}
.tl-role {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.tl-dates {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 3px 8px;
  background: var(--bg-deep);
  border-radius: 100px;
  border: 1px solid var(--border-solid);
}
.tl-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.tl-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ── Skills — scrolling marquee rows ── */
.skills-section {
  padding: 100px 0;
  background: var(--bg-deep);
}
.skills-marquee {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sm-row {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.sm-row::-webkit-scrollbar { display: none; }
.sm-row:last-child { border-bottom: 1px solid var(--border); }
.sm-strip {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.01em;
}
.sm-sep {
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sm-strip { animation: none !important; }
}
@media (max-width: 768px) {
  .sm-strip { font-size: 0.95rem; gap: 1.4rem; }
  .sm-row { padding: 0.75rem 0; }
}

/* ── Stat prefix ($) ── */
.stat-prefix {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-sub);
}

/* ── Testimonial ── */
.testimonial-section {
  padding: 80px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-mark {
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  user-select: none;
}
.testimonial-quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
  font-weight: 400;
}
.testimonial-attr {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact-section {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-card);
}
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 190, 80, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact-inner .section-body { margin: 0 auto 2.5rem; max-width: 520px; }
.contact-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.social-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.soc-link {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1.5px solid var(--border-solid);
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: all var(--tr-fast);
}
.soc-link:hover {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ── Footer ── */
.p-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-solid);
  background: var(--bg-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 240px; line-height: 1.6; }
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.87rem; color: var(--text-sub); transition: color var(--tr-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-solid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Back to top ── */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--text-primary);
  color: var(--bg-card);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--tr-med);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }

/* ── Reveal — initial states owned by GSAP ── */
.d1,.d2,.d3,.d4,.d5,.d6 {}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  /* skills-cloud: wraps naturally on small screens */
  .exp-grid { grid-template-columns: 1fr; gap: 3rem; }
  .exp-sticky { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    gap: 0.3rem;
    border-bottom: 1px solid var(--border-solid);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open .nav-hire-mobile { display: list-item; }
  .nav-links.open a {
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
  }
  .nav-toggle { display: flex; }
  .about-section { padding: 50px 0 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-badge { right: 0; bottom: -12px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr; }
  /* skills-cloud: wraps naturally on small screens */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .filter-row { gap: 4px; }
  .flt-btn { padding: 6px 14px; font-size: 0.75rem; }
  .name-ticker-strip { font-size: 0.85rem; }
  .hero-cta { gap: 0.5rem; }
  .btn { padding: 11px 22px; font-size: 0.84rem; }
}
@media (max-width: 768px) {
  .contact-actions { flex-direction: column; align-items: center; }
  .name-ticker { padding: 0.75rem 0; }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .about-grid { gap: 2rem; }
  .section-head { margin-bottom: 2.5rem; }
}
