/* Homepage-specific styles */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(31,164,224,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 90%, rgba(94,186,125,0.18), transparent 60%),
    linear-gradient(180deg, #FCFEFF 0%, #EFF8FE 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-7);
  align-items: center;
  padding: var(--s-8) 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  background: linear-gradient(120deg, #08436B 0%, #1FA4E0 55%, #5EBA7D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--s-4);
}
.hero p.lede { font-size: 1.2rem; }
.hero-cta { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-credits {
  margin-top: var(--s-6); display: flex; gap: var(--s-5); flex-wrap: wrap;
  font-size: 0.85rem; color: var(--c-muted);
}
.hero-credits .dot { display: inline-block; width: 6px; height: 6px; background: var(--c-primary); border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Hero visual — the tree/mind */
.hero-art {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-art .halo {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(31,164,224,0.18), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.hero-art .orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(94,186,125,0.40), rgba(94,186,125,0));
}
.orb-1 { width: 140px; height: 140px; top: 6%; right: -10px; animation: float-y 7s var(--ease) infinite; }
.orb-2 { width: 100px; height: 100px; bottom: 10%; left: -10px; background: radial-gradient(circle, rgba(31,164,224,0.40), rgba(31,164,224,0)); animation: drift 9s var(--ease) infinite; }
.orb-3 { width: 60px; height: 60px; top: 40%; left: 8%; background: radial-gradient(circle, rgba(244,162,97,0.40), rgba(244,162,97,0)); animation: float-y 5s var(--ease) infinite reverse; }

/* Tree path animation */
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
.tree-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }

/* Scroll indicator */
.scroll-cue {
  position: absolute; bottom: var(--s-5); left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 32px; background: linear-gradient(var(--c-primary), transparent);
  animation: float-y 2s var(--ease) infinite;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-art { max-width: 380px; }
  .scroll-cue { display: none; }
}

/* ---------- About section ---------- */
.about {
  background: var(--c-surface);
  position: relative;
}
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s-7); align-items: center; }
.portrait-wrap {
  position: relative; aspect-ratio: 4/5; max-width: 380px; margin: 0 auto;
  border-radius: var(--r-3); overflow: hidden;
  background: linear-gradient(160deg, #E8F1F8 0%, #DFEEE2 100%);
  box-shadow: var(--sh-3);
}
.portrait-wrap svg { width: 100%; height: 100%; }
.portrait-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,67,107,0.4) 100%);
  pointer-events: none;
}
.portrait-caption {
  text-align: center;
  margin-top: 18px;
}
.portrait-caption h4 { color: #08436B; font-family: 'Playfair Display', serif; font-size: 1.45rem; margin-bottom: 4px; }
.portrait-caption span { font-size: 0.92rem; color: #3A4A5B; font-weight: 500; letter-spacing: 0.01em; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Legacy numbers ---------- */
.legacy {
  background:
    linear-gradient(135deg, #08436B 0%, #0E6FA4 50%, #1FA4E0 100%);
  color: white;
  position: relative; overflow: hidden;
}
.legacy::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(circle at 80% 20%, rgba(94,186,125,0.30), transparent 50%);
}
.legacy h2 { color: white; }
.legacy .lede { color: rgba(255,255,255,0.86); }
.legacy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); margin-top: var(--s-7); position: relative; z-index: 1; }
.legacy-stat { text-align: center; }
.legacy-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  color: white;
  line-height: 1;
  display: block; margin-bottom: var(--s-2);
}
.legacy-num .plus { color: #5EBA7D; font-weight: 400; }
.legacy-stat span { color: rgba(255,255,255,0.74); font-size: 0.92rem; letter-spacing: 0.02em; }

@media (max-width: 900px) { .legacy-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Assessment cards ---------- */
.assessment-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--c-surface);
  border-radius: var(--r-4);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  min-height: 380px;
}
.assessment-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.assessment-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--card-c1, var(--c-primary)), var(--card-c2, var(--c-accent)));
}
.assessment-icon {
  width: 64px; height: 64px; border-radius: var(--r-3);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--card-c1) 0%, var(--card-c2) 100%);
  color: white;
  box-shadow: var(--sh-2);
  margin-bottom: var(--s-5);
}
.assessment-icon svg { width: 32px; height: 32px; }
.assessment-card h3 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.assessment-card .tagline { color: var(--c-ink-soft); font-size: 0.95rem; margin-bottom: var(--s-4); }
.assessment-meta { display: flex; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px dashed var(--c-line); flex-wrap: wrap; }
.assessment-meta .meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--c-muted); }
.assessment-meta .meta svg { width: 14px; height: 14px; }

/* ---------- How it works ---------- */
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3);
  position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 38px;
  height: 2px; background: linear-gradient(90deg, var(--c-primary-soft), var(--c-primary), var(--c-accent), var(--c-accent-soft));
  z-index: 0;
}
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-num {
  width: 76px; height: 76px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-primary);
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.6rem;
  color: var(--c-primary-dark);
  box-shadow: var(--sh-2);
}
.flow-step h4 { font-size: 1rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.85rem; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: var(--s-5); }
  .flow::before { display: none; }
}

/* ---------- International strip ---------- */
.intl {
  padding: var(--s-7) 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.intl-marquee {
  display: flex; gap: var(--s-7); align-items: center; justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-5);
}
.intl-marquee span {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--c-ink-soft);
  opacity: 0.78;
}

/* Big serif CTA bar */
.cta-bar {
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-accent-soft) 100%);
  padding: var(--s-8) 0;
  text-align: center;
  border-radius: var(--r-4);
  margin: var(--s-7) auto;
  max-width: calc(var(--container) - 80px);
}
.cta-bar h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: var(--s-3); }
.cta-bar p { margin-bottom: var(--s-5); }

/* ---------- legacy hero + real portrait ---------- */
.legacy-eyebrow { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.legacy-photo-frame {
  position: relative;
  padding: 12px;
  border-radius: 180px 180px 28px 28px;
  background: linear-gradient(140deg, #1FA4E0, #5EBA7D, #08436B, #1FA4E0);
  background-size: 280% 280%;
  animation: legacyFrame 8s ease-in-out infinite;
  box-shadow: 0 22px 54px rgba(8, 67, 107, 0.20);
  max-width: 380px;
  margin: 0 auto;
}
@keyframes legacyFrame {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.legacy-photo-frame .inner {
  border-radius: 170px 170px 18px 18px;
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #E6F4FB 55%, #F6FBF7 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.legacy-photo { width: 100%; display: block; padding-top: 26px; }
