/* ── DESIGN TOKENS ───────────────────────────────── */
:root {
  --bg:        #0e1117;
  --surface:   #141820;
  --surface2:  #1a2030;
  --border:    rgba(255,255,255,0.07);
  --gold:      #e8b44a;
  --gold-dim:  rgba(232,180,74,0.15);
  --teal:      #4ab8c8;
  --teal-dim:  rgba(74,184,200,0.12);
  --text:      #e8e6df;
  --muted:     #7a8494;
  --white:     #ffffff;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'Space Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: hidden; /* unlocked by JS after intro */
}

/* ── INTRO ANIMATION OVERLAY ─────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #050c14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#intro-overlay.fade-out {
  transition: opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}
#intro-overlay.done {
  display: none;
}

#skip-btn {
  position: absolute;
  top: 20px; right: 28px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(74,184,200,0.4);
  background: transparent;
  border: 1px solid rgba(74,184,200,0.18);
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  z-index: 10;
}
#skip-btn:hover { color: var(--teal); border-color: var(--teal); }

#stage-label {
  position: absolute;
  top: 22px; left: 28px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(74,184,200,0.5);
  transition: opacity 0.3s;
}

#intro-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), var(--gold));
  width: 0%;
  transition: width 0.08s linear;
  z-index: 5;
}

/* The wrapper that holds the floor plan SVG during intro */
#intro-fp-wrap {
  width: min(92vw, 860px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.fp-top-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(74,184,200,0.5);
}
.fp-bottom-label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(74,184,200,0.3);
  text-align: right;
}

/* Name reveal at end */
#intro-name {
  position: absolute;
  bottom: 36px;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s cubic-bezier(0.4,0,0.2,1), transform 1.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
#intro-name strong { color: var(--gold); font-weight: 700; }
#intro-name.show { opacity: 1; transform: translateY(0); }

/* Floor plan SVG — groups hidden until JS reveals them */
#fp-svg .fp-frame,
#fp-svg .fp-outer-wall,
#fp-svg .fp-walls-main,
#fp-svg .fp-walls-secondary,
#fp-svg .fp-columns,
#fp-svg .fp-doors,
#fp-svg .fp-windows,
#fp-svg .fp-stairs,
#fp-svg .fp-fixtures,
#fp-svg .fp-dims,
#fp-svg .fp-labels,
#fp-svg .fp-annotations {
  opacity: 0;
}

/* Flowing draw-on: every stroke child gets dashoffset animation */
#fp-svg.drawing-mode line,
#fp-svg.drawing-mode rect,
#fp-svg.drawing-mode polyline,
#fp-svg.drawing-mode polygon,
#fp-svg.drawing-mode path,
#fp-svg.drawing-mode circle,
#fp-svg.drawing-mode ellipse {
  stroke-dasharray: var(--dash-len, 1200);
  stroke-dashoffset: var(--dash-len, 1200);
}
#fp-svg.drawing-mode line.drawn,
#fp-svg.drawing-mode rect.drawn,
#fp-svg.drawing-mode polyline.drawn,
#fp-svg.drawing-mode polygon.drawn,
#fp-svg.drawing-mode path.drawn,
#fp-svg.drawing-mode circle.drawn,
#fp-svg.drawing-mode ellipse.drawn {
  transition: stroke-dashoffset var(--draw-dur, 0.18s) linear;
  stroke-dashoffset: 0;
}

/* When the fp-svg moves into the hero panel */
#fp-svg.in-hero {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(74,184,200,0.1));
}

