/* ===========================
   Design Tokens
   =========================== */
:root {
  --bg: hsl(220 30% 98%);
  --fg: hsl(222 47% 8%);
  --card: hsl(0 0% 100%);
  --muted: hsl(215 16% 40%);
  --muted-bg: hsl(215 40% 94%);
  --border: hsl(215 25% 88%);
  --accent: hsl(217 91% 60%);
  --accent-dark: hsl(222 80% 22%);
  --radius: 1rem;
  --header-h: 64px;
  font-family: 'Inter', system-ui, sans-serif;
}
.dark {
  --bg: hsl(222 47% 5%);
  --fg: hsl(210 40% 98%);
  --card: hsl(222 47% 8%);
  --muted: hsl(215 20% 70%);
  --muted-bg: hsl(222 30% 14%);
  --border: hsl(222 30% 18%);
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); line-height: 1.6; min-height: 100vh; transition: background .3s, color .3s; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===========================
   Skip link
   =========================== */
.skip-link { position: absolute; left: -9999px; top: 1rem; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 4px; z-index: 999; }
.skip-link:focus { left: 1rem; }

/* ===========================
   Layout helpers
   =========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* ===========================
   Header
   =========================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, border-color .4s, box-shadow .4s;
}
.site-header.scrolled,
.site-header--solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 300; letter-spacing: .2em;
  color: var(--fg); transition: opacity .2s;
}
.logo:hover { opacity: .75; }
.logo-icon {
  width: 24px; height: 24px;
  object-fit: contain; flex-shrink: 0;
  border-radius: 4px;
}

/* transparent header on hero — white logo */
.site-header:not(.scrolled):not(.site-header--solid) .logo,
.site-header:not(.scrolled):not(.site-header--solid) .nav-link,
.site-header:not(.scrolled):not(.site-header--solid) .theme-toggle { color: #fff; }

.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: .95rem; font-weight: 300; letter-spacing: .05em;
  position: relative; transition: opacity .2s;
}
.nav-link:hover { opacity: .7; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* Theme toggle */
.theme-toggle { display: flex; align-items: center; color: var(--fg); opacity: .8; transition: opacity .2s; }
.theme-toggle:hover { opacity: 1; }
.icon-moon { display: none; }
.dark .icon-sun { display: none; }
.dark .icon-moon { display: block; }

/* Mobile controls */
.mobile-controls { display: none; align-items: center; gap: .5rem; }
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s, opacity .3s; }
.site-header:not(.scrolled):not(.site-header--solid) .hamburger span { background: #fff; }

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--bg); padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  flex-direction: column; gap: 1.5rem; opacity: 0; transition: opacity .3s;
}
.mobile-menu-overlay.open { opacity: 1; display: flex; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav-link { font-size: 1.5rem; font-weight: 300; letter-spacing: .05em; }
.mobile-nav-link.active { color: var(--accent); }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: linear-gradient(135deg, hsl(222 70% 8%) 0%, hsl(222 60% 14%) 50%, #000 100%);
  display: flex; align-items: center;
}
.hero-glow {
  pointer-events: none; position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-top { width: 500px; height: 500px; top: -10%; left: -10%; background: hsla(217,91%,60%,.2); }
.hero-glow-bottom { width: 500px; height: 500px; bottom: -10%; right: -10%; background: hsla(222,80%,40%,.2); }
.hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 8rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media(min-width:900px){ .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 10rem 2rem 5rem; } }

.hero-text { color: #fff; display: flex; flex-direction: column; gap: 1.25rem; }
.hero-badge {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05);
  padding: .35rem 1rem; border-radius: 999px; backdrop-filter: blur(8px);
  font-size: .7rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
  color: hsl(217 91% 82%); width: fit-content;
}
.hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.hero-title .highlight { font-weight: 600; color: hsl(217 91% 65%); }
.hero-tagline { font-size: 1.1rem; font-weight: 300; color: hsla(217,100%,88%,.8); }
.hero-intro { font-size: 1rem; font-weight: 300; line-height: 1.7; color: hsla(217,100%,88%,.7); max-width: 36rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .25rem; }

/* Stat chips */
.stat-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; padding-top: 1rem; }
.stat-chip {
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px); border-radius: .875rem; padding: 1rem;
}
.stat-chip svg { color: hsl(217 91% 65%); margin-bottom: .5rem; }
.stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: hsla(217,100%,88%,.7); }
.stat-value { font-size: 1.1rem; font-weight: 500; color: #fff; }

/* Portrait */
.hero-portrait { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.portrait-glow {
  position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, hsla(217,91%,60%,.35), transparent);
  filter: blur(20px);
}
.portrait-frame {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.1); background: #000; box-shadow: 0 32px 64px rgba(0,0,0,.5);
}
.portrait-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.portrait-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.3) 60%, transparent);
  padding: 1.5rem;
}
.portrait-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(217 91% 75%); }
.portrait-school { font-size: 1rem; font-weight: 300; color: #fff; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; font-size: .875rem;
  font-weight: 500; transition: all .25s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 24px hsla(217,91%,60%,.4); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff; backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-download {
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; gap: .5rem;
}
.btn-download:hover { background: hsla(217,91%,60%,.1); box-shadow: 0 4px 16px hsla(217,91%,60%,.2); }
/* On dark hero, override to white-tinted */
.hero .btn-download { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-download:hover { background: rgba(255,255,255,.1); }
.btn-arrow { display: inline-block; transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===========================
   Hobbies Strip
   =========================== */
.hobbies-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--muted-bg); padding: 2.5rem 0; }
.hobby-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.hobby-tag {
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--bg); color: var(--accent-dark);
  padding: .45rem 1.25rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
}
.dark .hobby-tag { color: var(--accent); }

