/* ============================================================
   Edu2Future LLC — Homepage
   Built on the "Editorial Prestige" system (study-usa.css).
   Only home-specific pieces + the shared reveal engine live here.
   ============================================================ */

/* ============================================================
   HERO — refined, signature flight-path
   ============================================================ */
.home-hero {
  position: relative;
  isolation: isolate;
  /* deeper, layered aurora over the base su-hero gradient */
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(212,175,55,.20), transparent 58%),
    radial-gradient(820px 680px at 100% 18%, rgba(70,120,190,.28), transparent 60%),
    radial-gradient(700px 560px at 78% 116%, rgba(212,175,55,.12), transparent 55%),
    linear-gradient(155deg, #0e2950 0%, #0b1f3a 52%, #071528 100%);
}

/* soft drifting glow */
.home-hero-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(440px 440px at 22% 30%, rgba(120,170,235,.16), transparent 70%),
    radial-gradient(520px 520px at 82% 64%, rgba(212,175,55,.12), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000, #000 72%, transparent);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-18px, -14px, 0) scale(1.05); }
}

/* signature: gold great-circle flight path toward the student */
.home-hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* keep it off the headline — strongest near the photo (right) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 44%, #000 100%);
}
.home-hero-arc-path {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.4));
  animation: arc-draw 2.4s cubic-bezier(.22,.61,.36,1) .35s forwards;
}
.home-hero-arc-a,
.home-hero-arc-b {
  fill: #F0D27A;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(240,210,122,.8));
}
.home-hero-arc-a { animation: arc-dot .5s ease .5s forwards; }
.home-hero-arc-b { animation: arc-dot .6s ease 2.5s forwards, arc-pulse 3s ease-in-out 3.1s infinite; }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes arc-dot  { to { opacity: 1; } }
@keyframes arc-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

/* keep grid above the decorative layers */
.home-hero .su-hero-grid { position: relative; z-index: 1; }

