/* ================================================================
   SHAMVIL RAHMAN — PORTFOLIO
   Version 3 · Dark Edition
   
   Palette:
     #FFDE42  — Solar Yellow  (primary accent)
     #4C5C2D  — Olive Green   (secondary)
     #313E17  — Forest Dark   (tertiary surface)
     #1B0C0C  — Deep Maroon   (base dark bg)
   
   Fonts: Cormorant (display) + Jost (body)
================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* ── Brand Palette ──────────────────────────────────── */
  --yellow:        #FFDE42;
  --yellow-light:  #FFF0A0;
  --yellow-dim:    #D4B800;
  --yellow-ghost:  rgba(255, 222, 66, 0.08);
  --yellow-glow:   rgba(255, 222, 66, 0.18);

  --olive:         #4C5C2D;
  --olive-light:   #637840;
  --olive-dim:     #3A4720;
  --olive-ghost:   rgba(76, 92, 45, 0.25);

  --forest:        #313E17;
  --forest-light:  #3D4E1E;
  --forest-dark:   #252E10;

  --deep:          #1B0C0C;
  --deep-light:    #261212;
  --deep-mid:      #2E1414;

  /* ── Neutral Overlay Scale (for text on dark) ──────── */
  --on-dark-100:   rgba(255, 248, 235, 1.00);  /* primary text  */
  --on-dark-70:    rgba(255, 248, 235, 0.70);  /* secondary     */
  --on-dark-45:    rgba(255, 248, 235, 0.45);  /* muted         */
  --on-dark-20:    rgba(255, 248, 235, 0.20);  /* subtle        */
  --on-dark-10:    rgba(255, 248, 235, 0.10);  /* hairline      */
  --on-dark-06:    rgba(255, 248, 235, 0.06);  /* near-invisible */

  /* ── Light surface (About section) ────────────────── */
  --surface-warm:  #F5F0E4;
  --surface-mid:   #E8E1D0;
  --surface-text:  #1C1A14;
  --surface-text2: #5A5446;

  /* ── Typography ─────────────────────────────────────── */
  --f-display: 'Cormorant', Georgia, serif;
  --f-body:    'Jost', 'Helvetica Neue', system-ui, sans-serif;

  --fw-light:  300;
  --fw-reg:    400;
  --fw-med:    500;
  --fw-semi:   600;

  /* Fluid type scale */
  --t-2xs:  0.625rem;
  --t-xs:   0.6875rem;
  --t-sm:   0.8125rem;
  --t-base: 1rem;
  --t-md:   1.0625rem;
  --t-lg:   1.1875rem;
  --t-xl:   1.4375rem;
  --t-2xl:  clamp(1.625rem, 3vw, 2rem);
  --t-3xl:  clamp(2rem,     4vw, 2.75rem);
  --t-4xl:  clamp(2.5rem,   5.5vw, 3.75rem);
  --t-5xl:  clamp(4rem,     9vw,   7.5rem);

  /* ── Spacing ─────────────────────────────────────────── */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-14: 3.5rem;   --sp-16: 4rem;     --sp-20: 5rem;
  --sp-24: 6rem;     --sp-32: 8rem;

  /* ── Layout ──────────────────────────────────────────── */
  --max-w:   1160px;
  --gutter:  clamp(var(--sp-5), 5vw, var(--sp-12));
  --navbar-h: 70px;

  /* ── Radii ───────────────────────────────────────────── */
  --r-xs:   3px;  --r-sm:  6px;
  --r-md:  10px;  --r-lg: 18px;
  --r-xl:  28px;  --r-pill: 9999px;

  /* ── Shadows ─────────────────────────────────────────── */
  --sh-sm:     0 2px 8px rgba(0,0,0,.25);
  --sh-md:     0 6px 20px rgba(0,0,0,.35);
  --sh-lg:     0 14px 48px rgba(0,0,0,.45);
  --sh-xl:     0 28px 80px rgba(0,0,0,.55);
  --sh-yellow: 0 6px 32px rgba(255,222,66,.22), 0 2px 8px rgba(255,222,66,.12);
  --sh-olive:  0 6px 24px rgba(76,92,45,.35);

  /* ── Easing ──────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);

  /* ── Durations ───────────────────────────────────────── */
  --dur-fast: 120ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-xl:   640ms;
}

