/* ============================================================
   ROOT — RED / DARK  (TVF-inspired)
============================================================ */
:root {
  --bg:           #0C0C0B;
  --bg2:          #141413;
  --card:         #1C1B1A;
  --card-hover:   #222120;
  --red:          #E8302C;
  --red-dim:      rgba(232, 48, 44, 0.12);
  --red-glow:     rgba(232, 48, 44, 0.22);
  --white:        #F2F2F0;
  --grey:         #888886;
  --muted:        #4A4A48;
  --line:         rgba(255,255,255,0.07);
  --line-red:     rgba(232,48,44,0.25);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', 'Courier New', monospace;
  --nav-h:        72px;
  --max:          1280px;
  --pad:          clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section-alt { background: var(--bg2); }

/* Red label above section titles */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

/* Editorial display heading */
.display {
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display-sm {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

/* Gradient text — red version */
.grad {
  background: linear-gradient(135deg, #E8302C, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Horizontal rule */
.hr {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}
.hr-red {
  background: var(--line-red);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--red-dim);
  border: 1px solid rgba(232,48,44,0.22);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #FF6B6B;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL PROGRESS
============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 10000;
  transition: width 0.08s linear;
}

/* ============================================================
   CURSOR
============================================================ */
.cursor {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
  transition: width 0.15s, height 0.15s, opacity 0.15s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(232,48,44,0.45);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}
.cursor.big { width: 20px; height: 20px; }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(12,12,11,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Nav CTA */
.nav-hire {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  padding: 7px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-hire:hover { background: var(--red); color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 260px; height: 100vh;
  background: #0f0f0e;
  z-index: 999;
  padding: calc(var(--nav-h) + 40px) 32px 32px;
  transition: right 0.32s cubic-bezier(.4,0,.2,1);
  border-left: 1px solid var(--line);
}
.mobile-menu.open { right: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in, .reveal-left.in, .reveal-right.in {
  opacity: 1; transform: translate(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Subtle noise/grain overlay for cinematic texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
/* Red spotlight — top right */
.hero-spot {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,48,44,0.18) 0%, transparent 65%);
  top: -200px; right: -150px;
  animation: spot-drift 12s ease-in-out infinite;
}
@keyframes spot-drift {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-40px, 30px); }
}
/* Bottom left cooler glow */
.hero-spot-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(120,40,30,0.12) 0%, transparent 65%);
  bottom: -100px; left: -80px;
  animation: spot-drift 15s ease-in-out infinite reverse;
}

/* Diagonal red line — decorative */
.hero-line {
  position: absolute;
  top: 0; right: 260px;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(232,48,44,0.25) 30%, rgba(232,48,44,0.1) 70%, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--nav-h) var(--pad) 0;
  width: 100%;
}

/* Status pill */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  animation: fadein 0.5s ease both;
}
.status-dot {
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}

/* The name — editorial, near-full-width */
.hero-name {
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadein 0.55s 0.1s ease both;
}
.hero-name .surname {
  display: block;
  color: var(--red);
  /* Stroke treatment — outlined second word */
  -webkit-text-stroke: 2px var(--red);
  color: transparent;
  /* Override for full fill */
  color: var(--red);
}

/* Role strip */
.hero-role-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  animation: fadein 0.55s 0.2s ease both;
}
.hero-role-strip .pipe { color: var(--muted); font-size: 1.2rem; }
.hero-role-text {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--grey);
}
.typewriter {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--red);
  border-right: 2px solid var(--red);
  padding-right: 3px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{ border-color: var(--red); } 50%{ border-color: transparent; } }

/* One-line summary */
.hero-summary {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--grey);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadein 0.55s 0.3s ease both;
}

/* CTA row */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadein 0.55s 0.4s ease both;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  line-height: 1;
  text-transform: uppercase;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 28px var(--red-glow);
}
.btn-red:hover {
  background: #FF4040;
  box-shadow: 0 0 40px var(--red-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 16px; font-size: 0.75rem; }

/* Social icon links */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--grey);
  transition: all 0.2s;
}
.icon-link:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px; right: var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-arrow {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   HERO STATS STRIP (below hero, full width)
============================================================ */
.stats-strip {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--line);
}
.stat-item {
  padding: 36px 0;
  border-right: 1px solid var(--line);
  padding-right: 32px;
  padding-left: 32px;
  text-align: center;
  transition: background 0.2s;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-item:hover { background: rgba(232,48,44,0.04); }
.stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.stat-num.red { color: var(--red); }
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* ============================================================
   ABOUT — EDITORIAL SPLIT LAYOUT
============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-left {}
.about-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--red);
}
/* Photo */
.about-photo-wrap {
  position: relative;
  margin-top: 40px;
}
.about-photo-placeholder {
  aspect-ratio: 4/5;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.about-photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(232,48,44,0.08) 0%, transparent 70%);
}
.photo-initials {
  font-size: 6rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.15;
  letter-spacing: -0.05em;
  line-height: 1;
}
.photo-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 0 20px;
}
/* Red corner accent */
.photo-corner {
  position: absolute;
  bottom: 0; right: 0;
  width: 48px; height: 48px;
  border-left: 2px solid var(--red);
  border-top: 2px solid var(--red);
  opacity: 0.4;
}
.about-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
  display: block;
}

