/* ============================================================
   LOCAL FONTS
   Files live in ./fonts/
============================================================ */

/* Rajdhani */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/rajdhani-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/rajdhani-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/rajdhani-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/rajdhani-v17-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/rajdhani-v17-latin-700.woff2') format('woff2');
}

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* Source Code Pro */
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/source-code-pro-v31-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/source-code-pro-v31-latin-600.woff2') format('woff2');
}

/* ============================================================
   TOKENS
============================================================ */
:root {
  --bg:           #1a1712;   /* dark warm grey, not flat black */
  --bg-mid:       #201d18;
  --bg-light:     #2a261e;
  --cream:        #f0e8d8;
  --cream-dim:    #a89880;
  --border:       #3a3228;
  --accent:       #ffb000;
  --accent-dim:   #7a4e00;
  --warm:         #ffd060;
  --font-display: 'Rajdhani', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Source Code Pro', monospace;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Diagonal-fading grid — fully visible upper-left, invisible lower-right.
   z-index: 0 keeps it beneath the hero image and nav bar. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(to right, var(--accent-dim) 1px, transparent 1px),
    linear-gradient(to bottom, var(--accent-dim) 1px, transparent 1px);
  background-size: 12px 12px;

  -webkit-mask-image: linear-gradient(
    to bottom right,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.18) 35%,
    rgba(0,0,0,0.06) 65%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom right,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.18) 35%,
    rgba(0,0,0,0.06) 65%,
    rgba(0,0,0,0) 100%
  );
}

/* Content layers — hero and nav sit above the grid */
nav, main, section, footer, .hero, .interstitial, .nav-drawer {
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   FIXED NAV — transparent over hero, dark on scroll
============================================================ */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

/* JS adds .scrolled class */
.nav-bar.scrolled {
  background: rgba(20, 20, 20, 0.75);
  border-bottom-color: var(--border);
  backdrop-filter: blur(8px);
}

a.nav-logo {
  color: var(--cream);
  text-decoration: none;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a .icon path,
.nav-links a .icon polyline,
.nav-links a .icon polygon,
.nav-links a .icon line,
.nav-links a .icon circle,
.nav-links a .icon ellipse {
  stroke: var(--cream-dim);
  transition: stroke 0.2s;
}

.nav-links a:hover .icon path,
.nav-links a:hover .icon polyline,
.nav-links a:hover .icon polygon,
.nav-links a:hover .icon line,
.nav-links a:hover .icon circle,
.nav-links a:hover .icon ellipse,
.nav-links a.active .icon path,
.nav-links a.active .icon polyline,
.nav-links a.active .icon polygon,
.nav-links a.active .icon line,
.nav-links a.active .icon circle,
.nav-links a.active .icon ellipse {
  stroke: var(--accent);
}

@keyframes navPulse {
  0%   { color: var(--accent); opacity: 1; text-shadow: none; }
  30%  { color: #fff; opacity: 1; text-shadow: 0 0 8px #fff, 0 0 20px var(--accent), 0 0 40px var(--accent); }
  60%  { color: var(--accent); opacity: 0.6; text-shadow: 0 0 6px var(--accent); }
  100% { color: var(--accent); opacity: 1; text-shadow: none; }
}

.nav-links a.pulsing,
.nav-logo.pulsing {
  animation: navPulse 0.6s ease-out forwards;
}

/* ============================================================
   HERO — full-viewport with CSS parallax
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;

  background-image:
    linear-gradient(
      to bottom,
      rgba(10,10,10,0.1) 0%,
      rgba(10,10,10,0.55) 60%,
      rgba(20,20,20,1) 100%
    ),
    url('./images/gonzo.webp');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

/* Dim overlay — fades in on hover */
.hero::after,
.interstitial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0);
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero:hover::after,
.interstitial:hover::after {
  background: rgba(10,10,10,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  max-width: 800px;
  animation: heroEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  animation: heroEntrance 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-shadow:
    #000 4.5px 0px 0px,
    #000 4.25232px 1.47238px 0px,
    #000 3.53649px 2.78267px 0px,
    #000 2.43137px 3.78663px 0px,
    #000 1.05857px 4.37373px 0px,
    #000 -0.430757px 4.47933px 0px,
    #000 -1.87266px 4.09185px 0px,
    #000 -3.10842px 3.25389px 0px,
    #000 -4.00197px 2.05772px 0px,
    #000 -4.45497px 0.63504px 0px,
    #000 -4.41753px -0.857556px 0px,
    #000 -3.89379px -2.25575px 0px,
    #000 -2.94140px -3.40563px 0px,
    #000 -1.66520px -4.18050px 0px,
    #000 -0.205678px -4.49529px 0px,
    #000 1.27648px -4.31517px 0px,
    #000 2.61812px -3.65997px 0px,
    #000 3.67153px -2.60188px 0px,
    #000 4.32077px -1.25737px 0px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 1.2rem;
  animation: heroEntrance 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-shadow:
    0 0 12px rgba(0,0,0,0.9),
    0 0 30px rgba(0,0,0,0.7),
    0 0 60px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--warm);
  max-width: 520px;
  line-height: 1.5;
  animation: heroEntrance 1.1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-shadow:
    0 0 8px rgba(0,0,0,0.9),
    0 0 20px rgba(0,0,0,0.8);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  right: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: heroEntrance 1.2s 0.8s both;
}

.hero-scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cream-dim));
}