/* ----------------------------------------------------------------
   2. RESET
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { cursor: pointer; background: none; border: none; }

/* ----------------------------------------------------------------
   3. GLOBAL BASE
---------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--f-body);
  font-weight: var(--fw-light);
  background-color: var(--deep);
  color: var(--on-dark-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* Selection */
::selection { background: var(--yellow); color: var(--deep); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Typography defaults */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
p { line-height: 1.82; }
strong { font-weight: var(--fw-med); }

/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: var(--fw-med);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.9em 1.9em;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background    var(--dur-base) var(--ease-out),
    color         var(--dur-base) var(--ease-out),
    border-color  var(--dur-base) var(--ease-out),
    box-shadow    var(--dur-slow) var(--ease-out),
    transform     var(--dur-fast) var(--ease-spring);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arr {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn:hover .btn__arr { transform: translateX(5px); }

/* Primary — yellow fill */
.btn--primary {
  background: var(--yellow);
  color: var(--deep);
  border-color: var(--yellow);
  font-weight: var(--fw-semi);
}
.btn--primary:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
  box-shadow: var(--sh-yellow);
  color: var(--deep);
}

/* Outline — transparent with yellow border */
.btn--outline {
  background: transparent;
  color: var(--on-dark-70);
  border-color: var(--on-dark-20);
}
.btn--outline:hover {
  background: var(--yellow-ghost);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Ghost small — for form */
.btn--ghost-sm {
  background: transparent;
  color: var(--on-dark-45);
  border: none;
  font-size: var(--t-xs);
  padding: 0.9em var(--sp-4);
}
.btn--ghost-sm:hover { color: var(--on-dark-70); transform: none; }

.btn--full { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------
   5. CHIPS
---------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-ghost);
  border: 1px solid rgba(255,222,66,.2);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
  transition:
    background   var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.chip--sm { font-size: var(--t-2xs); padding: 0.25em 0.75em; }

/* ----------------------------------------------------------------
   6. SECTION LAYOUT SYSTEM
---------------------------------------------------------------- */
.section { padding-block: var(--sp-24); }

/* Background variants */
.section--dark   { background: var(--deep); }
.section--forest { background: var(--forest); }
.section--olive  { background: var(--surface-warm); }

/* Inner container */
.section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section header */
.section__header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}

.section__index {
  font-family: var(--f-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: var(--fw-light);
  color: var(--on-dark-06);
  line-height: 0.8;
  user-select: none;
  flex-shrink: 0;
  margin-top: 0.1em;
  transition: color var(--dur-slow) var(--ease-out);
}

/* olive section — dark index */
.section--olive .section__index { color: rgba(28,26,20,.06); }
.section--forest .section__index { color: rgba(255,248,235,.05); }

.section:hover .section__index { color: var(--yellow-ghost); }
.section--olive:hover .section__index { color: rgba(255,222,66,.08); }

.section__heading-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}

.section__label {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Olive section overrides */
.section--olive .section__label { color: var(--olive); }
.section--olive .section__title { color: var(--surface-text); }

/* Forest section */
.section--forest .section__label { color: var(--yellow); }
.section--forest .section__title { color: var(--on-dark-100); }

.section__title {
  font-size: var(--t-3xl);
  color: var(--on-dark-100);
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   7. NAVBAR
---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--navbar-h);
  background: rgba(27, 12, 12, 0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--on-dark-10);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out);
}

.site-header:hover {
  border-bottom-color: rgba(255,222,66,.15);
  box-shadow: 0 1px 0 rgba(255,222,66,.06);
}

.navbar {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Brand text */
.navbar__brand {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: var(--fw-med);
  color: var(--on-dark-100);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color var(--dur-base) var(--ease-out);
}
.navbar__brand-accent { color: var(--yellow); }
.navbar__brand:hover { color: var(--yellow); }

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: var(--fw-reg);
  color: var(--on-dark-45);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: color var(--dur-base) var(--ease-out);
}

