
/* shell — let the bg layers fill it; give room for the waves below the content */
.ed-home .ed-home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(74vh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(16px, 2.2vw, 32px);
  padding-bottom: clamp(96px, 15%, 150px);
}

.ed-home .ed-home-hero .fph-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* soft light-purple mesh */
.ed-home .ed-home-hero .fph-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 42% at 50% 6%, #ffffff 0%, rgba(255,255,255,0) 64%),
    linear-gradient(180deg, #eff3fc 0%, #e5ecfb 34%, #e0e9fb 62%, #ecf1fc 86%, #ffffff 100%);
}

/* drifting purple aurora blobs */
.ed-home .ed-home-hero .fph-aurora { position: absolute; inset: 0; overflow: hidden; }
.ed-home .ed-home-hero .fph-blob { position: absolute; border-radius: 50%; filter: blur(74px); opacity: 0.5; will-change: transform; }
.ed-home .ed-home-hero .fph-blob.b1 { width: 520px; height: 520px; background: radial-gradient(circle, #6a8fe0, transparent 70%); top: -70px; left: 3%; animation: fph-d1 19s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-blob.b2 { width: 460px; height: 460px; background: radial-gradient(circle, #9ab5f0, transparent 70%); top: 4%; right: 1%; animation: fph-d2 23s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-blob.b3 { width: 620px; height: 620px; background: radial-gradient(circle, #4f78d0, transparent 70%); bottom: 2%; left: 30%; animation: fph-d3 27s ease-in-out infinite; }
@keyframes fph-d1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,42px) scale(1.12); } }
@keyframes fph-d2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-54px,30px) scale(1.08); } }
@keyframes fph-d3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(44px,-40px) scale(1.14); } }