.about-right {}
.about-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.about-headline em {
  font-style: normal;
  color: var(--red);
}
.about-body p {
  font-size: 0.975rem;
  color: var(--grey);
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-body strong { color: var(--white); font-weight: 600; }

/* Certs as clean list */
.certs-list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--muted);
  transition: all 0.2s;
}
.cert:hover { border-color: var(--line-red); color: var(--red); }
.cert::before { content: '↗'; font-size: 0.65rem; }

/* ============================================================
   SKILLS — MARQUEE + GRID
============================================================ */
/* Marquee ticker */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--bg2);
  margin-bottom: 64px;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--red); }
.marquee-item i { font-size: 1.1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Skills grid — editorial categories */
.skills-editorial {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.skill-nav {
  border-right: 1px solid var(--line);
  padding-right: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.skill-nav-item {
  display: block;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
  cursor: pointer;
}
.skill-nav-item:hover, .skill-nav-item.active {
  color: var(--red);
  padding-left: 8px;
}
.skills-panels {
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.skill-panel {}
.skill-panel-title {
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--grey);
  transition: all 0.2s;
  cursor: default;
}
.skill-pill:hover {
  background: var(--red-dim);
  border-color: var(--line-red);
  color: var(--white);
  transform: translateY(-2px);
}
.skill-pill i { font-size: 1.1rem; }

/* ============================================================
   EXPERIENCE — VERTICAL TIMELINE (click to expand)
============================================================ */
.exp-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 44px;
}
.exp-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}
.exp-item {
  position: relative;
  padding-bottom: 28px;
  cursor: pointer;
}
.exp-item:last-child { padding-bottom: 0; }
.exp-tl-dot {
  position: absolute;
  left: -39px;
  top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--muted);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.exp-item:hover .exp-tl-dot,
.exp-item.open .exp-tl-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}
.exp-header {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  user-select: none;
}
.exp-item:hover .exp-header { background: var(--card-hover); border-left-color: rgba(232,48,44,0.4); }
.exp-item.open .exp-header { border-left-color: var(--red); background: var(--card-hover); }
.exp-toggle-btn {
  position: absolute;
  top: 18px; right: 18px;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), color 0.25s;
  pointer-events: none;
}
.exp-item.open .exp-toggle-btn { transform: rotate(180deg); color: var(--red); }
.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.exp-company {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.exp-period {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.exp-role {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding-right: 32px; }
.exp-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1);
  background: var(--card);
  border-left: 3px solid var(--red);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-item.open .exp-details { max-height: 500px; }
.exp-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
}
.exp-points li {
  font-size: 0.875rem;
  color: var(--grey);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}
.exp-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
}
.exp-points li strong { color: var(--white); font-weight: 600; }

/* ============================================================
   PROJECTS — 3-CARD CAROUSEL
============================================================ */
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.carousel-btn {
  width: 44px; height: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--grey);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s;
  flex-shrink: 0;
}
.carousel-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.carousel-counter {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 48px;
  text-align: center;
  letter-spacing: 0.08em;
}

/* Stage: fixed-height viewport, cards absolutely positioned */
.carousel-stage {
  position: relative;
  height: 530px;
  overflow: hidden;
  margin-top: 8px;
}

.proj-card {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Carousel transitions */
  transition: transform 0.52s cubic-bezier(.22,.68,0,1.1),
              opacity 0.45s ease,
              filter 0.4s ease,
              border-color 0.25s;
  will-change: transform, opacity;
}
/* Red top bar */
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

/* ---- Carousel states ---- */
.proj-card[data-state="center"] {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  cursor: pointer;
  filter: none;
}
.proj-card[data-state="center"]:hover {
  border-color: var(--line-red);
}
.proj-card[data-state="center"]:hover::before { transform: scaleX(1); }