/* Underline — scaleX left-to-right */
.navbar__link::after {
  content: '';
  position: absolute;
  inset-inline: var(--sp-4);
  bottom: 2px;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-slow) var(--ease-out);
  border-radius: 1px;
}

.navbar__link:hover { color: var(--on-dark-100); }
.navbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* CTA pill */
.navbar__link--cta {
  background: var(--yellow);
  color: var(--deep);
  font-weight: var(--fw-semi);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: var(--sp-3);
  transition:
    background   var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out),
    transform    var(--dur-fast) var(--ease-spring);
}
.navbar__link--cta::after { display: none; }
.navbar__link--cta:hover {
  background: var(--yellow-light);
  color: var(--deep);
  box-shadow: var(--sh-yellow);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   8. HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--deep);
}

/* ── Video background ──────────────────────────── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

/* Multi-layer overlay: dark base + yellow tint gradient */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(27,12,12,.55) 0%,
      rgba(27,12,12,.2)  40%,
      rgba(27,12,12,.7)  80%,
      rgba(27,12,12,.95) 100%
    ),
    radial-gradient(ellipse 70% 55% at 65% 30%, rgba(255,222,66,.06) 0%, transparent 65%);
}

/* Dot grain texture */
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,248,235,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* ── Hero content ──────────────────────────────── */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding: var(--sp-20) var(--gutter) var(--sp-16);
}

/* Status pill */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-70);
  background: var(--on-dark-06);
  border: 1px solid var(--on-dark-10);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-10);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
}

.hero__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(0, 39%, 49%);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Hgroup */
.hero__hgroup {
  margin-bottom: var(--sp-8);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
  animation-delay: 0.1s;
}

.hero__eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: var(--fw-med);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: var(--sp-5);
}

.hero__name {
  display: flex;
  flex-direction: column;
  font-size: var(--t-5xl);
  font-weight: var(--fw-light);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: var(--sp-6);
}

.hero__name-main { color: var(--on-dark-100); }
.hero__name-sub  {
  color: var(--yellow);
  padding-left: clamp(var(--sp-10), 6vw, var(--sp-24));
}

.hero__role {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--on-dark-45);
  line-height: 1.55;
  letter-spacing: 0;
}

.hero__tagline {
  max-width: 500px;
  font-size: var(--t-md);
  color: var(--on-dark-70);
  line-height: 1.9;
  margin-bottom: var(--sp-10);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
  animation-delay: 0.22s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-14);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
  animation-delay: 0.34s;
}

/* Scroll cue */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
  animation-delay: 0.5s;
}
.hero__scroll-track {
  width: 48px;
  height: 1px;
  background: var(--on-dark-20);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.hero__scroll-thumb {
  position: absolute;
  left: -100%;
  top: 0;
  width: 40%;
  height: 100%;
  background: var(--yellow);
  animation: scroll-run 2.4s var(--ease-inout) infinite;
}
@keyframes scroll-run {
  0% { left: -40%; } 100% { left: 140%; }
}
.hero__scroll-label {
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-20);
}

/* ── Hero stats bar ────────────────────────────── */
.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(27,12,12,.85);
  border-top: 1px solid var(--on-dark-10);
  backdrop-filter: blur(10px);
  padding: var(--sp-6) var(--gutter);
  animation: fadeUp var(--dur-xl) var(--ease-out) both;
  animation-delay: 0.55s;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  text-align: center;
}

.hero__stat-value {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: var(--fw-light);
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-45);
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--on-dark-10);
  flex-shrink: 0;
}

/* ── Keyframes ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   9. ABOUT SECTION (light warm surface)
---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

/* Portrait */
.about__portrait-col { position: relative; }

.about__portrait-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/5;
  background: var(--surface-mid);
  transition: box-shadow var(--dur-slow) var(--ease-out);
}

.about__portrait-frame:hover { box-shadow: var(--sh-xl); }

.about__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--dur-xl) var(--ease-out);
}

.about__portrait-frame:hover .about__portrait { transform: scale(1.04); }

/* Nameplate overlay */
.about__portrait-tag {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  background: rgba(27,12,12,.82);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,222,66,.2);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about__portrait-tag span:first-child {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--on-dark-100);
  font-weight: var(--fw-light);
}

