/* ===== Sustainability ===== */
.eco {
  position: relative;
  z-index: 0; /* establishes a stacking context so .eco__photo's z-index:-1 stays
                 contained inside .eco instead of escaping below the page background */
  overflow: hidden;
  color: var(--text);
}

/* Photo sits at full strength as the base layer; .eco__bg on top is a *translucent*
   (not opaque) dark-green tint, so the photo shows through faintly instead of being
   fully blocked by a solid colour. (Previously .eco__bg's gradient stops had no
   alpha at all, so it was 100% opaque and hid the photo completely regardless of
   z-index/opacity — that was the actual bug, not a caching issue.) */
.eco__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 1920px WebP (~460 KB) with a 1920px JPEG fallback, instead of the 7.8 MB
     5272px original (removed from the repo; see git history). The photo sits under a dark-green
     tint, so fine detail beyond this size isn't visible. The first line is
     for browsers without image-set() support. */
  background-image: url("../assets/img/photos/eco-forest-canopy-1920.jpg");
  background-image: image-set(
    url("../assets/img/photos/eco-forest-canopy.webp") type("image/webp"),
    url("../assets/img/photos/eco-forest-canopy-1920.jpg") type("image/jpeg")
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax: image stays put in the viewport while
    the page scrolls past it, instead of scrolling with the section. Desktop only —
    background-attachment:fixed is unreliable on mobile Safari/iOS, which falls back
    to normal scrolling there regardless of this rule. */
}

.eco__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .08) 0, transparent 55%),
    linear-gradient(120deg, rgba(10, 61, 44, .68) 0%, rgba(6, 42, 32, .74) 55%, rgba(4, 26, 21, .8) 100%);
}

.eco__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

.eco__content {
  /* Frosted-glass panel over the forest photo (glassmorphism): translucent
     white sheen on a dark-green base, 14px blur, 1px light border, faint top
     highlight. The base is dark on purpose so the text keeps AA contrast
     whatever part of the photo is behind it. Max width is 560px of text plus
     the padding. */
  max-width: min(656px, calc(100% - 32px)); /* keeps a 16px gutter: .eco__inner zeroes the container padding */
  padding: 44px 48px 48px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(4, 26, 21, .42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 18px 40px rgba(0, 0, 0, .25);
}
/* The visitor asked for less transparency: solid dark green. */
@media (prefers-reduced-transparency: reduce) {
  .eco__content {
    background: rgb(4, 26, 21);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.eco__label {
  display: block;
  margin-bottom: 10px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--eco-green-light);
}

.eco__title {
  margin: 0;
  font-family: "Cairo", "Cairo Fallback", "Manrope", "Manrope Fallback", var(--font-heading);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 600;
  line-height: 1.2;
  color: rgb(255, 255, 255);
}
.eco__title-accent { color: var(--brand-orange); }

.eco__underline {
  width: 150px;
  height: 4px;
  margin: 16px auto 18px;
  border-radius: 0;
  background: linear-gradient(90deg, #2f9e44, var(--accent), var(--accent-2));
}

.eco__desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: rgba(255, 255, 255, .86);
}

/* The global `a { color: inherit; text-decoration: none }` reset would make this
   indistinguishable from the surrounding text, so it needs explicit link styling.
   Underlined (not colour alone) so it still reads as a link without relying on
   colour perception. */
.eco__link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .45);
  transition: color .15s, text-decoration-color .15s;
}
.eco__link:hover,
.eco__link:focus-visible {
  color: var(--brand-orange);
  text-decoration-color: var(--brand-orange);
}

@media (max-width: 900px) {
  .eco__inner { padding: 56px 0; }
}
@media (max-width: 600px) {
  .eco__content { padding: 28px 22px 32px; }
}


