/* ─── Variables ─── */
:root {
  --bg:            hsl(40, 60%, 94%);
  --card:          hsl(40, 50%, 96%);
  --text:          hsl(20, 20%, 15%);
  --muted:         hsl(20, 10%, 40%);
  --primary:       hsl(194, 50%, 78%);
  --secondary:     hsl(350, 45%, 75%);
  --accent:        hsl(35, 45%, 78%);
  --border:        2px solid hsl(20, 20%, 15%);
  --border-subtle: 1px solid hsl(20, 20%, 82%);
  --shadow:        4px 4px 0 0 hsl(20, 20%, 15%);
  --shadow-lg:     6px 6px 0 0 hsl(20, 20%, 15%);
  --radius:        4px;
  --radius-pill:   999px;
  --ease:          all 0.15s ease;
  --font-head:     'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'Space Mono', monospace;
}

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

/* ─── Layout ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-alt { background: hsl(40, 55%, 91%); }

/* ─── Typography ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
}

/* ─── Cards ─── */
.brutal-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--ease);
}

/* Shared lift-on-hover */
.brutal-card:hover,
.btn:hover,
.contact-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border: var(--border);
  border-radius: var(--radius-pill);
  line-height: 1.4;
}
.badge-primary   { background: var(--primary); }
.badge-secondary { background: var(--secondary); }
.badge-accent    { background: var(--accent); }

/* ─── Pills ─── */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 14px;
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 0 var(--text);
  transition: var(--ease);
}
.pill-primary { background: var(--primary); }
.pill-accent  { background: var(--accent); }

/* Shared small lift */
.pill:hover,
.commit-link-icon:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--text);
}

/* ─── Navigation ─── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border);
  padding: 16px 0;
}
#nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; }
.nav-links a { position: relative; padding-bottom: 2px; transition: color 0.15s; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--text);
  transition: width 0.15s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--ease); }
.mobile-menu { display: none; flex-direction: column; border-top: var(--border); background: var(--bg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 24px; font-weight: 500; border-bottom: var(--border-subtle); transition: background 0.1s; }
.mobile-menu a:hover { background: var(--primary); }

/* ─── Hero ─── */
#hero { padding: 48px 0 40px; border-bottom: var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-tagline { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 12px; line-height: 1.6; }
.hero-tagline strong { color: var(--text); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--ease);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); }
.btn-outline  { background: transparent; }

.hero-photo-wrap { position: relative; width: 420px; flex-shrink: 0; }
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translate(8px, 8px);
  border-radius: var(--radius);
  border: var(--border);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border: var(--border);
  border-radius: var(--radius);
  filter: grayscale(100%) contrast(1.05);
  display: block;
}

/* ─── About ─── */
.about-layout { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.about-text p { font-size: 1.05rem; color: var(--text); margin-bottom: 12px; line-height: 1.75; }
.about-text p strong { font-weight: 600; }
.about-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card { padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.stat-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; flex-shrink: 0; }
.stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; line-height: 1.3; }

/* ─── Timeline ─── */
.terminal-header {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.terminal-header span { color: var(--muted); }
.timeline { display: flex; flex-direction: column; }
.commit-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: var(--border-subtle);
  align-items: start;
}
.commit-entry:last-child { border-bottom: none; }
.commit-version { padding-top: 2px; }
.commit-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.commit-company { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.commit-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.commit-desc li { padding-left: 16px; position: relative; }
.commit-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.commit-desc li + li { margin-top: 4px; }
.commit-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.commit-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 0 var(--text);
  background: var(--card);
  transition: var(--ease);
  color: var(--text);
}