.about__portrait-tag span:last-child {
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Bio text */
.about__bio { padding-top: var(--sp-4); }

.about__lead {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: var(--fw-light);
  color: var(--surface-text);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
}

.about__body {
  font-size: var(--t-md);
  color: var(--surface-text2);
  line-height: 1.85;
  margin-bottom: var(--sp-5);
}

/* Facts grid */
.about__profile { margin: var(--sp-8) 0; }

.facts { display: flex; flex-direction: column; gap: 0; }

.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--surface-mid);
}

.facts__row:first-child { border-top: 1px solid var(--surface-mid); }

.facts__term {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface-text2);
  flex-shrink: 0;
}

.facts__value {
  font-size: var(--t-sm);
  color: var(--surface-text);
  font-weight: var(--fw-reg);
  text-align: right;
}

/* CTA link */
.about__cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 1.5px solid var(--olive-ghost);
  padding-bottom: var(--sp-1);
  transition:
    color        var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    gap          var(--dur-base) var(--ease-spring);
}
.about__cta-link:hover {
  color: var(--olive-light);
  border-color: var(--olive);
  gap: var(--sp-4);
}

/* ----------------------------------------------------------------
   10. SKILLS CARDS
---------------------------------------------------------------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.skill-card {
  background: var(--deep-light);
  border: 1px solid var(--on-dark-10);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition:
    transform    var(--dur-slow) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background   var(--dur-base) var(--ease-out);
}

/* Yellow top bar */
.skill-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), rgba(255,222,66,.3), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.skill-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-xl);
  border-color: rgba(255,222,66,.2);
  background: var(--deep-mid);
}
.skill-card:hover::before { transform: scaleX(1); }

.skill-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.skill-card__num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-light);
  color: var(--on-dark-06);
  line-height: 1;
  user-select: none;
  transition: color var(--dur-slow) var(--ease-out);
}
.skill-card:hover .skill-card__num { color: var(--yellow-ghost); }

.skill-card__title {
  font-size: var(--t-xl);
  color: var(--on-dark-100);
  text-align: right;
  max-width: 60%;
  line-height: 1.25;
}

.skill-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.skill-card__list li {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  line-height: 1.65;
  padding-left: var(--sp-6);
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}

.skill-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 1px;
  background: var(--yellow);
  transition: width var(--dur-base) var(--ease-out);
}

.skill-card:hover .skill-card__list li { color: var(--on-dark-70); }
.skill-card:hover .skill-card__list li::before { width: 18px; }

/* ----------------------------------------------------------------
   11. TIMELINE (Experience)
---------------------------------------------------------------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--sp-6);
  bottom: var(--sp-6);
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--yellow)          0%,
    rgba(255,222,66,.25) 50%,
    transparent         100%
  );
}

.timeline__entry {
  display: grid;
  grid-template-columns: 52px 1fr;
  position: relative;
}

.timeline__marker {
  display: flex;
  justify-content: center;
  padding-top: var(--sp-7);
  z-index: 1;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--yellow);
  transition:
    background  var(--dur-base) var(--ease-out),
    transform   var(--dur-base) var(--ease-spring),
    box-shadow  var(--dur-slow) var(--ease-out);
}

.timeline__entry:hover .timeline__dot {
  background: var(--yellow);
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(255,222,66,.15);
}

.timeline__card {
  background: rgba(49,62,23,.45);
  border: 1px solid rgba(255,248,235,.08);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-left: var(--sp-4);
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(6px);
  transition:
    transform    var(--dur-slow) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background   var(--dur-base) var(--ease-out);
}

.timeline__card:hover {
  transform: translateX(6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(255,222,66,.2);
  background: rgba(49,62,23,.65);
}

.timeline__card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--on-dark-10);
}

.timeline__role {
  font-size: var(--t-xl);
  color: var(--on-dark-100);
  margin-bottom: var(--sp-1);
}

.timeline__company {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  font-weight: var(--fw-reg);
}

.timeline__badge {
  display: inline-flex;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--yellow);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
  flex-shrink: 0;
}

.timeline__ext {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255,222,66,.3);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
  flex-shrink: 0;
  transition:
    background   var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color        var(--dur-base) var(--ease-out);
}
.timeline__ext:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--deep);
}

.timeline__desc {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.timeline__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ----------------------------------------------------------------
   12. PROJECTS
---------------------------------------------------------------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.project-card {
  background: var(--deep-light);
  border: 1px solid var(--on-dark-10);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform    var(--dur-slow) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-xl);
  border-color: rgba(255,222,66,.25);
}

/* Image */
.project-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: var(--forest-dark);
  position: relative;
}

