@charset "UTF-8";

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:          #f7f5fb;
  --bg-surface:  #ffffff;
  --bg-card:     #ffffff;
  --border:      #e0d9f0;
  --accent:      #7c5cbf;
  --accent-dim:  #5e3fa3;
  --accent-glow: rgba(124,92,191,.10);
  --text:        #1e1830;
  --text-muted:  #4e4668;
  --text-dim:    #9589b0;
  --heading-ff:  'Playfair Display', Georgia, serif;
  --body-ff:     'DM Sans', system-ui, sans-serif;
  --mono-ff:     'JetBrains Mono', monospace;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(100,80,160,.10);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── 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(--body-ff);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--heading-ff); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--accent); }
h4 { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 1.2em 0 .4em; }
p  { color: var(--text-muted); margin-bottom: .75em; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
header {
  position: relative;
  background: linear-gradient(135deg, #ede8f8 0%, #f7f5fb 60%);
  padding: 70px 2rem 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(124,92,191,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 75% 60%, rgba(124,92,191,.07) 0%, transparent 60%);
  pointer-events: none;
}
header h1 {
  color: var(--accent-dim);
  position: relative;
}
.header-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,251,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .flex-container {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 12px;
}
.nav ul li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: .04em;
}
.nav ul li a:hover { color: var(--accent); background: var(--accent-glow); }
.nav ul li a.current {
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: inset 0 0 0 1px rgba(183,148,244,.25);
}

/* ── Main Layout ─────────────────────────────────────────── */
.main, .content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── Overview Section ────────────────────────────────────── */
.overview-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 48px;
  text-align: center;
}
.overview-section h2 { color: var(--text); margin-bottom: 1.2rem; }
ul.overview {
  display: inline-block;
  text-align: left;
  list-style: none;
  columns: 2;
  gap: 0 3rem;
}
ul.overview li {
  position: relative;
  padding: .3em 0 .3em 1.5em;
  color: var(--text-muted);
  font-size: .93rem;
  break-inside: avoid;
}
ul.overview li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-size: .55rem;
  top: .55em;
}

/* ── Card Grid ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 32px rgba(124,92,191,.2);
}
.card h3 { color: var(--accent); margin-bottom: 0; }
.card h4 { margin-top: .6em; }
.card p  { flex: 1; font-size: .9rem; }

/* Project image */
.project-image {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 8px 0;
  transition: opacity var(--transition);
}
.project-image:hover { opacity: .85; }

/* Reflection block */
.reflection {
  background: rgba(183,148,244,.06);
  border-left: 3px solid var(--accent-dim);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: .87rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Link list within cards */
.card-links { display: flex; flex-direction: column; gap: 6px; }
.card-links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-links a::before { content: '→'; transition: transform var(--transition); }
.card-links a:hover::before { transform: translateX(4px); }

/* ── Home: Criteria Chips ────────────────────────────────── */
.criteria-section { margin-top: 40px; }
.criteria-section h2 { text-align: center; margin-bottom: 24px; color: var(--text); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ── Home: Competency List ───────────────────────────────── */
.competencies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
  margin-top: 16px;
}
.competencies li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color var(--transition);
}
.competencies li:hover { border-color: var(--accent-dim); color: var(--text); }
.competencies li::before {
  content: '✦';
  color: var(--accent-dim);
  font-size: .7rem;
  margin-top: .3em;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 20px;
}
footer p { color: var(--text-dim); font-size: .85rem; margin: 0; }
footer a { color: var(--accent); font-weight: 600; }

/* ── Fade-in animation ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp .5s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .12s; }
.fade-up:nth-child(3) { animation-delay: .19s; }
.fade-up:nth-child(4) { animation-delay: .26s; }
.fade-up:nth-child(5) { animation-delay: .33s; }

/* ── Page-transition veil ────────────────────────────────── */
#page-veil {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .25s ease;
}
#page-veil.active { opacity: 1; pointer-events: all; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  ul.overview { columns: 1; }
  .overview-section { padding: 24px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .nav .flex-container { gap: 0; }
  .nav ul li a { padding: 7px 10px; font-size: .8rem; }
}
@media (max-width: 440px) {
  header { padding: 50px 1.25rem 40px; }
}