/* ==========================================================================
   Cloud Cabin Hosting - effects.css
   Everything that moves, plus the light/dark theme switch and the day/night hero.
   Loaded after styles.css. All motion is transform/opacity only (cheap to animate) and is switched off by
   prefers-reduced-motion at the bottom of this file. Looping animations only run while their section is on
   screen (effects.js adds .is-inview), so nothing burns CPU off-screen.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Theme toggle (sun / moon button in the navigation)
   ------------------------------------------------------------------------- */
.theme-toggle {
  order: 2;
  margin-left: auto;
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); }
.theme-toggle:active { transform: scale(0.93); }
.theme-toggle__icon { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-moon path { fill: currentColor; stroke: none; }
.tt-moon, .tt-sun { transform-origin: 12px 12px; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.35s ease; }
/* the toggle always offers the OTHER mode: sun while dark is showing, moon while light is showing */
:root[data-bs-theme="dark"] .tt-moon { opacity: 0; transform: rotate(-80deg) scale(0.35); }
:root[data-bs-theme="light"] .tt-sun { opacity: 0; transform: rotate(80deg) scale(0.35); }
html:not(.js) .theme-toggle { display: none; }

.cc-nav > .container { gap: 0.6rem; }
.cc-toggler { order: 3; }
.cc-nav .navbar-collapse { order: 4; }
@media (min-width: 1200px) { .theme-toggle { order: 5; margin-left: 0.5rem; } }

/* circular reveal from the button when the theme changes (browsers with the View Transitions API; others just switch) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; animation: ccThemeReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes ccThemeReveal {
  from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); }
  to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 100%) var(--ty, 0)); }
}

/* -------------------------------------------------------------------------
   2. Hero: a night scene in dark mode, a daytime scene in light mode
   ------------------------------------------------------------------------- */
.hero__photo .sky { transition: opacity 1.1s ease; }
.hero__photo .sky--day { opacity: 0; }
:root[data-bs-theme="light"] .hero__photo .sky--night { opacity: 0; }
:root[data-bs-theme="light"] .hero__photo .sky--day { opacity: 1; }

/* the snowy foreground fades into whichever page colour is below it */
.rn { transition: opacity 1.1s ease; }
:root[data-bs-theme="dark"] .rn--day { opacity: 0; }
:root[data-bs-theme="light"] .rn--night { opacity: 0; }

/* hills and clouds are brightened for daylight; the same artwork serves both scenes */
.hero__ridge:not(.hero__ridge--near) img, .hero__clouds img { transition: filter 1.1s ease; }
:root[data-bs-theme="light"] .hero__ridge--far img { filter: brightness(1.62) saturate(1.25); }
:root[data-bs-theme="light"] .hero__ridge--mid img { filter: brightness(1.42) saturate(1.2); }
:root[data-bs-theme="light"] .hero__clouds img { filter: brightness(1.15) saturate(0.6); }
:root[data-bs-theme="light"] .hero__clouds--far img { opacity: 0.88; }

.hero__shade, .hero__glow, .hero__grid { transition: opacity 1s ease; }
:root[data-bs-theme="light"] .hero__shade {
  background:
    radial-gradient(64% 30% at 50% 27%, rgba(6, 24, 66, 0.46), transparent 80%),
    radial-gradient(86% 58% at 50% 43%, rgba(6, 24, 66, 0.56), transparent 80%),
    radial-gradient(66% 40% at 50% 74%, rgba(6, 24, 66, 0.42), transparent 80%),
    linear-gradient(180deg, rgba(6, 24, 66, 0.40) 0%, rgba(10, 38, 94, 0.32) 50%, rgba(6, 24, 66, 0.42) 100%);
}
:root[data-bs-theme="light"] .hero__glow {
  background:
    radial-gradient(40% 36% at 80% 22%, rgba(255, 232, 160, 0.34), transparent 62%),
    radial-gradient(40% 36% at 12% 60%, rgba(255, 255, 255, 0.16), transparent 62%);
}
:root[data-bs-theme="light"] .hero__grid { opacity: 0.22; }
/* over the daytime sky the softer greys become near-white, and the gradient heading words get lighter stops */
:root { --cc-tg-min: #6aa6fa; }
:root[data-bs-theme="light"] { --cc-tg-min: #bcd6ff; }
:root[data-bs-theme="light"] .hero .text-gradient { background-image: linear-gradient(95deg, #ffffff 0%, #e2edff 50%, #bcd6ff 100%); }
:root[data-bs-theme="light"] .hero .hero__lead { color: #ffffff; }
:root[data-bs-theme="light"] .hero .hero__trust,
:root[data-bs-theme="light"] .hero .domain-search__hint,
:root[data-bs-theme="light"] .hero .domain-search__more button,
:root[data-bs-theme="light"] .hero .tld-chip span,
:root[data-bs-theme="light"] .hero .hero-chip,
:root[data-bs-theme="light"] .hero .cc-breadcrumb ol,
:root[data-bs-theme="light"] .hero .cc-breadcrumb a { color: #f2f7ff; }
:root[data-bs-theme="light"] .hero .hero__trust i { color: #d6e6ff; }
/* the translucent pills (ghost buttons, domain-extension chips) sit on the brightest part of the day sky: a darker tint keeps their white text above 4.5:1 */
:root[data-bs-theme="light"] .cc-nav .btn-cc--ghost,
:root[data-bs-theme="light"] .hero .btn-cc--ghost { --btn-bg: rgba(8, 22, 54, 0.4); }
:root[data-bs-theme="light"] .hero .tld-chip span { background: rgba(8, 22, 54, 0.5); }
:root[data-bs-theme="light"] .hero .hero-chip { background: rgba(8, 22, 54, 0.4); border-color: rgba(255, 255, 255, 0.28); }
:root[data-bs-theme="light"] .hero .tld-chip input:checked + span { background: rgba(29, 78, 216, 0.82); border-color: var(--cc-primary-300); }

/* stars: three layers twinkling out of step (dark mode only) */
.hero__stars { transition: opacity 1s ease; }
.hero__stars .st { position: absolute; inset: 0; animation: ccTwinkle 4.6s ease-in-out infinite alternate; }
.hero__stars .st--b { animation-duration: 6.4s; animation-delay: -2.2s; }
.hero__stars .st--c { animation-duration: 8.8s; animation-delay: -5s; }
@keyframes ccTwinkle { from { opacity: 0.25; } to { opacity: 1; } }
:root[data-bs-theme="light"] .hero__stars { opacity: 0; }
.hero__stars .st--a { background:
    radial-gradient(#ffffffe0 0 0.5px,#0000 1.60px) 14.9% 51.2%/4px 4px no-repeat,
    radial-gradient(#fffffff2 0 0.85px,#0000 1.95px) 49.6% 28.1%/4px 4px no-repeat,
    radial-gradient(#ffffffcc 0 0.85px,#0000 1.95px) 48.8% 53.8%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.6px,#0000 1.70px) 68.8% 17.4%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.5px,#0000 1.60px) 88.5% 3.8%/4px 4px no-repeat,
    radial-gradient(#ffffffcc 0 0.6px,#0000 1.70px) 92.2% 24.1%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.85px,#0000 1.95px) 52.7% 46.3%/4px 4px no-repeat,
    radial-gradient(#ffffffe0 0 0.85px,#0000 1.95px) 35.2% 41.3%/4px 4px no-repeat,
    radial-gradient(#d6e5fff2 0 0.5px,#0000 1.60px) 42.0% 55.1%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.85px,#0000 1.95px) 13.6% 21.3%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.85px,#0000 1.95px) 31.1% 36.1%/4px 4px no-repeat,
    radial-gradient(#fff3d6cc 0 0.6px,#0000 1.70px) 58.5% 4.0%/4px 4px no-repeat,
    radial-gradient(#fff3d6ff 0 0.7px,#0000 1.80px) 65.8% 23.3%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.6px,#0000 1.70px) 65.7% 8.3%/4px 4px no-repeat,
    radial-gradient(#d6e5ffff 0 0.85px,#0000 1.95px) 37.6% 44.5%/4px 4px no-repeat,
    radial-gradient(#fffffff2 0 0.85px,#0000 1.95px) 69.5% 59.0%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.6px,#0000 1.70px) 50.2% 59.0%/4px 4px no-repeat,
    radial-gradient(#d6e5ffcc 0 0.7px,#0000 1.80px) 40.8% 21.9%/4px 4px no-repeat,
    radial-gradient(#ffffffcc 0 0.5px,#0000 1.60px) 65.3% 37.3%/4px 4px no-repeat,
    radial-gradient(#fff3d6ff 0 0.85px,#0000 1.95px) 51.8% 34.6%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.6px,#0000 1.70px) 85.5% 35.1%/4px 4px no-repeat,
    radial-gradient(#d6e5ffff 0 0.7px,#0000 1.80px) 48.6% 22.7%/4px 4px no-repeat,
    radial-gradient(#fffffff2 0 0.6px,#0000 1.70px) 46.0% 3.6%/4px 4px no-repeat,
    radial-gradient(#ffffffff 0 0.7px,#0000 1.80px) 84.7% 48.3%/4px 4px no-repeat,
    radial-gradient(#ffffffe0 0 0.5px,#0000 1.60px) 10.0% 3.0%/4px 4px no-repeat,
    radial-gradient(#d6e5ffe0 0 0.6px,#0000 1.70px) 27.8% 48.2%/4px 4px no-repeat; }
.hero__stars .st--b { background:
    radial-gradient(#ffffffff 0 0.5px,#0000 1.60px) 93.8% 57.0%/4px 4px no-repeat,
    radial-gradient(#ffffffe0 0 0.7px,#0000 1.80px) 36.7% 11.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6cc 0 0.6px,#0000 1.70px) 60.3% 35.7%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.7px,#0000 1.80px) 79.2% 51.9%/4px 4px no-repeat,
    radial-gradient(#fff3d6e0 0 0.5px,#0000 1.60px) 50.2% 54.3%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.85px,#0000 1.95px) 91.5% 54.6%/4px 4px no-repeat,
    radial-gradient(#d6e5fff2 0 0.5px,#0000 1.60px) 55.8% 15.7%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.7px,#0000 1.80px) 18.7% 31.6%/4px 4px no-repeat,
    radial-gradient(#d6e5ffb8 0 0.85px,#0000 1.95px) 97.5% 27.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6f2 0 0.85px,#0000 1.95px) 77.8% 22.5%/4px 4px no-repeat,
    radial-gradient(#d6e5ffcc 0 0.6px,#0000 1.70px) 70.7% 28.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6cc 0 0.7px,#0000 1.80px) 90.8% 31.0%/4px 4px no-repeat,
    radial-gradient(#ffffffcc 0 0.85px,#0000 1.95px) 35.7% 44.1%/4px 4px no-repeat,
    radial-gradient(#d6e5ffb8 0 0.6px,#0000 1.70px) 92.3% 49.3%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.7px,#0000 1.80px) 76.2% 29.8%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.7px,#0000 1.80px) 31.9% 14.1%/4px 4px no-repeat,
    radial-gradient(#fffffff2 0 0.5px,#0000 1.60px) 77.3% 21.8%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.7px,#0000 1.80px) 7.6% 39.9%/4px 4px no-repeat,
    radial-gradient(#ffffffe0 0 0.6px,#0000 1.70px) 67.5% 55.1%/4px 4px no-repeat,
    radial-gradient(#ffffffcc 0 0.5px,#0000 1.60px) 81.2% 56.7%/4px 4px no-repeat,
    radial-gradient(#ffffffff 0 0.6px,#0000 1.70px) 7.5% 22.9%/4px 4px no-repeat,
    radial-gradient(#d6e5ffff 0 0.5px,#0000 1.60px) 13.1% 5.9%/4px 4px no-repeat; }
.hero__stars .st--c { background:
    radial-gradient(#fff3d6b8 0 0.7px,#0000 1.80px) 24.8% 33.6%/4px 4px no-repeat,
    radial-gradient(#d6e5ffcc 0 0.5px,#0000 1.60px) 62.1% 5.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.85px,#0000 1.95px) 54.9% 13.1%/4px 4px no-repeat,
    radial-gradient(#fff3d6f2 0 0.6px,#0000 1.70px) 40.1% 51.9%/4px 4px no-repeat,
    radial-gradient(#fffffff2 0 0.5px,#0000 1.60px) 73.2% 40.9%/4px 4px no-repeat,
    radial-gradient(#fff3d6cc 0 0.7px,#0000 1.80px) 30.9% 3.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.85px,#0000 1.95px) 70.6% 55.4%/4px 4px no-repeat,
    radial-gradient(#ffffffff 0 0.7px,#0000 1.80px) 94.6% 9.8%/4px 4px no-repeat,
    radial-gradient(#fff3d6e0 0 0.85px,#0000 1.95px) 15.1% 14.6%/4px 4px no-repeat,
    radial-gradient(#fff3d6b8 0 0.7px,#0000 1.80px) 50.7% 24.4%/4px 4px no-repeat,
    radial-gradient(#ffffffe0 0 0.5px,#0000 1.60px) 58.1% 54.4%/4px 4px no-repeat,
    radial-gradient(#d6e5fff2 0 0.5px,#0000 1.60px) 69.1% 20.9%/4px 4px no-repeat,
    radial-gradient(#d6e5ffff 0 0.85px,#0000 1.95px) 29.4% 5.7%/4px 4px no-repeat,
    radial-gradient(#d6e5ffff 0 0.6px,#0000 1.70px) 78.9% 25.8%/4px 4px no-repeat,
    radial-gradient(#ffffffff 0 0.5px,#0000 1.60px) 43.0% 26.1%/4px 4px no-repeat,
    radial-gradient(#ffffffb8 0 0.7px,#0000 1.80px) 38.3% 36.0%/4px 4px no-repeat,
    radial-gradient(#ffffffff 0 0.5px,#0000 1.60px) 97.9% 20.0%/4px 4px no-repeat,
    radial-gradient(#d6e5ffb8 0 0.7px,#0000 1.80px) 93.1% 58.3%/4px 4px no-repeat; }

/* shooting stars (dark mode only): a few seconds of motion, then a long pause */
.hero__shoot { transition: opacity 0.8s ease; }
.hero__shoot i {
  position: absolute; left: 66%; top: 11%; width: 150px; height: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  border-radius: 2px; transform: rotate(24deg); transform-origin: right center;
  animation: ccShoot 13s linear infinite;
}
.hero__shoot i:nth-child(2) { left: 38%; top: 22%; width: 110px; animation-duration: 19s; animation-delay: -8s; }
@keyframes ccShoot {
  0%, 82% { opacity: 0; transform: translate3d(0, 0, 0) rotate(24deg); }
  83% { opacity: 1; }
  90% { opacity: 0; transform: translate3d(-380px, 170px, 0) rotate(24deg); }
  100% { opacity: 0; transform: translate3d(-380px, 170px, 0) rotate(24deg); }
}
:root[data-bs-theme="light"] .hero__shoot { opacity: 0; }

/* moon (night) and sun (day) occupy the same spot: one sets as the other rises */
.hero__orb { pointer-events: none; }
.orb { position: absolute; right: clamp(7%, 13vw, 17%); top: clamp(15%, 21vh, 25%); border-radius: 50%; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease; }
.orb--moon {
  width: clamp(46px, 6vw, 84px); aspect-ratio: 1;
  background: radial-gradient(circle at 36% 34%, #ffffff 0%, #eef3ff 38%, #cddaf6 72%, #a9bde6 100%);
  box-shadow: 0 0 36px 8px rgba(190, 212, 255, 0.34), 0 0 130px 44px rgba(118, 160, 255, 0.2);
}
.orb--moon::before, .orb--moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(110, 132, 184, 0.26); }
.orb--moon::before { width: 22%; height: 22%; left: 52%; top: 22%; }
.orb--moon::after { width: 15%; height: 15%; left: 24%; top: 56%; }
.orb--sun {
  width: clamp(64px, 8.2vw, 118px); aspect-ratio: 1;
  background: radial-gradient(circle, #fffdf0 0, #fff2b8 42%, #ffdc72 72%, rgba(255, 220, 114, 0) 75%);
  box-shadow: 0 0 70px 26px rgba(255, 228, 140, 0.55), 0 0 220px 90px rgba(255, 214, 120, 0.26);
  opacity: 0; transform: translateY(80px) scale(0.7);
}
.orb--sun i {
  position: absolute; inset: -105%;
  background: repeating-conic-gradient(rgba(255, 244, 190, 0) 0 7deg, rgba(255, 244, 190, 0.17) 7deg 11deg);
  -webkit-mask-image: radial-gradient(circle, transparent 20%, #000 34%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 20%, #000 34%, transparent 70%);
  animation: ccSpin 120s linear infinite;
}
@keyframes ccSpin { to { transform: rotate(360deg); } }
:root[data-bs-theme="light"] .orb--moon { opacity: 0; transform: translateY(-46px) scale(0.7); }
:root[data-bs-theme="light"] .orb--sun { opacity: 1; transform: none; }

/* birds (day only) */
.hero__birds { overflow: hidden; opacity: 0; transition: opacity 1s ease; }
:root[data-bs-theme="light"] .hero__birds { opacity: 0.9; }
.bird {
  position: absolute; left: -6vw; top: var(--y); width: calc(30px * var(--s)); height: auto;
  fill: none; stroke: rgba(255, 255, 255, 0.92); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  animation: ccBirdFly var(--d) linear var(--o) infinite;
}
.bird path { transform-origin: 16px 9px; animation: ccBirdFlap 0.85s ease-in-out infinite alternate; }
@keyframes ccBirdFly { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(114vw, calc(var(--s) * -46px), 0); } }
@keyframes ccBirdFlap { from { transform: scaleY(1); } to { transform: scaleY(0.4); } }

/* the sun/moon and birds would sit on top of the heading on small screens, so they are for tablets and up */
@media (max-width: 991.98px) { .orb { right: 5vw; } }
@media (max-width: 767.98px) { .hero__orb, .hero__birds { display: none; } }

/* things that belong to the other scene stand still while hidden */
:root[data-bs-theme="light"] .hero__stars .st, :root[data-bs-theme="light"] .hero__shoot i { animation-play-state: paused; }
:root[data-bs-theme="dark"] .bird, :root[data-bs-theme="dark"] .bird path { animation-play-state: paused; }

/* while the circular reveal runs, nothing else transitions (the new snapshot must be the finished look) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* looping animations pause while their section is off-screen (effects.js toggles .is-inview) */
.fx:not(.is-inview) *, .fx:not(.is-inview) *::before, .fx:not(.is-inview) *::after { animation-play-state: paused !important; }

/* -------------------------------------------------------------------------
   3. Scroll progress, section headings, buttons
   ------------------------------------------------------------------------- */
.scroll-progress { position: fixed; z-index: 1040; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--cc-primary), #22d3ee 70%, #34d399); }

/* a short gradient bar draws itself under each section heading as it scrolls into view */
.section-head h2::after, .section-title-bar::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 1.1rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--cc-primary), #22d3ee);
  transform: scaleX(1); transform-origin: 50% 50%;
}
.js .section-head h2::after { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s; }
.js .section-head.is-visible h2::after { transform: scaleX(1); }

/* buttons: a soft light sweep on hover */
.btn-cc { position: relative; overflow: hidden; isolation: isolate; }
.btn-cc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn-cc:hover::after, .btn-cc:focus-visible::after { transform: translateX(130%); transition: transform 0.7s ease; }
.btn-cc--ghost::after, [data-bs-theme="dark"] .btn-cc--dark::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%); }

/* -------------------------------------------------------------------------
   4. Reveal variants and automatic staggering
   ------------------------------------------------------------------------- */
.js .reveal--zoom { transform: scale(0.94); }
.js .reveal--zoom.is-visible { transform: none; }
.js .reveal--up-lg { transform: translateY(46px); }
.js .reveal--up-lg.is-visible { transform: none; }
.js .reveal--fade { transform: none; }

/* -------------------------------------------------------------------------
   5. Cards: cursor spotlight and gentle tilt (fine pointers only)
   ------------------------------------------------------------------------- */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--cc-primary-rgb), 0.16), transparent 60%);
  transition: opacity 0.3s ease;
}
.fx-spot:hover::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .plan.fx-tilt:hover, .quick-card.fx-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
  .plan.fx-tilt, .quick-card.fx-tilt { transition: transform 0.18s ease-out, box-shadow 0.25s ease, border-color 0.25s ease; }
}

/* the featured plan keeps a slowly travelling highlight on its border */
.plan--featured { background: linear-gradient(var(--cc-card), var(--cc-card)) padding-box, conic-gradient(from var(--ang, 0deg), var(--cc-primary), #22d3ee, #a78bfa, var(--cc-primary)) border-box; border: 2px solid transparent; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx.is-inview .plan--featured, .plan--featured:hover { animation: ccBorderSpin 7s linear infinite; }
@keyframes ccBorderSpin { to { --ang: 360deg; } }

/* -------------------------------------------------------------------------
   6. Technology strip as a marquee (effects.js builds the track; without JS it stays a centred wrap)
   ------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__inner { display: flex; width: max-content; animation: ccMarquee 46s linear infinite; }
.marquee:hover .marquee__inner, .marquee:focus-within .marquee__inner { animation-play-state: paused; }
.marquee .tech-strip__list { flex: none; flex-wrap: nowrap; padding-right: 0.6rem; justify-content: flex-start; }
.marquee .tech-strip__list li { white-space: nowrap; }
@keyframes ccMarquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   7. Mock windows come alive: rows slide in, meters fill, status lights breathe
   ------------------------------------------------------------------------- */
.js .reveal .mock__row, .js .reveal .mock__tile, .js .reveal .mock__btn { opacity: 0; }
.js .reveal.is-visible .mock__row, .js .reveal.is-visible .mock__tile {
  animation: ccRowIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.3s + var(--i, 0) * 0.13s);
}
.js .reveal.is-visible .mock__btn { opacity: 1; transition: opacity 0.4s ease 1.2s; }
@keyframes ccRowIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.mock__body > :nth-child(1), .mock__grid > :nth-child(1) { --i: 0; }
.mock__body > :nth-child(2), .mock__grid > :nth-child(2) { --i: 1; }
.mock__body > :nth-child(3), .mock__grid > :nth-child(3) { --i: 2; }
.mock__body > :nth-child(4), .mock__grid > :nth-child(4) { --i: 3; }
.mock__body > :nth-child(5) { --i: 4; }
.mock__body > :nth-child(6) { --i: 5; }
.js .reveal.is-visible .mock__meter i { animation: ccMeter 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both; }
@keyframes ccMeter { from { width: 0; } }
.fx.is-inview .mock__pill--ok .fa-circle { animation: ccBreathe 2.2s ease-in-out infinite; }
@keyframes ccBreathe { 50% { opacity: 0.3; transform: scale(0.8); } }
.fx.is-inview .float-chip { animation: ccFloat 6s ease-in-out infinite; }
.fx.is-inview .float-chip:nth-of-type(even) { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes ccFloat { 50% { translate: 0 -7px; } } /* `translate` is separate from the inline transform that scroll parallax sets */

/* -------------------------------------------------------------------------
   8. Carousel: slow zoom on the active slide; call-to-action band: drifting aurora
   ------------------------------------------------------------------------- */
.cc-slide__img { transform-origin: 62% 40%; }
.carousel-item.active .cc-slide__img { animation: ccKen 15s ease-out both; }
@keyframes ccKen { from { transform: scale(1); } to { transform: scale(1.07); } }
.cc-slide__caption > * { animation: ccCaptionIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.carousel-item:not(.active) .cc-slide__caption > * { animation: none; }
.cc-slide__caption > :nth-child(2) { animation-delay: 0.12s; }
.cc-slide__caption > :nth-child(3) { animation-delay: 0.24s; }
.cc-slide__caption > :nth-child(4) { animation-delay: 0.36s; }
@keyframes ccCaptionIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cta-band::after {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 46% at 22% 34%, rgba(59, 130, 246, 0.34), transparent 70%), radial-gradient(34% 42% at 78% 68%, rgba(34, 211, 238, 0.2), transparent 70%), radial-gradient(28% 36% at 62% 18%, rgba(167, 139, 250, 0.16), transparent 70%);
  animation: ccAurora 22s ease-in-out infinite alternate;
}
@keyframes ccAurora { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.12); } }
.newsletter-card:focus-within { border-color: rgba(var(--cc-primary-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--cc-primary-rgb), 0.18); }
.newsletter-card { transition: border-color 0.25s ease, box-shadow 0.25s ease; }

/* hero domain search: the typed example sits where the placeholder would */
.ds-typer { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: left; pointer-events: none; padding: 0 0.4rem; font-size: 1.1rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-typer::after { content: ""; display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; background: var(--cc-primary-600); animation: ccCaret 1s steps(1) infinite; }
@keyframes ccCaret { 50% { opacity: 0; } }
.domain-search__field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.domain-search__field .domain-search__input { width: 100%; }
.domain-search__field.has-typer .domain-search__input::placeholder { color: transparent; }
.domain-search__field.is-typing-off .ds-typer { display: none; }
@media (max-width: 575.98px) { .domain-search__field { flex: 1 1 100%; } .ds-typer { padding: 0 0.9rem; font-size: 1rem; } }

/* -------------------------------------------------------------------------
   9. Explainer diagrams: "packets" travel along connectors (horizontal on desktop, vertical on phones)
   ------------------------------------------------------------------------- */
.explainer .section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.diagram {
  position: relative; margin: 0; padding: clamp(1.1rem, 3vw, 2.25rem);
  background: var(--cc-media-bg); border: 1px solid var(--cc-media-bd); border-radius: var(--cc-radius-lg); overflow: hidden;
}
.diagram figcaption { margin: 1.4rem auto 0; max-width: 62ch; font-size: 0.97rem; line-height: 1.6; text-align: center; color: var(--cc-text-muted); }
.diagram figcaption strong { color: var(--cc-heading); }
.diagram__lane + .diagram__lane { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--cc-border-strong); }
.diagram__label { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; font-family: var(--cc-font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cc-tag-fg); }
.diagram__label .badge-speed { margin-left: auto; padding: 0.15rem 0.6rem; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--cc-ok-fg); background: var(--cc-ok-bg); border-radius: 999px; }
.diagram__label .badge-speed--slow { color: var(--cc-warn-fg); background: var(--cc-warn-bg); }

.flow { --slot: 1.5s; --m: 3; display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.flow__node {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.05rem 0.65rem 1rem; text-align: center;
  background: var(--cc-card); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); box-shadow: var(--cc-shadow-sm);
}
.flow__node b { font-family: var(--cc-font-display); font-size: 1rem; line-height: 1.2; color: var(--cc-heading); }
.flow__node small { font-size: 0.84rem; line-height: 1.4; color: var(--cc-text-muted); }
.flow__icon {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; font-size: 1.35rem;
  color: var(--cc-tint-fg); background: var(--cc-tint); border-radius: 16px;
}
.flow__node--ok .flow__icon { color: var(--cc-ok-fg); background: var(--cc-ok-bg); }
.flow__node--warn .flow__icon { color: var(--cc-warn-fg); background: var(--cc-warn-bg); }
.flow__link { position: relative; flex: 0 0 clamp(36px, 6.5vw, 82px); }
.flow__link::before { content: ""; position: absolute; left: 4px; right: 6px; top: 50%; border-top: 2px dashed var(--cc-border-strong); }
.flow__link::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--cc-border-strong); border-right: 2px solid var(--cc-border-strong); transform: translateY(-50%) rotate(45deg); }
.flow__dot {
  position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; opacity: 0;
  background: var(--cc-primary); box-shadow: 0 0 0 4px rgba(var(--cc-primary-rgb), 0.25), 0 0 14px rgba(var(--cc-primary-rgb), 0.75);
  animation: var(--kf-x) calc(var(--slot) * var(--m)) ease-in-out infinite; animation-delay: calc(var(--i, 0) * var(--slot));
}
.flow--green .flow__dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 0 14px rgba(16, 185, 129, 0.75); }
.flow--amber .flow__dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 0 14px rgba(245, 158, 11, 0.7); }
.flow .flow__node .flow__icon { animation: ccArrive calc(var(--slot) * var(--m)) ease-out infinite; animation-delay: calc(var(--i, 0) * var(--slot)); }
@keyframes ccArrive { 0% { box-shadow: 0 0 0 0 rgba(var(--cc-primary-rgb), 0.55); transform: scale(1.1); } 12%, 100% { box-shadow: 0 0 0 16px rgba(var(--cc-primary-rgb), 0); transform: none; } }
@keyframes ccPkt2X { 0% { left: 4px; opacity: 0; } 5.0% { opacity: 1; } 45.0% { left: calc(100% - 16px); opacity: 1; } 50.0% { left: calc(100% - 16px); opacity: 0; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes ccPkt2Y { 0% { top: 4px; opacity: 0; } 5.0% { opacity: 1; } 45.0% { top: calc(100% - 16px); opacity: 1; } 50.0% { top: calc(100% - 16px); opacity: 0; } 100% { top: calc(100% - 16px); opacity: 0; } }
.flow--m2 { --m: 2; --kf-x: ccPkt2X; --kf-y: ccPkt2Y; }
@keyframes ccPkt3X { 0% { left: 4px; opacity: 0; } 3.33% { opacity: 1; } 30.0% { left: calc(100% - 16px); opacity: 1; } 33.33% { left: calc(100% - 16px); opacity: 0; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes ccPkt3Y { 0% { top: 4px; opacity: 0; } 3.33% { opacity: 1; } 30.0% { top: calc(100% - 16px); opacity: 1; } 33.33% { top: calc(100% - 16px); opacity: 0; } 100% { top: calc(100% - 16px); opacity: 0; } }
.flow--m3 { --m: 3; --kf-x: ccPkt3X; --kf-y: ccPkt3Y; }
@keyframes ccPkt4X { 0% { left: 4px; opacity: 0; } 2.5% { opacity: 1; } 22.5% { left: calc(100% - 16px); opacity: 1; } 25.0% { left: calc(100% - 16px); opacity: 0; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes ccPkt4Y { 0% { top: 4px; opacity: 0; } 2.5% { opacity: 1; } 22.5% { top: calc(100% - 16px); opacity: 1; } 25.0% { top: calc(100% - 16px); opacity: 0; } 100% { top: calc(100% - 16px); opacity: 0; } }
.flow--m4 { --m: 4; --kf-x: ccPkt4X; --kf-y: ccPkt4Y; }
@keyframes ccPkt5X { 0% { left: 4px; opacity: 0; } 2.0% { opacity: 1; } 18.0% { left: calc(100% - 16px); opacity: 1; } 20.0% { left: calc(100% - 16px); opacity: 0; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes ccPkt5Y { 0% { top: 4px; opacity: 0; } 2.0% { opacity: 1; } 18.0% { top: calc(100% - 16px); opacity: 1; } 20.0% { top: calc(100% - 16px); opacity: 0; } 100% { top: calc(100% - 16px); opacity: 0; } }
.flow--m5 { --m: 5; --kf-x: ccPkt5X; --kf-y: ccPkt5Y; }

/* an envelope as the travelling packet (email), and a junk one that gets stopped */
.flow__dot--mail { width: auto; height: auto; margin-top: -9px; background: none; box-shadow: none; font-size: 1.05rem; line-height: 1; color: var(--cc-primary); }
.flow__dot--mail::before { content: "\f0e0"; font-family: "Font Awesome 6 Free"; font-weight: 900; filter: drop-shadow(0 0 6px rgba(var(--cc-primary-rgb), 0.7)); }
.flow__dot--junk { color: #ef4444; animation-name: ccJunk; animation-delay: calc(var(--i, 0) * var(--slot) + var(--slot) * 1.5); }
.flow__dot--junk::before { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7)); }
@keyframes ccJunk {
  0% { left: 4px; opacity: 0; transform: none; }
  4% { opacity: 1; }
  17% { left: calc(100% - 16px); opacity: 1; transform: none; }
  21% { left: calc(100% - 4px); opacity: 1; transform: rotate(0); }
  33% { left: calc(100% + 6px); opacity: 0; transform: translateY(18px) rotate(40deg); }
  100% { left: calc(100% + 6px); opacity: 0; }
}
.flow__stop { position: absolute; right: -9px; top: calc(50% - 30px); display: grid; place-items: center; width: 22px; height: 22px; font-size: 0.75rem; color: #fff; background: #ef4444; border-radius: 50%; opacity: 0; animation: ccStop calc(var(--slot) * var(--m)) ease-out infinite; animation-delay: calc(var(--i, 0) * var(--slot) + var(--slot) * 1.5); }
@keyframes ccStop { 0%, 16% { opacity: 0; transform: scale(0.4); } 20% { opacity: 1; transform: scale(1.2); } 26%, 36% { opacity: 1; transform: scale(1); } 44%, 100% { opacity: 0; transform: scale(0.8); } }

@media (max-width: 767.98px) {
  .flow { flex-direction: column; }
  .flow__node { flex: none; padding: 0.9rem 0.8rem; }
  .flow__link { flex: 0 0 46px; }
  .flow__link::before { left: 50%; right: auto; top: 4px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--cc-border-strong); }
  .flow__link::after { top: auto; bottom: 4px; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .flow__dot { left: 50%; top: 4px; margin: 0 0 0 -6px; animation-name: var(--kf-y); }
  .flow__dot--mail { margin: 0 0 0 -9px; }
  .flow__dot--junk { animation-name: ccJunkY; }
  .flow__stop { right: auto; left: calc(50% + 14px); top: auto; bottom: 0; }
  @keyframes ccJunkY {
    0% { top: 4px; opacity: 0; } 4% { opacity: 1; } 17% { top: calc(100% - 16px); opacity: 1; } 21% { top: calc(100% - 4px); opacity: 1; }
    33% { top: calc(100% + 6px); opacity: 0; } 100% { top: calc(100% + 6px); opacity: 0; }
  }
}
.flow__node .flow__extra { display: flex; gap: 0.4rem; margin-top: 0.1rem; }
.flow__chip { padding: 0.1rem 0.55rem; font-family: var(--cc-font-mono); font-size: 0.75rem; color: var(--cc-tag-fg); background: var(--cc-tint-soft); border: 1px solid var(--cc-chip-bd); border-radius: 999px; }

/* a lock that opens (transfer) */
.icon-swap { position: relative; width: 1.35em; height: 1.35em; display: grid; place-items: center; }
.icon-swap i { position: absolute; transition: opacity 0.3s; }
.fx.is-inview .icon-swap i:first-child { animation: ccSwapA calc(var(--slot, 1.5s) * var(--m, 3)) infinite; }
.fx.is-inview .icon-swap i:last-child { animation: ccSwapB calc(var(--slot, 1.5s) * var(--m, 3)) infinite; opacity: 0; }
@keyframes ccSwapA { 0%, 25% { opacity: 1; } 32%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ccSwapB { 0%, 25% { opacity: 0; } 32%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* -------------------------------------------------------------------------
   10. More explainers: domain anatomy, security rings, migration, timeline, builder demo
   ------------------------------------------------------------------------- */
/* --- what a domain is --- */
.anatomy__bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.1rem; max-width: 560px; margin: 0.4rem auto 0; padding: 0.9rem 1.3rem;
  font-family: var(--cc-font-mono); font-size: clamp(1.05rem, 0.7rem + 1.6vw, 1.75rem); font-weight: 600;
  color: var(--cc-heading); background: var(--cc-card); border: 1px solid var(--cc-border-strong); border-radius: 999px; box-shadow: var(--cc-shadow-md);
}
.anatomy__lock { margin-right: 0.7rem; font-size: 0.8em; color: var(--cc-ok-fg); }
.anatomy__scheme { color: var(--cc-text-muted); font-weight: 500; }
/* phone browsers show the address without "https://", and without it the example fits on one line */
@media (max-width: 479.98px) { .anatomy__scheme { display: none; } }
.anatomy__name, .anatomy__ext { padding: 0.05rem 0.3rem; border-radius: 8px; }
.fx.is-inview .anatomy__name { animation: ccPartA 6s ease-in-out infinite; }
.fx.is-inview .anatomy__ext { animation: ccPartB 6s ease-in-out infinite; }
@keyframes ccPartA { 0%, 6%, 52%, 100% { background: transparent; color: inherit; } 14%, 40% { background: rgba(var(--cc-primary-rgb), 0.22); color: var(--cc-tag-fg); } }
@keyframes ccPartB { 0%, 46%, 100% { background: transparent; color: inherit; } 56%, 90% { background: rgba(167, 139, 250, 0.26); color: #a78bfa; } }
[data-bs-theme="light"] .anatomy__ext { --ext: #6d4fd6; }
.anatomy__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; margin: 1.1rem 0 1.8rem; padding: 0; list-style: none; font-size: 0.92rem; color: var(--cc-text-muted); }
.anatomy__legend b { display: inline-block; margin-right: 0.35rem; padding: 0.05rem 0.55rem; font-family: var(--cc-font-display); font-size: 0.82rem; border-radius: 999px; }
.anatomy__legend .k-name b { color: var(--cc-tag-fg); background: rgba(var(--cc-primary-rgb), 0.18); }
.anatomy__legend .k-ext b { color: #7c5ce0; background: rgba(167, 139, 250, 0.2); }
[data-bs-theme="dark"] .anatomy__legend .k-ext b { color: #c4b5fd; }

/* --- security: rings, a radar sweep and threats that get absorbed --- */
.shield { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.shield__stage { position: relative; width: 320px; height: 320px; margin: 0 auto; zoom: var(--sc, 1); } /* zoom (not transform) so the smaller size also shrinks the layout box: nothing overflows a 320px phone */
@media (max-width: 400px) { .shield__stage { --sc: 0.82; } }
@media (max-width: 339.98px) { .shield__stage { --sc: 0.76; } }
.shield__ring { position: absolute; inset: var(--in); border-radius: 50%; border: 1.5px solid var(--cc-border-strong); }
.shield__ring--3 { --in: 0; border-style: dashed; border-color: rgba(var(--cc-primary-rgb), 0.5); animation: ccSpin 60s linear infinite; }
.shield__ring--2 { --in: 15%; border-color: rgba(34, 211, 238, 0.5); background: radial-gradient(circle, rgba(34, 211, 238, 0.06), transparent 70%); }
.shield__ring--1 { --in: 30%; overflow: hidden; border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.07); }
.shield__radar { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(52, 211, 153, 0) 0deg, rgba(52, 211, 153, 0.55) 70deg, rgba(52, 211, 153, 0) 71deg); animation: ccSpin 4.2s linear infinite; }
.shield__core { position: absolute; inset: 39%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-radius: 18px; box-shadow: 0 0 30px rgba(var(--cc-primary-rgb), 0.7); }
.shield__threat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.shield__threat::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.9); opacity: 0; animation: ccThreat 5s ease-in infinite; animation-delay: var(--d); }
@keyframes ccThreat { 0% { transform: translateX(185px); opacity: 0; } 8% { opacity: 1; } 56% { transform: translateX(152px); opacity: 1; } 62% { transform: translateX(150px) scale(2.4); opacity: 0.9; } 70%, 100% { transform: translateX(150px) scale(3); opacity: 0; } }
.shield__tag { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; font-family: var(--cc-font-display); font-size: 0.78rem; font-weight: 600; white-space: nowrap; color: var(--cc-heading); background: var(--cc-card); border: 1px solid var(--cc-border); border-radius: 999px; box-shadow: var(--cc-shadow-md); }
.shield__tag i { color: var(--cc-tag-fg); }
.shield__tag--a { left: -10%; top: 6%; } .shield__tag--b { right: -12%; top: 28%; } .shield__tag--c { left: -8%; bottom: 14%; } .shield__tag--d { right: -6%; bottom: 2%; }
@media (max-width: 575.98px) { .shield__tag--a { left: 0; } .shield__tag--b { right: 0; } .shield__tag--c { left: 0; } .shield__tag--d { right: 0; } }

/* --- migration checklist that works through itself --- */
.mig { position: relative; display: inline-grid; justify-items: end; min-width: 5.2rem; }
.mig > span { grid-area: 1 / 1; opacity: 0; animation-duration: 12s; animation-iteration-count: infinite; animation-fill-mode: backwards; animation-delay: calc(var(--k, 0) * 2.4s); }
.mig .m-queue { opacity: 1; animation-name: ccMigQ; }
.mig .m-copy { animation-name: ccMigC; }
.mig .m-done { animation-name: ccMigD; }
@keyframes ccMigQ { 0% { opacity: 1; } 2% { opacity: 0; } 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes ccMigC { 0% { opacity: 0; } 2% { opacity: 1; } 18% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes ccMigD { 0%, 19% { opacity: 0; } 21%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.m-copy i { animation: ccSpin 1s linear infinite; }

/* --- timeline (About) --- */
.timeline { position: relative; display: grid; gap: 1.1rem; margin: 0 auto; max-width: 780px; padding: 0 0 0 2.4rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 0.95rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--cc-border-strong); }
.timeline::after { content: ""; position: absolute; left: 0.95rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(180deg, var(--cc-primary), #22d3ee); transform-origin: 50% 0; transform: scaleY(0); transition: transform 2s ease 0.3s; }
.timeline:has(.is-visible)::after { transform: scaleY(0.62); }
html:not(.js) .timeline::after { transform: scaleY(0.62); }
.timeline__item { position: relative; padding: 1.1rem 1.3rem; background: var(--cc-card); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); }
.timeline__item::before { content: ""; position: absolute; left: -2.05rem; top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--cc-card); border: 3px solid var(--cc-primary); }
.timeline__item--live::before { background: #10b981; border-color: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: ccPulseRing 2.2s infinite; }
.timeline__item--planned { border-style: dashed; }
.timeline__item--planned::before { border-color: var(--cc-border-strong); }
@keyframes ccPulseRing { 70% { box-shadow: 0 0 0 11px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.timeline__when { display: inline-block; margin-bottom: 0.15rem; font-family: var(--cc-font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cc-tag-fg); }
.timeline__item--live .timeline__when { color: var(--cc-ok-fg); }
.timeline__item h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.timeline__item p { margin: 0; font-size: 0.95rem; color: var(--cc-text-muted); }

/* --- steps joined by a line that draws itself --- */
.steps--progress { position: relative; }
@media (min-width: 768px) {
  .steps--progress::before { content: ""; position: absolute; z-index: 0; left: 7%; right: 7%; top: 3.3rem; height: 2px; background: linear-gradient(90deg, var(--cc-primary), #22d3ee); transform-origin: 0 50%; opacity: 0.55; }
  .js .steps--progress::before { transform: scaleX(0); transition: transform 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s; }
  .js .steps--progress:has(li.is-visible)::before { transform: scaleX(1); }
  .steps--progress .step { position: relative; z-index: 1; }
}

/* --- builder demo: blocks drop onto a page while a cursor "drags" them --- */
.bld { max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--cc-card); border: 1px solid var(--cc-border-strong); border-radius: 16px; box-shadow: var(--cc-shadow-md); }
.bld__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; background: var(--cc-card-2); border-bottom: 1px solid var(--cc-border); }
.bld__bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .bld__bar i:nth-child(2) { background: #fbbf24; } .bld__bar i:nth-child(3) { background: #34d399; }
.bld__body { position: relative; display: grid; grid-template-columns: 74px 1fr; min-height: 270px; }
.bld__side { display: grid; align-content: start; gap: 0.5rem; padding: 0.8rem 0.6rem; border-right: 1px solid var(--cc-border); background: var(--cc-card-2); }
.bld__tool { display: grid; place-items: center; height: 38px; font-size: 0.95rem; color: var(--cc-tint-fg); background: var(--cc-tint); border-radius: 10px; }
.bld__canvas { position: relative; display: grid; align-content: start; gap: 0.6rem; padding: 0.9rem; }
.bld__blk { opacity: 0; border-radius: 10px; animation: ccDrop 10s ease-out infinite both; animation-delay: var(--d); }
.bld__hero { height: 70px; background: linear-gradient(120deg, #3b82f6, #22d3ee); } .bld__text { height: 44px; background: repeating-linear-gradient(180deg, var(--cc-border-strong) 0 6px, transparent 6px 14px); }
.bld__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; height: 54px; background: none; } .bld__cards i { border-radius: 8px; background: var(--cc-tint); }
.bld__btn { width: 38%; height: 34px; border-radius: 999px; background: var(--cc-primary); }
@keyframes ccDrop { 0% { opacity: 0; transform: translateY(-24px) scale(0.96); } 5%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.bld__cursor { position: absolute; z-index: 3; left: 20px; top: 40px; font-size: 1.35rem; color: var(--cc-heading); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); animation: ccCursor 10s ease-in-out infinite; }
@keyframes ccCursor {
  0% { transform: translate(0, 0); opacity: 0; } 3% { opacity: 1; } 8% { transform: translate(150px, 36px); } 14% { transform: translate(14px, 38px); }
  26% { transform: translate(160px, 120px); } 34% { transform: translate(14px, 78px); } 46% { transform: translate(170px, 175px); } 54% { transform: translate(14px, 118px); }
  66% { transform: translate(120px, 225px); } 84% { transform: translate(120px, 225px); opacity: 1; } 94%, 100% { transform: translate(120px, 225px); opacity: 0; }
}

/* --- contact cards: icons do a little something --- */
.contact-card__icon i { display: inline-block; }
.js .reveal.is-visible .contact-card__icon { animation: ccPop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.2s both; }
@keyframes ccPop { from { transform: scale(0.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.contact-card:hover .contact-card__icon i { animation: ccWiggle 0.7s ease; }
@keyframes ccWiggle { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }

/* --- green: PUE ring fills, wind turbines turn --- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 83; }
.js .reveal.is-visible .pue-ring { animation: ccRing 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.4s both; }
@keyframes ccRing { from { --p: 0; } }
.turbines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.turbines path, .turbines .hub { fill: #f6f9ff; stroke: rgba(11, 18, 32, 0.4); stroke-width: 0.6; }
.turbines .bbox { fill: none; stroke: none; }
.turbines .blades { transform-box: fill-box; transform-origin: 50% 50%; animation: ccSpin 7s linear infinite; }
.turbines .t2 .blades { animation-duration: 9s; } .turbines .t3 .blades { animation-duration: 11s; animation-direction: reverse; }
.media-frame--dark .media-frame__photo { position: relative; }

/* illustrations drawn for a white page keep a light panel in dark mode, like a printed card */
.media-frame--paper, [data-bs-theme="dark"] .media-frame--paper {
  background: radial-gradient(120% 120% at 0% 0%, #dbeafe 0%, #eff6ff 46%, #f8faff 100%);
  border-color: #dbe6fb;
}

/* -------------------------------------------------------------------------
   Failsafe. A page hides its reveal-on-scroll sections until main.js has started. If it has not started after 4 seconds (blocked, failed,
   a very old browser), the head script adds html.cc-fallback and everything that was waiting simply shows, in its finished state.
   ------------------------------------------------------------------------- */
html.cc-fallback .reveal { opacity: 1 !important; transform: none !important; }
html.cc-fallback .reveal .mock__row, html.cc-fallback .reveal .mock__tile, html.cc-fallback .reveal .mock__btn { opacity: 1 !important; }
html.cc-fallback .section-head h2::after, html.cc-fallback .steps--progress::before { transform: scaleX(1) !important; }

/* -------------------------------------------------------------------------
   Reduced motion (WCAG 2.3.3): no twinkling, birds, rays, shooting stars, reveal wipe or loops
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__stars .st, .hero__shoot i, .bird, .bird path, .orb--sun i { animation: none !important; }
  .hero__shoot { display: none; }
  .marquee__inner, .cta-band::after, .carousel-item.active .cc-slide__img, .cc-slide__caption > *, .plan--featured, .float-chip,
  .mock__pill--ok .fa-circle, .ds-typer::after { animation: none !important; }
  .ds-typer { display: none; }
  .js .reveal .mock__row, .js .reveal .mock__tile, .js .reveal .mock__btn { opacity: 1; }
  .js .reveal.is-visible .mock__row, .js .reveal.is-visible .mock__tile, .js .reveal.is-visible .mock__meter i { animation: none !important; }
  .js .section-head h2::after { transform: scaleX(1); transition: none; }
  .btn-cc::after { display: none; }
  .fx.is-inview .anatomy__name, .fx.is-inview .anatomy__ext, .shield__ring--3, .shield__radar,
  .shield__threat::after, .mig > span, .m-copy i, .timeline__item--live::before, .bld__blk, .bld__cursor, .turbines .blades { animation: none !important; }
  .shield__threat { display: none; }
  .mig .m-queue, .mig .m-copy { opacity: 0; } .mig .m-done { opacity: 1; }
  .bld__blk { opacity: 1; } .bld__cursor { display: none; }
  .timeline::after, .js .steps--progress::before { transition: none; }
  .flow__dot, .flow .flow__node .flow__icon, .flow__stop, .icon-swap i { animation: none !important; }
  .flow__dot { opacity: 1; left: calc(50% - 6px); }
  .flow__dot--junk, .flow__stop { display: none; }
  .icon-swap i:last-child { opacity: 0; }
  @media (max-width: 767.98px) { .flow__dot { left: 50%; top: calc(50% - 6px); } }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
