/* ── Self-hosted Inter font ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #fafafa;
  --color-text: #32373c;
  --color-text-muted: #6b7280;
  --color-accent: #3C2CB2;
  --color-accent-hover: #2e2194;
  --color-accent-light: rgba(60, 44, 178, 0.08);
  --color-pill-bg: #f0f0f0;
  --color-card-bg: #fff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 800px;
  --content-width: 800px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: linear-gradient(135deg, #fafafa, #f0eef9, #fafafa, #eef4fa);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ── Hero – 2 column split ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  min-height: 420px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
}

.hero-text .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 4px;
}

.hero-text .tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  will-change: transform;
}

.photo-blob {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  z-index: 0;
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 520px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  opacity: 0;
  animation: photoEntrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}


/* ── Pill links ── */
.pill {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  background: var(--color-pill-bg);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pill:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

.pill:active {
  transform: translateY(0);
}

/* ── Content sections ── */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Impact cards ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.impact-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.impact-number {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 6px;
}

.impact-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Principles ── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.principle {
  padding: var(--space-sm) 0;
}

.principle strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.principle span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Now section ── */
.now-content {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.now-content p {
  font-size: 1rem;
}

.now-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── CTA ── */
.cta {
  text-align: center;
}

.cta p {
  max-width: 520px;
  margin: 0 auto var(--space-sm);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }
.fade-in:nth-child(7) { animation-delay: 0.6s; }

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

@keyframes photoEntrance {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container {
    padding: var(--space-lg) var(--space-sm);
    gap: var(--space-lg);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    gap: var(--space-md);
  }

  .hero-photo {
    order: -1;
  }

  .profile-photo {
    width: 200px;
    height: 250px;
  }

  .hero-text {
    align-items: center;
  }

  .hero-links {
    justify-content: center;
  }

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

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

  .section {
    text-align: center;
  }

  .principle {
    text-align: center;
  }
}
