/* ===== Design tokens ===== */
:root {
  /* Brand palette — deepened/separated further for stronger contrast between
     the purples: bg darker (#1c0f24), surface lighter (#5c4566), accent
     brighter/more saturated (#b98fcb, derived from the supplied #A47FB3). */
  --primary: #5c4566;
  --secondary: #ffffff;
  --tertiary: #1c0f24;
  --quad: #b98fcb;

  /* Semantic mapping */
  --bg: var(--tertiary);
  --bg-elevated: color-mix(in srgb, var(--tertiary) 70%, var(--primary) 30%);
  /* Page background from the Projects section onward — card/surface
     colors are untouched, only the space around them turns light. */
  --bg-alt: #f7f3fa;
  --text-on-alt: color-mix(in srgb, var(--tertiary) 88%, var(--primary) 12%);
  --text-on-alt-dim: color-mix(in srgb, var(--tertiary) 60%, transparent);
  --surface: var(--primary);
  --surface-hover: color-mix(in srgb, var(--primary) 85%, var(--quad) 15%);
  --border: rgba(185, 143, 203, 0.25);
  --border-strong: rgba(185, 143, 203, 0.45);
  --text: var(--secondary);
  --text-dim: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.42);
  --accent: var(--quad);
  --accent-strong: var(--secondary);
  --glow: rgba(185, 143, 203, 0.5);
  --glow-soft: rgba(185, 143, 203, 0.24);
  --grad: linear-gradient(120deg, var(--quad) 0%, var(--secondary) 65%, var(--secondary) 100%);
  --shadow-lg: 0 20px 60px -20px rgba(28, 15, 36, 0.85);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --subnav-h: 48px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Font stack */
  --font-heading: "Quicksand", "Poppins", sans-serif;
  --font-subheading: "Poppins", "Inter", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Poppins", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.project-name, .exp-role, .edu-school, .cert-name, .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Secondary title-adjacent lines read as a serif subheading */
.project-headline,
.exp-org,
.edu-degree {
  font-family: var(--font-subheading);
}

/* Tiny labels, tags, and metadata read as mono throughout */
.hero-kicker,
.project-category,
.tag,
.link-chip,
.edu-meta,
.cert-meta,
.cert-link,
.exp-meta,
.site-footer {
  font-family: var(--font-mono);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 15, 36, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-nav .nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand span { color: var(--accent-strong); }

.primary-links {
  display: flex;
  gap: 4px;
}

.primary-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.primary-links a:hover { color: var(--text); background: var(--surface-hover); }
.primary-links a.active {
  color: var(--tertiary);
  background: var(--accent);
  box-shadow: 0 0 18px 1px var(--glow-soft);
}

.subnav {
  height: var(--subnav-h);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }

.subnav-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.subnav a {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.subnav a:hover { color: var(--accent); }

.subnav a.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: 0 0 14px 0 var(--glow-soft), inset 0 0 0 1px rgba(185, 143, 203, 0.35);
}

/* ===== Sections / reveal motion ===== */
section { padding: 56px 0; }
section:first-of-type { padding-top: 10px; }

/* From Projects onward the page background itself turns light — card/tag/
   accent colors inside each section are untouched (only the space around
   them changes), so only the bare text that sits directly on the section
   background (heading, intro) needs to flip to a dark tone. */
#projects,
#skills,
#education,
#certifications {
  background: var(--bg-alt);
}
body[data-page="home"] .site-footer {
  background: var(--bg-alt);
  color: var(--text-on-alt-dim);
  border-top-color: rgba(28, 15, 36, 0.15);
}

/* Empire State sticker — symbolic of hope — now doubles as a tiny tour
   guide, introducing each section with a one-line caption before its
   heading, rather than just riding along beside the title text. */
