/* =====================================================================
   Manoj Preveen - personal portfolio
   Design system + components (shared across all pages)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #faf9f7;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --text: #14131a;
  --text-muted: #56555f;
  --border: #e7e4dd;
  --accent: #4f46e5;
  --accent-2: #d946ef;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --faint: rgba(20, 19, 26, 0.13);
  --shadow-sm: 0 1px 2px rgba(20, 19, 26, 0.04), 0 4px 12px rgba(20, 19, 26, 0.04);
  --shadow-md: 0 2px 6px rgba(20, 19, 26, 0.06), 0 16px 40px rgba(20, 19, 26, 0.07);
  --glow-1: rgba(79, 70, 229, 0.14);
  --glow-2: rgba(217, 70, 239, 0.10);
  --header-bg: rgba(250, 249, 247, 0.72);
  --maxw: 1080px;
}

[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --surface: #141419;
  --surface-2: #17171d;
  --text: #f5f4f2;
  --text-muted: #9b9aa4;
  --border: #26252c;
  --accent: #8b8cf8;
  --accent-2: #e879f9;
  --accent-soft: rgba(139, 140, 248, 0.12);
  --faint: rgba(245, 244, 242, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
  --glow-1: rgba(139, 140, 248, 0.18);
  --glow-2: rgba(232, 121, 249, 0.12);
  --header-bg: rgba(10, 10, 12, 0.72);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

/* ---------- Ambient background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(45rem 45rem at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(40rem 40rem at 95% 8%, var(--glow-2), transparent 55%);
  animation: drift 20s ease-in-out infinite alternate;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.08); }
}

/* ---------- Shared layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.main { flex: 1; }

.section { padding-block: clamp(3.5rem, 9vh, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vh, 4rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.prose { font-size: 1.0625rem; color: var(--text-muted); max-width: 62ch; }
.prose + .prose { margin-top: 1.1rem; }
.prose a, .inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.18s ease;
}
.prose a:hover, .inline-link:hover { border-bottom-color: var(--accent); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.brand__name { font-size: 0.98rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 0.35rem; }

.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(0.5); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-soft);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-soft); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn .btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
}
.mobile-nav a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.is-active { color: var(--accent); }
.site-header.is-menu-open .mobile-nav { display: flex; }

/* =====================================================================
   Hero (home)
   ===================================================================== */
.hero { padding-block: clamp(3.5rem, 12vh, 8rem) clamp(2.5rem, 7vh, 5rem); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}
.hero__badge .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
  padding-bottom: 0.05em;
}
.hero__title .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* Gradient text uses background-clip:text, which paints the gradient only over
   the element's box. Tall italic ascenders/descenders (e.g. the "d" in "kind")
   spill above that box and lose their fill. inline-block makes vertical padding
   reliably enlarge the paint box on every line; the negative margin cancels the
   layout shift so surrounding spacing is unchanged. */