/* flowing waves — slim NESTED layers, soft top blend (no cut line), gentle swaying */
.ed-home .ed-home-hero .fph-waves {
  position: absolute; left: -9%; bottom: -2%; width: 118%; height: 36%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
}
.ed-home .ed-home-hero .fph-waves .wv,
.ed-home .ed-home-hero .fph-waves .crest1,
.ed-home .ed-home-hero .fph-waves .crest2 { will-change: transform; }
.ed-home .ed-home-hero .fph-waves .wv1 { animation: fph-sway1 9.5s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .wv2 { animation: fph-sway2 8s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .wv3 { animation: fph-sway3 6.5s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .wv4 { animation: fph-sway1 7s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .wv5 { animation: fph-sway2 5.5s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .crest1 { animation: fph-sway3 6.5s ease-in-out infinite, fph-sh 5.5s ease-in-out infinite; }
.ed-home .ed-home-hero .fph-waves .crest2 { animation: fph-sway2 5.5s ease-in-out infinite, fph-sh 4.5s ease-in-out infinite; }
/* each layer undulates on a gentle figure-of-8 path (x slide + y bob) → looks like swaying water */
@keyframes fph-sway1 { 0%,100% { transform: translate(0,0); } 25% { transform: translate(17px,-6px); } 50% { transform: translate(34px,0); } 75% { transform: translate(17px,6px); } }
@keyframes fph-sway2 { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-14px,5px); } 50% { transform: translate(-28px,0); } 75% { transform: translate(-14px,-5px); } }
@keyframes fph-sway3 { 0%,100% { transform: translate(0,0); } 25% { transform: translate(12px,-4px); } 50% { transform: translate(24px,0); } 75% { transform: translate(12px,4px); } }
@keyframes fph-sh { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* dissolve hero into the section below */
.ed-home .ed-home-hero .fph-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(180deg, transparent, #ffffff); }

.ed-home .ed-home-hero .ed-home-hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  padding-top: clamp(8px, 1.4vw, 18px);
  padding-bottom: clamp(8px, 1.2vw, 16px);
}
.ed-home .ed-home-hero .ed-hero-in { text-align: center; max-width: none; margin-inline: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(7px, 0.9vw, 11px); }
/* the 720px cap on .ed-hero-in (editorial.css) left it stuck to the grid's left edge — re-center it */
body.fp-ed .ed-home-hero-grid .ed-hero-in { max-width: 660px; margin-inline: auto; }
.ed-home .ed-home-hero .ed-hero-in > * { margin: 0; }
.ed-home .ed-home-hero .ed-home-hero-art { display: none; }   /* single-column → hide the side showcase card */

/* eyebrow → glass pill (purple dot) */
.ed-home .ed-home-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 16px;
  box-shadow: 0 8px 26px rgba(0,38,121,0.10);
  margin-bottom: 4px;
}
.ed-home .ed-home-hero .hero-eyebrow-dot { background: var(--brand, #002679); animation: fph-tw 3s ease-in-out infinite; }
@keyframes fph-tw { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }

/* tidy widths + centered rows (parent .ed-hero-in is a centered flex column) */
.ed-home .ed-home-hero .ed-lead { max-width: 540px; }
.ed-home .ed-home-hero .ed-home-search-shell { width: 100%; max-width: 580px; position: relative; z-index: 20; }
/* search suggestions dropdown must overlay the chips/section below (was rendering behind) */
.ed-home .ed-home-hero .search-suggestions { z-index: 40; }
.ed-home .ed-home-hero .ed-hero-tags { justify-content: center; flex-wrap: wrap; }

.ed-home .ed-home-hero .ed-home-search-shell { max-width: 620px; }
.ed-home .ed-home-hero .ed-search {
  margin: 0; width: 100%; gap: 6px;
  padding: 7px 7px 7px 6px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  overflow: visible;
  /* glass: bright top sheen + faint bottom catch-light + ONE soft diffuse shadow (no card slab) */
  box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -10px 22px -14px rgba(255,255,255,.45), 0 12px 36px -16px rgba(18,33,66,.22);
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.ed-home .ed-home-hero .ed-search:hover {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -10px 22px -14px rgba(255,255,255,.5), 0 16px 44px -16px rgba(18,33,66,.26);
}
body.fp-ed .ed-home-hero .ed-search:focus-within {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 0 0 4px rgba(58,115,237,.20), 0 16px 44px -16px rgba(18,33,66,.28);
}
.ed-home .ed-home-hero .ed-search svg { position: static; left: auto; top: auto; transform: none; width: 21px; height: 21px; margin-left: 18px; color: var(--brand, #002679); flex-shrink: 0; }
.ed-home .ed-home-hero .ed-search input { padding: 15px 10px; font-size: 1.05rem; color: #1a202e; border: none; background: transparent; box-shadow: none; border-radius: 0; }
.ed-home .ed-home-hero .ed-search input::placeholder { color: #5f697d; }
/* button — vivid purple with a glassy sheen so it belongs to the glass bar */
.ed-home .ed-home-hero .ed-search button {
  align-self: stretch; border-radius: 999px; padding: 0 30px;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(135deg, rgba(33,86,200,.95) 0%, rgba(0,38,121,.96) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 8px 18px -8px rgba(0,38,121,.5);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ed-home .ed-home-hero .ed-search button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 24px -8px rgba(0,38,121,.6); }
.ed-home .ed-home-hero .ed-search button:active { transform: translateY(0); }
@media (max-width: 560px) {
  .ed-home .ed-home-hero .ed-search button { padding: 0 20px; font-size: 0.94rem; }
  .ed-home .ed-home-hero .ed-search input { font-size: 1rem; padding: 13px 8px; }
  .ed-home .ed-home-hero .ed-search svg { margin-left: 14px; }
}

/* reduced-motion: freeze all hero animation */
@media (prefers-reduced-motion: reduce) {
  .ed-home .ed-home-hero .fph-blob,
  .ed-home .ed-home-hero .fph-waves .wv,
  .ed-home .ed-home-hero .fph-waves .crest1,
  .ed-home .ed-home-hero .fph-waves .crest2,
  .ed-home .ed-home-hero .hero-eyebrow-dot { animation: none !important; }
}

/* small screens — shorter hero, smaller waves */
@media (max-width: 720px) {
  .ed-home .ed-home-hero { min-height: auto; }
  .ed-home .ed-home-hero .fph-waves { height: 26%; }
}

.fp3d-band { position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px,5vw,90px) clamp(12px,2.5vw,40px);
  background:
    radial-gradient(70% 88% at 80% 30%, rgba(42,69,128,.5), transparent 60%),
    radial-gradient(60% 80% at 13% 13%, rgba(42,76,150,.3), transparent 58%),
    linear-gradient(160deg, #0a101e 0%, #090d16 55%, #06090f 100%);
  border-top: 1px solid rgba(120,163,255,.14);
  border-bottom: 1px solid rgba(120,163,255,.14); }
/* faint starfield speckle across the whole band */
.fp3d-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 24% 70%, rgba(180,220,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 42% 16%, rgba(210,224,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 58% 80%, rgba(200,217,255,.45), transparent),
    radial-gradient(1.4px 1.4px at 76% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 90% 64%, rgba(200,220,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(210,224,255,.4), transparent);
  opacity: .72; }
/* content spans MAX width (no card) — globe goes as wide as the band allows */
.fp3d-band .ed-container { position: relative; z-index: 1; max-width: min(1920px, 98vw); }
/* heading → light on the dark card (high specificity to beat the Midnight rules) */
body.fp-ed .fp3d-band .ed-kicker { color: #8be9ff; }
body.fp-ed .fp3d-band .ed-h2 { color: #eef0ff; }
body.fp-ed .fp3d-band .ed-h2 .ed-em { color: #b6cdff; }
.fp3d-band .ed-head { margin-bottom: clamp(8px,1.6vw,18px); }
.fp3d-band .ed-head-tx { text-align: center; width: 100%; }

.fp3d-stage { position: relative; display: grid; place-items: center;
  height: clamp(380px,58vw,860px); }

.fp3d-glow { position: absolute; left: 50%; top: 50%; width: clamp(380px,56vw,900px); aspect-ratio: 1;
  z-index: 0; border-radius: 50%; transform: translate(-50%,-50%); filter: blur(30px); pointer-events: none;
  will-change: opacity, transform;
  background: radial-gradient(circle at 44% 40%,
    rgba(56,189,248,.22), rgba(37,99,235,.16) 42%, rgba(16,40,84,.08) 64%, transparent 74%);
  animation: fp3d-halo 8s ease-in-out infinite; }
@keyframes fp3d-halo { 0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); } }

/* the canvas the globe is drawn on (sized by JS for crisp DPR rendering) */
.fp3d-globe { position: relative; z-index: 1; display: block;
  width: clamp(420px,62vw,1040px); height: clamp(420px,62vw,1040px);
  cursor: grab; touch-action: pan-y; }
.fp3d-globe:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .fp3d-glow, .fp3d-glow::before, .fp3d-glow::after { animation: none !important; }
}
@media (max-width: 760px) {
  .fp3d-stage { height: clamp(330px, 98vw, 470px); }
  .fp3d-globe { width: clamp(320px,98vw,440px); height: clamp(320px,98vw,440px); }
  .fp3d-glow { width: clamp(230px,70vw,320px); }
}
/* End FP 3D DOTTED GLOBE */