/* ===========================
   Section labels / shared
   =========================== */
.section-label {
  font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .3em;
  color: var(--accent); margin-bottom: .75rem;
}
.section-label.light { color: hsl(217 91% 75%); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 300; letter-spacing: -.02em; }
.section-header { margin-bottom: 3rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 500; color: var(--accent); }
.text-link:hover .btn-arrow { transform: translateX(4px); }

/* ===========================
   Career Goals (home)
   =========================== */
.career-goals { padding: 6rem 0; }
.goals-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media(min-width:640px){ .goals-grid { grid-template-columns: 1fr 1fr; } }
.goal-card {
  position: relative; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--card);
  padding: 1.5rem; transition: all .3s;
}
.goal-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.goal-circle {
  position: absolute; right: -2rem; top: -2rem;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: hsla(217,91%,60%,.08); transition: transform .3s;
}
.goal-card:hover .goal-circle { transform: scale(1.25); }
.goal-content { position: relative; }
.goal-number { font-size: 2rem; font-weight: 300; color: var(--accent); margin-bottom: .75rem; }
.goal-text { font-size: 1.05rem; font-weight: 300; line-height: 1.5; }

/* ===========================
   Page Hero (inner pages)
   =========================== */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--muted-bg), var(--bg));
}
.page-hero-title { font-size: clamp(2.5rem,8vw,4.5rem); font-weight: 300; letter-spacing: -.03em; margin-bottom: 1rem; }
.page-hero-desc { max-width: 36rem; margin: 0 auto; color: var(--muted); font-weight: 300; font-size: 1.05rem; }

/* ===========================
   Achievements
   =========================== */
.achievements-section { padding: 5rem 0; }
.achievements-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:640px){ .achievements-grid { grid-template-columns: 1fr 1fr; } }
.achievement-card {
  position: relative; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--card);
  padding: 2rem; transition: all .3s;
}
.achievement-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.achievement-circle {
  position: absolute; right: -2.5rem; top: -2.5rem;
  width: 8rem; height: 8rem; border-radius: 50%;
  background: hsla(217,91%,60%,.08); transition: transform .3s;
}
.achievement-card:hover .achievement-circle { transform: scale(1.25); }
.achievement-inner { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; }
.achievement-icon-wrap {
  flex-shrink: 0; width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .875rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 4px 12px hsla(217,91%,60%,.35);
}
.achievement-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.achievement-title { font-size: 1.15rem; font-weight: 300; margin-top: .4rem; line-height: 1.4; }

/* Goals Banner */
.goals-banner {
  border-top: 1px solid var(--border); padding: 5rem 0;
  background: linear-gradient(135deg, hsl(222 70% 10%) 0%, #000 100%); color: #fff;
}
.goals-banner-title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 300; margin-bottom: 2.5rem; }
.goals-banner-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; text-align: left; max-width: 48rem; margin: 0 auto; }
@media(min-width:640px){ .goals-banner-grid { grid-template-columns: 1fr 1fr; } }
.goal-banner-card {
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px); border-radius: .875rem; padding: 1.25rem;
}
.goal-banner-num { font-size: 1.5rem; font-weight: 300; color: hsl(217 91% 65%); margin-bottom: .4rem; }
.goal-banner-card p { font-size: .95rem; font-weight: 300; color: hsl(217 100% 90%); }

/* ===========================
   About
   =========================== */
