/* ============================================
   NEXTUP Web Design — style.css
   Dark navy + ice blue, Inter, Framer-style motion
   ============================================ */

:root {
  --bg: #010513;
  --bg-soft: #030a1e;
  --panel: rgba(10, 18, 40, 0.55);
  --panel-solid: #060d22;
  --border: rgba(150, 180, 255, 0.12);
  --border-strong: rgba(150, 180, 255, 0.22);
  --text: #e9f1ff;
  --ice: #cfeaff;
  --muted: #8d9ab5;
  --muted-2: #5f6c88;
  --blue: #2b52ec;
  --blue-bright: #3f6bff;
  --blue-glow: rgba(45, 85, 235, 0.58);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Announcement bar ---------- */

.announce {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #1b39cf, #2f54ef 50%, #1b39cf);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 11px 48px;
}

.announce.is-hidden { display: none; }

.announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 6px;
  opacity: 0.9;
}
.announce-close:hover { opacity: 1; }

/* ---------- Nav ---------- */

.nav {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav-logo img { height: 68px; width: auto; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  /* dead-centre in the header regardless of logo / CTA widths */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Borrow-style feel: ease-OUT curves so the movement starts the instant you
   hover (a slow-start curve reads as lag even at short durations) */
.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: #163fc4;
  box-shadow: 0 0 6px rgba(22, 63, 196, 0.5);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Mobile menu (hamburger) ---------- */

/* hidden on desktop; the ≤960px block swaps it in for the header CTA */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 22, 48, 0.6);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ice);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}
/* morph into an ✕ while the panel is open */
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(6, 11, 28, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(46, 98, 255, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0s linear 0.26s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mobile-menu a:not(.btn) {
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.mobile-menu a:not(.btn):active { background: rgba(46, 98, 255, 0.14); }
.mobile-menu a.is-active { color: #fff; background: rgba(46, 98, 255, 0.12); }
.mobile-menu .btn { margin-top: 8px; width: 100%; padding: 13px; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  /* fast, compositor-friendly transitions only (transform + shadow) */
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* static top sheen — depth without any running animation (paints once) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

/* hover shine: sweeps once on hover, transform-based so it stays on the GPU.
   Idle off-screen with no animation, so it never touches the main thread until hover. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: translateX(-190%) skewX(-16deg);
  pointer-events: none;
}
.btn:hover::after { animation: btn-shine 0.55s ease; }

@keyframes btn-shine {
  from { transform: translateX(-190%) skewX(-16deg); }
  to   { transform: translateX(230%)  skewX(-16deg); }
}

.btn-primary {
  --btn-beam: rgba(255, 255, 255, 0.9);
  /* solid fill first so the button is NEVER transparent, even if the compositor
     drops the gradient image layer for a frame over the animated starfield */
  background-color: #2b52ec;
  background-image: linear-gradient(180deg, #3a63f2, #1b3fd8);
  color: #fff;
  box-shadow: 0 6px 22px rgba(43, 79, 224, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background-color: #3560f5;
  background-image: linear-gradient(180deg, #4a72ff, #2650ee);
  box-shadow: 0 8px 32px rgba(50, 90, 240, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-ghost {
  --btn-beam: rgba(180, 205, 255, 0.5);
  background: rgba(13, 22, 48, 0.6);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(160, 195, 255, 0.4);
  background: rgba(20, 32, 66, 0.7);
}

/* Scale-system pillar link — modern frosted-glass secondary button.
   Brighter/cleaner than .btn-ghost (which stays the dull navy for other CTAs).
   Uppercase tracked label reads as a deliberate style, not lazy sentence case. */
.btn-explore {
  --btn-beam: rgba(200, 220, 255, 0.6);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #eaf1ff;
  border-color: rgba(200, 220, 255, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-explore .btn-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-explore:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 165, 255, 0.55);
  color: #fff;
  box-shadow: 0 8px 26px rgba(43, 79, 224, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-explore:hover .btn-arrow { transform: translateX(4px); }

.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 46px;
  overflow: hidden;
}

/* nav sits inside the same starfield, so pull canvas behind both */
.hero-canvas,
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: clamp(33px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--ice);
  text-shadow: 0 0 60px rgba(63, 125, 255, 0.25);
  max-width: 1040px;
  margin-inline: auto;
  text-wrap: balance;
}

/* line break that only applies once there's room for two lines */
.br-lg { display: none; }
@media (min-width: 760px) { .br-lg { display: block; } }

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* page wrapper that holds hero + logos + video over one starfield */
.hero-zone {
  position: relative;
  background:
    radial-gradient(1100px 500px at 50% -80px, rgba(46, 98, 255, 0.16), transparent 65%),
    linear-gradient(180deg, #02071a 0%, var(--bg) 55%);
}

/* Location-page header photo: set --loc-photo inline on the .hero-zone.
   e.g. <div class="hero-zone has-photo" style="--loc-photo:url('assets/img/loc-toowoomba.jpg')">
   A dark brand gradient sits over the aerial shot so the headline stays readable,
   and the starfield canvas is dimmed so it blends with the photo instead of fighting it. */
/* Photo header uses a real <img> layer so the relative path resolves against the
   HTML document - works both on a server and when opened straight off disk (file://). */
.hero-zone.has-photo { background: linear-gradient(180deg, #02071a 0%, var(--bg) 55%); }
.hero-zone.has-photo .loc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-zone.has-photo .loc-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 5, 19, 0.52) 0%, rgba(1, 5, 19, 0.68) 52%, var(--bg) 100%);
}
.hero-zone.has-photo #hero-canvas { opacity: 0.35; }
/* keep nav + heading above the photo layers regardless of stacking */
.hero-zone.has-photo .nav,
.hero-zone.has-photo .page-head { position: relative; z-index: 2; }
/* give the photo header more room to breathe above and below the text */
.hero-zone.has-photo .page-head { padding: 34px 0 92px; }
.page-head .hero-ctas { margin-top: 32px; justify-content: center; }
@media (max-width: 560px) {
  .hero-zone.has-photo .page-head { padding: 24px 0 64px; }
  .page-head .hero-ctas { margin-top: 26px; }
}

/* Service/location page bits */
.pillar-body .btn { margin-top: 26px; }
.svc-quote {
  max-width: 680px;
  margin: 52px auto 0;
  text-align: center;
  padding: 40px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 22, 48, 0.45);
}
.svc-quote-stars { color: #f0b23e; letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.svc-quote blockquote {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ice);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.svc-quote figcaption { display: inline-flex; align-items: center; gap: 12px; }
.svc-quote figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.svc-quote figcaption span { display: flex; flex-direction: column; text-align: left; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.svc-quote figcaption b { color: var(--text); font-weight: 600; font-size: 14.5px; }
@media (max-width: 560px) { .svc-quote { padding: 30px 22px; margin-top: 40px; } }
.svc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 46px auto 0;
}
.svc-stat {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(46, 98, 255, 0.1), transparent 70%),
    rgba(13, 22, 48, 0.5);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.svc-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 165, 255, 0.6), transparent);
}
.svc-stat:hover { transform: translateY(-3px); border-color: rgba(120, 165, 255, 0.28); }
.svc-stat b {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #eaf1ff, #7ea6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.svc-stat span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .svc-stats { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .svc-stat { padding: 20px 16px; }
  .svc-stat b { font-size: 26px; }
}

/* Subpage header zones (those with a .page-head) get a soft bottom fade so the
   starfield dissolves into the content instead of ending on a hard line.
   Scoped via :has() so the home/contact hero zones are left untouched. */
.hero-zone:has(.page-head)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

/* ---------- Logo marquee ---------- */

.logos {
  position: relative;
  z-index: 2;
  padding: 22px 0 6px;
}

.marquee {
  overflow: hidden;
  /* narrower band so logos emerge and dissolve rather than spanning the screen */
  max-width: 820px;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
}

.marquee-track {
  --marq-gap: 64px;
  display: flex;
  align-items: center;
  gap: var(--marq-gap);
  width: max-content;
  animation: marquee-x 38s linear infinite;
}

.marquee-track img {
  height: 40px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.6);
}

/* -50% lands half a gap short of one full set, so nudge by half the gap
   to make the loop seam invisible */
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--marq-gap) / 2)); }
}