.tour-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tour-guide-avatar {
  width: 42px;
  height: auto;
  flex: none;
  transform: rotate(-6deg);
  filter: drop-shadow(0 6px 12px rgba(28, 15, 36, 0.4));
}
.tour-guide-bubble {
  position: relative;
  background: var(--secondary);
  color: var(--tertiary);
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 6px 16px -6px rgba(28, 15, 36, 0.35);
}
.tour-guide-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 8px 7px 0;
  border-style: solid;
  border-color: transparent var(--secondary) transparent transparent;
}

@media (max-width: 700px) {
  .tour-guide-avatar { width: 32px; }
  .tour-guide-bubble { font-size: 0.8rem; padding: 8px 12px; }
}


.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.44s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero::before { animation: none !important; }
}

.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-on-alt); }
.section-head p { color: var(--text-on-alt-dim); margin-top: 10px; max-width: 60ch; }

/* ===== Hero ===== */
.hero {
  padding-top: 76px;
  padding-bottom: 44px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background: radial-gradient(55% 55% at 25% 25%, rgba(255, 255, 255, 0.14), transparent 70%),
              radial-gradient(45% 45% at 78% 12%, rgba(185, 143, 203, 0.4), transparent 70%),
              radial-gradient(50% 50% at 55% 60%, rgba(28, 15, 36, 0.7), transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
  gap: 56px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.kicker-icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero-headline .line { color: var(--text); }
.hero-headline .line.accent { color: var(--accent); }

.hero-greeting {
  font-size: clamp(2.1rem, 3.9vw, 3.15rem);
  line-height: 1.3;
  color: var(--text);
}
.hero-greeting .accent { color: var(--accent); }

.hero-subtext {
  margin-top: 24px;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
}
.hero-subtext strong { color: var(--accent); font-weight: 700; }

.hero-cutout-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hero-blob {
  position: absolute;
  z-index: 0;
  width: 58%;
  height: 70%;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}
.hero-blob::before,
.hero-blob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 44% 56% 42% 58% / 56% 44% 56% 44%;
}
/* Rotations mirrored (negated) from the original blob */
.hero-blob::before { background: var(--quad); transform: rotate(-24deg); }
.hero-blob::after {
  background: color-mix(in srgb, var(--quad) 75%, var(--primary) 25%);
  transform: rotate(16deg);
  opacity: 0.92;
}

.hero-building {
  position: absolute;
  z-index: 0;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  height: auto;
  opacity: 0.5;
  filter: grayscale(15%) brightness(0.6) saturate(1.3);
  pointer-events: none;
}

.hero-photo-cutout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto;
  transform: translateX(-24px);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.hero-photo-badge {
  position: absolute;
  z-index: 2;
  right: 6%;
  top: 2%;
  width: 100px;
  height: auto;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-wrap { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero-cutout-stage { min-height: 340px; }
  .hero-photo-cutout { max-width: 245px; transform: translateX(-12px); }
  .hero-building { max-width: 280px; }
  .hero-photo-badge { width: 68px; right: 3%; }
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary,
.btn-ghost {
  background: var(--primary);
  color: var(--secondary);
  border: 1px solid var(--border-strong);
}
.btn-primary:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -6px var(--glow), 0 0 22px 0 var(--glow-soft);
}

/* ===== Projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: opacity 0.6s var(--ease), transform 0.4s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: none;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.project-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.project-edit-btn svg { width: 16px; height: 16px; }
.project-edit-btn:hover { background: var(--accent); color: var(--tertiary); border-color: var(--accent); }

.project-move-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-move-btn {
  width: 26px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.project-move-btn:hover { background: var(--accent); color: var(--tertiary); border-color: var(--accent); }
.project-move-btn-disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.project-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--glow-soft), transparent 70%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.project-card > * { position: relative; z-index: 1; }
.project-card > .project-edit-btn,
.project-card > .project-move-controls {
  position: absolute;
  z-index: 5;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 32px -4px var(--glow-soft);
}

.project-card:hover::after { opacity: 1; }

.project-card-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2px;
}

.project-headline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.project-desc {
  color: var(--text);
  font-size: 0.94rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Project cards narrowed to 3 columns — shrink tool tags to match the
   link-chip treatment so a typical 2-3 tag project stays on one line. */
.project-card .tag-row { gap: 6px; }
.project-card .tag {
  font-size: 0.68rem;
  padding: 4px 9px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tag:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 12px 0 var(--glow-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

/* Project cards narrowed to 3 columns, so their link chips (Slide Deck,
   PRD, Prototype, ...) get a tighter, single-line treatment to avoid
   wrapping onto extra rows and inflating card height. */
.project-card .link-row { gap: 6px; }
.project-card .link-chip {
  font-size: 0.72rem;
  padding: 5px 9px;
  white-space: nowrap;
}
.project-card .link-chip:not([data-tbd="true"]) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--tertiary);
  font-weight: 700;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
}
.project-card .link-chip:not([data-tbd="true"])::after {
  content: "↗";
  font-size: 0.95em;
}
.project-card .link-chip:not([data-tbd="true"]):hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--tertiary);
  box-shadow: 0 4px 14px -2px var(--glow);
  transform: translateY(-2px);
}

