:root {
  color-scheme: light;
  --paper: #f8f3ec;
  --paper-deep: #efe6d9;
  --ink: #3a281e;
  --muted: #74685f;
  --soft: #dfcec0;
  --gold: #c7a965;
  --sage: #a8cdb1;
  --green: #59be83;
  --card: #fffdf9;
  --shadow: 0 24px 60px rgba(58, 40, 30, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: 78px;
  align-items: center;
  padding: 50px 0 96px;
}

.eyebrow,
.section-label,
.panel-label {
  margin-bottom: 26px;
  color: rgba(199, 169, 101, 0.92);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 9vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1.name-title {
  display: grid;
  gap: 2px;
  text-shadow: 0 10px 26px rgba(58, 40, 30, 0.08);
}

h1.name-title span,
h1.name-title em {
  display: inline-block;
  color: var(--ink);
  font-style: normal;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 720ms ease forwards;
}

h1.name-title span::first-letter {
  font-size: 1.08em;
}

h1 em {
  display: block;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 760ms ease forwards 150ms;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  line-height: 1.12;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 1.8vw, 1.6rem);
  line-height: 1.85;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--soft);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 820;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 253, 249, 0.5);
}

.profile-card {
  position: relative;
  margin: 0;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 0.76;
  border-radius: 34px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 52% 29%;
}

.profile-card figcaption {
  position: absolute;
  right: 28px;
  bottom: -22px;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: center;
  min-width: min(360px, calc(100% - 36px));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 17px 20px;
  box-shadow: var(--shadow);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(89, 190, 131, 0.15);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  line-height: 1.2;
}

.profile-card figcaption span:not(.status-dot) {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 88px 0;
}

.section-heading,
.footprint-heading {
  margin-bottom: 42px;
}

.chapters {
  overflow: hidden;
}

.chapter-track {
  display: grid;
  grid-auto-columns: minmax(320px, 390px);
  grid-auto-flow: column;
  gap: 28px;
  overflow-x: auto;
  padding: 0 0 28px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--soft) transparent;
}

.chapter-card {
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(58, 40, 30, 0.08);
  scroll-snap-align: start;
}

.chapter-media,
.chapter-card img,
.chapter-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.chapter-media {
  position: relative;
  overflow: hidden;
  background: #eaded1;
}

.chapter-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
}

.chapter-card img.wbs-card-image {
  object-fit: contain;
  object-position: center;
  background: #d8dde6;
}

.mango-card-image {
  object-position: center;
  filter: saturate(1.08) contrast(1.1) brightness(1.02);
}

.media-date {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(58, 40, 30, 0.56);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.chapter-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-image {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  object-fit: contain;
  filter: none;
  box-shadow: 0 12px 28px rgba(58, 40, 30, 0.18);
}

.chapter-card img.logo-image.tiktok-logo-image {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #000;
  padding: 4px;
  object-fit: contain;
  filter: none;
}

.math-watermark {
  position: absolute;
  inset: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-style: italic;
  line-height: 1.35;
  transform: rotate(-8deg);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.chapter-body {
  padding: 28px;
}

.chapter-body p {
  min-height: 94px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  background: #f5e7df;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.chapter-card:nth-child(2) .pill {
  background: #e2f2e5;
}

.chapter-card:nth-child(4) .pill {
  background: #efe8cf;
}

.chapter-card:nth-child(5) .pill {
  background: #e9eef5;
}

.chapter-card:nth-child(6) .pill {
  background: #f3dfde;
}

.drag-note {
  margin: 8px 0 0;
  border-top: 8px solid #e8d4c5;
  padding-top: 20px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.footprint-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.mini-stats {
  display: flex;
  gap: 58px;
}

.mini-stats article {
  min-width: 90px;
}

.mini-stats strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.footprint-panel {
  border: 1px solid var(--soft);
  border-radius: 28px;
  background: var(--paper-deep);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
}

.panel-label {
  margin-bottom: 24px;
  color: rgba(116, 104, 95, 0.75);
  font-size: 0.75rem;
}

.panel-label.explored {
  margin-top: 34px;
  border-top: 1px solid rgba(116, 104, 95, 0.22);
  padding-top: 28px;
}

.place-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.worked article,
.lenses article {
  border: 1px solid var(--soft);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 12px 26px rgba(58, 40, 30, 0.06);
}

.worked article {
  width: min(230px, 100%);
  min-height: 122px;
  padding: 20px;
  transform: rotate(var(--tilt, -1deg));
}

.worked article:nth-child(2) {
  --tilt: 1deg;
}

.worked article:nth-child(3) {
  --tilt: -0.6deg;
}

.worked span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 850;
}

.worked strong,
.worked small {
  display: block;
}

.worked strong {
  margin-bottom: 6px;
  text-transform: uppercase;
}

.worked small {
  color: var(--muted);
}

.lenses article {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 790;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-grid article {
  min-height: 190px;
  border: 1px solid var(--soft);
  border-radius: 24px;
  background: var(--card);
  padding: 26px;
  box-shadow: 0 18px 44px rgba(58, 40, 30, 0.08);
}

.research-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--soft);
  padding: 84px 0 98px;
}

.contact p {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-actions {
  justify-content: flex-end;
  max-width: 440px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(89, 190, 131, 0.16);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(89, 190, 131, 0.08);
  }
}

@media (max-width: 920px) {
  .hero,
  .footprint-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 48px;
    padding-top: 48px;
  }

  .profile-card {
    max-width: 520px;
  }

  .mini-stats {
    gap: 36px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    width: min(100% - 28px, 1240px);
    flex-direction: column;
  }

  main {
    width: min(100% - 28px, 1240px);
  }

  nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  h1 {
    font-size: 4.05rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .button {
    width: 100%;
  }

  .profile-card figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-width: 0;
  }

  .chapter-track {
    grid-auto-columns: minmax(286px, 88vw);
  }

  .mini-stats {
    justify-content: space-between;
  }

  .worked article {
    width: 100%;
    transform: none;
  }

  .lenses article {
    width: 100%;
  }
}