.btn--outline {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--brand-orange);
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 15px;
  color: var(--brand-orange);
}
.btn--outline:hover { background: var(--brand-orange); color: #fff; }

/* Not-yet-launched plan (cPanel Business Hosting): plain <span> now, not a
   link — hovering/focusing swaps the label for "Launching Soon" instead of
   navigating anywhere. */
.btn--soon { position: relative; overflow: hidden; cursor: default; }
.btn--soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.btn--soon:hover .btn--soon-overlay,
.btn--soon:focus-visible .btn--soon-overlay {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Migration ===== */
.migration {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 126, 32, .14) 0, transparent 45%),
    radial-gradient(circle at 88% 88%, rgba(229, 72, 77, .12) 0, transparent 45%),
    linear-gradient(135deg, #1b2427 0%, #2b383c 52%, #141b1d 100%);
}

.migration__inner { padding: 88px 0; }

.migration__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.migration__eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffa45c; /* lighter tint of --brand-orange: the full-saturation orange
                     visually vibrates against this dark background at small
                     uppercase sizes */
}

.migration__title {
  margin: 0;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: rgb(255, 255, 255);
}

.migration__underline {
  width: 150px;
  height: 4px;
  margin: 16px 0 20px;
  border-radius: 0;
  background: var(--brand-orange);
}

.migration__desc {
  margin: 0;
  max-width: 620px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  color: rgba(255, 255, 255, .82);
}
.migration__desc strong { color: #fff; font-weight: 700; }

/* Illustration: "your current host" box --dashed arrow--> "ServerSalad" box */
.migration__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.migration__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 132px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}
.migration__box--ours {
  align-items: center;
  text-align: center;
  border-color: rgba(245, 126, 32, .45);
  background: rgba(245, 126, 32, .08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}
.migration__box-label {
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .75);
}
.migration__box--ours .migration__box-label { color: #fff; }
.migration__bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
}
.migration__bar--mid { width: 78%; }
.migration__bar--short { width: 52%; }
.migration__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 2px 0;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
}
.migration__tick svg { width: 20px; height: 20px; }
.migration__box-note {
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .6);
}
.migration__arrow {
  width: 110px;
  height: 60px;
  flex-shrink: 0;
  overflow: visible;
  color: rgba(245, 126, 32, .6);
}
/* Dashes travel toward the destination. -12 = one full dash+gap cycle (6 + 6), so
   the loop is seamless. The file packet riding the same path is animated in the
   markup via <animateMotion> + <mpath>, which references the path itself rather
   than duplicating its `d` here (so the two can never drift apart). */
.migration__arrow-path {
  animation: migration-flow 1s linear infinite;
}
@keyframes migration-flow {
  to { stroke-dashoffset: -12; }
}

/* Destination box glows as the packet lands (same 2.6s cycle as the packet). */
.migration__box--ours {
  animation: migration-arrive 2.6s ease-in-out infinite;
}
@keyframes migration-arrive {
  0%, 62% { box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
  80% { box-shadow: 0 16px 34px rgba(0, 0, 0, .28), 0 0 0 4px rgba(245, 126, 32, .18); }
  100% { box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
}

@media (prefers-reduced-motion: reduce) {
  .migration__arrow-path,
  .migration__box--ours { animation: none; }
  .migration__packet { display: none; }
}

.migration__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.migration-card {
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .18s, background .18s, transform .18s;
}
.migration-card:hover {
  border-color: rgba(245, 126, 32, .5);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-3px);
}
.migration-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(245, 126, 32, .14);
  color: var(--brand-orange);
}