/* ---------- Mac-style window frame (media chrome) ---------- */

.macwin {
  position: relative;
  width: 100%;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: rgba(9, 15, 33, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(46, 98, 255, 0.12);
}
.macwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px;
  background: linear-gradient(180deg, rgba(23, 31, 56, 0.96), rgba(12, 18, 38, 0.96));
  border-bottom: 1px solid var(--border);
}
.macwin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.macwin-dot:nth-child(1) { background: #ff5f57; }
.macwin-dot:nth-child(2) { background: #febc2e; }
.macwin-dot:nth-child(3) { background: #28c840; }
.macwin-body { position: relative; line-height: 0; }

/* hero VSL keeps its original centred width */
.watch .macwin { max-width: 760px; }

/* neutralise the inner media's own frame — the window supplies it now */
.macwin .video-facade,
.macwin .vt-card,
.macwin .about-photo,
.macwin .photo-slot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  line-height: normal;
}

/* ---------- Watch-first video ---------- */

.watch {
  position: relative;
  z-index: 2;
  padding: 44px 0 86px;
}

.video-facade {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 760px;
  margin-inline: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.35s ease;
}
.video-facade:hover img { transform: scale(1.04); filter: brightness(0.78); }

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 5, 19, 0.65));
}

.video-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(233, 241, 255, 0.9);
}

.play-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 16, 34, 0.45);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
/* triangle sits optically centred in the circle (no over-nudge to the right) */
.play-btn svg { fill: #fff; margin-left: 1px; }
.video-facade .play-btn { transition: transform 0.3s ease, background 0.3s ease; }
.video-facade:hover .play-btn { transform: scale(1.08); background: rgba(10, 16, 34, 0.65); }

.video-caption {
  position: absolute;
  left: 20px;
  bottom: 40px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.video-caption .vc-badge {
  display: inline-block;
  background: var(--blue);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 11px;
}

/* glow divider under hero zone */
.glow-divider {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(63, 125, 255, 0.9), transparent);
  box-shadow: 0 0 42px 6px rgba(46, 98, 255, 0.45);
}

/* ---------- Sections shared ---------- */

.section { padding: 110px 0; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(12, 20, 44, 0.5);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  background: linear-gradient(180deg, #f4f8ff 30%, #93a3c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Projects carousel ---------- */

.carousel {
  overflow: hidden;
  max-width: 1120px;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carousel-track {
  --marq-gap: 22px;
  display: flex;
  gap: var(--marq-gap);
  width: max-content;
  /* compositor-driven animation: stays smooth even when the main thread is busy */
  animation: marquee-x 26s linear infinite;
}

.project-card {
  position: relative;
  width: 300px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
}
/* no hover reaction — cards just slide */

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 5, 19, 0.15), transparent 35%, rgba(1, 5, 19, 0.92) 82%);
}

.project-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
}

