/* ================================================
   sky.css — "Sky to Earth" layer for the US home page
   ================================================

   Loaded by en/index.html only, after main.css. The legal pages keep main.css
   alone, so nothing here may assume it is the only stylesheet — and nothing in
   main.css was edited to make room for it.

   The page tells one story as you scroll: the visitor starts above the clouds
   (the business nobody can see), breaks through them, and lands on the ground
   where the contact form is. Two layers carry it:

   1. .sky-canvas — one fixed WebGL canvas behind the whole page, drawn by
      en/js/sky.js. Its uniforms follow the scroll: dense clouds at the top,
      speed streaks through the middle, a lit ground grid at the contact form.
   2. Pinned "scenes" — tall sections with a sticky stage inside. sky.js writes
      eased 0..1 phase values (--open, --spin, ...) onto each scene and the
      rules below turn them into transforms.

   Progressive enhancement, in this order:
   - Default (no JS, or JS without sky.js): every scene renders in its FINAL,
     static state, nothing pinned, all text visible. The gradient on
     body::before stands in for the canvas.
   - html.sky-motion: set by the inline script in the <head> unless the reader
     asked for reduced motion, and removed again on load if sky.js never ran.
     Only under this class do sections grow tall and pin.
   - html.sky-gl: sky.js got a WebGL context; the canvas is shown.

   Pricing numbers never appear here (CLAUDE.md: they live in index.html and
   the Terms only). The plan simulator reads them from data-* attributes. */

:root {
  --sky-space: #05060d;
  --sky-navy: #0f172a;
  --sky-neon: #a5b4fc;
  --sky-glow-purple: rgba(124, 58, 237, 0.55);
  --sky-glow-cyan: rgba(6, 182, 212, 0.55);
  --sky-live: #22c55e;
  --sky-glass: rgba(15, 23, 42, 0.55);
  --sky-glass-border: rgba(255, 255, 255, 0.1);
  --sky-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================
   BACKGROUND — canvas + static fallback
   ================================================ */

/* Painted under everything, including under the canvas. It is what a reader
   without WebGL (or without JS) sees, so it runs the same way the canvas does:
   space at the top of the viewport, navy below. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(6, 182, 212, 0.14), transparent 70%),
    linear-gradient(180deg, var(--sky-space) 0%, var(--sky-navy) 100%);
}

.sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: none;
}

.sky-gl .sky-canvas { display: block; }

/* ---- Vertical rhythm ----
   main.css spaces sections 6rem top and bottom (4rem on phones) and puts 4rem
   under every section header — 16rem of air between two sections' content,
   sized for a page of short flat blocks. This page already separates its
   sections with motion, so the gaps are halved. Scoped to this stylesheet,
   i.e. to the home page; the legal pages keep main.css's spacing. */
:root { --section-py: 4.5rem; }

@media (max-width: 768px) {
  :root { --section-py: 3.25rem; }
}

.section-header { margin-bottom: 2.75rem; }

/* main.css paints these sections --bg-secondary, which would lay an opaque
   slab over the canvas. Keep the tint, lose the opacity. */
/* Pricing fades its tint in and out instead of starting on a hard edge. */
.pricing {
  background: linear-gradient(180deg, transparent, rgba(10, 14, 28, 0.5) 12%, rgba(10, 14, 28, 0.5) 88%, transparent);
}

.footer { background: rgba(10, 14, 28, 0.55); }

/* The old hero's blobs and grid lived under .hero; nothing on this page uses
   that class any more, but the navbar still starts transparent over the sky. */
.navbar.scrolled { background: rgba(8, 12, 26, 0.72); }

/* Before the first scroll the bar is transparent over the clouds; a soft
   shade keeps the wordmark and links legible over a bright one. */
.navbar:not(.scrolled) { background: linear-gradient(180deg, rgba(5, 6, 13, 0.82), rgba(5, 6, 13, 0.4) 70%, transparent); }
/* ---- Logo ----
   An image on this page (main.css sizes .nav-logo img at 45px and
   .footer-brand img at 80px for the old image wordmark; these tune it). Its
   window has its own navy fill, so it needs no shade to read over a cloud.
   It steps down with the bar when the bar condenses on scroll. */
.navbar .nav-logo img {
  height: 48px;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img { height: 42px; }
.footer-brand .nav-logo img { height: 85px; }

@media (max-width: 768px) {
  .navbar .nav-logo img,
  .navbar.scrolled .nav-logo img { height: 38px; }
  .footer-brand .nav-logo img { height: 72px; }
}

/* ================================================
   SHARED — glass, section spacing on the sky
   ================================================ */

.sky-glass {
  background: var(--sky-glass);
  border: 1px solid var(--sky-glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sky-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

/* ================================================
   1. HERO — above the clouds
   ================================================ */

.sky-hero {
  position: relative;
  padding: 0;
}

.sky-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}

.sky-hero-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.sky-hero-kicker {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--sky-neon);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  text-shadow: 0 0 18px rgba(165, 180, 252, 0.45);
}

.sky-hero .hero-title { font-weight: 900; letter-spacing: -0.035em; }

/* Intro — "lost in the clouds". Exists only in motion mode: it is the first
   frame of the story, and without the story it would be a second headline. */
.sky-intro {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
}

/* A pool of shade behind the intro line, so it reads over a bright cloud. */
.sky-intro::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(5, 6, 13, 0.55), rgba(5, 6, 13, 0.25) 60%, transparent);
  z-index: -1;
  pointer-events: none;
}

.sky-intro-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c7d2fe;
  text-shadow: 0 1px 10px rgba(5, 6, 13, 0.9);
  margin-bottom: 1.4rem;
}

.sky-intro-title {
  font-size: clamp(2.4rem, 7.2vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  max-width: 14ch;
}

.sky-neon {
  color: #e0e7ff;
  text-shadow:
    0 0 6px rgba(224, 231, 255, 0.9),
    0 0 22px rgba(165, 180, 252, 0.85),
    0 0 48px rgba(124, 58, 237, 0.75),
    0 0 90px rgba(6, 182, 212, 0.45);
  animation: skyNeonFlicker 6s infinite;
}

@keyframes skyNeonFlicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.72; }
}

.sky-intro-sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: #dbe2f0;
  text-shadow: 0 1px 12px rgba(5, 6, 13, 0.9), 0 0 2px rgba(5, 6, 13, 0.8);
  max-width: 34ch;
}

.sky-scroll-cue {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  /* Its own dark backing: the cue sits low, where the cloud deck is
     brightest, and it is the only hint that the first screen scrolls. */
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 6, 13, 0.62);
  border: 1px solid rgba(199, 210, 254, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c7d2fe;
  text-shadow: 0 1px 10px rgba(5, 6, 13, 0.9);
}