.project-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(27,12,12,.7) 100%);
  transition: opacity var(--dur-slow) var(--ease-out);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-xl) var(--ease-out);
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__body {
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card__idx {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--on-dark-20);
  font-weight: var(--fw-med);
  transition: color var(--dur-base) var(--ease-out);
}
.project-card:hover .project-card__idx { color: var(--yellow); }

.project-card__link {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255,222,66,.3);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
  transition:
    background    var(--dur-base) var(--ease-out),
    border-color  var(--dur-base) var(--ease-out),
    color         var(--dur-base) var(--ease-out);
}
.project-card__link:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--deep);
}

.project-card__title {
  font-size: var(--t-xl);
  color: var(--on-dark-100);
  line-height: 1.25;
}

.project-card__desc {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  line-height: 1.8;
  flex: 1;
}

.project-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--on-dark-10);
  margin-top: auto;
  transition: border-color var(--dur-base);
}
.project-card:hover .project-card__footer { border-color: rgba(255,222,66,.15); }

/* ----------------------------------------------------------------
   13. ATHLETE (Forest section with images)
---------------------------------------------------------------- */
.athlete__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.athlete__photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 3/4;
  background: var(--forest-dark);
  transition: box-shadow var(--dur-slow) var(--ease-out);
}
.athlete__photo-frame:hover { box-shadow: var(--sh-xl); }

.athlete__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--dur-xl) var(--ease-out);
}
.athlete__photo-frame:hover .athlete__photo { transform: scale(1.04); }

/* Badge on photo */
.athlete__photo-badge {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  background: rgba(27,12,12,.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,222,66,.25);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  text-align: center;
}
.athlete__photo-badge-text {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Content side */
.athlete__intro {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--on-dark-70);
  line-height: 1.5;
  margin-bottom: var(--sp-10);
  letter-spacing: -0.01em;
}

.athlete__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.athlete-card {
  background: rgba(27,12,12,.55);
  border: 1px solid rgba(255,248,235,.08);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  backdrop-filter: blur(6px);
  transition:
    background   var(--dur-slow) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform    var(--dur-slow) var(--ease-out);
}

.athlete-card:hover {
  background: rgba(27,12,12,.8);
  border-color: rgba(255,222,66,.2);
  transform: translateX(5px);
}

.athlete-card__label {
  display: block;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: var(--sp-2);
}

.athlete-card__title {
  font-size: var(--t-xl);
  color: var(--on-dark-100);
  margin-bottom: var(--sp-3);
}

.athlete-card__body {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  line-height: 1.8;
}

/* Quote */
.athlete__quote {
  border-left: 3px solid var(--yellow);
  padding: var(--sp-4) var(--sp-8);
  background: var(--yellow-ghost);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.athlete__quote p {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-style: italic;
  color: var(--yellow);
  line-height: 1.55;
  font-weight: var(--fw-light);
}

/* ----------------------------------------------------------------
   14. CONTACT
---------------------------------------------------------------- */
.contact__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact__intro {
  font-size: var(--t-md);
  color: var(--on-dark-70);
  line-height: 1.85;
  margin-bottom: var(--sp-10);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--on-dark-10);
}
.contact__item:last-child { border-bottom: none; }

.contact__label {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-20);
}

.contact__value {
  font-size: var(--t-sm);
  color: var(--on-dark-100);
}

