/* ============================================
   ravikovind.com — Stylesheet
   Dark · Voltvave stack · Personal
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* 60-30-10: Black · White · Red */
  --bg:         #000000;
  --bg-alt:     #0d0d0d;
  --bg-card:    #141414;
  --bg-raised:  #1a1a1a;
  --text:       #f0f0f0;
  --text-muted: rgba(240, 240, 240, 0.45);
  --text-dim:   rgba(240, 240, 240, 0.25);
  --accent:     #eb1d25;
  --accent-dk:  #c41e24;
  --accent-lt:  rgba(235, 29, 37, 0.1);
  --accent-glow:rgba(235, 29, 37, 0.18);
  --border:     rgba(255, 255, 255, 0.07);
  --border-red: rgba(235, 29, 37, 0.35);

  /* Voltvave fonts */
  --f-head: 'Saira', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Saira', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'Space Mono', 'Courier New', monospace;

  --max:      760px;
  --max-wide: 1100px;
  --nav-h:    60px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t:    0.3s var(--ease);
}

/* --- Font display swap — prevent invisible text during load --- */
@font-face { font-family: 'Saira'; font-display: swap; }
@font-face { font-family: 'Space Mono'; font-display: swap; }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; transition: color var(--t), opacity var(--t); }
a:hover { color: var(--accent-dk); }
strong { font-weight: 600; color: var(--text); }

/* --- Skip link --- */
.skip-link {
  position: absolute; top: -48px; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
  font-family: var(--f-mono); font-size: 0.75rem;
  z-index: 200; text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* --- Reading progress --- */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}

.nav {
  width: 100%; max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text);
}
.nav__logo {
  width: 28px; height: 28px;
  border-radius: 6px; object-fit: cover;
}
.nav__name {
  font-family: var(--f-head);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: #eb1d25;
  transition: color var(--t);
}
.nav__brand:hover .nav__name { color: #c41e24; }

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

/* Nav links */
.nav__links {
  display: flex; align-items: center;
  gap: 1.75rem; list-style: none;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 0.75rem; font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--t);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }

.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.35rem 1rem !important;
  border-radius: 3px;
  font-family: var(--f-mono) !important;
  transition: background var(--t) !important;
}
.nav__cta:hover { background: var(--accent-dk) !important; color: #fff !important; }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative; overflow: hidden;
}

/* Subtle red glow top-right */
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(235,29,37,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__inner { max-width: var(--max); position: relative; z-index: 1; }

.hero__label {
  font-family: var(--f-mono);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
}

.hero__name {
  font-family: var(--f-head);
  font-size: clamp(3.5rem, 11vw, 7rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em;
  color: #eb1d25;
  margin-bottom: 1.75rem;
  text-shadow: 0 0 60px rgba(235,29,37,0.2);
}

.hero__tagline {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8; color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero__story {
  font-family: var(--f-head);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3rem;
}

.hero__scroll {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color var(--t), gap var(--t);
}
.hero__scroll:hover { color: var(--accent); gap: 0.75rem; }

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}
.section--alt  { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.section__meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.section__num {
  font-family: var(--f-mono);
  font-size: 0.65rem; font-weight: 400;
  color: var(--border);
  letter-spacing: 0.08em;
}
.section__label {
  font-family: var(--f-mono);
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 2.5rem;
}

.section__intro {
  max-width: var(--max);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 3rem; line-height: 1.8;
}

/* ========================================
   PROSE
   ======================================== */
.prose { max-width: var(--max); }
.prose p { color: var(--text-muted); margin-bottom: 1.2rem; font-weight: 300; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.pullquote {
  border-left: 2px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--f-head);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text); line-height: 1.5;
}

/* ========================================
   TIMELINE — Stepper
   ======================================== */
.timeline {
  max-width: var(--max);
  position: relative;
  padding-left: 0;
}

/* Vertical connecting line */
.timeline::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0.6rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(235,29,37,0.3) 60%,
    transparent 100%
  );
}

