/* ═══════════════════════════════════════════════
   MATTHEW FABER — RESUME / PORTFOLIO
   F1 / Ferrari-inspired dark theme
═══════════════════════════════════════════════ */

:root {
  --black:     #080809;
  --carbon:    #0d0d10;
  --dark:      #111115;
  --panel:     #161619;
  --panel-2:   #1b1b20;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --red:       #e8003d;
  --red-deep:  #b30030;
  --red-glow:  rgba(232,0,61,0.30);
  --gold:      #ffd600;
  --amber:     #ff9a00;
  --cyan:      #00d4ff;
  --green:     #39ff14;
  --white:     #f2f2f8;
  --muted:     #6c6c82;
  --dimmed:    rgba(242,242,248,0.62);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --font-mono:    'Share Tech Mono', ui-monospace, monospace;

  --max-width: 1400px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Subtle grain ── */
body::after {
  content: '';
  position: fixed; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* ── Background grid ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: var(--white); }

/* ═══════════════════════════════════════════════ NAV ═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,8,9,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 24px var(--red-glow);
  transform: skewX(-8deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 15px;
  color: var(--white);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--dimmed);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); border-bottom-color: var(--red); }

.pit-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px var(--red-glow);
}
.pit-stop:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--red-glow); }
.pit-stop .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ═══════════════════════════════════════════════ HERO ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 140px 40px 80px;
  min-height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.hero-stripes {
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0 30px,
    transparent 30px 60px
  );
  opacity: 0.5;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.hero-left { padding-top: 20px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-title span { display: block; }
.hero-title .accent {
  color: var(--red);
  text-shadow: 0 0 60px var(--red-glow);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dimmed);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--white); font-weight: 600; }
.hl {
  color: var(--red);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 22px var(--red-glow);
}
.btn-primary:hover { background: #ff1a4f; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ── Pit wall card ── */
.pit-wall {
  background: linear-gradient(180deg, var(--panel) 0%, var(--carbon) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 26px;
  border-radius: var(--radius);
  position: relative;
}
.pit-wall::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 4px;
  background: var(--red);
}
.pit-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pit-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--red);
}
.pit-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.pit-list { list-style: none; }
.pit-list li {
  padding: 10px 0;
  font-size: 13px;
  color: var(--dimmed);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.pit-list li:last-child { border-bottom: none; }
.pit-icon { color: var(--red); margin-top: 1px; font-size: 11px; }

/* ── Hero stats bar ── */
.hero-stats {
  max-width: var(--max-width);
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--panel);
  padding: 22px 18px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════ SECTIONS ═══════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 110px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt {
  background:
    linear-gradient(180deg, rgba(20,20,25,0.6) 0%, rgba(13,13,16,0.6) 100%);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--red);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.section-lede {
  font-size: 17px;
  color: var(--dimmed);
  max-width: 880px;
  margin-bottom: 50px;
  line-height: 1.75;
}
.section-lede strong { color: var(--white); }

/* ═══════════════════════════════════════════════ ABOUT ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.photo-card { padding: 0; overflow: hidden; }
.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--carbon);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.photo-frame::before {
  /* Subtle red corner stripe accent */
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 4px;
  background: var(--red);
  z-index: 2;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(8,8,9,0.55) 100%);
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.95);
}
.photo-meta { padding: 20px; display: grid; gap: 10px; }
.photo-meta > div {
  font-size: 13px;
  color: var(--white);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
}
.photo-meta > div span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2px;
}
.photo-meta em { color: var(--green); font-style: normal; }

.bio-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dimmed);
  margin-bottom: 18px;
}
.bio-card strong { color: var(--white); font-weight: 600; }
.bio-card p:last-child { margin-bottom: 0; }

.about-quote {
  border-left: 3px solid var(--red);
  padding-left: 18px !important;
  margin-top: 26px !important;
  color: var(--white) !important;
  font-style: italic;
  font-size: 15px !important;
}
.quote-mark {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 0;
  position: relative;
  top: 6px;
}