.about-split { padding: 4rem 0; }
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media(min-width:768px){ .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-portrait-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: var(--muted-bg); box-shadow: 0 20px 48px rgba(0,0,0,.12); }
.about-portrait-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-name { font-size: clamp(2rem,5vw,3rem); font-weight: 300; letter-spacing: -.02em; }
.about-tagline { font-size: 1.1rem; font-weight: 300; color: var(--accent); margin-top: .4rem; }
.about-bio { font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--muted); margin-bottom: 1rem; }
.about-approach-box {
  border: 1px solid var(--border); background: var(--card);
  border-radius: .875rem; padding: 1.25rem; margin-bottom: 1.5rem;
  font-size: .95rem; font-weight: 300; line-height: 1.7;
}
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .875rem; }
.detail-item dt { font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.detail-item dd { font-weight: 500; margin-top: .25rem; }
.detail-item dd a:hover { color: var(--accent); }

/* Fun Facts */
.fun-facts { border-top: 1px solid var(--border); background: var(--muted-bg); padding: 5rem 0; }
.fun-facts .section-title { margin-bottom: 3rem; }
.facts-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:640px){ .facts-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .facts-grid { grid-template-columns: repeat(4,1fr); } }
.fact-card { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: box-shadow .3s; }
.fact-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.fact-icon-wrap {
  width: 2.5rem; height: 2.5rem; border-radius: .625rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: hsla(217,91%,60%,.12); color: var(--accent);
}
.fact-title { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: .75rem; }
.fact-main { font-weight: 500; }
.fact-highlight { font-size: 1.5rem; font-weight: 300; color: var(--accent); }
.fact-sub { font-size: .875rem; color: var(--muted); margin-top: .25rem; }
.colour-pills { display: flex; gap: .5rem; margin-top: .5rem; }
.colour-pill { padding: .35rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: #fff; }
.colour-pill.blue { background: #2563eb; }
.colour-pill.black { background: #111; }
.family-list { font-size: .875rem; display: flex; flex-direction: column; gap: .35rem; }
.family-role { color: var(--muted); }

/* ===========================
   Contact
   =========================== */
.contact-section { padding: 5rem 0; }
.contact-card { max-width: 42rem; margin: 0 auto; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.contact-card-header {
  padding: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, hsl(222 70% 12%) 100%);
}
.contact-card-header h2 { font-size: 1.75rem; font-weight: 300; }
.contact-card-header p { color: hsla(217,100%,90%,.8); margin-top: .5rem; font-weight: 300; }
.contact-card-body { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon-wrap {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: .625rem;
  display: flex; align-items: center; justify-content: center;
  background: hsla(217,91%,60%,.1); color: var(--accent);
}
.contact-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.contact-value { font-size: 1rem; font-weight: 300; margin-top: .25rem; }
.contact-value a:hover { color: var(--accent); }

/* ===========================
   404
   =========================== */
.not-found-main { min-height: calc(100vh - 8rem); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.not-found-wrap { max-width: 36rem; width: 100%; text-align: center; }
.not-found-num { font-size: clamp(6rem,20vw,11rem); font-weight: 200; letter-spacing: .1em; line-height: 1; opacity: .1; }
.not-found-title { font-size: clamp(1.75rem,5vw,3rem); font-weight: 300; margin-top: -1.5rem; margin-bottom: 1rem; }
.not-found-desc { color: var(--muted); font-weight: 300; margin-bottom: 2rem; }
.not-found-line { height: 1px; width: 6rem; background: var(--border); margin: 2rem auto 0; }

/* ===========================
   Footer
   =========================== */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: center; }
.footer-copy { font-size: .875rem; color: var(--muted); font-weight: 300; }

/* ===========================
   Profile Modal
   =========================== */
.profile-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.profile-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.profile-modal-box {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  max-width: 520px; width: 100%;
  transform: scale(.93) translateY(16px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.profile-modal-overlay.open .profile-modal-box {
  transform: scale(1) translateY(0);
}
.profile-modal-img {
  width: 100%; border-radius: 1rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  object-fit: contain; max-height: 70vh;
}
.profile-modal-actions {
  display: flex; gap: .875rem; flex-wrap: wrap; justify-content: center;
}
.btn-modal-close {
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
}
.btn-modal-close:hover { background: rgba(255,255,255,.18); }

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-fade-up  { animation: fadeUp .8s ease both; animation-delay: var(--delay, 0s); }
.animate-fade-scale { animation: fadeScale .9s ease both; animation-delay: var(--delay, .2s); }

/* Scroll reveal (JS adds .revealed) */
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--delay, 0s), transform .6s ease var(--delay, 0s); }
.scroll-reveal.revealed { opacity: 1; transform: none; }

/* ===========================
   Responsive
   =========================== */
@media(max-width:767px){
  .desktop-nav { display: none; }
  .mobile-controls { display: flex; }
}