.link-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.link-chip:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: 0 0 16px 0 var(--glow-soft);
  transform: translateY(-1px);
}
.link-chip[data-tbd="true"] {
  color: var(--text-faint);
  border-style: dashed;
  pointer-events: none;
}

/* ===== Skills — four bold, always-visible panels (01 Think, 02 Build,
   03 Ship, 04 Lead). A recruiter skimming shouldn't have to click
   anything to see the full skill list, so nothing here is collapsed. */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.skill-panel {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 22px;
}

.skill-panel-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.skill-panel-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.skill-panel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-on-alt);
}

.skill-panel .tag-row { gap: 8px; }
.skill-panel .tag {
  background: color-mix(in srgb, var(--quad) 14%, white);
  border-color: color-mix(in srgb, var(--quad) 32%, white);
  color: var(--text-on-alt);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.skill-panel .tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--tertiary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(28, 15, 36, 0.35);
}

/* A handful of standout skills get a filled, bolder look so the eye
   lands on them first instead of scanning every tag evenly. */
.skill-panel .tag-signature {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  font-weight: 700;
}
.skill-panel .tag-signature:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--tertiary);
}

.tag-admin { padding-right: 6px; display: inline-flex; align-items: center; gap: 6px; }
.tag-remove {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-on-alt-dim);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tag-remove:hover { color: var(--secondary); background: var(--accent); }

.tag-add {
  background: transparent;
  border-style: dashed;
  color: var(--text-on-alt-dim);
  cursor: pointer;
}
.tag-add:hover { color: var(--primary); border-color: var(--accent); }

.skill-group-remove {
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(28, 15, 36, 0.2);
  background: transparent;
  color: var(--text-on-alt-dim);
  font-size: 0.78rem;
  cursor: pointer;
}
.skill-group-remove:hover { border-color: #e5484d; color: #e5484d; }

/* ===== Education ===== */
.edu-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 44px 44px 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.edu-card .edu-school { font-size: 1.6rem; font-weight: 700; }
.edu-card .edu-degree { color: var(--text-dim); font-size: 1.08rem; margin-top: 8px; }

.edu-fordham-sticker {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 190px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

@media (max-width: 700px) {
  .edu-card { padding: 44px 24px 24px; }
  .edu-fordham-sticker { width: 90px; left: 12px; top: 20px; transform: rotate(-8deg); opacity: 0.4; }
}
.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 20px;
}
.edu-meta span {
  font-size: 0.92rem;
  color: var(--text-faint);
}
.edu-meta strong { color: var(--text-dim); font-weight: 600; }
.edu-honors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.edu-honors .tag { font-size: 0.8rem; padding: 7px 14px; }

/* ===== Certifications ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cert-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cert-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 0 24px -6px var(--glow-soft);
}
.cert-name { font-weight: 600; font-size: 0.96rem; }
.cert-meta { color: var(--text-faint); font-size: 0.82rem; margin-top: 4px; }

.cert-issuer-badge { flex: none; }
.cert-issuer-monogram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
}
.cert-issuer-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}

.cert-edit-btn {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cert-edit-btn svg { width: 13px; height: 13px; }
.cert-edit-btn:hover { background: var(--accent); color: var(--tertiary); border-color: var(--accent); }
.cert-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.cert-link:hover { color: var(--accent-strong); border-color: var(--accent); box-shadow: 0 0 14px 0 var(--glow-soft); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Experience page ===== */
.exp-hero {
  padding-top: 100px;
  padding-bottom: 60px;
}
.exp-hero .hero-headline { font-size: clamp(2rem, 5vw, 3.4rem); }
.exp-tagline {
  font-family: var(--font-subheading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 100px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border-strong) 85%, transparent);
}