/* ============================================================
   ANGLED SECTION DIVIDER (clip-path)
============================================================ */
.section-wrap {
  position: relative;
}

.section-wrap::before {
  content: '';
  display: block;
  height: 70px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -70px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   MAIN CONTENT SECTIONS
============================================================ */
.content-section {
  padding: 5rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 3rem;
  line-height: 1.1;
}

/* ============================================================
   ABOUT / BIO
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.85;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.about-info {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.about-info-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.about-info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.2rem;
}

.about-info-value {
  font-size: 0.95rem;
  color: var(--cream);
}

/* ============================================================
   TIMELINE
   --tl-pad:  total left padding on .timeline
   --tl-line: distance from left edge of .timeline to the line
   Dot is centered on the line: left = --tl-line - (dot-width/2)
============================================================ */
:root {
  --tl-pad:  7rem;
  --tl-line: 5.25rem;
  --tl-dot:  28px;
}

.timeline {
  position: relative;
  padding-left: var(--tl-pad);
}

/* the vertical line — sits behind dots via z-index */
.timeline::before {
  content: '';
  position: absolute;
  left: var(--tl-line);
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--accent-dim) 100%, transparent);
  filter: brightness(2);
  z-index: 0;
}

.timeline-entry {
  position: relative;
  margin-bottom: 3.5rem;
  z-index: 1;       /* establishes stacking context so dot can sit above line */
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

/* Gear dot — z-index > line; opaque background masks the line segment beneath */
.timeline-dot {
  position: absolute;
  left: calc(var(--tl-line) - var(--tl-pad) - calc(var(--tl-dot) / 2) + 1px);
  top: 0.22rem;
  width: var(--tl-dot);
  height: var(--tl-dot);
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--bg);          /* opaque — physically covers the line */
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), inset 0 0 4px rgba(255,176,0,0.15);
  cursor: default;

  transition: box-shadow 0.3s, background 0.3s;
}

/* Dotted connector — drawn on entries that continue into a same-company entry below. */
.timeline-entry--continued {
  overflow: visible;
}

.timeline-entry--continued::after {
  content: '';
  position: absolute;
  /* Center on the line: line is at --tl-line from .timeline left edge,
     entry content starts at --tl-pad, so offset = --tl-line - --tl-pad.
     Subtract half the width (1px) to center the 2px bar on the line. */
  left: calc(var(--tl-line) - var(--tl-pad) - 1px);
  top: calc(var(--tl-dot) + 0.22rem);
  bottom: -3.5rem;
  width: 4px;   /* wider than solid line so it fully covers it */
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0px,
    var(--accent) 6px,
    var(--bg) 6px,
    var(--bg) 13px
  );
  z-index: 3;
}


.timeline-dot.promotion {
  background: var(--bg);
  border-color: #ffe066;
  box-shadow: 0 0 14px #ffe066, inset 0 0 6px rgba(255,224,102,0.2);
}

.timeline-dot.promotion svg {
  fill: #ffe066;
}

.timeline-entry:hover .timeline-dot.promotion {
  background: color-mix(in srgb, var(--bg) 85%, #ffe066 15%);
  box-shadow: 0 0 22px #ffe066, inset 0 0 10px rgba(255,224,102,0.25);
}

.timeline-entry:hover .timeline-dot.promotion svg {
  transform: translateY(-2px);
}

/* Promotion tag inside the duration line */
.promo-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe066;
  border: 1px solid #ffe066;
  border-radius: 2px;
  padding: 0 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.9;
}
.timeline-dot svg {
  width: 60%;
  height: 60%;
  fill: var(--accent);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 50%;
  will-change: transform;
  display: block;
  flex-shrink: 0;
}

.timeline-entry:hover .timeline-dot {
  /* mix amber tint over the opaque bg rather than going transparent */
  background: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
  box-shadow: 0 0 18px var(--accent), inset 0 0 8px rgba(255,176,0,0.2);
}

.timeline-entry:hover .timeline-dot svg {
  transform: rotate(120deg);
}

.timeline-entry:hover .timeline-dot.promotion svg {
  transform: translateY(-2px);
}