/* A mouse outline with its wheel rolling down. */
.sky-scroll-cue::before {
  content: '';
  width: 14px;
  height: 22px;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  box-sizing: border-box;
}

.sky-scroll-cue::after {
  content: '';
  position: absolute;
  left: calc(0.7rem + 6px);
  top: calc(50% - 6px);
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: #c7d2fe;
  animation: skyCue 1.6s ease-in-out infinite;
}

@keyframes skyCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(7px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Word-by-word entrance for the intro title. sky.js wraps each word in
   .sky-word and sets --i; without it the title is plain text. */
.sky-word {
  display: inline-block;
  white-space: pre;
}

/* Held back until sky.js has split it, or the words would show, vanish, and
   then animate in. */
.sky-motion .sky-intro-title:not(.is-split) { visibility: hidden; }

.sky-motion .sky-intro-title .sky-word {
  animation: skyWordUp 0.9s var(--sky-ease) both;
  animation-delay: calc(0.25s + var(--i, 0) * 70ms);
}

@keyframes skyWordUp {
  from { opacity: 0; transform: translateY(0.6em) rotateX(-60deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---- The laptop ----
   Pure CSS 3D, proportioned on a 16-inch notebook. The hinge is the origin of
   everything: the lid swings up from it, the base lies flat toward the viewer
   from it, and the whole object turns around it. --lw sets the width; every
   other dimension derives from it.

   Thickness comes from stacked edge layers (.laptop-lid-edge,
   .laptop-base-edge) rather than four side faces: flat side faces cannot
   follow rounded corners and leave gaps at every corner, while a stack of
   rounded plates stays solid from any angle the turntable reaches.

   Angles (see sky.js for where they come from):
     --spin  0..1  turntable: 1 = seen from behind, 0 = facing the reader
     --open  0..1  lid: 0 = shut on the base, 1 = open and leaning back
   Their defaults are the final state, which is what static mode draws. */
.sky-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  min-height: calc(var(--lw) * 1.05);
  --lw: clamp(280px, 31vw, 460px);
  --lid-h: calc(var(--lw) * 0.655);
  --lid-t: calc(var(--lw) * 0.012);
  --base-d: calc(var(--lw) * 0.68);
  --base-t: calc(var(--lw) * 0.028);
  /* Three-quarter product-shot angle: the screen turns toward the copy on
     the left, which also shows the right-hand edge and its thickness. */
  --yaw: -20deg;
}

.laptop-rig {
  position: relative;
  width: var(--lw);
  height: var(--lid-h);
  transform-style: preserve-3d;
  transform:
    translate3d(calc(var(--cx, 0px) * (1 - var(--move, 1))), calc(var(--cy, 0px) * (1 - var(--move, 1)) + (1 - var(--intro-out, 1)) * var(--rise) + var(--bob, 0px)), 0)
    scale(calc(0.78 + 0.22 * var(--move, 1)))
    rotateX(calc(-12deg + var(--tilt-x, 0deg)))
    rotateY(calc(var(--spin, 0) * 180deg + var(--tilt-y, 0deg) + var(--yaw)));
  transform-origin: 50% 100%;
  transition: transform 700ms var(--sky-ease);
  /* While the intro line is up, the closed laptop floats this far below the
     middle so the two do not overlap; it rises as the line fades. */
  --rise: 22vh;
}

.sky-motion .laptop-rig { transition: none; }
.laptop-rig.is-tracking { transition: transform 140ms linear; }

/* ---- Lid ---- */
.laptop-lid {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  /* 106deg of travel: shut flat on the deck at 0, leaning back 16deg past
     upright at 1 — about the angle people actually work at. */
  transform: rotateX(calc(-90deg + var(--open, 1) * 106deg));
}

.laptop-screen,
.laptop-lid-back,
.laptop-lid-edge {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--lw) * 0.03) calc(var(--lw) * 0.03) calc(var(--lw) * 0.01) calc(var(--lw) * 0.01);
}

/* Front face: black glass edge to edge inside a hairline aluminium rim. */
.laptop-screen {
  background: #06070a;
  box-shadow:
    inset 0 0 0 calc(var(--lw) * 0.004 + 0.5px) #aeb3bd,
    inset 0 0 0 calc(var(--lw) * 0.008) #17191e,
    0 0 50px rgba(124, 58, 237, calc(0.22 * var(--open, 1)));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.laptop-display {
  position: absolute;
  left: 2.4%;
  right: 2.4%;
  top: calc(var(--lw) * 0.028);
  bottom: calc(var(--lw) * 0.024);
  border-radius: calc(var(--lw) * 0.009) calc(var(--lw) * 0.009) 2px 2px;
  overflow: hidden;
  background: #0d1020;
}

/* Screen comes on as the lid opens. */
.laptop-screen-inner {
  height: 100%;
  opacity: calc(var(--open, 1) * 1.4 - 0.4);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 55%), #0d1020;
}

.laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11%;
  height: calc(var(--lw) * 0.021);
  transform: translateX(-50%);
  background: #06070a;
  border-radius: 0 0 calc(var(--lw) * 0.007) calc(var(--lw) * 0.007);
}

.laptop-camera {
  position: absolute;
  z-index: 2;
  top: calc(var(--lw) * 0.031);
  left: 50%;
  width: calc(var(--lw) * 0.009);
  height: calc(var(--lw) * 0.009);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5d80 0 18%, #10141d 45%, #050608 70%);
}

/* The glass: one broad diagonal reflection and a faint second one. */
.laptop-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 33%, transparent 33.4%),
    linear-gradient(118deg, transparent 58%, rgba(255, 255, 255, 0.035) 58.4%, transparent 78%);
  opacity: calc(0.4 + 0.6 * var(--open, 1));
}

/* Lid thickness: plates between the glass and the back. */
.laptop-lid-edge {
  background: hsl(222 6% calc(70% - var(--i) * 5%));
  transform: translateZ(calc(var(--lid-t) * var(--i) / -4));
}

/* Back of the lid: brushed silver, a backlit logo, the black hinge. The sheen
   is a wide gradient slid across by --spin, so the light seems to move over
   the metal as the laptop turns. */