.grad {
  display: inline-block;
  padding-block: 0.22em;
  margin-block: -0.22em;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 54ch;
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat { background: var(--surface); padding: 1.5rem 1.25rem; }
.stat__num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat__num .unit { color: var(--accent); }
.stat__label { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Feature (Currently / Purands) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.feature__panel {
  position: relative;
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.feature__panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(20rem 20rem at 100% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.feature__kicker {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.feature__logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem; font-weight: 600; margin: 0.4rem 0 0.75rem;
}
.feature__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.25rem; }
.feature__list li { display: flex; gap: 0.6rem; font-size: 0.96rem; color: var(--text-muted); }
.feature__list li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- Cards grid ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: var(--accent-soft); font-size: 1.35rem; margin-bottom: 1rem;
}
.card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.card__text { font-size: 0.94rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- Numbered cards (premium, no icons) ---------- */
.n-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
/* animated gradient wash that fades in on hover */
.n-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(22rem 22rem at 110% -10%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* top accent line that draws across on hover */
.n-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.n-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-md); }
.n-card:hover::before { transform: scaleX(1); }
.n-card:hover::after { opacity: 1; }

.n-card__index {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--faint);
  margin-bottom: 1.1rem;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.n-card:hover .n-card__index {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-2px);
}
.n-card__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.n-card__text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.58; }
.n-card__arrow {
  display: inline-block; margin-top: 1rem;
  font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.n-card:hover .n-card__arrow { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--text-muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 3rem;
}
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 0.7em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Logos / worked-at ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.logo-badge {
  font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.logo-badge span { color: var(--text-muted); font-weight: 400; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 9vh, 5.5rem) clamp(1.5rem, 4vh, 2.5rem); }
.page-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05; letter-spacing: -0.02em;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2rem; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
}
.timeline__item--current::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.timeline__role { font-weight: 600; font-size: 1.15rem; }
.timeline__date { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.timeline__org { display: block; font-size: 0.95rem; font-weight: 500; color: var(--accent); margin-top: 0.15rem; }
.timeline__desc { font-size: 0.98rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 60ch; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  font-size: 0.9rem; font-weight: 500;
  padding: 0.45rem 0.95rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- Education ---------- */
.edu {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.edu__icon { font-size: 1.6rem; }
.edu__school { font-size: 1.1rem; font-weight: 600; }
.edu__detail { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.25rem; }

/* =====================================================================
   About page components
   ===================================================================== */
/* ---------- Intro grid: lead + fact card ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
.about-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-lead strong { font-weight: 600; }
.about-lead .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.about-lead + .prose { margin-top: 1.5rem; }

.factcard {
  position: relative;
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.factcard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(18rem 18rem at 110% -10%, var(--accent-soft), transparent 55%);
  pointer-events: none;
}
.factcard__title {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 1rem;
}
.fact { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact__k {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.fact__v { font-size: 1rem; font-weight: 600; color: var(--text); }
.fact__v span { color: var(--text-muted); font-weight: 400; }

/* ---------- Journey milestones ---------- */
.journey { display: flex; flex-direction: column; }
.milestone {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.milestone:first-child { border-top: 0; }
.milestone:hover { transform: translateX(6px); }
.milestone__year {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.milestone__role { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.milestone__org { display: block; font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-top: 0.15rem; }
.milestone__desc { font-size: 0.96rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 58ch; }

/* ---------- Pull quote ---------- */
.quote { text-align: center; max-width: 22ch; margin-inline: auto; }
.quote__mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4rem; line-height: 0.4; color: var(--faint);
  display: block;
}
.quote__text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
  line-height: 1.25; letter-spacing: -0.01em;
}
.quote__text .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote__by {
  margin-top: 1.75rem; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted);
}

/* ---------- Grouped skills ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.skill-group__label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 0.9rem;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 4.5rem 1fr; }
}

/* ---------- Contact links ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none; color: var(--text);
  font-weight: 500; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.link:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }
.link--feature { background: linear-gradient(120deg, var(--accent-soft), transparent); border-color: var(--accent); grid-column: 1 / -1; }
.link__label { display: flex; flex-direction: column; }
.link__sub { color: var(--text-muted); font-weight: 400; font-size: 0.88rem; }
.link__arrow { color: var(--text-muted); font-size: 1.1rem; transition: transform 0.16s ease, color 0.16s ease; }
.link:hover .link__arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  overflow: hidden;
  color: #fff;
}
.cta-band__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
}
.cta-band__text { margin: 1rem auto 0; max-width: 46ch; opacity: 0.92; font-size: 1.05rem; }
.cta-band .btn { margin-top: 2rem; background: #fff; color: var(--accent); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 2rem; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.site-footer__brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; max-width: 30ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__nav h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.9rem; }
.site-footer__nav a { display: block; text-decoration: none; color: var(--text); font-size: 0.95rem; padding: 0.3rem 0; transition: color 0.16s ease; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-block: 1.5rem; color: var(--text-muted); font-size: 0.88rem;
}

/* =====================================================================
   Animations
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Hero load-in (runs once on first paint, no scroll needed) */
.load-in > * { opacity: 0; transform: translateY(22px); animation: loadIn 0.85s cubic-bezier(0.16,1,0.3,1) forwards; }
.load-in > *:nth-child(1) { animation-delay: 0.05s; }
.load-in > *:nth-child(2) { animation-delay: 0.15s; }
.load-in > *:nth-child(3) { animation-delay: 0.25s; }
.load-in > *:nth-child(4) { animation-delay: 0.35s; }
.load-in > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .site-header__actions .btn--sm { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 420px) {
  .brand__name { display: none; }
  .stats { grid-template-columns: 1fr; }
}

/* =====================================================================
   404 page
   ===================================================================== */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(3.5rem, 12vh, 7rem);
}
.notfound__code {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(5rem, 22vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-block: 0.08em;
}
.notfound__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.notfound__text {
  margin: 1rem auto 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 46ch;
  text-align: center;
}
.notfound__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.notfound__links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.95rem;
}
.notfound__links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.notfound__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* =====================================================================
   Admin dashboard
   ===================================================================== */
/* ---------- Login gate ---------- */
.admin-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3rem, 12vh, 7rem);
}
.admin-card {
  width: 100%;
  max-width: 26rem;
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.admin-card__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin: 0 auto 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 1.4rem;
}
.admin-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em;
}
.admin-card__text { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.95rem; }
.admin-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.admin-input {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.admin-form .btn { width: 100%; justify-content: center; }
.admin-error {
  color: #ef4444; font-size: 0.875rem; min-height: 1.2em;
  opacity: 0; transition: opacity 0.16s ease;
}
.admin-error.is-shown { opacity: 1; }
.admin-note { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Dashboard ---------- */
.admin-dash { display: none; }
.admin-dash.is-unlocked { display: block; }
.admin-gate.is-hidden { display: none; }

.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem;
}
.admin-bar__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em;
}
.admin-bar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.admin-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-tool {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.admin-tool:hover { transform: translateY(-3px); border-color: var(--accent); }
.admin-tool__name { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 0.4rem; }
.admin-tool__desc { margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-muted); }

.admin-embed {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  margin-bottom: 2.5rem;
}
.admin-embed iframe { display: block; width: 100%; height: 80vh; border: 0; }
.admin-embed__placeholder {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.admin-embed__placeholder h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 1.4rem; margin-bottom: 0.75rem;
}
.admin-embed__placeholder p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 0.6rem; font-size: 0.95rem; }
.admin-embed__placeholder code {
  font-size: 0.85rem; background: var(--bg);
  padding: 0.15rem 0.4rem; border-radius: 5px; border: 1px solid var(--border);
}

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