.project-meta h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.project-meta p {
  font-size: 13.5px;
  color: rgba(210, 222, 245, 0.85);
  margin-top: 4px;
  line-height: 1.45;
}

.project-tags {
  display: flex;
  width: 100%;
  margin-top: 13px;
  font-size: 10.5px;
  letter-spacing: -0.005em;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(210, 224, 250, 0.16);
  color: rgba(224, 233, 250, 0.88);
  backdrop-filter: blur(4px);
}

.project-tags span {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(216, 228, 252, 0.1);
  padding: 5px 7px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-tags span + span {
  border-left: 1px solid rgba(210, 224, 250, 0.14);
}

/* ---------- Tagline ---------- */

.tagline { padding: 40px 0 110px; }

.tagline p {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
}

.tagline p span { color: var(--muted-2); }

/* ---------- Pain points ("Sound familiar?") ----------
   Interactive: four tabs drive a big stage showing realistic mockups of the
   "old way" (spreadsheet, inbox, phone, Google results). Light-themed scenes
   are dimmed slightly so they sit comfortably on the dark site. */

.pains-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: center;
}

.pains-tabs { display: flex; flex-direction: column; gap: 12px; }

.pains-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 22, 44, 0.45), rgba(6, 10, 26, 0.45));
  color: inherit;
  transition: border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.6;
}
.pains-tab:hover { opacity: 0.85; }
.pains-tab.is-active {
  opacity: 1;
  border-color: rgba(120, 160, 255, 0.4);
  box-shadow: 0 0 24px rgba(46, 98, 255, 0.16);
}

/* autoplay progress bar along the bottom of the active tab */
.pains-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-bright), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}
/* the bar only ever runs on the active tab while the cycle is playing, and is
   restarted deterministically by JS (toggling .is-playing) so it's consistent */