.laptop-lid-back {
  transform: translateZ(calc(var(--lid-t) * -1)) rotateY(180deg);
  background:
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 46%, transparent 60%) calc(var(--spin, 0) * 100%) 0 / 260% 100% no-repeat,
    linear-gradient(160deg, #e7e9ed 0%, #d0d3d9 42%, #b2b6be 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.laptop-lid-back::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: calc(var(--lw) * 0.022);
  border-radius: calc(var(--lw) * 0.006) calc(var(--lw) * 0.006) 0 0;
  background: linear-gradient(180deg, #33363d, #141518);
}

/* The lid carries the logo's mark — its window and cursor, the same drawing
   as the favicon — backlit the way laptop logos are. */
.laptop-logo {
  width: 15%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  /* Glow in the mark's two ends: purple up-left, cyan down-right. */
  box-shadow:
    calc(var(--lw) * -0.008) calc(var(--lw) * -0.008) calc(var(--lw) * 0.04) rgba(124, 58, 237, 0.5),
    calc(var(--lw) * 0.008) calc(var(--lw) * 0.008) calc(var(--lw) * 0.04) rgba(6, 182, 212, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---- Base ---- */
.laptop-base {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--base-d);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}

.laptop-deck,
.laptop-base-edge {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--lw) * 0.012) calc(var(--lw) * 0.012) calc(var(--lw) * 0.032) calc(var(--lw) * 0.032);
}

/* The top of the base. The dark band along the hinge is the lid's shadow. */
.laptop-deck {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 6%),
    linear-gradient(180deg, #e3e5ea 0%, #d3d6dc 45%, #c3c7ce 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.laptop-base-edge {
  background: hsl(222 6% calc(72% - var(--i) * 3.2%));
  transform: translateZ(calc(var(--base-t) * var(--i) / -8));
}

.laptop-base-bottom { background: #3b3e45; }

.laptop-keys {
  position: absolute;
  left: 11.5%;
  right: 11.5%;
  top: 6%;
  height: 44%;
  background: url("../assets/images/laptop-keyboard.svg") center / contain no-repeat;
}

/* Speaker grilles either side of the keyboard. */
.laptop-speaker {
  position: absolute;
  top: 7%;
  height: 42%;
  left: 4%;
  width: 6%;
  background-image: radial-gradient(circle, rgba(25, 27, 33, 0.55) 0 0.55px, transparent 0.9px);
  background-size: calc(var(--lw) * 0.0085) calc(var(--lw) * 0.0085);
}

.laptop-speaker-r { left: auto; right: 4%; }

.laptop-pad {
  position: absolute;
  left: 29%;
  right: 29%;
  top: 55%;
  bottom: 7%;
  border-radius: calc(var(--lw) * 0.014);
  background: linear-gradient(180deg, #d6d9df, #cacdd3);
  /* Shading only, no hairline: a 1px inset line this foreshortened
     rasterises as a dotted outline. */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

/* The thumb scoop in the front edge, for opening the lid. */
.laptop-scoop {
  position: absolute;
  bottom: 0;
  left: 42%;
  right: 42%;
  height: 2.6%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04));
}

/* Light from the screen falling on the keyboard. */
.laptop-spill {
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 58%;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(139, 92, 246, 0.26), rgba(6, 182, 212, 0.1) 45%, transparent 75%);
  opacity: var(--open, 1);
}

.laptop-shadow {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--lw) * 0.46);
  width: calc(var(--lw) * 1.15);
  height: calc(var(--lw) * 0.16);
  transform: translate(-50%, 0) translate(calc(var(--cx, 0px) * (1 - var(--move, 1))), calc(var(--cy, 0px) * (1 - var(--move, 1)) + (1 - var(--intro-out, 1)) * 22vh));
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  filter: blur(6px);
  opacity: calc(0.4 + 0.6 * var(--move, 1));
  pointer-events: none;
}

.laptop-screen .mockup-hero-rating { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* The mini homepage on the screen. The .mockup-* rules in main.css are sized in
   rem for a 500px frame, so the inner box is laid out at 500px and scaled to
   the display. --screen-scale is measured by fitScreen() in js/sky.js; 0.88
   is close enough for the moment before it runs. */
.laptop-screen-inner {
  width: calc(100% / var(--screen-scale, 0.88));
  height: calc(100% / var(--screen-scale, 0.88));
  transform: scale(var(--screen-scale, 0.88));
  transform-origin: 0 0;
}

/* Fog in front of the laptop. Radial gradients, not filter: blur — six large
   blurred layers repaint on every frame of the scroll. */
.sky-fog {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.sky-fog span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 232, 255, 0.55), rgba(226, 232, 255, 0.18) 55%, transparent);
  transform: translate3d(calc(var(--dir) * var(--part, 0) * 70vw), calc(var(--part, 0) * -18vh), 0) scale(calc(1 + var(--part, 0) * 1.8));
  opacity: calc(1 - var(--part, 0) * 1.15);
}

.sky-fog span:nth-child(1) { --dir: -1; width: 70%; height: 55%; left: 0%; top: 25%; }
.sky-fog span:nth-child(2) { --dir: 1; width: 75%; height: 60%; right: -5%; top: 18%; }
.sky-fog span:nth-child(3) { --dir: -1; width: 60%; height: 45%; left: 10%; top: 50%; }
.sky-fog span:nth-child(4) { --dir: 1; width: 65%; height: 45%; right: 5%; top: 55%; }
.sky-fog span:nth-child(5) { --dir: -0.6; width: 50%; height: 35%; left: 25%; top: 35%; }

/* Floating badges — reused from main.css, placed around the laptop. */
.sky-hero-visual .hero-floating-badge {
  left: -6%;
  bottom: -8%;
  z-index: 4;
  opacity: var(--badges, 1);
  /* Denser than main.css's glass: this badge sits on the light keyboard. */
  background: rgba(15, 23, 42, 0.82);
}

.sky-hero-visual .hero-floating-badge-2 {
  right: -2%;
  top: 2%;
  z-index: 4;
  opacity: var(--badges, 1);
}

/* ---- Hero in motion mode ----
   The section becomes the scroll track; the stage sticks for its length. */
.sky-motion .sky-hero {
  height: 270vh;
  /* The first frame, for the moment before sky.js writes the real values —
     otherwise the laptop paints open on the right and then jumps shut. */
  --intro-out: 0;
  --spin: 1;
  --open: 0;
  --move: 0;
  --part: 0;
  --badges: 0;
}

.sky-motion .sky-hero-visual { opacity: 0; transition: opacity 600ms ease; }
.sky-motion .sky-hero.is-measured .sky-hero-visual { opacity: 1; }

/* min-height, never height: with overflow: hidden on the stage, a fixed
   height would cut off whatever does not fit a short phone screen — the hero
   buttons first — for good. A stage that grows is merely pinned with its foot
   below the fold, and the foot scrolls into view when the pin lets go. */