/* type moment — gradient + glow on the italic accent */
.home-hero-title { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
.home-hero-title em {
  font-style: italic;
  background: linear-gradient(96deg, #F4D98B 0%, var(--su-gold) 45%, #E7B53C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 38px rgba(212,175,55,.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.home-hero .su-checklist { margin: 30px 0 0; }

/* destinations chip — balances the ICEF badge diagonally */
.home-hero-chip {
  position: absolute;
  top: -16px;
  right: -14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
  color: var(--su-ink);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.home-hero-chip svg { width: 18px; height: 18px; color: var(--su-gold); }

/* orchestrated load entrance */
.home-hero-text > *,
.home-hero-frame {
  opacity: 0;
  animation: hero-rise .85s cubic-bezier(.22,.61,.36,1) forwards;
}
.home-hero-text > *:nth-child(1) { animation-delay: .10s; }
.home-hero-text > *:nth-child(2) { animation-delay: .20s; }
.home-hero-text > *:nth-child(3) { animation-delay: .30s; }
.home-hero-text > *:nth-child(4) { animation-delay: .40s; }
.home-hero-text > *:nth-child(5) { animation-delay: .50s; }
.home-hero-frame  { animation: hero-rise-frame 1s cubic-bezier(.22,.61,.36,1) .35s forwards; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-rise-frame {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   WHY THE UNITED STATES — feature split (on navy band)
   ============================================================ */
.usa-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.usa-feature .su-display { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 20px; }
.usa-feature p { color: #B9C6D6; font-size: 1.06rem; line-height: 1.7; max-width: 30em; }
.usa-feature-list {
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 28px 30px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}

/* ============================================================
   OUR IMPACT — stat cards (Editorial)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--su-line);
  border-radius: 18px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11,31,58,.32);
  border-color: transparent;
}
.stat-number {
  font-family: var(--su-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  color: var(--su-ink);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.stat-number .plus { color: var(--su-gold); }
.stat-label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-paragraph);
  letter-spacing: .01em;
}

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-section {
  background: radial-gradient(circle at top left, rgba(31, 75, 117, 0.22), transparent 24%),
              radial-gradient(circle at bottom right, rgba(2, 16, 41, 0.96), transparent 36%),
              #071228;
  color: #fff;
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.founder-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath d='M35 205c52-72 124-95 204-99s150 14 222 23 133 47 177 93 45 99 30 129-34 45-68 45-75-10-108-24-81-37-123-40-107 7-145 27-82 28-107 25-34-17-27-56z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='8'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
}
.founder-layout {
  display: grid;
  grid-template-columns: minmax(320px, 40%) minmax(420px, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.founder-media { display: flex; justify-content: flex-end; position: relative; }
.founder-media-frame {
  position: relative;
  width: min(100%, 480px);
  animation: float-slow 10s ease-in-out infinite;
}
.founder-media-photo {
  position: relative;
  aspect-ratio: 9 / 11;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 36px 90px -30px rgba(0, 0, 0, 0.65);
  background: rgba(255, 255, 255, 0.02);
}
.founder-media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-media-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7,18,40,.6));
}
/* gold corner brackets — echo the hero frame */
.founder-media-frame::before,
.founder-media-frame::after {
  content: "";
  position: absolute;
  width: 52px; height: 52px;
  border: 2px solid var(--su-gold);
  z-index: 2;
}
.founder-media-frame::before { top: -13px; left: -13px; border-right: none; border-bottom: none; }
.founder-media-frame::after  { bottom: -13px; right: -13px; border-left: none; border-top: none; }
/* floating name badge */
.founder-media-badge {
  position: absolute;
  left: -18px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 48px -16px rgba(0,0,0,.6);
}
.founder-media-badge-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--su-gold);
}
.founder-media-badge-ico svg { width: 19px; height: 19px; }
.founder-media-badge b { display: block; color: var(--su-ink); font-size: .96rem; line-height: 1.15; }
.founder-media-badge small { font-size: .74rem; color: var(--color-paragraph); }
.founder-copy-card { position: relative; z-index: 1; overflow: hidden; }
.founder-copy-inner {
  background: rgba(7, 18, 40, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: clamp(2.4rem, 4vw, 4rem);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}
.founder-quote {
  position: relative;
  font-family: var(--su-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 1.9rem 0 2rem;
  max-width: 700px;
}
.founder-quote-mark {
  position: absolute;
  top: -0.66em;
  left: -0.06em;
  font-size: 5rem;
  line-height: 1;
  color: rgba(212,175,55,.30);
  pointer-events: none;
}
.founder-copy-text { display: grid; gap: 1.4rem; margin-bottom: 2.5rem; }
.founder-text {
  font-size: 1.04rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
}
.founder-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.founder-value {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: transform var(--duration-base), border-color var(--duration-base), background-color var(--duration-base);
}
.founder-value:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.05);
}
.founder-value-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--su-gold); }
.founder-value-icon svg { width: 1.2rem; height: 1.2rem; }
.founder-value span { font-size: 0.95rem; font-weight: 600; color: #fff; }
.founder-signature {
  display: grid;
  gap: 0.5rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.signature-image {
  max-width: 240px;
  width: min(100%, 240px);
  height: auto;
  display: block;
  margin-bottom: .4rem;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.founder-sign-meta { display: grid; gap: 2px; }
.signature-name {
  font-family: var(--su-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: #fff;
}
.signature-subtitle {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .home-hero-arc { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); opacity: .6; }
  .usa-feature { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .founder-layout { grid-template-columns: 1fr; gap: 3rem; }
  .founder-media { justify-content: center; }
}
@media (max-width: 600px) {
  .home-hero-chip { right: 50%; transform: translateX(50%); top: -14px; }
  .founder-values { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL — shared engine (used by every page)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 500ms; }
.reveal-children.visible > * { opacity: 1; transform: translateY(0); }

/* Founder reveal */
.founder-section.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.founder-section.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-media,
.reveal-content { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.founder-section.visible .reveal-media,
.founder-section.visible .reveal-content { opacity: 1; transform: translateX(0); }
.founder-quote { opacity: 0; transform: translateY(16px); }
.founder-section.visible .founder-quote { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.founder-value { opacity: 0; transform: translateY(12px); }
.founder-section.visible .founder-value { opacity: 1; transform: translateY(0); }
.founder-section.visible .founder-value:nth-child(1) { transition-delay: 0.15s; }
.founder-section.visible .founder-value:nth-child(2) { transition-delay: 0.25s; }
.founder-section.visible .founder-value:nth-child(3) { transition-delay: 0.35s; }
.founder-section.visible .founder-value:nth-child(4) { transition-delay: 0.45s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-children > *, .founder-section.reveal,
  .reveal-media, .reveal-content, .founder-quote, .founder-value,
  .home-hero-text > *, .home-hero-frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .home-hero-aura, .founder-media-frame,
  .home-hero-arc-a, .home-hero-arc-b { animation: none !important; }
  .home-hero-arc-path { stroke-dashoffset: 0 !important; animation: none !important; }
  .home-hero-arc-a, .home-hero-arc-b { opacity: 1 !important; }
}