/* Same masked-external-SVG technique as .hero-card__icon-img (see its comment). */
.migration-card__icon-img {
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--migration-icon) center / contain no-repeat;
  mask: var(--migration-icon) center / contain no-repeat;
}
.migration-card__title {
  margin: 0 0 10px;
  font-family: "Cairo", "Cairo Fallback", "Manrope", "Manrope Fallback", var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
  color: rgb(255, 255, 255);
}
.migration-card__desc {
  margin: 0;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 980px) {
  .migration__top { grid-template-columns: 1fr; gap: 40px; }
  .migration__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet only: base rule's `88px 0` zeros the side gutter at this width too —
   the visual diagram and the 4-card grid run edge to edge. */
@media (min-width: 561px) and (max-width: 1210px) {
  .migration__inner { padding: 88px var(--gutter); }
}

@media (max-width: 560px) {
  .migration__inner { padding: 64px var(--gutter); } /* base rule's `88px 0` zeroed the container's side gutter */
  .migration__grid { grid-template-columns: 1fr; }
  .migration__arrow { width: 62px; }
  /* Centre the whole section; the illustration keeps its own left-aligned box text. */
  .migration__inner { text-align: center; }
  .migration__underline { margin: 16px auto 20px; }
  .migration__visual { text-align: left; }
}


/* ===== cPanel Hosting page: hero ===== */
.cph-hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
}

/* Same gradient + dot-grid treatment as the homepage .hero__bg (no stock "person
   at a laptop" photo was supplied for this page, so a CSS backdrop stands in) —
   deliberately reused rather than inventing a new palette, so this page still
   reads as part of the same site. */
.cph-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 60%),
    linear-gradient(120deg, #2c1240 0%, #171a2e 45%, #0c2f37 100%);
}
.cph-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .12;
}

/* about/index.html only: a looping YouTube embed standing in for
   .cph-hero__bg. js/main.js builds the actual <iframe> via the YouTube
   IFrame Player API (see about/index.html's hero comment for why), so this
   targets ".cph-hero__video-wrap iframe" — whatever iframe the API drops
   in there — rather than an iframe class of our own, since it isn't
   guaranteed the API preserves a placeholder element's class onto its
   replacement.

   Classic oversized-and-centred video-background hack: sized off the
   viewport (100vw × 56.25vw, the 16:9 ratio) with min-width/min-height as
   a floor, so whichever dimension is the tight one, the video still covers
   the whole wrapper; overflow: hidden on the wrapper clips whatever spills
   past the edges, and the extra scale(1.35) pushes the player another 35%
   past every edge on top of that — covering not just the plain "cover"
   fit, but also any residual chrome YouTube might still render right at
   its own edges (title/channel overlay, "Watch on YouTube" corner link)
   that no controls=0-equivalent playerVar actually suppresses.
   pointer-events: none keeps the iframe from swallowing clicks meant for
   the page. */
.cph-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cph-hero__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.35);
  border: 0;
}
.cph-hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .85);
}

.cph-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  align-items: center;
  gap: 48px;
  padding: 96px 0;
}