.sky-motion .sky-hero .sky-stage {
  position: sticky;
  top: 0;
  padding-bottom: 1.5rem;
}

/* Sized to the screen rather than to the stage: on a short window or with
   larger text the stage grows past the fold, and centring on it would push
   the subline and the scroll cue off-screen. */
.sky-motion .sky-intro {
  display: flex;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  opacity: calc(1 - var(--intro-out, 0));
  transform: translateY(calc(var(--intro-out, 0) * -12vh)) scale(calc(1 + var(--intro-out, 0) * 0.18));
  filter: blur(calc(var(--intro-out, 0) * 10px));
}

.sky-motion .sky-fog { display: block; }

.sky-motion .sky-hero-copy > * {
  opacity: clamp(0, var(--copy, 0) * 4 - var(--k, 0), 1);
  transform: translateY(calc((1 - clamp(0, var(--copy, 0) * 4 - var(--k, 0), 1)) * 28px));
}

.sky-motion .sky-hero-copy > :nth-child(1) { --k: 0; }
.sky-motion .sky-hero-copy > :nth-child(2) { --k: 0.5; }
.sky-motion .sky-hero-copy > :nth-child(3) { --k: 1; }
.sky-motion .sky-hero-copy > :nth-child(4) { --k: 1.6; }
.sky-motion .sky-hero-copy > :nth-child(5) { --k: 2.2; }

/* Until the copy has arrived, its buttons must not catch a click that was
   aimed at the laptop floating over them. */
.sky-motion .sky-hero:not(.is-landed) .sky-hero-copy { pointer-events: none; }

/* ================================================
   2. BEFORE / AFTER — the wiper
   ================================================ */

.sky-split .section-header { margin-bottom: 2.5rem; }