/* ═══════════════════════════════════════════════ AI STACK ═══════════════════════════════════════════════ */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.ai-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--carbon) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  border-top-color: var(--red);
}

.ai-card-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.ai-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ai-card-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.1;
}
.ai-card-byline {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}
.ai-card-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
}

.ai-card-list { list-style: none; margin-bottom: 18px; }
.ai-card-list li {
  font-size: 13px;
  color: var(--dimmed);
  padding: 7px 0 7px 18px;
  position: relative;
  line-height: 1.55;
}
.ai-card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.ai-card-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dimmed);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  text-transform: uppercase;
}
.pill-red { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── Workflow ── */
.workflow {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.workflow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--gold), var(--green));
}
.workflow-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 28px;
}
.workflow-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.wf-step {
  flex: 1;
  min-width: 140px;
  background: var(--carbon);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
  border-top: 2px solid var(--red);
}
.wf-finish { border-top-color: var(--green); }
.wf-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.wf-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 10px;
}
.wf-finish .wf-label { color: var(--green); }
.wf-body { font-size: 12.5px; color: var(--dimmed); line-height: 1.55; }
.wf-body code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(232,0,61,0.12);
  color: var(--red);
  padding: 1px 4px;
  border-radius: 2px;
}
.wf-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 18px;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════ SKILLS ═══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-block {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}

.skill-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 22px;
}
.sh-bracket { color: var(--red); }

.lang-list { list-style: none; display: grid; gap: 14px; }
.lang-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.lang-list li:last-child { border-bottom: none; }
.lang-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
  padding-top: 1px;
}
.lang-context {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dimmed);
}

.tag-cluster { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dimmed);
  background: var(--carbon);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  text-transform: uppercase;
}
.tag-red {
  background: rgba(232,0,61,0.12);
  border-color: var(--red);
  color: var(--red);
}
.tag-amber {
  background: rgba(255,154,0,0.10);
  border-color: var(--amber);
  color: var(--amber);
}

/* ═══════════════════════════════════════════════ PROJECTS ═══════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(232,0,61,0.15);
}
.proj-flagship {
  border-top: 3px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255,214,0,0.04), transparent 40%),
    var(--panel);
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.proj-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.proj-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.proj-flagship .proj-status { color: var(--gold); border-color: var(--gold); }

.proj-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}
.proj-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dimmed);
  margin-bottom: 16px;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.proj-tags .tag { padding: 4px 9px; font-size: 10px; }

.proj-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  color: var(--dimmed);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.proj-link:hover {
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-1px);
}
.proj-link-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.proj-link-primary:hover {
  background: #ff1a4f;
  color: var(--white);
}
.proj-link .arrow {
  font-size: 11px;
  transition: transform 0.2s;
}
.proj-link:hover .arrow { transform: translate(2px, -2px); }

.proj-more {
  margin-top: 50px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 34px;
}
.proj-more-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 18px;
}
.proj-more-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
}
.proj-more-list li {
  font-size: 13.5px;
  color: var(--dimmed);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.proj-more-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 10px;
  top: 3px;
}
.proj-more-list strong { color: var(--white); font-weight: 600; }
.proj-more-list a {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  padding: 1px 6px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.proj-more-list a:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

/* ═══════════════════════════════════════════════ EDUCATION ═══════════════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}
.edu-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}
.edu-degree { border-left: 3px solid var(--red); }
.edu-certs { border-left: 3px solid var(--gold); }

.edu-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.edu-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 6px;
}
.edu-school {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.edu-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.edu-body { font-size: 14px; color: var(--dimmed); line-height: 1.65; }
.edu-body strong { color: var(--white); }

.cert-list { list-style: none; }
.cert-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.cert-list li:last-child { border-bottom: none; }
.cert-name {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}
.cert-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}
.status-prog { background: rgba(232,0,61,0.15); color: var(--red); border: 1px solid var(--red); }
.status-plan { background: rgba(108,108,130,0.12); color: var(--muted); border: 1px solid var(--border-2); }

/* ── Coursework ── */
.coursework {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
}
.cw-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 8px;
}
.cw-lede {
  font-size: 14px;
  color: var(--dimmed);
  margin-bottom: 28px;
  line-height: 1.65;
}

