/* ---------- Base ---------- */
:root {
  --bg: #fbf8fb;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --text: #211d24;
  --muted: #6e6872;
  --line: #eadfe7;
  --pink: #d977a2;
  --pink-soft: #f8dce8;
  --blue: #78acd7;
  --blue-soft: #dcecf9;
  --shadow: 0 18px 50px rgba(58, 43, 55, .08);
  --radius: 28px;
  --header: rgba(251, 248, 251, .78);
}

body.dark {
  --bg: #151317;
  --surface: rgba(31, 28, 34, .78);
  --surface-solid: #201d23;
  --text: #f6f1f5;
  --muted: #b9b1b9;
  --line: #3b343b;
  --pink: #ee9cbd;
  --pink-soft: #442f39;
  --blue: #91bee2;
  --blue-soft: #263948;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
  --header: rgba(21, 19, 23, .78);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
  overflow-x: hidden;
}

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

.page-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none;
  z-index: -1;
}

.glow-one { background: var(--pink); left: -170px; top: 80px; }
.glow-two { background: var(--blue); right: -180px; top: 45%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  margin-right: auto;
}
.brand span { color: var(--pink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-links a {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--pink); }

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  padding: 11px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px;
}

.content-section.alt {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px)/2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px)/2 + 24px));
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--pink);
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}

.hero h1,
.section-heading h2,
.contact-box h2 {
  font-family: "Playfair Display", serif;
}

.hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.13rem;
  margin-bottom: 30px;
}

.hero-actions,
.contact-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-secondary { background: var(--surface); }

.mini-stats {
  margin-top: 45px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.mini-stats div { display: grid; }
.mini-stats strong { font-size: 1.3rem; }
.mini-stats span { color: var(--muted); font-size: .82rem; }

.hero-visual { display: flex; justify-content: center; }

.portrait-shell {
  width: min(370px, 78vw);
  aspect-ratio: 1;
  border-radius: 44% 56% 59% 41% / 42% 38% 62% 58%;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  position: relative;
}

.portrait-placeholder {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 8px solid color-mix(in srgb, var(--surface-solid) 85%, transparent);
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: var(--shadow);
}

.portrait-placeholder span {
  font-family: "Playfair Display", serif;
  font-size: 4.4rem;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}
.portrait-placeholder small { color: var(--muted); }

.floating-tag {
  position: absolute;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.tag-one { top: 12%; left: -10%; }
.tag-two { right: -12%; top: 42%; }
.tag-three { left: 8%; bottom: 5%; }

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}
.section-heading h2,
.contact-box h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-heading > p:last-child,
.contact-box > p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.about-card,
.fact-card,
.project-card,
.book-card,
.achievement-card,
.video-card,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-card {
  border-radius: var(--radius);
  padding: 32px;
}
.about-card h3 { margin-bottom: 14px; font-size: 1.4rem; }
.about-card p { color: var(--muted); margin-bottom: 14px; }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fact-card {
  border-radius: 22px;
  padding: 24px;
}
.fact-card span { font-size: 1.5rem; }
.fact-card h3 { margin: 10px 0 4px; }
.fact-card p { color: var(--muted); font-size: .92rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  border-radius: var(--radius);
  padding: 28px;
}
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
}
.project-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
}
.project-type,
.timeline-date {
  color: var(--pink);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.project-card h3,
.book-details h3,
.timeline-item h3 {
  margin: 6px 0 10px;
  font-size: 1.35rem;
}
.project-card p,
.book-details p,
.timeline-item p,
.video-copy p { color: var(--muted); }

.text-link,
.card-actions a {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
  color: var(--pink);
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.book-card {
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.book-cover {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px;
}
.cover-one { background: linear-gradient(150deg, #f3b8cf, #bcdcf4); }
.cover-two { background: linear-gradient(150deg, #c7dff3, #ecd4df); }

.book-cover-inner {
  width: 78%;
  aspect-ratio: .68;
  border-radius: 8px;
  padding: 26px;
  background: rgba(255,255,255,.82);
  color: #272228;
  box-shadow: 0 20px 35px rgba(42,34,40,.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-cover-inner span { font-size: .68rem; letter-spacing: .18em; }
.book-cover-inner h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  line-height: 1.04;
}
.book-cover-inner p { font-size: .78rem; }
.book-details {
  padding: 34px;
  align-self: center;
}
.pill {
  display: inline-block;
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

.timeline {
  max-width: 820px;
  margin-left: 12px;
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 34px;
  border-left: 2px solid var(--line);
}
.timeline-dot {
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px var(--pink-soft);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.achievement-card {
  border-radius: 22px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.achievement-card > span { font-size: 1.7rem; }
.achievement-card p { color: var(--muted); font-size: .9rem; }

.video-card {
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
}
.video-placeholder {
  min-height: 360px;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}
.play-button {
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.video-copy { padding: 36px; align-self: center; }
.video-copy h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.video-copy .btn { margin-top: 22px; }

.contact-box {
  border-radius: 34px;
  padding: 66px 36px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--pink-soft) 80%, transparent), transparent 35%),
    radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--blue-soft) 80%, transparent), transparent 35%),
    var(--surface);
}
.contact-box > p { max-width: 650px; margin: 0 auto; }
.contact-actions { justify-content: center; margin-top: 28px; }
.privacy-note { margin-top: 24px !important; font-size: .83rem; }

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer strong { color: var(--text); }
footer p { font-size: .86rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .theme-toggle { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 70px;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .mini-stats { justify-content: center; }
  .hero-visual { grid-row: 1; }

  .about-grid,
  .book-grid,
  .video-card { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
}

@media (max-width: 620px) {
  .section { padding: 76px 18px; }
  .nav-wrap { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 3.35rem; }
  .mini-stats { gap: 18px; }
  .floating-tag { display: none; }
  .fact-grid,
  .project-grid,
  .achievement-grid { grid-template-columns: 1fr; }
  .project-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { min-height: 320px; }
  footer { flex-direction: column; }
}