.split-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.split-pane {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* Old: grey, slow, rained on. */
.split-old {
  background: linear-gradient(180deg, #2a2f3a 0%, #1c2029 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9aa3b2;
  filter: saturate(0.2);
}

/* Opaque, so the rain and the cloud behind it cannot thin the label out. */
.split-old .split-tag { background: rgba(28, 32, 41, 0.94); color: #c9d0da; }
.split-old .split-points { position: relative; z-index: 1; }

.split-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(104deg, transparent 0 17px, rgba(190, 200, 220, 0.22) 17px 18px, transparent 18px 41px),
    repeating-linear-gradient(98deg, transparent 0 29px, rgba(190, 200, 220, 0.14) 29px 30px, transparent 30px 53px);
  background-size: 100% 60px, 100% 90px;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 95%);
  mask: linear-gradient(180deg, #000 30%, transparent 95%);
  animation: skyRain 0.7s linear infinite;
}

@keyframes skyRain { to { background-position: -14px 60px, -14px 90px; } }

.split-cloud {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 70%;
  height: 120px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 60%, #4b5263, transparent),
    radial-gradient(closest-side at 55% 45%, #545b6d, transparent),
    radial-gradient(closest-side at 75% 65%, #464c5c, transparent);
  pointer-events: none;
}

.split-browser {
  position: relative;
  flex: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.split-browser i {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.split-spinner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: auto 0;
  align-self: center;
}

.split-spinner::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #9aa3b2;
  animation: skySpin 1.6s linear infinite;
}

@keyframes skySpin { to { transform: rotate(360deg); } }

.split-points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.split-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.split-points svg { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* New: bright, sunny, fast. A light page on a dark site on purpose — it is the
   client's page, not ours. */
.split-new {
  background:
    radial-gradient(circle at 85% 0%, rgba(253, 224, 71, 0.55), transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #e6f0ff 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 80px rgba(6, 182, 212, 0.25);
}

.split-new .split-tag { background: #0f172a; color: #fff; }

.split-sun {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(253, 186, 116, 0.35) 0 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent);
  mask: radial-gradient(closest-side, #000 40%, transparent);
  animation: skySpin 40s linear infinite;
  pointer-events: none;
}

.split-new .split-browser {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.split-site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.split-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #0e9f6e);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: skyPulse 2s infinite;
}

.split-call svg { width: 0.8rem; height: 0.8rem; }

@keyframes skyPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.split-site-title {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.split-map {
  position: relative;
  flex: 1;
  min-height: 90px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    #eaf3ea;
  overflow: hidden;
}

.split-map::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(6, 182, 212, 0.7);
  background: rgba(6, 182, 212, 0.12);
}

.split-map svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -85%);
  color: #ef4444;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.split-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
}

.split-stars svg { width: 0.85rem; height: 0.85rem; }
.split-stars span { color: #475569; margin-left: 0.4rem; }

.split-toast {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0f172a;
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  animation: skyToast 4s var(--sky-ease) infinite;
}

.split-toast i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16a34a;
}

.split-toast svg { width: 0.8rem; height: 0.8rem; }
.split-toast small { display: block; font-weight: 500; color: #94a3b8; font-size: 0.65rem; }

@keyframes skyToast {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(0.96); }
  16%, 78% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-8px); }
}

.split-new .split-points { color: #0f172a; }
.split-new .split-points svg { color: #16a34a; }
.split-old .split-points svg { color: #f87171; }

.split-line { display: none; }

/* Wiper — motion mode only. Both panes stack in one cell; the new page is
   clipped from the left edge inward as --wipe runs 0 → 1, so it washes over
   the old one from right to left, and the neon line rides the edge.

   Only where the pinned stage fits in one screen: heading beside the canvas
   needs width, the canvas needs height. A sticky stage taller than the
   viewport hides its own bottom for as long as it is pinned, so phones and
   short laptops get the side-by-side panes instead. js/sky.js adds .pin-off
   when the stage turns out taller than the screen anyway (a larger default
   font, text-spacing overrides), which drops the scene to that same static
   layout. */
@media (min-width: 769px) and (min-height: 700px) {
  .sky-motion .sky-split:not(.pin-off) { padding-top: 1rem; }

  /* The stage is only as tall as its content and pins at --pin-top, which
     js/sky.js sets so the content sits in the middle of the screen. A
     full-screen stage would enter and leave with half a screen of empty sky
     above and below its content — the gap before this section. The spacer
     after it sets how long the wipe lasts: the stage slides down through it
     while pinned and ends flush with the section's bottom. */
  .sky-motion .sky-split:not(.pin-off) .sky-split-stage {
    position: sticky;
    top: var(--pin-top, 5.5rem);
    display: flex;
    align-items: center;
  }

  .sky-motion .sky-split:not(.pin-off)::after {
    content: '';
    display: block;
    height: 110vh;
  }

  /* Heading top-aligned with the canvas rather than centred on it: centred,
     it arrives ~90px after the canvas and reads as a gap under the hero. */
  .sky-motion .sky-split:not(.pin-off) .sky-split-stage > .container {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
  }

  .sky-motion .sky-split:not(.pin-off) .section-header { padding-top: 1.25rem; }

  .sky-motion .sky-split:not(.pin-off) .section-header { text-align: left; margin-bottom: 0; }
  .sky-motion .sky-split:not(.pin-off) .section-header p { margin-left: 0; }

  .sky-motion .sky-split:not(.pin-off) .split-canvas { grid-template-columns: 1fr; }
  .sky-motion .sky-split:not(.pin-off) .split-pane { grid-area: 1 / 1; min-height: min(480px, 68svh); }

  .sky-motion .sky-split:not(.pin-off) .split-new {
    clip-path: inset(0 0 0 calc((1 - var(--wipe, 0)) * 100%) round var(--radius-card));
  }

  .sky-motion .sky-split:not(.pin-off) .split-line {
    display: block;
    grid-area: 1 / 1;
    justify-self: start;
    width: 3px;
    margin-left: calc((1 - var(--wipe, 0)) * 100% - 1.5px);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 24px var(--accent-cyan), 0 0 60px var(--accent-purple);
    opacity: calc(min(var(--wipe, 0), 1 - var(--wipe, 0)) * 12);
    z-index: 2;
    pointer-events: none;
  }

  /* Once the new page has fully covered the old one, take the old one out:
     in forced-colours mode the clip shows through and puts its red crosses on
     every "after" benefit, and a magnifier user could still land on it. */
  .sky-motion .sky-split:not(.pin-off).is-wiped .split-old { visibility: hidden; }
}

@media (forced-colors: active) {
  .sky-motion .sky-split .split-new { background: Canvas; }
}

/* ================================================
   3. ANATOMY — the exploded page
   ================================================ */

.sky-anatomy { padding-bottom: 2rem; }
.sky-anatomy > .container > .section-header { margin-bottom: 1rem; }

.anatomy-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

/* 450px holds the stack fully exploded; any taller is empty sky between the
   section heading and the phone. */
.anatomy-device {
  position: relative;
  height: 450px;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anatomy-stack {
  position: relative;
  width: 230px;
  height: 440px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-36deg) translateZ(-60px);
}

.anatomy-layer {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  transform: translateZ(calc(var(--n) * 62px * var(--explode, 1) + var(--lift, 0px)));
  transition: transform 600ms var(--sky-ease), box-shadow 400ms ease, opacity 400ms ease, border-color 400ms ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  opacity: var(--dim, 1);
}

.anatomy-layer.is-active {
  --lift: 26px;
  --dim: 1;
  border-color: rgba(165, 180, 252, 0.8);
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.5), 0 0 50px rgba(124, 58, 237, 0.55), 0 0 110px rgba(6, 182, 212, 0.35);
}

.anatomy-layer[data-layer="0"] { --n: 0; background: linear-gradient(160deg, #1e2235, #0b0e1a); }
.anatomy-layer[data-layer="1"] { --n: 1; background: rgba(16, 185, 129, 0.12); backdrop-filter: none; }
.anatomy-layer[data-layer="2"] { --n: 2; background: rgba(245, 158, 11, 0.1); }
.anatomy-layer[data-layer="3"] { --n: 3; background: rgba(124, 58, 237, 0.14); }

/* Layer 0 — the phone and its hand-written code. */
.ana-code {
  position: absolute;
  inset: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ana-code i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(165, 180, 252, 0.4);
  width: var(--w, 70%);
  margin-left: var(--x, 0);
}

.ana-code i:nth-child(3n) { background: rgba(6, 182, 212, 0.5); }
.ana-code i:nth-child(4n) { background: rgba(244, 114, 182, 0.45); }

.ana-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 70px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.ana-gauge {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(var(--accent-cyan) calc(var(--gauge, 1) * 360deg), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74%);
  mask: radial-gradient(closest-side, transparent 72%, #000 74%);
}

.ana-bolt {
  position: absolute;
  left: 50%;
  bottom: 71px;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  color: var(--accent-cyan);
}

/* Layer 1 — local search radar. */
.ana-roads {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.16) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 30%, rgba(255, 255, 255, 0.12) 30% 34%, transparent 34%),
    linear-gradient(0deg, transparent 68%, rgba(255, 255, 255, 0.12) 68% 71%, transparent 71%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 23px 23px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 23px 23px;
}

.ana-radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.ana-radar span {
  position: absolute;
  left: -90px;
  top: -90px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.8);
  animation: skyRadar 3s ease-out infinite;
}

.ana-radar span:nth-child(2) { animation-delay: 1s; }
.ana-radar span:nth-child(3) { animation-delay: 2s; }

@keyframes skyRadar {
  from { transform: scale(0.1); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

.ana-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -90%);
  color: #34d399;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.9));
}

/* Layer 2 — trust: stars, photos, license. */
.ana-stars {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #fbbf24;
}

.ana-stars svg { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); }

.ana-photos {
  position: absolute;
  top: 100px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ana-photos i {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ana-shield {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ana-shield svg { width: 16px; height: 16px; }

/* Layer 3 — the call button and the form. */
.ana-form {
  position: absolute;
  top: 60px;
  left: 26px;
  right: 26px;
  display: grid;
  gap: 10px;
}

.ana-form i {
  display: block;
  height: 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ana-form i:last-child { height: 60px; }

.ana-call {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #0e9f6e);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  animation: skyPulse 2s infinite;
}

.ana-call svg { width: 18px; height: 18px; }

.anatomy-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.anatomy-step {
  padding: 1.6rem;
  border-radius: var(--radius-card);
  background: var(--sky-glass);
  border: 1px solid var(--sky-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.anatomy-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.anatomy-step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.anatomy-step p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.anatomy-progress { display: none; }

/* Motion: pin the stage and show one layer / one step at a time — on screens
   tall enough to hold the device and a card together (see the wiper above for
   why a stage must never outgrow the viewport). */
@media (min-height: 660px) {
  /* Content-height stage pinned mid-screen, spacer for the four steps — the
     same arrangement as the wiper above, for the same reason. */
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-stage {
    position: sticky;
    top: var(--pin-top, 5.5rem);
  }

  .sky-motion .anatomy-track:not(.pin-off)::after {
    content: '';
    display: block;
    height: 250vh;
  }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-layer:not(.is-active) { --dim: 0.4; }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-steps {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 320px;
  }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms var(--sky-ease), transform 500ms var(--sky-ease);
    pointer-events: none;
    align-self: center;
  }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step p { font-size: 1.05rem; }

  .sky-motion .anatomy-track:not(.pin-off) .anatomy-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
}

.anatomy-progress i {
  display: block;
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.anatomy-progress i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}

.anatomy-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ================================================
   TILT CARDS — shared by the extras and the trades
   ================================================ */

.tilt-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-card);
  /* No backdrop-filter and no isolation here, unlike the other glass: both
     are grouping properties that flatten preserve-3d, and the icon popping
     out of the card on hover is the point of the card. A denser fill stands
     in for the blur. */
  background: linear-gradient(160deg, rgba(30, 41, 70, 0.82), rgba(15, 23, 42, 0.82));
  border: 1px solid var(--sky-glass-border);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--sky-ease), opacity 600ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tilt-card.is-tracking { transition: transform 120ms linear, opacity 600ms ease, border-color 300ms ease, box-shadow 300ms ease; }

/* main.css's .reveal.visible (0,2,0) sets transform: translateY(0) and would
   wipe the tilt off every revealed card. Restate it one step stronger. */
.tilt-card.reveal.visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Glare that follows the pointer. */
.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.tilt-card:hover::after { opacity: 1; }
.tilt-card:hover { border-color: rgba(255, 255, 255, 0.22); }

.tilt-card h3 { font-size: 1.2rem; margin: 1rem 0 0.6rem; }
.tilt-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Text only lifts off the card while the pointer tilts it. At rest it stays
   flat: translateZ under a perspective rasterises text off the pixel grid,
   which reads as blurry body copy on 1x monitors. */
.tilt-card h3,
.tilt-card p,
.trade-card span:last-child { transition: transform 300ms var(--sky-ease); }
.tilt-card.is-tracking h3 { transform: translateZ(30px); }
.tilt-card.is-tracking p { transform: translateZ(18px); }

.tilt-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--hue, var(--accent-cyan));
  background: color-mix(in srgb, var(--hue, #06b6d4) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hue, #06b6d4) 40%, transparent);
  transform: translateZ(40px);
  transition: transform 500ms var(--sky-ease), box-shadow 500ms ease;
}

.tilt-icon svg { width: 26px; height: 26px; }

.tilt-card:hover .tilt-icon {
  transform: translateZ(90px) scale(1.18) rotate(-6deg);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--hue, #06b6d4) 45%, transparent);
}

/* ================================================
   4. TRADES — cloud cushions that take the trade's colour
   ================================================ */

.sky-trades .section-header { margin-bottom: 2.5rem; }
.sky-trades { overflow-x: clip; }

.trade-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trade-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.4rem 1.25rem 2rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.trade-card .tilt-icon { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 1.1rem; }
.trade-card .tilt-icon svg { width: 34px; height: 34px; }
.trade-card.is-tracking span:last-child { transform: translateZ(30px); }

/* The cushion: a soft cloud under the card that turns the trade's colour. */
.trade-card::before {
  content: '';
  position: absolute;
  /* Within the container's 1.5rem gutter at every breakpoint: wider, the
     outermost cushions pushed the page past the screen edge on tablets. */
  left: -4%;
  right: -4%;
  bottom: -26%;
  height: 70%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 30% 55%, rgba(226, 232, 255, 0.16), transparent),
    radial-gradient(closest-side at 55% 45%, rgba(226, 232, 255, 0.2), transparent),
    radial-gradient(closest-side at 75% 60%, rgba(226, 232, 255, 0.14), transparent);
  transform: translateZ(-40px);
  transition: background 500ms ease, filter 500ms ease;
  filter: blur(6px);
}

.trade-card:hover::before {
  background:
    radial-gradient(closest-side at 30% 55%, color-mix(in srgb, var(--hue) 55%, transparent), transparent),
    radial-gradient(closest-side at 55% 45%, color-mix(in srgb, var(--hue) 70%, transparent), transparent),
    radial-gradient(closest-side at 75% 60%, color-mix(in srgb, var(--hue) 50%, transparent), transparent);
  filter: blur(10px);
}

.trade-card:hover { box-shadow: 0 30px 70px color-mix(in srgb, var(--hue) 22%, transparent); }

.trades-note {
  max-width: 640px;
  margin: 2.25rem auto 0;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.7;
}

.trades-note a { color: var(--accent-cyan); font-weight: 600; }

/* ================================================
   5. FREE MOCKUP — hover-to-scroll device
   ================================================ */

.scroll-device {
  border-radius: 16px;
  overflow: hidden;
  background: #0d1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(124, 58, 237, 0.18);
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform 700ms var(--sky-ease);
}

.scroll-device:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.scroll-viewport {
  height: 360px;
  overflow: hidden;
  position: relative;
}

/* The page is taller than the viewport; hovering slides it up by exactly the
   difference, so it stops on the last section instead of running off. */
.scroll-page {
  transform: translateY(0);
  transition: transform 1.2s var(--sky-ease);
}

.scroll-device:hover .scroll-page,
.scroll-device.is-auto .scroll-page {
  transform: translateY(calc(-100% + 360px));
  transition: transform 7s cubic-bezier(0.45, 0, 0.55, 1);
}

.scroll-device.is-auto .scroll-page { animation: skyAutoScroll 14s ease-in-out infinite; transition: none; }

@keyframes skyAutoScroll {
  0%, 12% { transform: translateY(0); }
  50%, 62% { transform: translateY(calc(-100% + 360px)); }
  100% { transform: translateY(0); }
}

.scroll-section {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scroll-section h4 {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.scroll-map {
  position: relative;
  height: 110px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(16, 185, 129, 0.08);
}

.scroll-map::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(6, 182, 212, 0.7);
  background: rgba(6, 182, 212, 0.1);
}

.scroll-map svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -85%);
  color: #f87171;
}

.scroll-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.scroll-review {
  padding: 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.35rem;
}

.scroll-review .mockup-icon-star { width: 0.5rem; height: 0.5rem; }
.scroll-review .mockup-skeleton { width: 100%; height: 0.3rem; }
.scroll-review .mockup-skeleton + .mockup-skeleton { width: 70%; }

.scroll-trust {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scroll-trust span {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.scroll-callbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gradient-subtle);
}

.scroll-callbar strong { font-size: 0.7rem; }

.scroll-hint {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.scroll-hint-touch { display: none; }
.scroll-hint-static { display: none; }

@media (hover: none) {
  .scroll-hint-mouse { display: none; }
  .scroll-hint-touch { display: inline; }
  /* The self-scroll is started by sky.js; without it a touch screen gets no
     motion at all, so the hint must not promise any. */
  html:not(.sky-motion) .scroll-hint-touch { display: none; }
  html:not(.sky-motion) .scroll-hint-static { display: inline; }
}

/* ================================================
   6. FLIGHT PATH — how it works
   ================================================ */

.flight {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.flight-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  display: none;
}

.flight-ready .flight-svg { display: block; }

.flight-path-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.flight-path {
  fill: none;
  stroke: url(#flight-grad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8));
}

.flight-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.9));
  z-index: 3;
  pointer-events: none;
  display: none;
  will-change: transform;
}

.flight-ready .flight-plane { display: block; }

.flight-steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 3.25rem;
}

.flight-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
}

.flight-dot {
  grid-column: 2;
  justify-self: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-navy);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 500ms var(--sky-ease), background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
  z-index: 2;
}

.flight-card {
  grid-row: 1;
  padding: 1.8rem;
  transition: opacity 600ms var(--sky-ease), transform 600ms var(--sky-ease), filter 600ms ease;
}

.flight-step:nth-child(odd) .flight-card { grid-column: 1; }
.flight-step:nth-child(even) .flight-card { grid-column: 3; }

.flight-card .step-number { margin-bottom: 1rem; }
.flight-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.flight-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.flight-step.is-reached .flight-dot {
  background: var(--accent-cyan);
  border-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.2), 0 0 24px rgba(6, 182, 212, 0.9);
}

/* Motion: a station's card stays faint until the plane lands on it. */
/* Skipped (.no-fade, set by sky.js) when a card is too tall for the screen —
   at high zoom its heading would otherwise stay blurred while it is read. */
.sky-motion .flight-ready:not(.no-fade) .flight-step:not(.is-reached) .flight-card {
  opacity: 0.28;
  transform: translateY(18px) scale(0.98);
  filter: blur(1.5px);
}

/* ================================================
   7. PRICING — simulator
   ================================================ */

.plan-sim {
  margin-top: 2.5rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: center;
}

.plan-sim h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.plan-sim-lead { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Without sky.js the slider would move and change nothing; the static
   12-month chart and note stand on their own, so show only those. */
.plan-sim:not(.sim-ready) .plan-sim-lead,
.plan-sim:not(.sim-ready) input[type="range"],
.plan-sim:not(.sim-ready) .plan-sim-scale { display: none; }

.plan-sim-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.plan-sim-label output {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-sim input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan)) 0 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, 0.1);
  outline: none;
}