.pains-tab.is-active.is-playing::after { animation: pain-progress 5.2s linear forwards; }
@keyframes pain-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pains-tab-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(160, 175, 205, 0.2);
  background: rgba(24, 32, 56, 0.55);
  display: grid;
  place-items: center;
}
.pains-tab-icon svg { stroke: #8d9ab5; }
.pains-tab.is-active .pains-tab-icon { border-color: rgba(120, 160, 255, 0.45); }
.pains-tab.is-active .pains-tab-icon svg { stroke: var(--ice); }

.pains-tab-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pains-tab-copy b { font-size: 15px; font-weight: 600; }
.pains-tab-copy span { font-size: 12.5px; color: var(--muted); }

.pains-scenes { position: relative; min-height: 400px; line-height: 1.45; }

.pain-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(180deg, #0a1330, #060c22);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.pain-scene.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* scene 1: google-sheets-style spreadsheet */
.sheet {
  width: 100%;
  max-width: 470px;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f7f9;
  color: #3c4043;
  font-size: 11px;
  filter: brightness(0.93);
  box-shadow: 0 18px 50px rgba(1, 5, 19, 0.6);
}
.sheet-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; }
.sheet-logo { width: 15px; height: 15px; border-radius: 3px; background: #188038; }
.sheet-name { font-weight: 500; }
.sheet-star { margin-left: auto; color: #9aa0a6; }
.sheet-toolbar { display: flex; gap: 6px; padding: 6px 12px; background: #edf0f2; }
.sheet-toolbar i { width: 16px; height: 8px; border-radius: 3px; background: #c6cbd1; }
.sheet-toolbar i.gap { background: none; width: 10px; }
.sheet-grid { background: #fff; }
.sheet-row { display: grid; grid-template-columns: 26px 1fr 1.4fr 0.9fr 0.9fr; }
.sheet-row span {
  padding: 6px 8px;
  border-right: 1px solid #e0e3e7;
  border-bottom: 1px solid #e0e3e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-row.head span, .sheet-row span:first-child { background: #f1f3f4; color: #5f6368; font-weight: 500; text-align: center; }
.sheet-row span.err { color: #d93025; font-weight: 600; }
.sheet-row span.warn { background: #fef7e0; color: #b06000; font-weight: 600; }
.sheet-tabs { display: flex; gap: 2px; padding: 5px 10px 7px; background: #edf0f2; color: #5f6368; }
.sheet-tabs span { padding: 3px 12px; border-radius: 6px 6px 0 0; }
.sheet-tabs span.on { background: #fff; color: #188038; font-weight: 600; }

/* scene 2: flooded inbox */
.mailbox {
  width: 100%;
  max-width: 470px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #3c4043;
  font-size: 11px;
  filter: brightness(0.93);
  box-shadow: 0 18px 50px rgba(1, 5, 19, 0.6);
}
.mail-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f1f3f4; }
.mail-logo { width: 15px; height: 12px; border-radius: 2px; background: #d93025; }
.mail-search { flex: 1; padding: 5px 12px; border-radius: 999px; background: #fff; color: #9aa0a6; }
.mail-count { font-weight: 600; color: #5f6368; }
.mail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eceff1;
  color: #5f6368;
}
.mail-row b { flex-shrink: 0; width: 96px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row time { flex-shrink: 0; font-size: 10px; }
.mail-row.unread { background: #f2f6fc; color: #202124; }
.mail-row.unread b { font-weight: 700; }
.mail-row.old { opacity: 0.55; }
.mail-row.old time { color: #d93025; font-weight: 600; }

/* scene 3: phone with missed calls */
.phone {
  width: 250px;
  border-radius: 26px;
  border: 1px solid rgba(160, 180, 220, 0.25);
  background: #101317;
  color: #e8eaed;
  font-size: 11.5px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 50px rgba(1, 5, 19, 0.6);
}
.phone-head { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.call-name { display: flex; flex-direction: column; gap: 1px; font-weight: 500; }
.call-name em { font-style: normal; font-size: 10px; color: #9aa0a6; }
.call-row time { font-size: 10px; color: #9aa0a6; }
.call-row.missed .call-name { color: #ff6b60; }
.phone-sms {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.phone-sms b { display: block; margin-bottom: 2px; }
.phone-sms span { color: #bdc1c6; }

/* scene 4: google results page */
.serp {
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #202124;
  font-size: 11px;
  padding: 14px 18px 16px;
  filter: brightness(0.93);
  box-shadow: 0 18px 50px rgba(1, 5, 19, 0.6);
}
.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  margin-bottom: 14px;
}
.serp-g { font-weight: 700; color: #4285f4; font-size: 14px; }
.serp-q { color: #202124; }
.serp-res { padding: 8px 0; }
.serp-res em { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: #202124; }
.serp-res b { display: block; color: #1a0dab; font-weight: 500; font-size: 12.5px; }
.serp-res span { color: #006621; font-size: 10.5px; }
.serp-you {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px dashed #c6cbd1;
  border-radius: 8px;
  color: #9aa0a6;
  text-align: center;
}

/* ---------- Process: scroll-driven sticky steps ---------- */

/* Short scroll runway: ~one gentle swipe per step. No scroll snapping — the
   old proximity-snap markers kept arresting the page mid-swipe, which was the
   "takes several slides to get through" jitter. Scrolling is free; the step
   change itself is animated (rail fill + dots glide via CSS transitions). */
.process-scroll { position: relative; height: 200vh; }

.process-sticky {
  position: sticky;
  top: clamp(60px, 14vh, 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: 56px;
  row-gap: 8px;
  align-items: start;
}

.process-rail {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 2px;
  justify-self: start;
  align-self: stretch;
  background: rgba(150, 180, 255, 0.14);
  border-radius: 2px;
  position: relative;
  /* no overflow:hidden — the step dots sit on top of the rail and overhang it */
}
.process-rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  box-shadow: 0 0 12px var(--blue-glow);
  transform: scaleY(0);
  transform-origin: top;
  /* one smooth glide per step (JS sets scaleY once per step change) */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* step dots: one per step, centred on the rail; light up as the fill reaches them */
.process-dot {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(150, 180, 255, 0.35);
  background: #0a1330;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-dot:nth-of-type(2) { top: 16.67%; }
.process-dot:nth-of-type(3) { top: 50%; }
.process-dot:nth-of-type(4) { top: 83.33%; }
.process-dot.is-on {
  background: linear-gradient(180deg, #3f7dff, #2451e6);
  border-color: rgba(160, 195, 255, 0.7);
  box-shadow: 0 0 14px rgba(46, 98, 255, 0.65);
}

.pstep-text {
  grid-column: 1;
  padding: 26px 0 26px 36px;
  opacity: 0.38;
  transition: opacity 0.35s ease;
}
/* explicit rows: the rail already occupies col 1 rows 1-3, and auto-placement
   would otherwise push the texts below it (child 1 = rail, 2-4 = texts) */
.pstep-text:nth-child(2) { grid-row: 1; }
.pstep-text:nth-child(3) { grid-row: 2; }
.pstep-text:nth-child(4) { grid-row: 3; }
.pstep-text.is-active { opacity: 1; }

.pstep-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 34, 72, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pstep-text.is-active .pstep-num {
  color: var(--ice);
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 0 22px rgba(46, 98, 255, 0.35);
}

.pstep-text h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.pstep-text p { font-size: 15px; color: var(--muted); max-width: 400px; }

.pstep-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.pstep-visual.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Process step mockups (pure CSS fake UI) ---------- */

.mock {
  background: linear-gradient(180deg, #0a1330, #060c22);
  padding: 26px;
  min-height: 330px;
  font-size: 11px;
  line-height: 1.45; /* .macwin-body zeroes line-height for media; text needs it back */
}

.mock-line {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(233, 241, 255, 0.85), rgba(233, 241, 255, 0.35));
}
.mock-line.lg { width: 72%; height: 16px; }
.mock-line.md { width: 52%; }
.mock-line.sm { width: 34%; height: 8px; background: rgba(141, 154, 181, 0.5); }

/* step 1: website */
.mock-site { position: relative; display: flex; flex-direction: column; gap: 20px; }

.mock-nav { display: flex; align-items: center; gap: 14px; }
.mock-logo { width: 54px; height: 12px; border-radius: 6px; background: var(--blue-bright); }
.mock-navlinks { display: flex; gap: 8px; margin-inline: auto; }
.mock-navlinks i { width: 30px; height: 7px; border-radius: 4px; background: rgba(141, 154, 181, 0.45); }
.mock-cta-sm { width: 58px; height: 18px; border-radius: 6px; background: rgba(63, 125, 255, 0.5); }

.mock-hero { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.mock-btn {
  margin-top: 6px;
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3f7dff, #2451e6);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  box-shadow: 0 4px 16px rgba(46, 98, 255, 0.45);
}

.mock-cards { display: flex; gap: 12px; }
.mock-cards i {
  flex: 1;
  height: 58px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20, 30, 60, 0.5);
}

.mock-toast {
  position: absolute;
  right: -6px;
  bottom: 44px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.4);
  background: rgba(13, 24, 54, 0.95);
  color: var(--ice);
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(1, 5, 19, 0.7), 0 0 18px rgba(46, 98, 255, 0.25);
}

/* step 2: dashboard */
.mock-dash { display: flex; gap: 16px; }

.mock-side { display: flex; flex-direction: column; gap: 10px; width: 44px; }
.mock-side i { height: 9px; border-radius: 5px; background: rgba(141, 154, 181, 0.4); }
.mock-side i:first-child { background: var(--blue-bright); }

.mock-main { flex: 1; }
/* minmax(0,1fr): plain 1fr can't shrink below the nowrap leads' content width,
   which pushed this grid past the viewport on phones */
.mock-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 22, 46, 0.55);
  min-height: 190px;
}
.mock-col b {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mock-lead {
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(24, 36, 70, 0.6);
  color: var(--ice);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-lead.hot { border-color: rgba(120, 160, 255, 0.45); box-shadow: 0 0 14px rgba(46, 98, 255, 0.25); }
.mock-lead.win { border-color: rgba(90, 210, 140, 0.4); color: #a9edc4; }

/* step 3: ads */
.mock-ads { display: flex; flex-direction: column; gap: 18px; }

.mock-ad { display: flex; align-items: center; gap: 14px; }
.mock-ad-img {
  width: 84px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(46, 98, 255, 0.4), rgba(20, 30, 60, 0.6));
}
.mock-ad-copy { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats > div {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 22, 46, 0.55);
  text-align: center;
}
.mock-stats b { display: block; font-size: 17px; color: var(--ice); }
.mock-stats span { font-size: 10px; color: var(--muted); }

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  padding: 10px 12px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 22, 46, 0.4);
}
.mock-bars i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--blue-bright), rgba(46, 98, 255, 0.25));
}

/* ---------- Proof / testimonials ---------- */

.vt-row {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.vt-wrap { margin: 0; }

.vt-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  cursor: pointer;
}

.vt-caption { margin-top: 14px; }
.vt-caption strong { display: block; font-size: 15px; font-weight: 600; }
.vt-caption span { font-size: 13px; color: var(--muted); }

.vt-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* both are GPU-composited so the hover stays smooth (no gradient tween = no jank) */
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.35s ease;
}
.vt-card:hover img { transform: scale(1.05); filter: brightness(0.72); }

.vt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(1, 5, 19, 0.85));
}

/* dead-centre in the thumbnail (was pinned bottom-right before) */
.vt-card .play-btn {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.vt-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: rgba(10, 16, 34, 0.65); }

/* quote columns */
.quote-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.quote-col { overflow: hidden; }

.quote-col-track {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: marquee-y 30s linear infinite;
}
.quote-col:nth-child(2) .quote-col-track { animation-duration: 38s; }
.quote-col:nth-child(3) .quote-col-track { animation-duration: 34s; }

@keyframes marquee-y {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.quote-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.45), rgba(6, 12, 30, 0.45));
  padding: 26px;
}

.quote-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.quote-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

.quote-card p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(9, 16, 36, 0.5);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: rgba(120, 160, 255, 0.3); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 22px 24px;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
/* Full-bleed section: a network/"web" of dots spans the whole width, with the
   dots nearest the cursor lighting up and threading lines back to it — a nod
   to what NEXTUP actually builds. Canvas-driven (js/cta-web.js); static (no
   cursor tracking) on touch devices and prefers-reduced-motion. */

.cta {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }
.cta-inner .chip { margin-bottom: 20px; }
.cta-inner h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.cta-inner .section-sub { margin-top: 16px; }
.cta-inner .btn { margin-top: 34px; }

/* ---------- Video lightbox ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 5vh 20px;
  background: rgba(2, 8, 26, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.video-modal.is-open { opacity: 1; visibility: visible; }

.video-modal-close {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 22, 48, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.video-modal-close:hover {
  background: rgba(46, 98, 255, 0.4);
  border-color: rgba(120, 160, 255, 0.6);
  transform: scale(1.08);
}

.video-modal-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.video-modal-frame.is-vertical {
  height: min(74vh, 840px);
  aspect-ratio: 9 / 16;
  max-width: 94vw;
}
.video-modal-frame.is-horizontal {
  width: min(94vw, 1040px);
  aspect-ratio: 16 / 9;
  max-height: 74vh;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 48px;
  background: #01040f;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: var(--muted-2); }

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }

.subscribe-form { display: flex; gap: 10px; }

.subscribe-form input {
  background: rgba(12, 20, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  width: 210px;
}
.subscribe-form input::placeholder { color: var(--muted-2); }
.subscribe-form input:focus { outline: none; border-color: rgba(120, 160, 255, 0.4); }

.subscribe-thanks { font-size: 14px; color: var(--ice); }

/* ---------- Contact page ---------- */

.contact-hero {
  position: relative;
  padding: 90px 0 120px;
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--ice);
  margin-bottom: 34px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}
/* slide the CONTENT with a transform, not padding — padding animates on the
   main thread (relayout every frame = the stutter); transforms stay on the GPU */
.contact-card .cc-ico,
.contact-card .cc-text {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
a.contact-card:hover .cc-ico,
a.contact-card:hover .cc-text { transform: translateX(9px); }
a.contact-card:hover .cc-text strong { color: var(--ice); }
.contact-card .cc-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--blue-bright);
}
.contact-card .cc-text { display: flex; flex-direction: column; }
.contact-card .cc-text strong { font-size: 16px; font-weight: 600; color: var(--text); transition: color 0.1s ease; }
.contact-card .cc-text span { font-size: 13px; color: var(--muted); margin-top: 2px; }

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.55), rgba(6, 12, 30, 0.55));
  padding: 36px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  background: rgba(6, 12, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
}
.form-field input::placeholder { color: var(--muted-2); }
.form-field input:focus { outline: none; border-color: rgba(120, 160, 255, 0.45); }

.contact-form-card .btn { width: 100%; margin-top: 6px; }

.form-thanks { text-align: center; padding: 40px 10px; }
.form-thanks h3 { font-size: 22px; color: var(--ice); margin-bottom: 10px; }
.form-thanks p { color: var(--muted); font-size: 15px; }

/* ---------- Contact wizard (multi-step, front-end only) ---------- */

.wizard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* solid base so the card never flashes transparent over the animated starfield;
     the subtle gradient sits on top for depth */
  background-color: #0a1430;
  background-image: linear-gradient(180deg, rgba(14, 24, 52, 0.86), rgba(6, 12, 30, 0.88));
  padding: 32px 34px 26px;
}

.wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.wiz-chip { margin-bottom: 0; }
.wiz-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  white-space: nowrap;
}
.wiz-counter b { color: var(--ice); }

.wiz-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(150, 180, 255, 0.12);
  overflow: hidden;
  margin-bottom: 30px;
}
.wiz-progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2451e6, #3f7dff);
  box-shadow: 0 0 14px rgba(63, 125, 255, 0.6);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.1, 1);
}

/* one step visible at a time */
.wiz-body { position: relative; }
.wiz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz-step.is-active {
  display: block;
  animation: wiz-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wiz-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.wiz-q { margin-bottom: 22px; }
.wiz-q-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
}
.wiz-q h3 {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ice);
}
.wiz-accent {
  background: linear-gradient(90deg, #6f9dff, #3f7dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wiz-q-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* option cards */
.wiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wiz-options--stack { grid-template-columns: 1fr; }
.wiz-opt--full { grid-column: 1 / -1; }

.wiz-opt { display: block; cursor: pointer; }
.wiz-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.wiz-opt-box {
  position: relative;
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 28, 0.5);
  padding: 16px 40px 15px 16px;
  transition: border-color 0.09s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.09s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.09s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.09s cubic-bezier(0.22, 1, 0.36, 1);
}
.wiz-opt-box--compact { padding: 15px 40px 15px 16px; }
.wiz-opt:hover .wiz-opt-box {
  border-color: var(--border-strong);
  background: rgba(16, 28, 60, 0.6);
  transform: translateY(-1px);
}
.wiz-opt-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.wiz-opt-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.wiz-opt-tick {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  color: transparent;
  transition: border-color 0.12s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.12s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}
/* checked state */
.wiz-opt input:checked + .wiz-opt-box {
  border-color: rgba(63, 125, 255, 0.7);
  background: rgba(24, 44, 96, 0.55);
  box-shadow: 0 0 0 1px rgba(63, 125, 255, 0.45), 0 8px 26px rgba(46, 98, 255, 0.22);
}
.wiz-opt input:checked + .wiz-opt-box .wiz-opt-tick {
  border-color: var(--blue-bright);
  background: linear-gradient(180deg, #3f7dff, #2451e6);
  color: #fff;
}
.wiz-opt input:focus-visible + .wiz-opt-box {
  border-color: rgba(63, 125, 255, 0.7);
}

/* text-field steps reuse .form-field; lay two side by side */
.wiz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wiz-row .form-field { margin-bottom: 0; }
.form-field.has-error input { border-color: rgba(255, 110, 120, 0.6); }

/* error line */
.wiz-err {
  display: none;
  margin-top: 16px;
  font-size: 13px;
  color: #ff8a92;
}
.wiz-step.show-error .wiz-err { display: block; }

/* footer controls */
.wiz-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.wiz-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.wiz-back:hover { color: var(--text); }
.wiz-hint {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted-2);
}
.wiz-next, .wiz-submit { flex-shrink: 0; }
/* explicit display rules outrank the UA [hidden] rule, so restore it for these */
.btn[hidden], .wiz-back[hidden], .wiz-foot[hidden] { display: none; }
.wiz-arrow { transition: transform 0.2s ease; }
.wiz-next:hover .wiz-arrow, .wiz-submit:hover .wiz-arrow { transform: translateX(3px); }

/* success state */
.wiz-done { text-align: center; padding: 14px 6px 20px; }
.wiz-done-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(180deg, #3f7dff, #2451e6);
  box-shadow: 0 10px 34px rgba(46, 98, 255, 0.5);
  animation: wiz-pop 0.5s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes wiz-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wiz-done h3 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin-bottom: 12px;
}
.wiz-done > p {
  max-width: 400px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.wiz-done-cta { margin-bottom: 30px; }
.wiz-done-lines {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.wiz-done-lines a {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 28, 0.5);
  padding: 12px 16px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wiz-done-lines a:hover {
  border-color: var(--border-strong);
  background: rgba(16, 28, 60, 0.6);
}
.wiz-done-lines small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.wiz-done-lines b {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .quote-col-track, .carousel-track { animation: none; }
  .btn::before { animation: none; }
  .btn::after { display: none; }
}

/* ---------- Section separation gradients ----------
   Used sparingly to split sections (not on every one). */

.section-glow, .section-band { isolation: isolate; }

/* faint blue aura that bleeds down from the top of a section */
.section-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  height: 340px;
  background: radial-gradient(58% 100% at 50% 0%, rgba(46, 98, 255, 0.13), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

/* subtly raised band with a hairline top edge */
.section-band {
  background: linear-gradient(180deg, rgba(9, 16, 36, 0.65), rgba(2, 6, 20, 0) 62%);
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
  .pains-panel { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pains-scenes { min-height: 360px; }
  /* process: sticky scroll story becomes simple stacked step + visual pairs */
  .process-scroll { height: auto; }
  .process-sticky {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
  }
  .process-rail { display: none; }
  .pstep-text { opacity: 1; padding: 8px 0 0; }
  .pstep-text p { max-width: none; }
  /* generous break + hairline between each step pair so they read as
     distinct sections instead of one clump (visual order is set via `order`,
     so target the 2nd and 3rd text blocks by index, not DOM adjacency) */
  .pstep-text:nth-child(3),
  .pstep-text:nth-child(4) {
    margin-top: 26px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
  }
  .pstep-text .pstep-num {
    color: var(--ice);
    border-color: rgba(120, 160, 255, 0.45);
    box-shadow: 0 0 22px rgba(46, 98, 255, 0.35);
  }
  /* stretch (not the desktop align-self:center) so all three mock windows
     fill the column at the same width */
  .pstep-visual { opacity: 1; transform: none; pointer-events: auto; align-self: stretch; width: 100%; }
  /* child indices: 1 = rail, 2-4 = texts, 5-7 = visuals */
  .pstep-text:nth-child(2) { order: 1; }
  .pstep-visual:nth-child(5) { order: 2; }
  .pstep-text:nth-child(3) { order: 3; }
  .pstep-visual:nth-child(6) { order: 4; }
  .pstep-text:nth-child(4) { order: 5; }
  .pstep-visual:nth-child(7) { order: 6; }
  .vt-row { grid-template-columns: 1fr; }
  .vt-card { height: 300px; }
  .quote-cols { grid-template-columns: 1fr; max-height: 560px; }
  .quote-col:nth-child(n + 2) { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid .wizard { order: 1; }
  .contact-grid .contact-info { order: 2; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  /* process mockups: tighten the fake UI so all three windows fill the
     same width with no horizontal overflow */
  .mock { padding: 18px 14px; min-height: 0; }
  .mock-dash { gap: 10px; }
  .mock-side { display: none; } /* side rail steals width the columns need */
  .mock-cols { gap: 8px; }
  .mock-col { padding: 8px 7px; min-height: 160px; }
  /* let lead chips wrap to two lines rather than ellipsizing hard */
  .mock-lead {
    font-size: 10px;
    padding: 7px;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere; /* long single words ("Switchboard") in the narrowest columns */
    hyphens: auto;
  }
  .mock-toast { right: 2px; bottom: 34px; }
  .wizard { padding: 26px 20px 22px; }
  .wiz-options { grid-template-columns: 1fr; }
  .wiz-row { grid-template-columns: 1fr; gap: 14px; }
  .wiz-hint { display: none; }
  .wiz-foot { gap: 10px; }
  .wiz-next, .wiz-submit { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .hero-sub { font-size: 15px; }
  .project-card { width: 290px; height: 400px; }
  .marquee-track { --marq-gap: 44px; }
  .marquee-track img { height: 34px; }
  .footer-grid { flex-direction: column; }
  .subscribe-form input { width: 100%; }
  .subscribe-form { width: 100%; }
}

/* ============================================
   Subpages (About / Scale System / Resource Hub)
   ============================================ */

/* text-only header for subpages (resources / about / scale system). Sits
   inside the shared .hero-zone canvas (same starfield as home/contact) so it
   carries no background of its own — the zone's own fade into var(--bg)
   is what blends it into the content below, exactly like home/contact do. */
.page-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 0 64px;
}

.page-head-kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 760px;
  margin-inline: auto;
  text-wrap: balance;
  background: linear-gradient(180deg, #f4f8ff 30%, #93a3c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-head-sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

/* compact hero shared by subpages */
.page-hero {
  position: relative;
  z-index: 2;
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--ice);
  text-shadow: 0 0 60px rgba(63, 125, 255, 0.25);
  max-width: 900px;
  margin-inline: auto;
  text-wrap: balance;
}

.page-hero .hero-sub { margin-top: 20px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(12, 20, 44, 0.5);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- About ---------- */

.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(46, 98, 255, 0.14);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%; /* sweet spot between the original (too much roof) and 78% (too far up) */
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(1, 5, 19, 0.55));
  pointer-events: none;
}

.about-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.about-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-copy .signature {
  margin-top: 26px;
  font-weight: 600;
  color: var(--ice);
  letter-spacing: -0.01em;
}
.about-copy .signature span { display: block; font-weight: 400; font-size: 14px; color: var(--muted-2); letter-spacing: 0; }

/* value cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.5), rgba(6, 12, 30, 0.5));
  padding: 30px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.value-card:hover { border-color: rgba(120, 160, 255, 0.3); transform: translateY(-3px); }
.value-card .value-num {
  font-size: 13px;
  font-weight: 600;
  color: #9dbcff;
  letter-spacing: 0.08em;
}
.value-card h3 { font-size: 19px; font-weight: 600; margin: 10px 0 10px; letter-spacing: -0.01em; }
.value-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* photo strip placeholders */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(46, 98, 255, 0.1), transparent 60%),
    rgba(8, 14, 32, 0.5);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.photo-slot span { display: block; }
.photo-slot .slot-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.photo-slot .slot-note { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ---------- Scale System pillars ---------- */

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 21, 46, 0.5), rgba(6, 12, 30, 0.5));
}
/* the section-head is child 1, so pillars sit at children 2/3/4 — the middle
   (dashboard) pillar is the odd one out, matching the old alternating look */
.pillar:nth-child(odd) .pillar-shot { order: -1; }

/* number chip mirrors the homepage process step, always in its lit state */
.pillar .pstep-num {
  color: var(--ice);
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 0 22px rgba(46, 98, 255, 0.35);
}
.pillar-body h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.pillar-body > p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 18px; }
.pillar-list { list-style: none; display: grid; gap: 12px; }
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: #c7d6f2;
}
.pillar-list li svg { flex-shrink: 0; margin-top: 3px; }

/* mac-window mockup column (same .macwin/.mock visuals as the homepage) */
.pillar-shot { min-width: 0; }
.pillar-shot .mock { min-height: 300px; }
.pillar-shot .mock-toast { right: 8px; }
.pillar-outcome {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  background: rgba(9, 16, 36, 0.5);
}
.pillar-outcome b { color: var(--ice); font-weight: 600; }

/* how-it-connects flow */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
  counter-reset: flowstep;
}
.flow-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(9, 16, 36, 0.5);
  padding: 28px 24px;
  text-align: center;
}
.flow-step .flow-dot {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, #3f7dff, #2451e6);
  box-shadow: 0 0 22px rgba(46, 98, 255, 0.5);
}
.flow-step h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px; top: 50%;
  transform: translateY(-50%);
  color: var(--blue-bright);
  font-size: 20px;
  z-index: 2;
}

/* ---------- Resource Hub ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.tab-btn {
  background: rgba(12, 20, 44, 0.5);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.is-active {
  color: #fff;
  border-color: rgba(160, 195, 255, 0.4);
  background: linear-gradient(180deg, rgba(63, 125, 255, 0.28), rgba(36, 81, 230, 0.2));
  box-shadow: 0 0 22px rgba(46, 98, 255, 0.25);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin-inline: auto;
}
.resource-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.45), rgba(6, 12, 30, 0.45));
  padding: 26px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.resource-card:hover { border-color: rgba(120, 160, 255, 0.28); transform: translateY(-3px); }
.resource-card .rc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 34, 72, 0.55);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.resource-card .rc-icon svg { width: 22px; height: 22px; stroke: var(--ice); }
.resource-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.resource-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex-grow: 1; }
.resource-card .rc-badge {
  align-self: flex-start;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9dbcff;
  border: 1px solid rgba(120, 160, 255, 0.3);
  background: rgba(20, 34, 72, 0.4);
  border-radius: 999px;
  padding: 4px 11px;
}

.hub-note {
  max-width: 640px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Subpage responsive ---------- */
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; max-width: 480px; }
  .about-photo { max-width: 360px; margin-inline: auto; }
  .values-grid { grid-template-columns: 1fr; max-width: 480px; }
  .pillar { grid-template-columns: 1fr; gap: 28px; padding: 30px 22px; }
  .pillar:nth-child(odd) .pillar-shot { order: 0; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -24px; transform: translateX(50%); }
  .resource-grid { grid-template-columns: 1fr; max-width: 480px; }
  .photo-strip { grid-template-columns: 1fr; max-width: 360px; }
}

/* ---- Legal pages (privacy / terms) ---- */
.legal { padding-top: 72px; }
.legal .legal-body { max-width: 760px; margin: 0 auto; }
.legal .legal-updated { color: var(--muted-2); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue-bright); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }

/* ============================================================
   CASE STUDIES — richer, varied sections for service + location
   pages. Reuses .pillar/.macwin/.photo-slot; adds name-drop
   strips, stat bands, inline testimonials and deliverable grids.
   ============================================================ */

/* Eyebrow above a case headline: client + location */
.case-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}
.case-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
}