.exp-card {
  position: relative;
  overflow: visible;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.exp-card:hover { border-color: var(--border-strong); box-shadow: 0 0 30px -8px var(--glow-soft); }
.exp-card::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 38px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 4px var(--bg-alt, var(--bg));
}
.exp-card-current::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt, var(--bg)), 0 0 12px 2px var(--glow-soft);
}

.exp-current-pill {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--tertiary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

@media (max-width: 560px) {
  .timeline { padding-left: 18px; }
  .timeline::before { left: 2px; }
  .exp-card::before { left: -20px; width: 9px; height: 9px; top: 34px; }
}

.exp-move-controls {
  position: absolute;
  top: 14px;
  left: -14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-move-btn {
  width: 26px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.exp-move-btn:hover { background: var(--accent); color: var(--tertiary); border-color: var(--accent); }
.exp-move-btn-disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.exp-card-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.exp-card-head-text { flex: 1 1 auto; min-width: 200px; }

.exp-org-badge { flex: none; }
.exp-org-monogram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
}
.exp-org-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}

.exp-role { font-size: 1.25rem; font-weight: 700; }
.exp-org { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-top: 4px; }
.exp-meta { color: var(--text-faint); font-size: 0.85rem; text-align: right; white-space: nowrap; }

.exp-bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-bullets li { padding-left: 4px; }

.exp-block-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.exp-block-label:not(:first-child) { margin-top: 8px; }

.exp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 6px;
  padding: 4px 0 6px;
  text-align: center;
}
.exp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 96px;
}
.exp-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.exp-stat-label {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.3;
}
.exp-stat-divider {
  align-self: stretch;
  width: 1px;
  margin: 2px 0 20px;
  background: var(--border-strong);
}

.exp-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.exp-highlight-icon {
  flex: none;
  font-size: 1.25rem;
  line-height: 1.4;
}
.exp-highlight-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.96rem;
}
.exp-highlight-desc {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .exp-stat-divider { display: none; }
  .exp-stat { min-width: 40%; }
}

.exp-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Scrapbook: a small stack of reference photos pinned to the card edge,
   like a contact sheet rather than a sticker — straight edges, a thin
   border, caption as a scrim over the image. They peek in from the side
   and overlap the content a little; on hover (recruiters skimming, not
   editing) they slide further out and fade, so nothing sits on top of
   the text for longer than a glance. Admin Mode keeps them put (and
   clickable) so editing isn't fighting a disappearing target. */