.plan-sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.plan-sim input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.plan-sim input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.6); }

.plan-sim-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.plan-sim-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-sim-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
  height: 280px;
}

.sim-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  justify-content: flex-end;
  text-align: center;
}

.sim-bar-wrap {
  position: relative;
  flex: 1;
  padding-top: 2.4rem;
  display: flex;
  align-items: flex-end;
}

.sim-bar {
  position: relative;
  width: 100%;
  height: var(--h, 50%);
  min-height: 8px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, rgba(165, 180, 252, 0.95), rgba(124, 58, 237, 0.55));
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: height 700ms var(--sky-ease);
}

.sim-col[data-plan="buyout"] .sim-bar {
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.95), rgba(6, 182, 212, 0.5));
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sim-value {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.sim-name { margin-top: 0.8rem; font-weight: 800; }

.sim-own {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  /* Room for two lines on both columns, so a wrapped label under one bar
     cannot lift that bar off the shared baseline. */
  min-height: 3.2em;
}

.sim-own.is-yours { color: #4ade80; font-weight: 700; }

.sim-spark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 18px var(--accent-cyan);
  pointer-events: none;
  animation: skySpark 700ms ease-out forwards;
}

@keyframes skySpark {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--sx), var(--sy)) scale(0.2); opacity: 0; }
}