/* ─── Stroop Case Study ─── */
.stroop-cs-body { display: grid; grid-template-columns: 1fr 260px; }
.stroop-cs-left { padding: 24px 28px; border-right: var(--border); }
.stroop-cs-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 10px 0 16px; }
.stroop-cs-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.stroop-cs-highlights { display: flex; flex-direction: column; gap: 12px; }
.stroop-highlight-item { display: flex; gap: 10px; font-size: 0.875rem; line-height: 1.55; color: var(--text); }
.stroop-highlight-icon { font-family: var(--font-mono); color: var(--muted); flex-shrink: 0; margin-top: 1px; }
.stroop-cs-right { padding: 36px 28px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.stroop-stat-block { padding: 24px 20px; display: flex; flex-direction: column; }
.stroop-stat { text-align: center; padding: 14px 0; }
.stroop-stat-num { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stroop-stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stroop-stat-divider { height: 1px; background: hsl(20, 20%, 82%); }
.stroop-cs-embed { border-top: var(--border); padding: 32px; }
.stroop-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stroop-about-heading { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.stroop-about-text { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
.stroop-about-text em { color: var(--text); font-style: italic; }

/* ─── BA Assignments ─── */
.ba-assignments { display: flex; flex-direction: column; gap: 32px; }
.ba-assignment { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.ba-assignment-meta { padding: 20px 24px; border-right: var(--border); display: flex; flex-direction: column; gap: 12px; }
.ba-assignment-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.ba-assignment-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.ba-view-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  transition: letter-spacing 0.15s ease;
  display: inline-block;
}
.ba-view-link:hover { letter-spacing: 0.04em; }

/* ─── Carousel ─── */
.carousel { position: relative; background: hsl(20, 10%, 12%); overflow: hidden; }
.carousel-track-wrap { overflow: hidden; width: 100%; height: 100%; min-height: 280px; }
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-placeholder { color: hsl(20, 10%, 50%); font-family: var(--font-mono); font-size: 0.8rem; text-align: center; padding: 40px; line-height: 1.8; }
.carousel-placeholder small { font-size: 0.72rem; opacity: 0.6; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius);
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--ease);
  z-index: 2;
  line-height: 1;
}
.carousel-btn:hover { transform: translateY(calc(-50% - 2px)); box-shadow: var(--shadow-lg); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.5); cursor: pointer; transition: var(--ease); }
.carousel-dot.active { background: white; transform: scale(1.2); }

/* ─── Miro Embed ─── */
.miro-wrap { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; width: 100%; aspect-ratio: 16 / 9; }
.miro-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── Case Studies ─── */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cs-card { padding: 20px; }
.cs-tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.cs-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.cs-problem { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.cs-highlights { font-size: 0.875rem; color: var(--text); margin-bottom: 12px; line-height: 1.6; }
.cs-highlights li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.cs-highlights li::before { content: '·'; position: absolute; left: 4px; font-weight: 700; }
.cs-outcome {
  background: var(--primary);
  border: var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.cs-outcome.rose { background: var(--secondary); }
.cs-outcome.gold { background: var(--accent); }
.cs-toggle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.cs-toggle:hover { gap: 10px; }
.cs-expand { display: none; margin-top: 20px; padding-top: 20px; border-top: var(--border-subtle); }
.cs-expand.open { display: block; }
.cs-expand h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; margin-top: 16px; }
.cs-expand h4:first-child { margin-top: 0; }
.cs-expand p, .cs-expand li { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.cs-expand ul { padding-left: 16px; list-style: disc; }
.cs-expand li + li { margin-top: 4px; }

/* ─── Jelly Animation ─── */
@keyframes jelly {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.2, 0.8); }
  40%  { transform: scale(0.85, 1.15); }
  55%  { transform: scale(1.1, 0.9); }
  70%  { transform: scale(0.97, 1.03); }
  85%  { transform: scale(1.03, 0.97); }
  100% { transform: scale(1, 1); }
}
.jelly-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 0 var(--text);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.15s ease;
}
.jelly-badge:hover { animation: jelly 0.6s ease; box-shadow: 3px 3px 0 0 var(--text); }
.jelly-badge-primary   { background: var(--primary); }
.jelly-badge-secondary { background: var(--secondary); }
.jelly-badge-accent    { background: var(--accent); }
.jelly-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Skills ─── */
.skills-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skills-cat { padding: 20px; }
.skills-cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.skills-cat-icon { font-size: 1.1rem; color: var(--muted); }
.skills-cat-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.pills-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Education ─── */
.edu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.edu-col-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.edu-entry { margin-bottom: 28px; }
.edu-entry-inst { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.edu-entry-detail { font-size: 0.95rem; color: var(--text); line-height: 1.55; }
.edu-entry-detail strong { font-weight: 700; }

/* ─── Recommendations ─── */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rec-card { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.rec-card-featured { background: var(--primary); position: relative; }
.rec-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--text);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.rec-card-featured .rec-quote-mark { color: var(--text); border-bottom-color: var(--text); }
.rec-card-featured .rec-author { border-top-color: hsl(194, 40%, 60%); }
.rec-quote-mark { font-family: var(--font-head); font-size: 4rem; font-weight: 700; line-height: 0.8; color: var(--primary); border-bottom: var(--border); padding-bottom: 16px; }
.rec-text { font-size: 0.9rem; line-height: 1.75; color: var(--text); flex: 1; font-style: italic; }
.rec-author { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: var(--border-subtle); }
.rec-author-info { display: flex; flex-direction: column; gap: 2px; }
.rec-avatar { width: 72px; height: 72px; border-radius: 50%; border: var(--border); object-fit: cover; margin-bottom: 8px; display: block; }
.rec-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; }
.rec-role { font-size: 0.8rem; color: var(--muted); }
.rec-rel { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.rec-li-link { flex-shrink: 0; color: var(--muted); transition: color 0.15s; }
.rec-li-link:hover { color: var(--text); }

/* ─── Contact / Footer ─── */
#contact { border-top: var(--border); padding: 48px 0 32px; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.contact-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.contact-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 20px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  transition: var(--ease);
  width: fit-content;
}
.contact-link svg { flex-shrink: 0; }
.cert-wrap { text-align: center; }
.cert-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.cert-img { width: 200px; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.footer-close {
  margin-top: 32px;
  padding-top: 32px;
  border-top: var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-close p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cs-grid            { grid-template-columns: 1fr; }
  .rec-grid           { grid-template-columns: 1fr; }
  .stroop-about-grid  { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .section            { padding: 36px 0; }
  .hero-grid          { grid-template-columns: 1fr; }
  .hero-photo-wrap    { width: 280px; margin: 0 auto; order: -1; }
  .hero-name,
  .hero-eyebrow,
  .hero-tagline       { text-align: center; }
  .hero-ctas          { justify-content: center; }
  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .commit-entry       { grid-template-columns: 1fr; gap: 10px; }
  .about-layout       { grid-template-columns: 1fr; }
  .stroop-cs-body     { grid-template-columns: 1fr; }
  .stroop-cs-left     { border-right: none; border-bottom: var(--border); }
  .stroop-stat-block  { flex-direction: row; justify-content: space-around; }
  .stroop-stat-divider { width: 1px; height: auto; }
  .ba-assignment      { grid-template-columns: 1fr; }
  .ba-assignment-meta { border-right: none; border-bottom: var(--border); }
  .carousel-track-wrap { min-height: 200px; }
  .skills-cats        { grid-template-columns: 1fr; }
  .edu-cols           { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner      { grid-template-columns: 1fr; }
  .cert-wrap          { order: -1; display: flex; flex-direction: column; align-items: flex-start; }
  .cert-img           { width: 160px; }
  .terminal-header    { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero-photo-wrap    { width: 240px; }
  .stat-number        { font-size: 1.8rem; }
  .footer-close       { flex-direction: column; align-items: flex-start; }
}