.cw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cw-card {
  background: var(--carbon);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.cw-card:hover { border-color: var(--red); transform: translateY(-2px); }
.cw-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.cw-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--red);
  white-space: nowrap;
}
.cw-card p {
  font-size: 12.5px;
  color: var(--dimmed);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════ CAREER LAP ═══════════════════════════════════════════════ */
.section-lap { max-width: var(--max-width); }

.lap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 50px 0 20px;
}
.lap-line {
  position: absolute;
  top: 70px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(to right,
    var(--green) 0%,
    var(--green) 20%,
    var(--gold) 50%,
    var(--red) 65%,
    var(--muted) 85%,
    var(--white) 100%);
  z-index: 0;
}
.lap-point {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 36px;
}
.lap-dot {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  background: var(--carbon);
  border: 3px solid var(--muted);
  border-radius: 50%;
}
.lap-grid .lap-dot { border-color: var(--green); }
.lap-s1 .lap-dot   { border-color: var(--green); }
.lap-s2 .lap-dot   { border-color: var(--gold); }
.lap-dot-active {
  width: 28px; height: 28px;
  top: -5px;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 6px rgba(232,0,61,0.18), 0 0 24px var(--red-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
.lap-finish .lap-dot {
  background: repeating-conic-gradient(var(--white) 0% 25%, var(--carbon) 25% 50%);
  border-color: var(--white);
}
.lap-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.lap-current .lap-label { color: var(--red); }
.lap-text {
  font-size: 12px;
  color: var(--dimmed);
  line-height: 1.5;
  padding: 0 6px;
}

/* ═══════════════════════════════════════════════ CONTACT ═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 22px 24px;
  border-radius: var(--radius);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(232,0,61,0.15);
}
.contact-card-static { cursor: default; }
.contact-card-static:hover { transform: none; box-shadow: none; }

.contact-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}
.contact-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}
.contact-arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted);
  font-size: 18px;
  font-family: var(--font-mono);
  transition: transform 0.2s, color 0.2s;
}
.contact-card:not(.contact-card-static):hover .contact-arrow {
  color: var(--red);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════ FOOTER ═══════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--carbon);
  padding: 40px;
  margin-top: 40px;
}
footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, var(--red), transparent);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  border-radius: var(--radius);
  transform: skewX(-8deg);
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 14px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pit-wall { max-width: 480px; }
  .proj-grid,
  .cw-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .lap-track { grid-template-columns: repeat(3, 1fr); gap: 30px 14px; }
  .lap-line { display: none; }
  .lang-list li { grid-template-columns: 110px 1fr; gap: 12px; }
}

@media (max-width: 820px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-links { display: none; }
  .brand-text { display: none; }
  .hero { padding: 110px 20px 60px; }
  .section { padding: 80px 20px; }
  .section-alt > * { padding-left: 20px; padding-right: 20px; }
  .about-grid,
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid,
  .ai-grid,
  .proj-grid,
  .cw-grid,
  .contact-grid,
  .proj-more-list { grid-template-columns: 1fr; }
  .lang-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .workflow { padding: 22px; }
  .workflow-track { flex-direction: column; }
  .wf-arrow { transform: rotate(90deg); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════ PRINT ═══════════════════════════════════════════════ */
@media print {
  nav, .pit-stop, .hero-stripes, body::before, body::after { display: none; }
  body { background: white; color: black; }
  .section, .hero { padding: 20px; }
}

/* ═══════════════════════════════════════════════ MOTION REDUCED ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