/* ── CURSOR GLOW ─────────────────────────────────── *//* ── CURSOR GLOW ─────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,184,200,0.04) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
}

/* ── NOISE TEXTURE OVERLAY ───────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 60px;
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 80px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.hero-name strong {
  font-weight: 700;
  color: var(--gold);
}

.hero-title {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.student-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(232,180,74,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 44px;
}
.hero-desc em {
  color: var(--text);
  font-style: normal;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cta-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,180,74,0.3);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cta-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-val {
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-val span { color: var(--gold); }
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 1px;
}

/* ── HERO BLUEPRINT PANEL ────────────────────────── */
.hero-visual {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* grid dots */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74,184,200,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* corner accents */
.corner {
  position: absolute;
  width: 20px; height: 20px;
}
.corner.tl { top: 16px; left: 16px; border-top: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.corner.tr { top: 16px; right: 16px; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.corner.bl { bottom: 16px; left: 16px; border-bottom: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.corner.br { bottom: 16px; right: 16px; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }

.bp-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.bp-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.6;
  margin-bottom: 10px;
}

svg.blueprint {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(74,184,200,0.12));
}

/* animated draw-on */
.dl { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.6s cubic-bezier(.4,0,.2,1) forwards; }
.dl.d1 { animation-delay: 0.1s; }
.dl.d2 { animation-delay: 0.25s; }
.dl.d3 { animation-delay: 0.4s; }
.dl.d4 { animation-delay: 0.55s; }
.dl.d5 { animation-delay: 0.65s; }
.dl.d6 { animation-delay: 0.75s; }
.dl.d7 { animation-delay: 0.85s; }
.dl.d8 { animation-delay: 0.95s; }
.dl.d9 { animation-delay: 1.05s; }
.dl.d10 { animation-delay: 1.15s; }
.dl.d11 { animation-delay: 1.25s; }
.dl.d12 { animation-delay: 1.35s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.fi { opacity: 0; animation: fi 0.5s ease forwards; }
.fi.f1 { animation-delay: 1.5s; }
.fi.f2 { animation-delay: 1.7s; }
.fi.f3 { animation-delay: 1.9s; }
@keyframes fi { to { opacity: 1; } }

/* typing cursor */
.bp-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--teal);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── ABOUT / INTRO STRIP ─────────────────────────── */
.about-strip {
  background: var(--surface);
  padding: 64px 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.about-heading {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}

.about-p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}
.about-p + .about-p { margin-top: 16px; }
.about-p strong { color: var(--text); font-weight: 500; }

/* ── SECTION COMMON ──────────────────────────────── */
section { padding: 96px 80px; position: relative; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}
.sec-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.sec-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── PROJECTS ────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--surface);
  padding: 40px;
  cursor: default;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card:hover { background: var(--surface2); }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.project-card:hover::before { height: 100%; }

.project-type {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mini-plan {
  width: 100%;
  height: 130px;
  margin-bottom: 20px;
  background: rgba(74,184,200,0.04);
  border: 1px solid rgba(74,184,200,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.spec-pill {
  font-family: var(--f-mono);
  font-size: 9px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 1px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.project-card:hover .spec-pill {
  border-color: rgba(74,184,200,0.25);
  color: var(--teal);
}

.project-status {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.status-academic { color: var(--teal); }
.status-thesis   { color: var(--gold); }
.status-collab   { color: #a78bfa; }

/* ── EDUCATION / EXPERIENCE ──────────────────────── */
.edu-section { background: var(--surface); }

.timeline {
  position: relative;
  padding-left: 36px;
  max-width: 760px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), rgba(74,184,200,0));
}

.timeline-item {
  position: relative;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: none; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px; top: 10px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--teal);
  background: var(--bg);
  border-radius: 50%;
}

.tl-period {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tl-role {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.tl-company {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.tl-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── SKILLS ──────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-group {
  background: var(--surface);
  padding: 36px;
}

.sg-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.skill-item:hover { color: var(--text); }

.skill-bar-track {
  width: 56px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.skill-bar-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(to right, var(--teal), var(--gold));
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-bar-fill.animated { width: var(--w); }

/* ── COURSEWORK / ACADEMICS ──────────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0;
}

.course-card {
  background: var(--surface);
  padding: 28px 32px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.course-card:hover {
  background: var(--surface2);
  border-left-color: var(--gold);
}

.course-code {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.course-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}
.course-grade {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gold);
}

/* ── CONTACT ─────────────────────────────────────── */
.contact-section { background: var(--surface); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.cl-icon {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  width: 56px;
  text-transform: uppercase;
}
.cl-val { color: var(--text); font-weight: 500; }
.cl-val a { color: var(--teal); text-decoration: none; }
.cl-val a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 13px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus { border-color: var(--teal); }
.form-textarea { height: 120px; resize: vertical; }

.submit-btn {
  align-self: flex-start;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.submit-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,180,74,0.25);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 28px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .gold { color: var(--gold); }

/* ── PLANS SECTION ───────────────────────────────── */
.plans-section { background: var(--bg); }
.plans-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.plan-tab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  background: transparent;
  border-top: none; border-left: none; border-right: none;
}
.plan-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.plan-tab:hover:not(.active) { color: var(--text); }

.plan-view { display: none; background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.plan-view.active { display: block; }

.plan-svg-wrap { width: 100%; overflow-x: auto; }

.plan-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 1px;
}
.plan-meta-item { background: var(--surface); padding: 14px 18px; }
.pm-label {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.pm-value { font-family: var(--f-mono); font-size: 13px; color: var(--text); }

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-text { padding: 60px 32px 80px; }
  nav { padding: 0 24px; }
  .nav-status { display: none; }
  section { padding: 64px 32px; }
  .about-strip { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  footer { padding: 24px 32px; flex-direction: column; gap: 8px; text-align: center; }
  .plan-meta { grid-template-columns: repeat(2,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .dl, .fi, .reveal, .timeline-item { animation: none; transition: none; opacity: 1; transform: none; }
}