.proj-card[data-state="left"] {
  transform: translateX(calc(-50% - 420px)) scale(0.83);
  opacity: 0.42;
  z-index: 2;
  cursor: pointer;
  filter: blur(1px) brightness(0.7);
}
.proj-card[data-state="right"] {
  transform: translateX(calc(-50% + 420px)) scale(0.83);
  opacity: 0.42;
  z-index: 2;
  cursor: pointer;
  filter: blur(1px) brightness(0.7);
}
.proj-card[data-state="left"]:hover,
.proj-card[data-state="right"]:hover {
  opacity: 0.62;
  filter: blur(0.5px) brightness(0.85);
}
.proj-card[data-state="hidden-left"] {
  transform: translateX(calc(-50% - 840px)) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.proj-card[data-state="hidden-right"] {
  transform: translateX(calc(-50% + 840px)) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Flash-to-GitHub animation */
@keyframes card-flash {
  0%   { box-shadow: 0 0 0 0 transparent; }
  40%  { box-shadow: 0 0 0 6px rgba(232,48,44,0.35); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.proj-card.flash { animation: card-flash 0.28s ease forwards; }

.proj-card-top {
  padding: 24px 26px;
  flex: 1;
}
.proj-number {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.proj-emoji { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.proj-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.proj-desc {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.68;
  margin-bottom: 14px;
}
.proj-highlights {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.proj-highlights li {
  font-size: 0.78rem;
  color: var(--grey);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.proj-highlights li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.35;
}
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.proj-card-foot {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  display: flex;
}
.proj-link {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  pointer-events: none;
}
.proj-card[data-state="center"] .proj-link { color: var(--red); }
.proj-card[data-state="center"]:hover .proj-link { gap: 10px; }

/* ============================================================
   EDUCATION
============================================================ */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-item {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: end;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: min-height 0.55s cubic-bezier(.22,.68,0,1.1);
}
.edu-item:first-child { border-top: 1px solid var(--line); }
.edu-item:hover { min-height: 340px; }

/* Full-image overlay */
.edu-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  filter: brightness(0.28) saturate(0.6);
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
.edu-item:hover .edu-bg-overlay { opacity: 1; }

/* Gradient scrim so text stays readable over the photo */
.edu-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top,
    rgba(20,20,19,0.96) 0%,
    rgba(20,20,19,0.6) 55%,
    transparent 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.edu-item:hover::after { opacity: 1; }

/* Content above both overlays */
.edu-body, .edu-period-block { position: relative; z-index: 2; }

/* Tighter text on hover to fit the narrower bottom strip */
.edu-item:hover .edu-school {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin-bottom: 4px;
}
.edu-item:hover .edu-detail {
  font-size: 0.78rem;
  line-height: 1.5;
}
.edu-item:hover .edu-years {
  font-size: 2rem;
  color: rgba(242,242,240,0.2);
}
.edu-item:hover .edu-location { font-size: 0.65rem; }
.edu-degree {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.edu-school {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.edu-detail {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.65;
}
.edu-detail strong { color: var(--grey); }
.edu-period-block {
  text-align: right;
}
.edu-years {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: var(--mono);
}
.edu-location {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ============================================================
   CONTACT — FULL-BLEED BOLD CTA
============================================================ */
#contact {
  background: var(--bg2);
  overflow: hidden;
  position: relative;
}
.contact-bg-text {
  position: absolute;
  bottom: -2rem;
  left: var(--pad);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.contact-left .contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.contact-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contact-sub {
  font-size: 0.975rem;
  color: var(--grey);
  max-width: 480px;
  line-height: 1.75;
}
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}
.contact-email-big {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.contact-email-big a { color: var(--red); transition: opacity 0.2s; }
.contact-email-big a:hover { opacity: 0.75; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #080807;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}
.footer-left a { color: var(--red); }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--red);
  border: none;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 500;
  box-shadow: 0 4px 24px var(--red-glow);
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: #FF4040; transform: translateY(-4px); }

/* ============================================================
   ANIMATION
============================================================ */
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--line); }
  .skills-editorial { grid-template-columns: 1fr; }
  .skill-nav { display: flex; flex-wrap: wrap; gap: 0; border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; position: static; }
  .skill-nav-item { border-bottom: none; border-right: 1px solid var(--line); padding: 6px 14px; }
  .skills-panels { padding-left: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-hire { display: none; }
  .hamburger { display: flex; }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 260px; }

  .exp-list { padding-left: 28px; }
  .exp-tl-dot { left: -24px; }
  .exp-meta { flex-direction: column; gap: 4px; }
  .carousel-stage { height: 580px; }
  .proj-card { width: min(340px, 82vw); }
  .proj-card[data-state="left"]  { transform: translateX(calc(-50% - 310px)) scale(0.82); }
  .proj-card[data-state="right"] { transform: translateX(calc(-50% + 310px)) scale(0.82); }
  .proj-card[data-state="hidden-left"]  { transform: translateX(calc(-50% - 620px)) scale(0.7); }
  .proj-card[data-state="hidden-right"] { transform: translateX(calc(-50% + 620px)) scale(0.7); }

  .edu-item { grid-template-columns: 1fr; gap: 16px; }
  .edu-period-block { text-align: left; }
  .edu-years { font-size: 1.8rem; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-right { align-items: flex-start; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  .hero-name { font-size: clamp(3.8rem, 13vw, 7rem); }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .proj-card { width: min(300px, 86vw); }
  .proj-card[data-state="left"]  { transform: translateX(calc(-50% - 270px)) scale(0.8); }
  .proj-card[data-state="right"] { transform: translateX(calc(-50% + 270px)) scale(0.8); }
  .proj-card[data-state="hidden-left"]  { transform: translateX(calc(-50% - 540px)) scale(0.7); }
  .proj-card[data-state="hidden-right"] { transform: translateX(calc(-50% + 540px)) scale(0.7); }
  .carousel-stage { height: 580px; }
}