.cph-hero__title {
  margin: 0;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 54px;
  line-height: 59px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.cph-hero__title-accent {
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* About page only: at most widths this breaks on its own wherever it naturally
   wraps. Tablet only: force the break after "Salad" instead (owner: keep
   "About Server Salad" on line 1, "Cloud Services" on line 2) — hidden
   elsewhere so mobile/desktop keep their own natural wrap. */
.cph-hero__title-break { display: none; }
@media (min-width: 561px) and (max-width: 1210px) {
  .cph-hero__title-break { display: inline; }
}

.cph-hero__underline {
  width: 64px;
  height: 3px;
  margin: 20px 0 24px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffb27a, var(--brand-orange));
}
/* about/index.html only: the "Relish the Cloud!" tagline, matched to an
   owner-supplied font-inspector spec. */
.cph-hero__tagline {
  margin: 0;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  color: rgba(255, 255, 255, .95);
}

.cph-hero__desc {
  margin: 0 0 18px;
  max-width: 520px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 29px;
  color: rgba(255, 255, 255, .85);
}
.cph-hero__desc:last-of-type { margin-bottom: 0; }

.cph-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Used on hero instances with no product-screenshot visual (see
   discount-programs/index.html) — collapses the two-column grid to one
   centred column instead of leaving an empty, lopsided second column. Same
   centred-content pattern as .eco__inner/.eco__content elsewhere. */
.cph-hero__inner--centered {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.cph-hero__inner--centered .cph-hero__content { max-width: 700px; }
.cph-hero__inner--centered .cph-hero__underline { margin-left: auto; margin-right: auto; }
.cph-hero__inner--centered .cph-hero__desc { margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  .cph-hero__inner { grid-template-columns: 1fr; padding: 72px 0; }
  .cph-hero__visual { order: -1; }
}

/* Tablet only: base/980px rules both zero the side gutter — title, copy and
   visual run edge to edge at this width. Restore it. */
@media (min-width: 561px) and (max-width: 1210px) {
  .cph-hero__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 560px) {
  /* Side gutter kept (the `0` shorthand put the text on the screen edge), content
     centred, and type scaled down so the hero reads as one tidy stack. */
  .cph-hero__inner { padding: 40px var(--gutter) 56px; gap: 28px; text-align: center; }
  .cph-hero__title { font-size: 36px; line-height: 42px; }
  .cph-hero__tagline { font-size: 28px; line-height: 34px; }
  .cph-hero__underline { margin: 16px auto 20px; }
  .cph-hero__desc { max-width: none; margin-bottom: 14px; font-size: 15px; line-height: 25px; }

  /* Hero with a device image (cPanel Hosting): order it title + underline ->
     image -> paragraphs, instead of the image above everything. `display: contents`
     lifts the text children into the grid so they can be ordered individually. */
  .cph-hero__inner:has(.cph-hero__visual) { gap: 0; }
  .cph-hero__inner:has(.cph-hero__visual) .cph-hero__content { display: contents; }
  .cph-hero__inner:has(.cph-hero__visual) .cph-hero__title { order: 0; }
  .cph-hero__inner:has(.cph-hero__visual) .cph-hero__underline { order: 1; margin-bottom: 28px; }
  .cph-hero__inner:has(.cph-hero__visual) .cph-hero__visual { order: 2; margin-bottom: 28px; }
  .cph-hero__inner:has(.cph-hero__visual) .cph-hero__desc { order: 3; }
}

/* Beam-glow animation shared by the mega menu's app-row beam, the homepage
   Plans note and the About hero — moved here (not header.css or home.css)
   because all three consume it and this file loads on every page. */
/* Constant travel speed — a plain linear loop around the full perimeter, no
   dart/stall pacing. Paired with a soft brightness flicker on the glow so it
   still reads as an arc rather than a plain progress bar. */
@keyframes plans-note-travel {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}
/* The bolt's length pulses on its own timeline (uneven stops, a duration that
   doesn't evenly divide the travel loop) so it reads as "sometimes short,
   sometimes long" rather than a metronomic grow/shrink synced to the travel. */
@keyframes plans-note-length {
  0%, 100% { stroke-dasharray: 22 178; }
  35%      { stroke-dasharray: 55 145; }
  60%      { stroke-dasharray: 30 170; }
  85%      { stroke-dasharray: 48 152; }
}
@keyframes plans-note-flicker {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(245, 126, 32, .75)); }
  20%      { filter: drop-shadow(0 0 9px rgba(245, 126, 32, .95)); }
  38%      { filter: drop-shadow(0 0 2px rgba(245, 126, 32, .4)); }
  42%      { filter: drop-shadow(0 0 5px rgba(245, 126, 32, .75)); }
  60%      { filter: drop-shadow(0 0 10px rgba(245, 126, 32, 1)); }
  80%      { filter: drop-shadow(0 0 2px rgba(245, 126, 32, .4)); }
  84%      { filter: drop-shadow(0 0 5px rgba(245, 126, 32, .75)); }
}