/* ================================================
   8. CONTACT — touchdown
   ================================================ */

.sky-touchdown { padding-top: calc(var(--section-py) + 0.5rem); }
.sky-touchdown::before { display: none; }

.touchdown-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-live);
  flex: 0 0 auto;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sky-live);
  animation: skyLive 2s ease-out infinite;
}

@keyframes skyLive {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(3.2); opacity: 0; }
}

.contact-detail-icon svg { width: 18px; height: 18px; color: var(--accent-cyan); }

.sky-touchdown .contact-form { position: relative; background: rgba(15, 23, 42, 0.88); }

/* A slow ring of light round the form — the "landing pad". */
.sky-touchdown .contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--pad-angle, 0deg), transparent 0 70%, rgba(6, 182, 212, 0.9) 82%, rgba(124, 58, 237, 0.9) 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: skyPad 6s linear infinite;
}

@property --pad-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes skyPad { to { --pad-angle: 360deg; } }

/* ---- Magnetic buttons ----
   sky.js writes --mx/--my while the pointer is near; the lift main.css gives
   .btn-primary on hover is folded into the same transform so neither wins. */
[data-magnetic] {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 500ms var(--sky-ease), box-shadow 0.3s ease, background 0.3s ease;
}

[data-magnetic].is-tracking { transition: transform 100ms linear, box-shadow 0.3s ease; }
.btn-primary[data-magnetic]:hover { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0); }

/* ================================================
   RESPONSIVE
   ================================================ */

/* The toast sits on the last "after" benefit wherever the pane is narrower
   than this; it is decoration, the benefit is the point. */
@media (max-width: 1100px) {
  .split-toast { display: none; }
}