/* Name-drop pills — brands / clients a business has worked with */
.namedrop {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 20px;
}
.namedrop span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d5e4ff;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(150, 180, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.namedrop span:hover {
  border-color: rgba(120, 165, 255, 0.5);
  transform: translateY(-2px);
}

/* Stat band — big outcome numbers */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.stat-item {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 32, 66, 0.5), rgba(9, 16, 34, 0.4));
}
.stat-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  opacity: 0.7;
}
.stat-num {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #eaf1ff, #7fa8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num .stat-suf { -webkit-text-fill-color: #7fa8ff; font-size: 0.55em; margin-left: 2px; }
.stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.stat-label b { color: var(--ice); font-weight: 600; }

/* Inline case testimonial (compact, quote-bar style) */
.case-quote {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 2px solid rgba(120, 165, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 14px 14px 0;
}
.case-quote p {
  font-style: italic;
  color: var(--ice);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.case-quote .cq-by {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
}
.case-quote .cq-by img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.case-quote .cq-by b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }
.case-quote .cq-by span { font-size: 12.5px; color: var(--muted); }

/* "What we deliver" snapshot grid — real screenshot slots, not cards */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.deliver-grid .macwin { margin: 0; }
.deliver-item .deliver-cap {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.deliver-item .deliver-cap b { color: var(--ice); font-weight: 600; }

/* Give stacked case pillars breathing room + a hairline between them */
.case-stack .pillar + .pillar {
  margin-top: 84px;
  padding-top: 84px;
  border-top: 1px solid var(--border);
}
/* Case pillars lead with the shot; flip even ones so the layout alternates. */
.case-stack .pillar:nth-child(even) .pillar-shot { order: 1; }

@media (max-width: 860px) {
  /* stack cleanly, shot on top, no alternation */
  .case-stack .pillar:nth-child(even) .pillar-shot { order: 0; }
}

@media (max-width: 680px) {
  .case-stack .pillar + .pillar { margin-top: 54px; padding-top: 54px; }
  .stat-item { padding: 24px 20px; }
}
