/* Home, laptops and larger: AI search rising over the hero. (Process improvement,
   since Dec 2026: "Where senior time goes" and "What it costs", the same held stage.)
   Lighter layers and quicker entrances, so both screens rise smoothly.
   Works with heroCross in script.js. Phones and tablets are not affected. */
.hero-dim,.probs-under{display:none;}
@media (min-width:981px) and (min-height:520px){
  /* the hero's two statements and their rest, then one more screen while AI
     search, which overlaps that last screen, rises over it (Dec 2026: two
     statements instead of four, so 380vh instead of 600vh) */
  .hero-cross{height:380vh;}
  .ais-stage{position:relative;z-index:2;margin-top:-100vh;min-height:100vh;}
  .ais-stage.is-rising .fx-art *{animation-play-state:paused !important;}
  .cap-cross{height:330vh;}

  /* plain layers instead of live filters and see-through panels */
  .hero-dim{display:block;position:absolute;inset:-1px;z-index:3;background:#081226;opacity:0;pointer-events:none;will-change:opacity;}
  .probs-under{display:block;position:absolute;inset:0;z-index:4;background:#111827;opacity:0;pointer-events:none;will-change:opacity;}
  .cross-pin > .is-covered{opacity:0;}

  /* the film grain no longer blends with everything beneath it */
  .cross-pin > .probs.grain::after,.cross-pin > .why.grain::after{mix-blend-mode:normal;opacity:.025;}

  /* the three glows: already soft gradients, so the 90px live blur is not needed */
  .cross-pin .why-plane{filter:none;animation-play-state:paused;}
  .cross-pin .why-bg.is-visible .why-plane{animation-play-state:running;}

  /* entrances: shorter and closer together */
  .cross-pin > .probs .reveal,.cross-pin > .why .why-inner.reveal{transform:translateY(16px);transition-duration:.45s;}
  .cross-pin > .probs .reveal-rise{transform:translateY(20px);transition-duration:.5s;transition-delay:calc(var(--d,0ms) * .5);}
  .cross-pin > .probs .reveal.is-visible,.cross-pin > .probs .reveal-rise.is-visible,.cross-pin > .why .why-inner.reveal.is-visible{transform:none;}
  .cross-pin .why-river{transition:opacity .7s ease-out;}
  .cross-pin .why-horizon{transition:opacity .5s ease-out,transform .8s cubic-bezier(.2,.7,.2,1);}
}
@media (prefers-reduced-motion:reduce){
  .cross-pin > .probs .reveal,.cross-pin > .probs .reveal-rise,.cross-pin > .why .why-inner.reveal{transform:none!important;}
  .cross-pin .why-river,.cross-pin .why-horizon{transition:none!important;}
}

/* "Where senior time goes" and "What it costs": their own held stage (Process improvement) */
/* Home, phones and small tablets: two statements, so a shorter hold (it was 400vh for four) */
.home-flow .hero-cross{height:230vh;}
.cap-cross{position:relative;}
.cap-cross .cross-pin > .probs{transform:none;}
.home-flow .cap-cross{display:none;}   /* phones: home-phone-flow.js places both panels after it */
@media (min-width:981px) and (min-height:520px) and (max-height:760px){
  .ais-stage > .ais-pin > .ais-fx{display:flex;flex-direction:column;justify-content:center;min-height:100vh;box-sizing:border-box;}
  .ais-stage > .ais-pin > .ais-fx > .wrap{width:100%;}
}
@media (min-width:981px) and (max-height:519px){
  .cap-cross .cross-pin{position:static;height:auto;overflow:visible;}
  .cap-cross .cross-pin > .probs,.cap-cross .cross-pin > .why{position:relative;inset:auto;transform:none !important;}
}

/* "What it costs": the button to the Process improvement page (it replaced "How we fix it" and "What we do") */
.why-cta{min-height:56px;margin-top:clamp(1.6rem,3.6vh,2.6rem);}
@media (min-width:981px) and (max-height:820px){ .cross-pin > .why .why-inner{top:-28px;} }   /* short laptops: clear of the light line */
@media (max-width:560px){ .why-cta{width:100%;padding-inline:1rem;} }

/* Phones and small tablets: the three problems open and close (home-phone-flow.js) */
@media (max-width:980px){
  .prob-row.is-drop,.prob-row.is-drop:first-child{display:block;padding:0;}
  .probs-rows:has(.is-drop){border-top:1px solid rgba(143,178,217,.18);}
  .prob-tog{display:flex;align-items:center;justify-content:space-between;gap:1.1rem;width:100%;padding:1.05rem 0;border:0;background:none;font:inherit;letter-spacing:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;}
  .prob-plus{position:relative;flex:none;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(143,178,217,.5);transition:background .25s ease;}
  .prob-plus::before,.prob-plus::after{content:"";position:absolute;left:50%;top:50%;width:13px;height:1.6px;margin:-.8px 0 0 -6.5px;border-radius:1px;background:#DCEBFF;transition:transform .3s ease;}
  .prob-plus::after{transform:rotate(90deg);}
  .is-open .prob-plus{background:rgba(143,178,217,.16);} .is-open .prob-plus::after{transform:none;}
  .prob-tog:focus-visible{outline:2px solid #8FB2D9;outline-offset:3px;border-radius:6px;}
  .prob-row.is-drop .prob-row-body{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .38s ease,visibility 0s linear .38s;}
  .prob-row.is-drop .prob-row-body > div{min-height:0;overflow:hidden;}
  .prob-row.is-drop .prob-row-body > div::after{content:"";display:block;height:1.25rem;}
  .prob-row.is-open .prob-row-body{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .38s ease,visibility 0s;}
}
@media (prefers-reduced-motion:reduce){ .prob-row.is-drop .prob-row-body,.prob-row.is-open .prob-row-body,.prob-plus,.prob-plus::before,.prob-plus::after{transition:none;} }

/* Home hero, first statement (Nara, 2 Dec 2026): the headline is smaller on
   every screen, and the line above it comes down a little with it. Phones go
   back to the six-line size. The later hero statements are unchanged. */
.hero .hero-beat[data-beat="0"] h1.hero-h1-long{font-size:min(clamp(1.5rem,3vw,44px),5.5vh);}
.hero .hero-beat[data-beat="0"] .hero-lockup .hero-eyebrow{font-size:clamp(1rem,1.3vw,1.2rem);}
@media (max-width:980px){ .hero .hero-beat[data-beat="0"] .hero-lockup .hero-eyebrow{font-size:.9rem;} }
@media (max-width:760px){ .hero .hero-beat[data-beat="0"] h1.hero-h1-long{font-size:min(calc((100vw - 48px) / 16),2.8vh) !important;} }

/* ---- Process improvement: Proof points (moved from the Home hero, Dec 2026) ----
   The same glass card. Fills the screen on laptops, as it did there; on phones
   it scrolls like any section.
   Background (Nara, 2 Dec 2026): the opening's blue wave carries on into this
   section, then deepens to navy behind the card so the wave and the card don't
   compete. The picture is the opening's own, mirrored top to bottom and sized
   to the opening's height (--sh-h, set by proof-panel.js), so its top edge
   meets the opening's bottom edge exactly and there is no line between them.
   The overlay repeats the opening's own shading at the join, then fades to navy. */
.svc-proof{--pp-navy:#071327;position:relative;overflow:hidden;background:var(--pp-navy);color:#fff;padding:var(--sp-y,96px) 0;}
.svc-proof-bg{position:absolute;inset:0;}
.svc-proof-bg img{position:absolute;top:0;left:0;display:block;width:100%;height:var(--sh-h,720px);object-fit:cover;object-position:right center;transform:scaleY(-1);}
.svc-proof-bg::after{content:"";position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(7,19,39,0) 0,rgba(7,19,39,.5) 90px,rgba(7,19,39,.86) 190px,var(--pp-navy) 300px),
  linear-gradient(90deg,rgba(28,36,54,.72) 0%,rgba(28,36,54,.35) 38%,rgba(28,36,54,0) 62%);}
@media (max-width:980px){
  .svc-proof-bg img{object-position:72% center;}
  .svc-proof-bg::after{background:
    linear-gradient(180deg,rgba(7,19,39,0) 0,rgba(7,19,39,.6) 80px,var(--pp-navy) 220px),
    linear-gradient(180deg,rgba(28,36,54,.7),rgba(28,36,54,.7));}
}
.svc-proof > .wrap{position:relative;z-index:1;}
@media (min-width:981px){
  /* (Nara, 2 Dec 2026) no longer a full screen with the card centred: the card
     sits higher, close under the opening, and the section is only as tall as
     the card and its spacing, so no empty band above or below it */
  .svc-proof{display:block;box-sizing:border-box;padding:clamp(36px,4.6vh,56px) 0 clamp(80px,10vh,120px);}
  .svc-proof-bg::after{background:
    linear-gradient(180deg,rgba(7,19,39,0) 0,rgba(7,19,39,.55) 56px,rgba(7,19,39,.88) 130px,var(--pp-navy) 210px),
    linear-gradient(90deg,rgba(28,36,54,.72) 0%,rgba(28,36,54,.35) 38%,rgba(28,36,54,0) 62%);}
  .svc-proof > .wrap{max-width:1680px;width:100%;padding:0 clamp(1.5rem,4.5vw,5rem);box-sizing:border-box;}
}

/* ---- Homepage, Why MBA: the button to Process improvement (Nara, 2 Dec 2026) ----
   Clear glass with an arrow, like the other standalone links on the homepage
   (the look is in ai-search.css). Centred under the three cards.
   Why MBA holds full screen on laptops, so the cards make room for it: the
   empty second line kept under each card title goes once every title fits on
   one line (1100px and wider), and on shorter laptop screens the spacing
   inside the cards tightens a little. The hold itself is unchanged.
   No fade-in on the button: its 24px start offset made the section measure too
   tall (so pin-drift.js began moving it), and on short screens the button sits
   below the point where fade-ins start, so it would never have appeared. */
.wm-more{display:flex;justify-content:center;margin:clamp(1.6rem,3.6vh,2.4rem) 0 0;}
@media (max-width:560px){ .wm-more a{width:100%;} }
@media (min-width:1100px){ #whyMbaStage .wm-cap h3{min-height:0;} }
@media (min-width:981px) and (min-height:761px) and (max-height:899px){
  #whyMbaStage .wm-pin > .whymba{padding-top:106px;padding-bottom:16px;}
  #whyMbaStage .wm-pin .wm-triad{margin-top:16px;}
  #whyMbaStage .wm-pin .wm-cap{padding-top:18px;padding-bottom:18px;}
  #whyMbaStage .wm-n{margin-bottom:8px;}
  #whyMbaStage .wm-pin .wm-mark{width:58px;height:44px;margin-bottom:8px;}
  #whyMbaStage .wm-mark svg{width:38px;height:28px;}
  #whyMbaStage .wm-cap h3{margin-top:10px;}
  #whyMbaStage .wm-more{margin-top:16px;}
}

/* ---- Homepage hero, first statement (Nara's pick, option A, 2 Dec 2026) ----
   Inter for the connecting words, Cormorant Garamond for the two services, and
   "and a" on the same line as "AI search specialist". No line before the text.
   Left-aligned on laptops and tablets, with lighter shading so the skyline
   shows. The second statement, the hero height and the scrolling are unchanged.
   Built by Archive_page-builder_20261201/home_hero_option_a.py. */
.hero .hero-beat[data-beat="0"] h1.hero-h1-long.hx{font-size:inherit;line-height:1;letter-spacing:0;text-transform:none;margin:0;}
.hx{--big:min(clamp(44px,5.5vw,90px),9.6vh);--small:clamp(14px,1.32vw,21px);}
.hx > span{display:block;}
.hx .hx-l{text-wrap:wrap;}   /* the h1's balanced wrapping split "AI search specialist" on phones */
.hx .hx-s{font-family:var(--font-body);font-weight:500;text-transform:uppercase;letter-spacing:.16em;
  font-size:var(--small);line-height:1.5;color:rgba(245,248,252,.92);}
.hx .hx-l{font-family:var(--font-display);font-weight:500;text-transform:none;letter-spacing:-.012em;
  font-size:var(--big);line-height:1.04;color:#8FB2D9;}
.hx .hx-l em{font-style:normal;color:inherit;font-family:inherit;}
.hx .hx-and{display:inline;font-family:var(--font-body);font-weight:500;text-transform:uppercase;letter-spacing:.16em;
  font-size:var(--small);color:rgba(245,248,252,.92);margin-left:.5em;vertical-align:baseline;}
.hx .hx-s:first-child{margin-bottom:.9em;}
.hx .hx-s:last-child{margin-top:1.05em;}
.hx .hx-l + .hx-l{margin-top:.06em;}
/* hero-fx.js puts each word in a bottom-aligned mask, so the small "and a"
   would sit below the big words' baseline; lift it by the difference */
.hero h1.hx .hx-and .hw{margin-bottom:calc(0.2815 * var(--big) - 0.237 * var(--small));}
@media (min-width:761px){
  .hero-beat[data-beat="0"] .wrap{display:block;}
  .hero-beat[data-beat="0"] .hero-lockup{margin-left:clamp(0px,5.5vw,104px);margin-right:auto;text-align:left;}
}
/* phones: a first fit only; the phone pass at the end of the round settles it */
@media (max-width:760px){
  .hx{--big:calc((100vw - 48px) / 9.4);--small:clamp(12px,3.5vw,14px);}
  .hx .hx-s + .hx-l{white-space:nowrap;}   /* "AI search specialist and a" stays on one line */
  .hx .hx-s,.hx .hx-and{letter-spacing:.12em;}
  .hx .hx-l{line-height:1.1;}
}

/* ---- Homepage hero: deeper navy, and the second statement (Nara, 2 Dec 2026) ----
   Built by Archive_page-builder_20261201/home_hero_navy_and_second.py.
   Shading: two navy shades, one per statement, cross-fade in step with the
   scroll (script.js sets --hb: 0 on the first statement, 1 on the second).
   The first is the deepest and sits behind the left-aligned headline; the
   second is clearer, as before, and pools behind the centred statement. */
.hero-shade-2{display:none;}
@media (min-width:761px){
  #heroCross .hero-scrim{opacity:calc(1 - var(--hb, 0));background:
    radial-gradient(60% 58% at 33% 50%, rgba(9,18,38,.80) 0%, rgba(9,18,38,.52) 55%, rgba(9,18,38,0) 100%),
    linear-gradient(90deg, rgba(9,18,38,.88) 0%, rgba(9,18,38,.72) 36%, rgba(9,18,38,.46) 66%, rgba(9,18,38,.3) 100%),
    linear-gradient(to bottom, rgba(9,18,38,.66) 0%, rgba(9,18,38,0) 24%, rgba(9,18,38,0) 68%, rgba(9,18,38,.86) 100%);}
  #heroCross .hero-shade-2{display:block;position:absolute;inset:0;pointer-events:none;opacity:var(--hb, 0);background:
    radial-gradient(52% 50% at 50% 48%, rgba(9,18,38,.82) 0%, rgba(9,18,38,.56) 52%, rgba(9,18,38,0) 100%),
    linear-gradient(rgba(9,18,38,.22), rgba(9,18,38,.22)),
    linear-gradient(to bottom, rgba(9,18,38,.6) 0%, rgba(9,18,38,0) 24%, rgba(9,18,38,0) 70%, rgba(9,18,38,.84) 100%);}
}

/* Second statement: Garamond, white, "named in AI answers." in italic blue,
   left-aligned in a centred block, with the three buttons under it. Rules
   above and below it were tried and removed (Nara, 2 Dec 2026). */
.hb2{position:relative;width:fit-content;max-width:100%;margin-inline:auto;text-align:left;}
.hb2 > :not(.hb2-glow){position:relative;z-index:1;}
.hero-beat[data-beat="1"] .hero-line{font-family:var(--font-display);font-weight:500;color:#F5F8FC;
  font-size:min(clamp(30px,3.05vw,58px),6.4vh);line-height:1.2;letter-spacing:-.005em;
  max-width:19em;margin:0;text-align:left;text-wrap:pretty;}   /* three lines, as in Nara's picture */
.hero-beat[data-beat="1"] .hero-line em{font-style:italic;font-weight:500;color:#8FB2D9;}
.hero-beat[data-beat="1"] .hero-line em .hw{padding-right:.08em;margin-right:-.08em;}   /* the italic's slant stays inside its mask */
.hb2 .hero-actions{justify-content:flex-start;margin-top:clamp(1.9rem,4.8vh,3rem);}
.hero-beat[data-beat="1"] .wrap{max-width:1280px;}   /* room for the three lines on large screens */

/* The slanted glowing panel: it slides in, a light sweeps across it, and it
   fades away, each time the second statement arrives (about 2.6 seconds). */
.hb2-glow{position:absolute;z-index:0;left:-11%;right:-4%;top:-95%;bottom:-72%;pointer-events:none;opacity:0;
  transform:skewX(-28deg);}
.hb2-glow b,.hb2-glow i{position:absolute;top:0;bottom:0;
  -webkit-mask:linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
          mask:linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);}
.hb2-glow b{left:0;right:0;background:linear-gradient(90deg, rgba(143,178,217,.14) 0%, rgba(143,178,217,.05) 28%, rgba(143,178,217,.02) 62%, rgba(143,178,217,.10) 100%);}
.hb2-glow i{left:0;width:30%;opacity:0;background:linear-gradient(90deg, rgba(196,220,246,0), rgba(196,220,246,.2) 50%, rgba(196,220,246,0));}
.hb2-glow::before,.hb2-glow::after{content:"";position:absolute;top:0;bottom:0;width:2px;
  box-shadow:0 0 10px rgba(143,178,217,.8),0 0 30px rgba(110,160,225,.4);}
.hb2-glow::before{left:0;transform-origin:50% 38%;
  background:linear-gradient(to bottom, rgba(176,208,242,0) 2%, rgba(176,208,242,.95) 28%, rgba(176,208,242,.85) 50%, rgba(176,208,242,0) 70%);}
.hb2-glow::after{right:0;transform-origin:50% 64%;
  background:linear-gradient(to bottom, rgba(176,208,242,0) 30%, rgba(176,208,242,.85) 50%, rgba(176,208,242,.95) 74%, rgba(176,208,242,0) 98%);}
@keyframes hb2Panel{
  0%  {opacity:0;transform:translate3d(-48px,0,0) skewX(-28deg);}
  16% {opacity:1;transform:translate3d(0,0,0) skewX(-28deg);}
  56% {opacity:1;transform:translate3d(6px,0,0) skewX(-28deg);}
  100%{opacity:0;transform:translate3d(20px,0,0) skewX(-28deg);}
}
@keyframes hb2Edge{from{transform:scaleY(0);}to{transform:scaleY(1);}}
@keyframes hb2Sheen{
  0%  {opacity:0;transform:translateX(-40%);}
  25% {opacity:1;}
  75% {opacity:1;}
  100%{opacity:0;transform:translateX(300%);}
}
@media (prefers-reduced-motion:no-preference){
  .hb2:has(.hero-line.is-in) .hb2-glow{animation:hb2Panel 2.6s cubic-bezier(.22,.8,.3,1) .15s both;}
  .hb2:has(.hero-line.is-in) .hb2-glow::before,
  .hb2:has(.hero-line.is-in) .hb2-glow::after{animation:hb2Edge .8s cubic-bezier(.19,1,.22,1) .2s both;}
  .hb2:has(.hero-line.is-in) .hb2-glow i{animation:hb2Sheen 1.3s ease-in-out .45s both;}
}
/* phones: a first fit; the phone pass settles the rest */
@media (max-width:760px){
  .hb2{width:100%;}
  .hb2-glow{display:none;}
  .hero-beat[data-beat="1"] .hero-line{font-size:min(clamp(1.35rem,6.6vw,2.1rem),4.1vh);max-width:none;line-height:1.22;}
  .hb2 .hero-actions{margin-top:1.4rem;}
}
@media (max-width:760px) and (max-height:600px){
  .hb2 .hero-actions{margin-top:1rem;}
}

/* ---- Homepage closing invite (Nara, 2 Dec 2026) ----
   Same size as every other closing invite (the shared large heading size in
   type-scale.css); "Get named in" (blue) and "AI answers." (white) on two
   lines on laptops. Built by match_page_tops_and_invites.py. */
@media (min-width:981px){
  html body #trial.fin h2 em{display:block;}
}