/* The "traveling bolt of light" around a box's border: used by the homepage plans
   note (.plans__note-beam), the Web Hosting mega menu's app strip
   (.nav__mega-apps-beam) and the About page's closing CTA card
   (.about-story__cta-beam). It is an SVG rect stroke (pathLength="200"), not a
   conic-gradient: conic angle steps cover very uneven distances on a wide, short
   box and tear the comet in two at the corners, while the SVG stroke walks the real
   rounded-rect perimeter at constant speed on any box size. One stroke, softened
   by the blur on the wrapper so it reads as a hazy glow, not a crisp line. */
.plans__note-beam,
.nav__mega-apps-beam,
.about-story__cta-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(1.6px) drop-shadow(0 0 6px rgba(245, 126, 32, .8));
  animation: plans-note-flicker 4.2s ease-in-out infinite;
}
.plans__note-beam svg,
.nav__mega-apps-beam svg,
.about-story__cta-beam svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plans__note-beam-glow,
.nav__mega-apps-beam-glow,
.about-story__cta-beam-glow {
  fill: none;
  stroke-linecap: round;
  stroke: var(--brand-orange);
  stroke-width: 3;
  opacity: .9;
  animation: plans-note-travel 4.2s linear infinite,
             plans-note-length 5.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .plans__note-beam,
  .nav__mega-apps-beam,
  .about-story__cta-beam { display: none; }
}

/* ===== Motion: hero entrance + scroll reveal (all pages) =====
   One fade and one 22px rise for everything, so the whole site moves the
   same way. Uses the individual `translate`
   property, not `transform`, so it never fights the hover lifts already
   defined on cards. Hero entrance is pure CSS (plays on load, no JS). Below
   the fold, js/main.js adds .reveal to each item (so with JS off nothing is
   hidden), then .is-in when it scrolls into view, and removes both once the
   animation ends. Whole block is skipped under prefers-reduced-motion. */
:root { --mo-ease: cubic-bezier(.25, .46, .45, .94); } /* gentle ease-out; opacity uses its own softer curve below */
/* Explicit `to`: the hidden .reveal state also sets opacity 0 / translate, and an
   omitted `to` would resolve to that, animating 0 -> 0 and popping in at the end. */
@keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-move { from { translate: 0 22px; } to { translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero-card, .hero__strip,
  .cph-hero__content > *, .cph-hero__inner--centered > * {
    /* Fade starts at once (no delay) so the LCP element isn't held back at
       opacity 0; only the rise is staggered. */
    animation: mo-fade .5s ease-out backwards, mo-move 1s var(--mo-ease) backwards;
    animation-delay: 0s, calc(.1s + var(--mo-n, 0) * .09s);
  }
  /* The h1 is the LCP element on most pages: it stays fully visible from the
     first paint and only rises (no opacity 0 start), so LCP isn't delayed.
     Measured: fade + long rise pushed Home's LCP from ~1.0s to ~2.2s. */
  .hero__title, .cph-hero__title {
    animation: mo-move .6s var(--mo-ease) backwards;
    animation-delay: 0s;
  }
  .hero-card:nth-child(2), .cph-hero__content > :nth-child(2) { --mo-n: 1; }
  .hero-card:nth-child(3), .cph-hero__content > :nth-child(3) { --mo-n: 2; }
  .hero-card:nth-child(4), .cph-hero__content > :nth-child(4) { --mo-n: 3; }
  .hero__strip { --mo-n: 5; }
  /* .cph-hero__visual (the LCP image on cPanel Hosting) is deliberately NOT animated:
     fading the image in delayed its LCP by 0.3-1.4s in throttled tests. */

  /* will-change: promote to a compositor layer before the animation starts, so
     the first frame doesn't stall on rasterising; dropped with .reveal. */
  .reveal { opacity: 0; translate: 0 22px; will-change: opacity, translate; }
  .reveal.is-in {
    animation: mo-fade .7s ease-out var(--mo-delay, 0s) both,
                mo-move .9s var(--mo-ease) var(--mo-delay, 0s) both;
  }
}