.contact__value--open {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #4CAF7B;
  font-weight: var(--fw-med);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF7B;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.contact__value--link {
  color: var(--yellow);
  transition: color var(--dur-base) var(--ease-out);
}
.contact__value--link:hover {
  color: var(--yellow-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.form__set { border: none; }

.form__legend {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  color: var(--on-dark-100);
  margin-bottom: var(--sp-8);
  display: block;
}

.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form__label {
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-45);
}

.form__control {
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: var(--fw-light);
  color: var(--on-dark-100);
  background: var(--deep-light);
  border: 1px solid var(--on-dark-10);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  width: 100%;
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-slow) var(--ease-out),
    background   var(--dur-base) var(--ease-out);
}

.form__control::placeholder { color: var(--on-dark-20); }
.form__control:hover { border-color: var(--on-dark-20); }
.form__control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,222,66,.1);
  background: var(--deep-mid);
}

.form__textarea { resize: vertical; min-height: 130px; line-height: 1.7; }

.form__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-2);
}

/* ----------------------------------------------------------------
   15. FOOTER
---------------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--on-dark-10);
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-14) var(--gutter) var(--sp-10);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-10);
  align-items: start;
  border-bottom: 1px solid var(--on-dark-10);
}

.footer__brand-link {
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.footer__wordmark {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--on-dark-70);
  font-weight: var(--fw-light);
  letter-spacing: -0.01em;
  transition: color var(--dur-base) var(--ease-out);
}
.footer__brand-link:hover .footer__wordmark { color: var(--yellow); }

.footer__descriptor {
  font-size: var(--t-sm);
  color: var(--on-dark-20);
  margin-bottom: var(--sp-2);
}

.footer__location {
  font-size: var(--t-xs);
  color: var(--on-dark-10);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer nav */
.footer__nav { display: flex; justify-content: center; }

.footer__nav-heading {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-20);
  margin-bottom: var(--sp-4);
  text-align: center;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.footer__nav-link {
  font-size: var(--t-sm);
  color: var(--on-dark-45);
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}

.footer__nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-slow) var(--ease-out);
}

.footer__nav-link:hover { color: var(--on-dark-100); }
.footer__nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__right { text-align: right; }

.footer__ext-link {
  font-size: var(--t-sm);
  color: var(--yellow);
  opacity: 0.8;
  transition: opacity var(--dur-base) var(--ease-out);
}
.footer__ext-link:hover { opacity: 1; }

.footer__base {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-5) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.footer__copy, .footer__built {
  font-size: var(--t-xs);
  color: var(--on-dark-20);
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------------
   16. RESPONSIVE
---------------------------------------------------------------- */

/* ── 1100px ────────────────────────────────────── */
@media (max-width: 1100px) {
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .athlete__layout { grid-template-columns: 280px 1fr; gap: var(--sp-10); }
  .about__grid { grid-template-columns: 320px 1fr; gap: var(--sp-10); }
}

/* ── 900px ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait-frame { max-width: 380px; }
  .athlete__layout { grid-template-columns: 1fr; }
  .athlete__photo-frame { max-width: 360px; }
  .contact__layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-column: 1 / -1; justify-content: flex-start; }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: var(--sp-4); }
  .footer__nav-heading { text-align: left; }
  .footer__right { text-align: left; }
  .section__header { gap: var(--sp-5); }
}

/* ── 680px ─────────────────────────────────────── */
@media (max-width: 680px) {
  .navbar__link { font-size: var(--t-xs); padding: var(--sp-2) var(--sp-3); }
  .navbar__link--cta { display: none; }
  .hero__name { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__stats { flex-wrap: wrap; justify-content: flex-start; gap: var(--sp-4); }
  .hero__stat-divider { display: none; }
  .hero__stat { flex: 0 0 40%; align-items: flex-start; }
  .skills__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .timeline__entry { grid-template-columns: 36px 1fr; }
  .timeline__card-head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .form__row--split { grid-template-columns: 1fr; gap: 0; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}

/* ── 420px ─────────────────────────────────────── */
@media (max-width: 420px) {
  .navbar__links { display: none; }
  .hero__scroll { display: none; }
  .skill-card__head { flex-direction: column; gap: var(--sp-2); }
  .skill-card__title { text-align: left; max-width: 100%; }
}

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