@media (max-width: 1024px) {
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-sim { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .anatomy-stage { grid-template-columns: 1fr; gap: 1rem; }
  .anatomy-device { height: 270px; }
  .anatomy-stack { width: 150px; height: 290px; }
  .ana-code { inset: 26px 16px; gap: 7px; }
  .ana-stars svg { width: 16px; height: 16px; }
  .ana-photos { top: 76px; left: 16px; right: 16px; }
  .ana-shield { font-size: 10px; padding: 6px 10px; bottom: 30px; }
  .ana-call { font-size: 12px; padding: 10px 18px; bottom: 32px; }
  .ana-form { top: 44px; left: 18px; right: 18px; }
  .ana-gauge { width: 70px; height: 70px; bottom: 28px; }
  .ana-bolt { bottom: 51px; width: 24px; height: 24px; }
  .anatomy-layer { transform: translateZ(calc(var(--n) * 44px * var(--explode, 1) + var(--lift, 0px))); }
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-stage { align-content: center; }
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-steps { min-height: 0; }
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step { padding: 1.25rem; }
  .sky-motion .anatomy-track:not(.pin-off) .anatomy-step p { font-size: 0.92rem; }
}

@media (max-width: 768px) {
  .sky-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; text-align: center; }
  .sky-hero-visual { order: -1; --lw: min(58vw, 280px); --yaw: -10deg; min-height: calc(var(--lw) * 1.02); }
  .sky-hero .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 1rem; }
  .sky-hero .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .sky-hero .hero-badge { margin-bottom: 1rem; }
  .sky-hero-kicker { font-size: 0.95rem; margin-bottom: 0.7rem; }
  .sky-hero .hero-buttons { gap: 0.6rem; }
  .sky-hero .hero-buttons .btn { padding: 0.75rem 1.15rem; font-size: 0.9rem; }
  .sky-hero-visual .hero-floating-badge,
  .sky-hero-visual .hero-floating-badge-2 { display: none; }
  .sky-hero .hero-subtitle { margin-left: auto; margin-right: auto; }
  .sky-hero .hero-buttons { justify-content: center; }
  .sky-stage { padding: 4.75rem 0 2rem; }

  .split-canvas { grid-template-columns: 1fr; }
  .split-pane { min-height: 360px; }

  .anatomy-steps,
  .anatomy-extra { grid-template-columns: 1fr; }

  .flight-step { grid-template-columns: 44px 1fr; }
  .flight-dot { grid-column: 1; }
  .flight-step:nth-child(odd) .flight-card,
  .flight-step:nth-child(even) .flight-card { grid-column: 2; }
  .flight-steps { gap: 2.5rem; }

  .scroll-viewport { height: 300px; }
  .scroll-device:hover .scroll-page { transform: translateY(calc(-100% + 300px)); }
  @keyframes skyAutoScroll {
    0%, 12% { transform: translateY(0); }
    50%, 62% { transform: translateY(calc(-100% + 300px)); }
    100% { transform: translateY(0); }
  }
  .scroll-device { transform: none; }

  .plan-sim { padding: 1.5rem; }
  .plan-sim-chart { height: 220px; }
}

/* Short phones: the hero stage has to hold the laptop and the copy in one
   screen, so everything shrinks a step. The badge shrinks but never goes: it
   carries "typically", the qualifier the Terms give the 3-5 day estimate. */
@media (max-width: 768px) and (max-height: 760px) {
  .sky-motion .sky-hero .hero-badge { font-size: 0.7rem; padding: 0.28rem 0.7rem; margin-bottom: 0.45rem; }
  /* vh first: svh inside a custom property has no fallback of its own, and
     a browser without svh would collapse the laptop to nothing. */
  .sky-motion .sky-hero-visual { --lw: min(44vw, 25vh); }
  @supports (height: 1svh) {
    .sky-motion .sky-hero-visual { --lw: min(44vw, 25svh); }
  }
  .sky-motion .sky-hero .sky-stage { padding-top: 3.9rem; padding-bottom: 1rem; }
  /* Both buttons on one row: the second row alone is ~60px a short phone
     does not have. */
  .sky-motion .sky-hero .hero-buttons { flex-wrap: nowrap; gap: 0.5rem; }
  .sky-motion .sky-hero .hero-buttons .btn { padding: 0.7rem 0.9rem; font-size: 0.84rem; white-space: nowrap; }
  .sky-motion .sky-hero .hero-subtitle { font-size: 0.92rem; margin-bottom: 0.9rem; }
  .sky-motion .sky-hero-kicker { font-size: 0.88rem; margin-bottom: 0.5rem; }
  .sky-motion .sky-hero .hero-title { font-size: clamp(1.8rem, 8vw, 2.2rem); margin-bottom: 0.7rem; }
}

/* 320px phones: two nowrap buttons need ~350px, so they stack below that. */
@media (max-width: 351px) {
  .sky-motion .sky-hero .hero-buttons { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .plan-sim-label { flex-wrap: wrap; gap: 0.2rem 0.75rem; }
  .plan-sim-label output { white-space: nowrap; font-size: 1.35rem; }
}

/* Short desktop and laptop windows (1366x768 screens leave ~650px): tighten
   the landed hero so the buttons are on screen while it is pinned. */
@media (min-width: 769px) and (max-height: 720px) {
  .sky-motion .sky-hero .sky-stage { padding-top: 5.25rem; padding-bottom: 1rem; }
  .sky-hero .hero-title { font-size: clamp(2.3rem, 4.6vw, 3.3rem); margin-bottom: 0.9rem; }
  .sky-hero .hero-subtitle { margin-bottom: 1.4rem; }
  .sky-hero .hero-badge { margin-bottom: 0.9rem; }
  .sky-hero-kicker { margin-bottom: 0.6rem; }
  .sky-hero-visual { --lw: clamp(260px, 27vw, 400px); }
}

/* Landscape phones and very short windows: no room for a pinned hero at all.
   The hero becomes an ordinary section showing its landed frame (sky.js
   holds its progress at 1 under the same query). */
@media (max-height: 500px) {
  .sky-motion .sky-hero { height: auto; }
  .sky-motion .sky-hero .sky-stage { position: relative; }
  .sky-motion .sky-intro,
  .sky-motion .sky-fog { display: none; }
}

@media (max-width: 480px) {
  .trade-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .trade-card { padding: 1.8rem 0.75rem 1.5rem; font-size: 0.98rem; }
  .sky-hero .hero-buttons .btn { padding: 0.8rem 1.4rem; }
  .split-pane { padding: 1.1rem; }
  .split-toast { display: none; }
}

/* "Pause animations" (footer button, js/sky.js): stops every looping
   decoration where it stands. Scroll-driven motion stays — the visitor is the
   one moving it. */
.sky-paused *,
.sky-paused *::before,
.sky-paused *::after { animation-play-state: paused !important; }

.motion-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.motion-toggle:hover,
.motion-toggle:focus-visible { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-mouse,
  .scroll-hint-touch { display: none; }
  .scroll-hint-static { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-neon,
  .sky-scroll-cue::after,
  .split-rain,
  .split-sun,
  .split-spinner::before,
  .split-call,
  .split-toast,
  .ana-radar span,
  .ana-call,
  .live-dot::after,
  .sky-touchdown .contact-form::before { animation: none; }
  .split-toast { opacity: 1; }
  .scroll-page,
  .scroll-device,
  .tilt-card,
  .tilt-icon,
  .sim-bar,
  .laptop-rig { transition: none; }
  .scroll-device:hover .scroll-page { transform: none; }
  .tilt-card:hover .tilt-icon { transform: translateZ(40px); }
}