/* year floats left of the line, vertically centered on the dot */
.timeline-year {
  position: absolute;
  left: calc(-1 * var(--tl-pad));
  top: 0.22rem;
  height: var(--tl-dot);
  width: calc(var(--tl-line) - calc(var(--tl-dot) / 2) - 0.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.timeline-year .yr-century {
  color: var(--accent-dim);
  filter: brightness(2.2);
}

.timeline-year .yr-digits {
  color: var(--accent);
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.1rem;
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  filter: brightness(2.2);
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--cream-dim);
  margin-bottom: 0.8rem;
  max-width: 560px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-bullets li {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream-dim);
  padding-left: 1.2rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 400;
}

/* ============================================================
   SKILLS
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.skill-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-pill {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.28rem 0.7rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-pill:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(255,176,0,0.05);
}

/* ============================================================
   INTERSTITIAL BANNER
============================================================ */
.interstitial {
  height: 320px;
  background-image:
    linear-gradient(
      to bottom,
      rgba(20,20,20,0.35) 0%,
      rgba(20,20,20,0.65) 100%
    ),
    url('./images/gonzo.webp');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tag-cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 15%, transparent 45%);
  mask-image: radial-gradient(circle at 50% 50%, black 15%, transparent 45%);
}

.interstitial-quote {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-align: center;
  max-width: 600px;
  padding: 0 2rem;
  opacity: 0.9;
  text-shadow:
    #000 4.5px 0px 0px,
    #000 4.25232px 1.47238px 0px,
    #000 3.53649px 2.78267px 0px,
    #000 2.43137px 3.78663px 0px,
    #000 1.05857px 4.37373px 0px,
    #000 -0.430757px 4.47933px 0px,
    #000 -1.87266px 4.09185px 0px,
    #000 -3.10842px 3.25389px 0px,
    #000 -4.00197px 2.05772px 0px,
    #000 -4.45497px 0.63504px 0px,
    #000 -4.41753px -0.857556px 0px,
    #000 -3.89379px -2.25575px 0px,
    #000 -2.94140px -3.40563px 0px,
    #000 -1.66520px -4.18050px 0px,
    #000 -0.205678px -4.49529px 0px,
    #000 1.27648px -4.31517px 0px,
    #000 2.61812px -3.65997px 0px,
    #000 3.67153px -2.60188px 0px,
    #000 4.32077px -1.25737px 0px;
}

/* ============================================================
   EDUCATION
============================================================ */
.edu-entry {
  display: flex;
  gap: 2rem;
  align-items: baseline;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 3.5rem;
  line-height: 1;
}

.edu-year .yr-century { color: var(--accent-dim); filter: brightness(2.2); }
.edu-year .yr-digits  { color: var(--accent); }

.edu-school {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.edu-detail {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--cream-dim);
}

/* ============================================================
   INLINE ICONS
============================================================ */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  margin-right: 0.45em;
  position: relative;
  top: -0.1em;
  flex-shrink: 0;
}

.icon path, .icon polyline, .icon polygon,
.icon line, .icon rect, .icon circle,
.icon ellipse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .filled,
.icon circle.filled,
.icon path.filled {
  fill: var(--accent) !important;
  stroke: none !important;
}

.about-info-label {
  display: flex;
  align-items: center;
}

.skill-group-label {
  display: flex;
  align-items: center;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
}

/* ============================================================
   SCROLL FADE-IN UTILITY
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HAMBURGER MENU BUTTON (hidden on desktop)
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* X state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(12px);
  padding: 5rem 2rem 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.open {
  transform: translateY(0);
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer ul li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-drawer ul li a:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   RESPONSIVE — tablet (≤900px)
============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 2rem; }
  main { padding: 3rem 2rem 5rem; }
  .about-grid { gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — mobile (≤680px)
============================================================ */
@media (max-width: 680px) {
  .nav-bar { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }

  .hero { background-attachment: scroll; min-height: 100svh; }
  .hero-content { padding: 0 1.25rem 3.5rem; }
  .hero-scroll-hint { display: none; }

  .container { padding: 0 1.25rem; }
  .content-section { padding: 3rem 0; }
  .section-heading { margin-bottom: 2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-info {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  :root {
    --tl-pad:  4.5rem;
    --tl-line: 3.25rem;
    --tl-dot:  22px;
  }
  .timeline-year { font-size: 0.92rem; }

  .interstitial {
    background-attachment: scroll;
    background-size: cover;
    background-position: center 30%;
    height: 220px;
  }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — very small (≤380px)
============================================================ */
@media (max-width: 380px) {
  .hero-name { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { background-attachment: scroll; background-size: cover; }
  .interstitial { background-attachment: scroll; background-size: cover; background-position: center 30%; }
}