.scrapbook { margin: 0; }
.scrap-add {
  position: relative;
  z-index: 4;
  margin-top: 14px;
  align-self: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.scrap-add:hover { border-color: var(--accent); color: var(--accent-strong); }

.scrap-photo {
  position: absolute;
  top: 50%;
  width: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 3;
}
.scrap-photo:nth-child(odd) { right: -54px; }
.scrap-photo:nth-child(even) { left: -54px; }

/* A scrapbook with just one photo has nothing to overlap, so let it run
   bigger than the peeking-stack size used when several photos share the
   card edge. */
.scrap-photo:first-child:not(:has(~ .scrap-photo)) {
  width: 320px;
  right: -70px;
}
.scrap-photo:nth-child(1) { transform: translateY(-78%); }
.scrap-photo:nth-child(2) { transform: translateY(-20%); }
.scrap-photo:nth-child(3) { transform: translateY(24%); }
.scrap-photo:hover {
  transform: translateY(-50%) scale(1.06) !important;
  z-index: 6;
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 24px -4px var(--glow-soft);
}

body:not(.admin-mode) .exp-card:hover .scrap-photo {
  opacity: 0;
  pointer-events: none;
}
body:not(.admin-mode) .exp-card:hover .scrap-photo:nth-child(1) { transform: translateY(-78%) translateX(70px); }
body:not(.admin-mode) .exp-card:hover .scrap-photo:nth-child(2) { transform: translateY(-20%) translateX(-70px); }
body:not(.admin-mode) .exp-card:hover .scrap-photo:nth-child(3) { transform: translateY(24%) translateX(70px); }
body:not(.admin-mode) .exp-card:hover .scrap-photo:first-child:not(:has(~ .scrap-photo)) { transform: translateY(-65%) translateX(110px); }
.scrap-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: repeating-linear-gradient(135deg, var(--bg-elevated), var(--bg-elevated) 10px, var(--surface-hover) 10px, var(--surface-hover) 20px);
}
.scrap-photo img.img-missing { font-size: 0; color: transparent; }
.scrap-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(10, 6, 14, 0.85), transparent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.35;
  color: #fff;
}

.scrap-controls {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  gap: 4px;
}
.scrap-controls button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}
.scrap-controls button:hover { background: var(--accent); color: var(--tertiary); }
.scrap-remove { font-size: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .project-grid, .cert-grid, .skill-groups { grid-template-columns: 1fr; }
  .exp-card-head { flex-direction: column; }
  .exp-meta { text-align: left; }
  .hero { padding-top: 56px; }
}

@media (max-width: 560px) {
  .nav-row { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .site-nav { position: sticky; }
  .primary-links a { padding: 7px 12px; font-size: 0.86rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .scrap-photo { width: 130px; }
  .scrap-photo:nth-child(odd) { right: -18px; }
  .scrap-photo:nth-child(even) { left: -18px; }
  .scrap-photo:first-child:not(:has(~ .scrap-photo)) { width: 180px; right: -26px; }
}

/* ===== Admin Mode (client-side only — see README) ===== */
.admin-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.admin-toggle.is-active { background: var(--accent); color: var(--tertiary); border-color: var(--accent); }

.admin-toolbar {
  position: sticky;
  top: calc(var(--nav-h) + var(--subnav-h));
  z-index: 90;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
}
.admin-toolbar-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: auto;
}
.admin-toolbar-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-toolbar-btn:hover { border-color: var(--accent); color: var(--accent-strong); }

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 15, 36, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.admin-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.admin-modal-title { font-size: 1.2rem; margin-bottom: 12px; }

.admin-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 14px;
}

.admin-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 10px 12px;
  margin-top: 4px;
}
.admin-textarea { min-height: 90px; resize: vertical; }
.admin-category-custom { margin-top: 8px; }

.admin-file { margin-top: 8px; color: var(--text-dim); font-size: 0.82rem; }

.admin-cover-preview {
  margin-top: 10px;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.admin-links { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.admin-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.admin-link-row .admin-input {
  margin-top: 0;
  width: auto;
  min-width: 0;
  flex: 1 1 140px;
}
.admin-link-row .admin-input:disabled { color: var(--text-faint); font-style: italic; }

.admin-link-upload-btn { font-size: 0.95rem; }
.admin-link-upload-btn.has-file {
  background: var(--accent);
  color: var(--tertiary);
  border-color: var(--accent);
}

.admin-icon-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.admin-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.admin-modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--tertiary); margin-left: auto; }
.admin-btn-danger { color: var(--accent); border-color: var(--accent); margin-right: auto; }