.timeline__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1.75rem;
  padding-bottom: 3rem;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }

/* Step dot — the stepper circle */
.timeline__year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-top: 0.1rem;
}

/* Circle marker */
.timeline__year::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 14px var(--accent-glow);
  flex-shrink: 0;
  margin-top: 0.2rem;
  z-index: 1;
}

/* Year label — rotated, reads downward */
.timeline__year span {
  font-family: var(--f-mono);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 1;
}

/* Major step — bigger glow */
.timeline__item--major .timeline__year::before {
  width: 12px; height: 12px;
  box-shadow: 0 0 0 3px var(--accent), 0 0 20px var(--accent-glow);
}

.timeline__role {
  font-family: var(--f-head);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600; color: var(--text);
  margin-bottom: 0.2rem;
}
.timeline__loc {
  font-family: var(--f-mono);
  font-size: 0.65rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
}
.timeline__content p {
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 300;
  margin-bottom: 0.75rem; line-height: 1.75;
}
.timeline__content p:last-child { margin-bottom: 0; }

/* Stats strip */
.stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px; margin: 1.25rem 0;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__n {
  font-family: var(--f-mono);
  font-size: 1.35rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat__l {
  font-family: var(--f-mono);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ========================================
   TIMELINE EXTRAS
   ======================================== */

/* Header row with badge */
.timeline__header {
  display: flex; align-items: center;
  gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

/* Status badge */
.timeline__badge {
  font-family: var(--f-mono);
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  border: 1px solid;
  flex-shrink: 0;
}
.timeline__badge--active  { color: #10b981; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.timeline__badge--past    { color: var(--text-muted); border-color: var(--border); background: transparent; }
.timeline__badge--closed  { color: #ef4444; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.timeline__badge--building{ color: #f59e0b; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }

/* Major item — slightly more padding */
.timeline__item--major { padding: 2.75rem 0; }

/* Highlight strip (JoiAmore 11 orders) */
.timeline__highlight {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: 1rem 0; padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.timeline__highlight-num {
  font-family: var(--f-mono);
  font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.timeline__highlight-text {
  font-family: var(--f-body);
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-muted);
}

/* "What I shipped" list */
.tl-shipped {
  margin: 1.1rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.tl-shipped__label {
  font-family: var(--f-mono);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.tl-shipped__list {
  list-style: none;
  padding: 0.5rem 0;
}
.tl-shipped__list li {
  font-family: var(--f-body);
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-muted);
  padding: 0.35rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.tl-shipped__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Tech tags on timeline */
.tl-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  list-style: none; margin-top: 1rem;
}
.tl-tags li {
  font-family: var(--f-mono);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

/* Sub-project card inside timeline */
.tl-project {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color var(--t);
}
.tl-project:hover { border-color: rgba(235,29,37,0.2); }

.tl-project__header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.625rem; flex-wrap: wrap;
}
.tl-project__name {
  font-family: var(--f-head);
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
}
.tl-project__status {
  font-family: var(--f-mono);
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 2px; border: 1px solid;
}
.tl-project__status--live     { color: #10b981; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.tl-project__status--closed   { color: #ef4444; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.tl-project__status--building { color: #f59e0b; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }

.tl-project p {
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.75;
  margin-bottom: 0;
}
.tl-project code {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}
.tl-project .tl-tags { margin-top: 0.875rem; }
.tl-project .stats { border: none; padding: 0; background: transparent; }

/* ========================================
   WORK LIST — editorial hover-expand rows
   ======================================== */

.work-list {
  border-top: 1px solid var(--border);
}

/* Each row */
.wi {
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  outline: none;
}

/* Left red bar — scales in on hover */
.wi::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.wi:hover::before,
.wi:focus-within::before,
.wi.is-tapped::before { transform: scaleY(1); }

/* Collapsed header row */
.wi__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.25rem 1.25rem;
  cursor: default;
}

.wi__num {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 1.5rem;
}

.wi__name {
  font-family: var(--f-head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.2s;
}
.wi__name--dim { color: var(--text-dim); font-weight: 400; }
.wi:hover .wi__name:not(.wi__name--dim),
.wi.is-tapped .wi__name:not(.wi__name--dim) { color: var(--accent); }

/* Dotted fill between name and year */
.wi__fill {
  flex: 1;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.1) 0,
    rgba(255,255,255,0.1) 3px,
    transparent 3px,
    transparent 9px
  );
  min-width: 2rem;
}

.wi__meta {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Status dot */
.wi__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wi__dot--live     { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.wi__dot--past     { background: #4b5563; }
.wi__dot--closed   { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.wi__dot--building { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.wi__dot--personal { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

/* Expand panel — CSS grid trick */
.wi__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.wi:hover .wi__expand,
.wi:focus-within .wi__expand,
.wi.is-tapped .wi__expand {
  grid-template-rows: 1fr;
}

.wi__inner {
  overflow: hidden;
  padding: 0 1.25rem 0 calc(1.25rem + 1.5rem + 1rem);
  display: flex; flex-direction: column; gap: 0.875rem;
}
/* Push bottom padding into inner so collapse is clean */
.wi:hover .wi__inner,
.wi:focus-within .wi__inner,
.wi.is-tapped .wi__inner {
  padding-bottom: 1.5rem;
}

.wi__desc {
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.75;
  max-width: 680px;
}

.wi__stats {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.wi__stats span {
  font-family: var(--f-mono);
  font-size: 0.72rem; color: var(--text-muted);
}
.wi__stats b { color: var(--accent); font-weight: 700; }

.wi__foot {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem;
}

.wi__tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  list-style: none;
}
.wi__tags li {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem; border-radius: 2px;
  letter-spacing: 0.03em;
}

.wi__link {
  font-family: var(--f-mono);
  font-size: 0.62rem; font-weight: 400;
  color: var(--accent) !important;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: opacity var(--t);
}
.wi__link:hover { opacity: 0.65; }

/* "More" row — no expand */
.wi--more { cursor: default; }
.wi--more::before { display: none; }
.wi--more .wi__row { padding-top: 1rem; padding-bottom: 1rem; }

/* ========================================
   PROJECTS — legacy (kept for pcard references)
   ======================================== */
.projects-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Main grid — 3 cols */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card base */
.pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t);
}
.pcard:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Colored top accent bar */
.pcard__bar { height: 3px; width: 100%; flex-shrink: 0; }
.pcard__bar--live     { background: #10b981; }
.pcard__bar--past     { background: #6b7280; }
.pcard__bar--closed   { background: #ef4444; }
.pcard__bar--building { background: #f59e0b; }
.pcard__bar--personal { background: var(--accent); }

/* Card body */
.pcard__body {
  padding: 1.375rem;
  display: flex; flex-direction: column;
  gap: 0.75rem; flex: 1;
}

/* Top row */
.pcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.pcard__category {
  font-family: var(--f-mono);
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  display: block; margin-bottom: 0.25rem;
}
.pcard__name {
  font-family: var(--f-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.2;
}
.pcard--featured .pcard__name { font-size: 1.35rem; }

/* Status badge */
.pcard__badge {
  font-family: var(--f-mono);
  font-size: 0.56rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 2px; border: 1px solid;
  white-space: nowrap; flex-shrink: 0; margin-top: 0.1rem;
}
.pcard__badge--live     { color: #10b981; border-color: rgba(16,185,129,0.3);  background: rgba(16,185,129,0.08); }
.pcard__badge--past     { color: #9ca3af; border-color: rgba(156,163,175,0.3); background: transparent; }
.pcard__badge--closed   { color: #ef4444; border-color: rgba(239,68,68,0.3);   background: rgba(239,68,68,0.08); }
.pcard__badge--building { color: #f59e0b; border-color: rgba(245,158,11,0.3);  background: rgba(245,158,11,0.08); }

/* External link */
.pcard__link {
  font-family: var(--f-mono);
  font-size: 0.6rem; font-weight: 400;
  color: var(--accent) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap; flex-shrink: 0; margin-top: 0.1rem;
  transition: opacity var(--t);
}
.pcard__link:hover { opacity: 0.65; }

/* Description */
.pcard__desc {
  font-size: 0.85rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.7; margin: 0;
}

/* Stats strip (featured) */
.pcard__stats {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg-raised);
  border-radius: 6px; border: 1px solid var(--border);
}
.pcard__stat { display: flex; flex-direction: column; gap: 0.1rem; }
.pcard__stat-n {
  font-family: var(--f-mono);
  font-size: 1.2rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.pcard__stat-l {
  font-family: var(--f-mono);
  font-size: 0.56rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}

/* Inline stats (small cards) */
.pcard__inline-stats {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.pcard__inline-stats span {
  font-family: var(--f-mono);
  font-size: 0.7rem; color: var(--text-muted);
}
.pcard__inline-stats strong { color: var(--accent); font-weight: 700; }

/* Tags */
.pcard__tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  list-style: none; margin-top: auto; padding-top: 0.2rem;
}
.pcard__tags li {
  font-family: var(--f-mono);
  font-size: 0.58rem; font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem; border-radius: 2px;
  letter-spacing: 0.03em;
}

/* "More" card */
.pcard--more {
  align-items: center; justify-content: center;
  text-align: center; min-height: 140px;
  background: transparent !important;
  border: 1px dashed rgba(235,29,37,0.2) !important;
}
.pcard--more:hover {
  border-color: rgba(235,29,37,0.4) !important;
  background: var(--accent-lt) !important;
  transform: none;
}
.pcard__more-text {
  font-family: var(--f-head);
  font-size: 1rem; font-weight: 700;
  color: var(--text-muted); margin: 0 0 0.3rem;
}
.pcard__more-sub {
  font-family: var(--f-mono);
  font-size: 0.6rem; letter-spacing: 0.08em;
  color: var(--text-dim); margin: 0;
}

/* ========================================
   BELIEFS
   ======================================== */
.beliefs { max-width: var(--max); }

.belief {
  padding: 1.875rem 0;
  border-bottom: 1px solid var(--border);
}
.belief:first-child { border-top: 1px solid var(--border); }

.belief__q {
  font-family: var(--f-head);
  font-size: clamp(0.95rem, 1.75vw, 1.1rem);
  font-weight: 600; color: var(--text);
  margin-bottom: 0.625rem;
}
.belief p {
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.8;
}

/* ========================================
   CONNECT
   ======================================== */
.connect { margin-top: 2.5rem; }

.connect__email {
  display: inline-block;
  font-family: var(--f-head);
  font-size: clamp(1.2rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-red);
  padding-bottom: 0.2rem;
  margin-bottom: 1.75rem;
  transition: opacity var(--t), border-color var(--t);
}
.connect__email:hover { opacity: 0.75; border-color: var(--accent); color: var(--accent); }

.connect__links {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
}
.connect__link {
  font-family: var(--f-mono);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color var(--t);
}
.connect__link:hover { color: var(--text) !important; }

/* Dark section label overrides */
.section--dark .section__num { color: var(--border); }
.section--dark .section__label { color: var(--accent); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #000;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.footer__brand {
  font-family: var(--f-head);
  font-size: 1rem; font-weight: 900;
  color: #eb1d25;
  letter-spacing: -0.01em;
}
.footer__note {
  font-family: var(--f-mono);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.footer__copy {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.prose .fade-up:nth-child(2)  { transition-delay: 0.06s; }
.prose .fade-up:nth-child(3)  { transition-delay: 0.12s; }
.prose .fade-up:nth-child(4)  { transition-delay: 0.18s; }
.prose .fade-up:nth-child(5)  { transition-delay: 0.24s; }
.prose .fade-up:nth-child(6)  { transition-delay: 0.3s; }
.prose .fade-up:nth-child(7)  { transition-delay: 0.36s; }
.prose .fade-up:nth-child(8)  { transition-delay: 0.42s; }
.prose .fade-up:nth-child(9)  { transition-delay: 0.48s; }
.prose .fade-up:nth-child(10) { transition-delay: 0.54s; }
.prose .fade-up:nth-child(11) { transition-delay: 0.6s; }

.projects .fade-up:nth-child(2) { transition-delay: 0.07s; }
.projects .fade-up:nth-child(3) { transition-delay: 0.14s; }
.projects .fade-up:nth-child(4) { transition-delay: 0.21s; }
.projects .fade-up:nth-child(5) { transition-delay: 0.28s; }
.projects .fade-up:nth-child(6) { transition-delay: 0.35s; }

.beliefs .fade-up:nth-child(2) { transition-delay: 0.07s; }
.beliefs .fade-up:nth-child(3) { transition-delay: 0.14s; }
.beliefs .fade-up:nth-child(4) { transition-delay: 0.21s; }
.beliefs .fade-up:nth-child(5) { transition-delay: 0.28s; }
.beliefs .fade-up:nth-child(6) { transition-delay: 0.35s; }
.beliefs .fade-up:nth-child(7) { transition-delay: 0.42s; }

/* ========================================
   AI EXPLORER
   ======================================== */
.ai-explorer { margin-top: 2.5rem; }

.ai-explorer__nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.ai-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t);
  margin-bottom: -1px;
  white-space: nowrap;
}
.ai-btn:hover { color: var(--text); }
.ai-btn--active { color: var(--text); border-bottom-color: var(--accent); }

.ai-btn__icon {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--t);
}
.ai-btn:hover .ai-btn__icon { color: var(--text); }
.ai-btn--active .ai-btn__icon { color: var(--accent); }

.ai-explorer__panels { position: relative; }

.ai-panel { display: none; }
.ai-panel--active { display: block; }

.ai-panel__header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border); border-bottom: none;
  border-left: 2px solid var(--accent);
  border-radius: 0;
}
.ai-panel__source {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.ai-panel__query {
  font-family: var(--f-mono); font-size: 0.62rem;
  color: var(--text-dim); letter-spacing: 0.03em;
}

.ai-panel__body {
  background: var(--bg-card);
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-top: none;
  padding: 1.5rem 1.75rem;
}
.ai-panel__body p {
  font-family: var(--f-body);
  font-size: 0.9rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: 0.875rem;
}
.ai-panel__body p:last-child { margin-bottom: 0; }
.ai-panel__body strong { color: var(--text); font-weight: 600; }
.ai-panel__body em { color: var(--accent); font-style: normal; }

.ai-panel__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-red);
  border-radius: 0;
}
.ai-panel__facts li {
  font-family: var(--f-mono);
  font-size: 0.72rem; color: var(--text-muted);
}
.ai-panel__facts b {
  display: block;
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.15rem;
}

.ai-panel__sources {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 0.75rem 0;
}
.ai-src {
  font-family: var(--f-mono); font-size: 0.6rem;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem; border-radius: 2px;
  letter-spacing: 0.03em;
}

.ai-panel__ask {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--border-red);
  transition: border-color var(--t), opacity var(--t);
}
.ai-panel__ask:hover { border-bottom-color: var(--accent); opacity: 0.75; }


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

@media (max-width: 900px) {
  .timeline::before { left: 1.1rem; }
  .projects-featured { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    height: 100svh;
    background: #0a0a0a;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
    z-index: 105; overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 0.875rem; color: var(--text-muted); }

  .timeline::before { left: 1.1rem; }
  .timeline__item { grid-template-columns: 2.25rem 1fr; gap: 1rem; }

  .projects-featured { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero__name { font-size: clamp(2.75rem, 18vw, 4rem); }
  .stats { gap: 1rem; padding: 1rem; }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero__scroll, .nav__toggle, .progress-bar { display: none; }
  .section { break-inside: avoid; padding: 2rem 0; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.7rem; color: #666; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ========================================
   FOCUS
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
