/* Fonts are served from this site, so visiting it sends nothing to Google
   or any other third party. Both are open-source (SIL Open Font License;
   licences in assets/fonts/), subset to Latin characters. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/manrope.woff2") format("woff2");
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter.woff2") format("woff2");
}

/* =========================================================================
   UPSHIFT OUTREACH — Design System
   Palette: Ink #080808 · Paper #F5F5F5 · Slate #A5A5A5 · Seam #242424 · Signal #FFB800
   Type: Manrope (display) + Inter (body)
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink:           #080808;
  --ink-raised:    #0E0E0E;
  --ink-raised-2:  #131313;
  --seam:          #242424;
  --seam-strong:   #333333;
  --paper:         #F5F5F5;
  --slate:         #A5A5A5;
  --slate-dim:     #808080;
  --signal:        #FFB800;
  --signal-ink:    #0A0800;
  --signal-08:     rgba(255,184,0,0.08);
  --signal-14:     rgba(255,184,0,0.14);
  --signal-30:      rgba(255,184,0,0.30);
  --good:          #B9D9A0;   /* used sparingly, text-only, not a UI accent */

  /* Type */
  --f-head: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid scale */
  --fs-eyebrow:  0.8125rem;
  --fs-small:    0.875rem;
  --fs-body:     1.0625rem;
  --fs-lead:     clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  --fs-h3:       clamp(1.25rem, 1vw + 1rem, 1.625rem);
  --fs-h2:       clamp(1.875rem, 2.2vw + 1rem, 2.75rem);
  --fs-h1:       clamp(2.5rem, 4vw + 1rem, 4.25rem);
  --fs-statement: clamp(1.5rem, 2.4vw + 1rem, 2.5rem);

  /* Space */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 1.75rem;
  --sp-5: 2.5rem;
  --sp-6: 3.5rem;
  --sp-7: 5rem;
  --sp-8: 7rem;
  --sp-9: 9rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --pad: clamp(20px, 5vw, 64px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
html, body { background: var(--ink); }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; color: var(--paper); }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { color: var(--slate); }
p.lead { font-size: var(--fs-lead); color: var(--paper); }
strong { color: var(--paper); font-weight: 600; }

.text-muted { color: var(--slate); }
.text-faint { color: var(--slate-dim); }
.text-accent { color: var(--signal-text); }
.text-small { font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }

::selection { background: var(--signal); color: var(--signal-ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--pad);
}
main { display: block; }
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.section { padding-block: var(--sp-8); border-top: 1px solid var(--seam); }
.section--tight { padding-block: var(--sp-6); }
.section--hero { padding-block: 0; border-top: none; }
.section--flush-top { border-top: none; }
.section--raised { background: var(--ink-raised); }
.section--center { text-align: center; }

.section-head { max-width: 660px; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-text);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--signal);
  flex: none;
}
.eyebrow.is-muted { color: var(--slate); }
.eyebrow.is-muted::before { background: var(--slate-dim); }
.eyebrow.center { justify-content: center; }

.statement {
  font-family: var(--f-head);
  font-size: var(--fs-statement);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.24;
  color: var(--paper);
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.divider { height: 1px; background: var(--seam); border: none; }

/* ---------- Reveal-on-scroll ----------
   Hidden-by-default only applies once .js is on <html> (set synchronously by
   the inline script in <head>, before first paint). If JavaScript never runs
   -- blocked, fails, or a crawler that doesn't execute it -- .no-js stays on
   <html> instead, none of these opacity:0 rules match, and every reveal
   element is simply visible, exactly as main.js's own header comment
   promises ("fully readable/navigable with this file absent"). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group.is-visible .reveal-child { opacity: 1; transform: none; }
.js .reveal-child { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-group.is-visible .reveal-child:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible .reveal-child:nth-child(2) { transition-delay: 70ms; }
.reveal-group.is-visible .reveal-child:nth-child(3) { transition-delay: 140ms; }
.reveal-group.is-visible .reveal-child:nth-child(4) { transition-delay: 210ms; }
.reveal-group.is-visible .reveal-child:nth-child(5) { transition-delay: 280ms; }
.reveal-group.is-visible .reveal-child:nth-child(6) { transition-delay: 350ms; }
.reveal-group.is-visible .reveal-child:nth-child(7) { transition-delay: 420ms; }
.reveal-group.is-visible .reveal-child:nth-child(8) { transition-delay: 490ms; }
.reveal-group.is-visible .reveal-child:nth-child(9) { transition-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  /* !important: this must win over .js .reveal even if main.js errors out
     partway through and never gets to add .is-visible itself. */
  .reveal, .reveal-child { opacity: 1 !important; transform: none !important; }
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }

.btn-primary {
  /* --tx/--ty: set from main.js on pointer:fine devices for a light
     magnetic pull toward the cursor. Composed into transform below rather
     than set directly, so it never fights the hover/active transforms. */
  --tx: 0px; --ty: 0px;
  background: var(--signal); color: var(--signal-ink);
  transform: translate(var(--tx), var(--ty));
}
.btn-primary:hover { transform: translate(var(--tx), var(--ty)) translateY(-2px); background: #ffc633; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translate(var(--tx), var(--ty)) scale(0.97); background: #ffc633; }

.btn-secondary { background: transparent; color: var(--paper); border-color: var(--seam-strong); }
.btn-secondary:hover { border-color: var(--signal); color: var(--signal-text); transform: translateY(-2px); }
.btn-secondary:active { transform: scale(0.97); border-color: var(--signal); color: var(--signal-text); }

.btn-ghost { padding: 0; color: var(--paper); border-bottom: 1px solid var(--seam-strong); border-radius: 0; padding-bottom: 2px; }
.btn-ghost:hover { color: var(--signal-text); border-color: var(--signal); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--paper);
  border-bottom: 1px solid var(--seam-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--signal-text); border-color: var(--signal); }
.link-arrow:hover svg { transform: translateX(4px); }

.tel-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---------- Chip / Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--seam);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--paper);
  background: var(--ink-raised);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:hover { border-color: var(--signal-30); transform: translateY(-2px); }
.pill:active { transform: scale(0.96); border-color: var(--signal-30); }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Cards ---------- */
.card {
  /* --mx/--my: set from main.js on pointer:fine devices, drive the
     cursor-follow highlight below. Deliberately NOT combined with a
     mousemove-driven tilt/rotate -- that would have to fight the existing
     :hover translateY(-4px) below on the same `transform` property. */
  --mx: 50%; --my: 50%;
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--seam);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--signal-14), transparent 70%);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--seam-strong); transform: translateY(-4px); background: var(--ink-raised-2); }
.card:active { transform: translateY(-1px) scale(0.99); }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--signal-08);
  color: var(--signal-text);
  margin-bottom: var(--sp-3);
}
.icon-tile svg { width: 22px; height: 22px; }

/* =========================================================================
   SCROLL PROGRESS
   ========================================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--signal);
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar.is-scrolled { border-color: var(--seam); background: rgba(8,8,8,0.92); }

.navbar__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand:hover { opacity: 0.9; }

.navbar__links { display: flex; align-items: center; gap: 1.6rem; }
.navbar__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.navbar__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.navbar__link:hover { color: var(--paper); }
.navbar__link:hover::after { transform: scaleX(1); }
.navbar__link[aria-current="page"] { color: var(--paper); }
.navbar__link[aria-current="page"]::after { transform: scaleX(1); }

.navbar__actions { display: flex; align-items: center; gap: var(--sp-4); }
.navbar__cta { flex: none; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
}
.navbar__toggle span { display: block; width: 22px; height: 2px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); margin-inline: auto; }
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--nav-h) + 20px) var(--pad) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu__link {
  font-family: var(--f-head);
  font-size: 1.75rem;
  font-weight: 700;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--seam);
  color: var(--paper);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.33s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__link { opacity: 1; transform: none; }
}
.mobile-menu__link[aria-current="page"] { color: var(--signal-text); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-3); }

body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: flex; }
}
@media (max-width: 560px) {
  .navbar__actions .navbar__cta.is-desktop-only { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-7);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("../assets/noise.png");
  background-size: 96px 96px;
}
.hero__glow {
  position: absolute;
  top: -16%;
  left: 50%;
  width: 132%;
  height: 132%;
  translate: -50% 0;
  /* High-resolution pre-rendered asset (2560x1680, dithered so there's no
     banding on 8-bit panels). This replaced a stack of CSS radial-gradients
     under `filter: blur()`: blurring an element that large every frame is
     expensive enough that desktop GPUs stall on it, which is why the
     animation could appear to not run at all. Nothing here animates a
     paint property now -- only transform and opacity, both GPU-composited. */
  background-image: image-set(url("../assets/glow-2560.webp") type("image/webp"),
                              url("../assets/glow-2560.png") type("image/png"));
  background-image: -webkit-image-set(url("../assets/glow-2560.webp") type("image/webp"),
                                      url("../assets/glow-2560.png") type("image/png"));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 0.85;
  will-change: transform, opacity;
  animation: hero-drift 24s ease-in-out infinite alternate,
             hero-pulse 5.5s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 0.68; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; opacity: 0.85; }
}
@keyframes hero-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
}
.hero__mark {
  position: absolute;
  top: 8%;
  right: -60px;
  width: 320px;
  opacity: 0.05;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}
.hero__eyebrow { justify-content: center; margin-bottom: var(--sp-4); }
.hero__title { margin-bottom: var(--sp-4); }
.hero__lead { max-width: 620px; margin-inline: auto; margin-bottom: var(--sp-5); }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Entrance sequence: each hero element starts hidden and steps in on load.
   Scoped to .js for the same reason as the reveal-on-scroll rules above --
   .no-js (JS absent) means none of this hidden state ever applies. */
.js .hero .hero__eyebrow, .js .hero .hero__title, .js .hero .hero__lead, .js .hero .hero__actions, .js .hero .hero__note, .js .hero .quick-jump {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero.is-loaded .hero__eyebrow  { opacity: 1; transform: none; transition-delay: 0.05s; }
.hero.is-loaded .hero__title    { opacity: 1; transform: none; transition-delay: 0.16s; }
.hero.is-loaded .hero__lead     { opacity: 1; transform: none; transition-delay: 0.28s; }
.hero.is-loaded .hero__actions  { opacity: 1; transform: none; transition-delay: 0.40s; }
.hero.is-loaded .hero__note     { opacity: 1; transform: none; transition-delay: 0.46s; }
.hero.is-loaded .quick-jump     { opacity: 1; transform: none; transition-delay: 0.52s; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero__eyebrow, .hero .hero__title, .hero .hero__lead, .hero .hero__actions, .hero .hero__note, .hero .quick-jump { opacity: 1 !important; transform: none !important; }
}

.hero__actions .btn-primary { animation: cta-pulse 2.8s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--signal-30); }
  50% { box-shadow: 0 0 0 9px rgba(255,184,0,0); }
}

.quick-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: var(--sp-5);
}
.quick-jump__label { font-size: var(--fs-small); color: var(--slate-dim); margin-right: 4px; }
.quick-jump__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--slate);
  padding: 7px 14px;
  border: 1px solid var(--seam);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.quick-jump__link:hover { color: var(--paper); border-color: var(--signal-30); transform: translateY(-1px); }
.quick-jump__link:active { transform: scale(0.96); }

@media (max-width: 640px) {
  .quick-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .quick-jump::-webkit-scrollbar { display: none; }
  .quick-jump__label { display: none; }
  .quick-jump__link { flex: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + var(--sp-6)); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Proof strip ---------- */
.stats-strip { border-top: 1px solid var(--seam); }
.stats-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  flex: 1 1 200px;
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border-left: 1px solid var(--seam);
}
.stat:first-child { border-left: none; }
.stat__value {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 800;
  color: var(--signal-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--slate);
}
.stats-strip__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate);
  font-style: normal;
  padding-bottom: var(--sp-4);
}

@media (max-width: 920px) {
  .stat { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--seam); }
  .stat:nth-child(odd) { border-right: 1px solid var(--seam); }
}

/* =========================================================================
   PROBLEM / SPLIT
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.split__highlight {
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.18;
  margin-block: var(--sp-4);
  color: var(--paper);
}
.split__highlight em {
  font-style: normal;
  color: var(--signal-text);
  position: relative;
}
.problem-list { display: flex; flex-direction: column; }
.problem-item {
  display: flex;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--seam);
}
.problem-item:last-child { border-bottom: 1px solid var(--seam); }
.problem-item__num {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--slate-dim);
  font-size: 0.9375rem;
  flex: none;
  padding-top: 2px;
}
.problem-item p { color: var(--paper); margin: 0; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* How We Work's five steps: the lead + body paragraph had no margin between
   them (the sitewide reset zeroes p margins; .about-copy and .prose both
   reintroduce it, this page's markup just hadn't). And on mobile, where
   .split collapses to a single stacked column, the default var(--sp-6) gap
   made the number/heading feel disconnected from its own paragraph -- tightened
   just for this component rather than changing .split generally, since the
   homepage's problem section also uses .split with a different rhythm. */
.split--process p { margin-bottom: var(--sp-3); }
.split--process p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .split--process { gap: var(--sp-4); }
}

/* Sticky "problem" narrative: pinned header + rail on the left, spotlighted
   points scrolling past on the right. Desktop/wide only; below 860px this
   falls back to the plain stacked list the .split media query above already
   produces, so mobile is untouched. */
@media (min-width: 861px) {
  .split--sticky .problem-pin { position: sticky; top: 110px; display: flex; gap: 22px; align-items: flex-start; }
  .problem-list[data-problem-track] { padding-block: 6vh 35vh; }
  .problem-list[data-problem-track] .problem-item {
    padding-block: 100px;
    transform: scale(0.95);
    opacity: 0.42;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), color 0.3s var(--ease);
  }
  .problem-list[data-problem-track] .problem-item.is-active { transform: scale(1.02); opacity: 1; }
  .problem-list[data-problem-track] .problem-item.is-active p { color: var(--signal-text); }
  .problem-list[data-problem-track] .problem-item.is-active .problem-item__num { color: var(--signal-text); }
}
.problem-rail { display: flex; flex-direction: column; align-items: center; padding-top: 8px; flex-shrink: 0; }
.problem-rail__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--seam-strong); flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.problem-rail__dot.is-active { background: var(--signal); transform: scale(1.4); box-shadow: 0 0 12px rgba(255,184,0,0.55); }
.problem-rail__line { width: 2px; flex: 1; min-height: 30px; background: var(--seam-strong); position: relative; overflow: hidden; }
.problem-rail__line::after {
  content: ''; position: absolute; inset: auto 0 0 0; width: 100%; background: var(--signal);
  height: var(--fill, 0%); transition: height 0.25s linear;
}
@media (max-width: 860px) {
  .problem-rail { display: none; }
}

/* Mobile version of the same spotlight the desktop sticky-pin gets. main.js
   already computes .is-active at every viewport width (it tracks whichever
   problem-item is closest to center as you scroll) -- this was simply never
   given a mobile appearance, so the class was doing nothing below 861px.
   No scale/opacity here (that trick depends on the desktop sticky-pin
   layout); a left accent + color shift reads better against a plain
   stacked list, and stays a response to genuine scroll position rather
   than a blanket per-section entrance animation. */
@media (max-width: 860px) {
  .problem-item {
    border-left: 3px solid transparent;
    padding-left: var(--sp-3);
    margin-left: calc(-1 * var(--sp-3));
    background: transparent;
    transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  }
  .problem-item.is-active {
    border-left-color: var(--signal);
    background: var(--signal-08);
  }
  .problem-item.is-active p { color: var(--signal-text); transition: color 0.3s var(--ease); }
  .problem-item.is-active .problem-item__num { color: var(--signal-text); transition: color 0.3s var(--ease); }
}

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--signal);
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-raised);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-top: var(--sp-5);
}
.callout p { font-family: var(--f-head); font-size: var(--fs-h3); font-weight: 700; color: var(--paper); line-height: 1.35; }

.disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--seam);
  background: var(--ink-raised);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-top: var(--sp-5);
}
.disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--slate); }
.disclaimer p { font-size: var(--fs-small); color: var(--slate); margin: 0; line-height: 1.6; }

/* =========================================================================
   PROCESS / STEPS  (signature flowing connector)
   ========================================================================= */
.steps { position: relative; }
.steps__track {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), 1fr);
  gap: var(--sp-4);
  position: relative;
}
.steps__track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(100% / var(--n, 5) / 2);
  right: calc(100% / var(--n, 5) / 2);
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--signal) 0 7px, transparent 7px 17px);
  background-size: 34px 100%;
  animation: flow 1.6s linear infinite;
  opacity: 0.75;
}
@keyframes flow { to { background-position: -34px 0; } }

.step { position: relative; text-align: left; padding-top: 68px; }
.step__num {
  position: absolute;
  top: 0; left: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--seam-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--paper);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.step:hover .step__num { border-color: var(--signal); color: var(--signal-text); }
.step h3 { margin-bottom: 8px; font-size: 1.125rem; }
.step p { font-size: 0.9375rem; margin: 0; }

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--seam);
}
.process-flow__item {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.process-flow__arrow { color: var(--signal-text); width: 16px; height: 16px; }

@media (max-width: 860px) {
  /* Vertical timeline. Each step reserves a fixed 64px gutter (44px circle
     + 20px gap) so the circle can never overlap the heading, and each step
     draws its own connector from the bottom of its circle to the top of the
     next one -- so the dashed line is centred on the circles and stops at
     the last step instead of running on past it. */
  .steps__track { grid-template-columns: 1fr; gap: var(--sp-6); padding-left: 0; }
  .steps__track::before { display: none; }
  .step { padding-top: 0; padding-left: 64px; margin-left: 0; min-height: 44px; }
  .step__num { width: 44px; height: 44px; font-size: 0.9375rem; top: 0; left: 0; }
  .step h3 { min-height: 44px; display: flex; align-items: center; margin-bottom: 6px; line-height: 1.2; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 52px;
    bottom: calc(-1 * var(--sp-6) + 8px);
    width: 2px;
    background-image: repeating-linear-gradient(180deg, var(--signal) 0 7px, transparent 7px 17px);
    background-size: 100% 34px;
    opacity: 0.75;
    animation: flow-v 1.6s linear infinite;
  }
  @keyframes flow-v { to { background-position: 0 -34px; } }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .step:not(:last-child)::after { animation: none; }
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.service-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9375rem; margin: 0; }
.services-note { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--slate-dim); text-align: center; }

/* =========================================================================
   AI SECTION
   ========================================================================= */
.ai-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); align-items: center; }
.ai-layout .pill-group { margin-top: var(--sp-4); }
.ai-closing { margin-top: var(--sp-7); text-align: center; }
.ai-closing p { max-width: 640px; margin-inline: auto; }
@media (max-width: 860px) { .ai-layout { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* =========================================================================
   WHO WE HELP
   ========================================================================= */
.industry-card { text-align: left; }
.industry-card h3 { font-size: 1rem; margin-bottom: 6px; }
.industry-card p { font-size: 0.875rem; margin: 0; }

/* =========================================================================
   CASE STUDY
   ========================================================================= */
/* =========================================================================
   CASE STUDY (long-form narrative rhythm)
   ========================================================================= */
.case-narrative h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.case-narrative h2:first-child { margin-top: 0; }
.case-narrative > p { margin-bottom: var(--sp-3); }
.case-narrative .check-list { margin-top: var(--sp-4); }

.case-stats { margin-top: var(--sp-6); }
.stat-card { text-align: center; padding: var(--sp-4); }
.stat-card .stat__value { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); }
.case-scope { margin-top: var(--sp-6); }
.check-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.check-list li, .x-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
.check-list svg { flex: none; width: 18px; height: 18px; color: var(--signal-text); margin-top: 3px; }
.x-list svg { flex: none; width: 18px; height: 18px; color: var(--slate-dim); margin-top: 3px; }
.check-list li span, .x-list li span { color: var(--paper); }
.x-list li span { color: var(--slate); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-copy p { margin-bottom: var(--sp-3); }
.about-copy p.lead { margin-bottom: var(--sp-4); }

/* =========================================================================
   COMPARISON (Why Upshift)
   ========================================================================= */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-top: var(--sp-6); }
.compare__col { border: 1px solid var(--seam); border-radius: var(--r-md); padding: var(--sp-5); }
.compare__col--them { color: var(--slate); }
.compare__col--us { border-color: var(--signal-30); background: var(--ink-raised); }
.compare__head { font-family: var(--f-head); font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-4); }
.compare__col--them .compare__head { color: var(--slate); }
.compare__col--us .compare__head { color: var(--signal-text); }
.compare__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.compare__col li { font-size: 0.9375rem; padding-block: 8px; border-top: 1px solid var(--seam); }
.compare__col li:first-child { border-top: none; }
.compare__col--them li { color: var(--slate-dim); }
.compare__col--us li { color: var(--paper); }
.compare-close { margin-top: var(--sp-6); text-align: center; }
.compare-close p { max-width: 620px; margin-inline: auto; }

@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* =========================================================================
   CLIENT FIT
   ========================================================================= */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.fit-col { border: 1px solid var(--seam); border-radius: var(--r-md); padding: var(--sp-5); }
.fit-col--yes { border-color: var(--signal-30); }
.fit-col h3 { font-size: 1.0625rem; margin-bottom: var(--sp-4); }
.fit-col--yes h3 { color: var(--signal-text); }
.fit-col--no h3 { color: var(--slate); }
.fit-close { text-align: center; margin-top: var(--sp-6); }

@media (max-width: 720px) { .fit-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   RESULTS PHILOSOPHY
   ========================================================================= */
.philosophy { text-align: center; }
.philosophy__no {
  font-family: var(--f-head);
  font-size: clamp(1.75rem, 3.2vw + 1rem, 3rem);
  font-weight: 800;
  color: var(--paper);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.22;
}
.philosophy__yes {
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 2.4vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--signal-text);
  max-width: 780px;
  margin-inline: auto;
  margin-top: var(--sp-4);
  line-height: 1.3;
}
.philosophy__note { max-width: 560px; margin: var(--sp-5) auto 0; font-size: var(--fs-small); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--seam);
  padding-block: var(--sp-3);
}
.faq-item:last-child { border-bottom: 1px solid var(--seam); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--paper);
  padding-block: 6px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item summary .q-icon::before, .faq-item summary .q-icon::after {
  content: '';
  position: absolute;
  background: var(--signal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-item summary .q-icon::before { left: 4px; right: 4px; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-item summary .q-icon::after { top: 4px; bottom: 4px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item[open] summary .q-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
/* Grid-rows trick: animates a 0fr -> 1fr track instead of height/max-height,
   so it works without knowing the answer's height up front. Padding lives on
   the inner <p> rather than .faq-a itself, so the collapsed state is a true
   0 rather than "0 plus leftover padding". Pure CSS -- if a browser doesn't
   support animating grid-template-rows, this just falls back to the same
   instant open/close as before; nothing about <details>'s native, no-JS
   keyboard/screen-reader behavior changes either way. */
.faq-item .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  max-width: 780px;
  transition: grid-template-rows 0.35s var(--ease), padding-top 0.35s var(--ease);
}
.faq-item[open] .faq-a { grid-template-rows: 1fr; padding-top: var(--sp-2); }
.faq-item .faq-a > * {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding-right: 40px;
}
/* Longer answers wrap several paragraphs in .faq-a__inner so the grid still
   has exactly one row to collapse. */
.faq-a__inner p { margin: 0; }
.faq-a__inner p + p { margin-top: var(--sp-2); }
.faq-a__inner strong { color: var(--paper); }
.faq-cta { margin-top: var(--sp-6); text-align: center; }

/* =========================================================================
   CONSULTANCY MODEL
   ========================================================================= */
.model-note { margin-top: var(--sp-6); text-align: center; font-size: var(--fs-small); }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final-cta {
  position: relative;
  text-align: center;
  padding-block: var(--sp-9);
  overflow: hidden;
}
.final-cta__glow {
  position: absolute;
  bottom: -260px; left: 50%; translate: -50% 0;
  width: 900px; height: 560px;
  background: radial-gradient(circle, var(--signal-14) 0%, transparent 70%);
}
.final-cta__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.final-cta h2 { margin-bottom: var(--sp-3); }
.final-cta p.lead { margin-bottom: var(--sp-5); }
.final-cta__note { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--slate-dim); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--seam); padding-block: var(--sp-7) var(--sp-5); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__brand img { height: 34px; width: auto; display: block; margin-bottom: var(--sp-3); }
.footer__brand p { max-width: 320px; font-size: 0.9375rem; }
.footer__social { display: flex; gap: 10px; margin-top: var(--sp-4); }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--seam);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  color: var(--slate);
}
.footer__social a:hover { border-color: var(--signal); color: var(--signal-text); }
.footer__social svg { width: 17px; height: 17px; }
.footer__heading { font-family: var(--f-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim); margin-bottom: var(--sp-3); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9375rem; color: var(--slate); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--paper); }
.footer__contact p { font-size: 0.9375rem; margin-bottom: 4px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  padding-top: var(--sp-5); border-top: 1px solid var(--seam);
  font-size: 0.8125rem; color: var(--slate-dim);
}
.footer__legal { display: flex; gap: var(--sp-4); }
.footer__legal a { color: var(--slate-dim); }
.footer__legal a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   FORM (Contact)
   ========================================================================= */
.form-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--paper); }
.field .req { color: var(--signal-text); }
.field input, .field select, .field textarea {
  background: var(--ink-raised);
  border: 1px solid var(--seam);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  color: var(--paper);
  font-size: 0.9375rem;
  transition: border-color 0.25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-dim); }
.form-submit { grid-column: 1 / -1; margin-top: var(--sp-2); }
.form-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--slate-dim); margin-top: -8px; }

.form-honeypot { display: none; }

.form-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.form-progress__bar { flex: 1; height: 3px; border-radius: 2px; background: var(--seam); overflow: hidden; }
.form-progress__fill { display: block; height: 100%; width: 50%; background: var(--signal); transition: width 0.4s var(--ease); }
.form-progress__label { font-size: var(--fs-small); color: var(--slate-dim); white-space: nowrap; }

.form-step { display: contents; }
.js .form-step:not(.is-active) { display: none; }
.no-js .form-step__next, .no-js .form-step__back { display: none; }

.form-step__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-2); }
.form-step__actions .btn-primary { flex: 1; }
@media (max-width: 420px) {
  .form-step__actions { flex-wrap: wrap; }
  .form-step__actions .btn-primary { width: 100%; }
}

.form-success {
  display: none;
  border: 1px solid var(--signal-30);
  background: var(--ink-raised);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success .icon-tile { margin-inline: auto; }
.form-success h3 { margin-bottom: var(--sp-2); }

.contact-side .card { margin-bottom: var(--sp-4); }
.contact-side h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-side p { font-size: 0.9375rem; margin: 0; }

@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--slate-dim);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--slate-dim); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb svg { width: 12px; height: 12px; }

.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--sp-7));
  padding-bottom: var(--sp-6);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__glow {
  position: absolute;
  top: -200px;
  right: -160px;
  width: 700px;
  height: 560px;
  background:
    radial-gradient(circle, rgba(255,184,0,0.20) 0%, transparent 68%),
    radial-gradient(ellipse 260px 220px at 30% 70%, rgba(255,164,0,0.10) 0%, transparent 75%);
  filter: blur(20px);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__eyebrow { margin-bottom: var(--sp-4); }
.page-hero h1 { max-width: 760px; }
.page-hero p.lead { max-width: 620px; margin-top: var(--sp-4); }

/* =========================================================================
   PROSE (Privacy / Terms)
   ========================================================================= */
.prose h2 { font-size: 1.375rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--sp-3); max-width: 720px; }
.prose ul { margin-bottom: var(--sp-3); padding-left: 1.2rem; list-style: disc; max-width: 720px; }
.prose li { margin-bottom: 6px; color: var(--slate); }
.notice-banner {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--signal-30);
  background: var(--signal-08);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-7);
  max-width: 720px;
}
.notice-banner svg { flex: none; width: 20px; height: 20px; color: var(--signal-text); margin-top: 2px; }
.notice-banner p { margin: 0; font-size: 0.9375rem; color: var(--paper); }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.mt-0 { margin-top: 0; }
.center-col { max-width: var(--container-narrow); margin-inline: auto; text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Mobile/tablet smoke (homepage hero only, scoped to body.page-home) and the
   right-side vertical menu drawer with hover glow (sitewide, all pages).

   The smoke itself is CSS-only: three radial gradients warped through an SVG
   feDisplacementMap (#smokeWarp, defined once in index.html) and drifted
   with a slow transform animation -- the same radial-gradient + blur + drift
   idea as .hero__glow above, just tuned to read as a plume instead of a
   blob. This replaced a 46 MB, 240-frame animated smoke-gold.webp that also
   carried a visible third-party watermark baked into every frame; the new
   version is a few hundred bytes of CSS, has no source resolution to run
   out of, and needs no image request at all.
   ========================================================================= */
.hero__smoke { display: none; }

@keyframes smoke-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-4%, 3%) scale(1.12) rotate(3deg); }
  100% { transform: translate(3%, -4%) scale(0.95) rotate(-3deg); }
}

@media (max-width: 1020px) {
  .page-home .hero {
    background: radial-gradient(ellipse 110% 85% at 50% 32%, #0c0c0c 0%, #000000 72%);
  }
  .page-home .hero__glow { opacity: 0.12; }
  .page-home .hero__smoke {
    display: block;
    position: absolute;
    inset: -6% -10%;
    background:
      radial-gradient(ellipse 42% 30% at 32% 60%, rgba(255,184,0,0.55) 0%, transparent 70%),
      radial-gradient(ellipse 34% 24% at 62% 42%, rgba(255,164,0,0.40) 0%, transparent 72%),
      radial-gradient(ellipse 28% 20% at 48% 78%, rgba(255,184,0,0.30) 0%, transparent 75%);
    filter: url(#smokeWarp) blur(26px);
    opacity: 0.8;
    animation: smoke-drift 16s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__smoke { display: none; }
}

/* Right-side vertical drawer (sitewide) */
.mobile-menu {
  inset: 0 0 0 auto;
  width: min(82vw, 340px);
  padding: calc(var(--nav-h) + 24px) 20px 28px;
  gap: var(--sp-5);
  background: linear-gradient(180deg, #101010 0%, var(--ink) 100%);
  border-left: 1px solid var(--seam);
  box-shadow: none;
  visibility: hidden;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,184,0,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -24px 0 60px rgba(0,0,0,0.6);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), visibility 0s;
}
.mobile-menu__links { gap: 6px; position: relative; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 12px;
  transform: translateX(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              text-shadow 0.25s var(--ease);
}
.mobile-menu__link::after {
  content: '\203A';
  font-size: 1.4rem;
  color: var(--slate-dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible,
.mobile-menu__link:active {
  color: var(--signal-text);
  background: linear-gradient(90deg, rgba(255,184,0,0.10), rgba(255,184,0,0.02));
  border-color: rgba(255,184,0,0.22);
  box-shadow: 0 0 22px rgba(255,184,0,0.14);
  text-shadow: 0 0 14px rgba(255,184,0,0.45);
}
.mobile-menu.is-open .mobile-menu__link:hover,
.mobile-menu.is-open .mobile-menu__link:focus-visible,
.mobile-menu.is-open .mobile-menu__link:active { transition-delay: 0s; }
.mobile-menu__link:hover::after,
.mobile-menu__link:active::after { color: var(--signal-text); transform: translateX(3px); }

.menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

/* Mild glow on the desktop nav links too (homepage) */
.navbar__link { transition: color 0.2s var(--ease), text-shadow 0.25s var(--ease); }
.navbar__link:hover { color: var(--paper); text-shadow: 0 0 12px rgba(255,184,0,0.45); }

/* =========================================================================
   Business-review fixes
   ========================================================================= */
.hero__note { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--slate); }

/* Why Upshift: the promise sits in a framed card under the section heading */
.philosophy__box {
  max-width: 860px; margin: var(--sp-6) auto 0; padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--seam); border-radius: var(--r-lg); background: var(--ink);
}
.philosophy__box .philosophy__no { font-size: clamp(1.375rem, 2vw + 0.75rem, 2rem); }
.philosophy__box .philosophy__yes { font-size: clamp(1.125rem, 1.4vw + 0.75rem, 1.5rem); }

/* Thumb-friendly tap targets on phones (about 44px), without changing the look */
@media (max-width: 760px) {
  .footer__links { gap: 0; }
  .footer__links a, .footer__legal a, .footer__contact a, .breadcrumb a { display: inline-block; padding-block: 11px; }
  .quick-jump__link { min-height: 44px; display: inline-flex; align-items: center; }
  .link-arrow { position: relative; }
  .link-arrow::before { content: ''; position: absolute; inset: -12px -6px; }
  .footer__social a { width: 44px; height: 44px; }
}

/* Laptops/desktops: the gold smoke as a right-hand accent, same CSS-only
   technique as the mobile version above -- no fixed source resolution, so
   it stays sharp at any viewport width instead of being sized to protect
   a 500px source clip. */
@media (min-width: 1021px) {
  .page-home .hero__smoke {
    display: block; position: absolute; inset: auto;
    right: -9%; bottom: 4%;
    width: min(50vw, 760px); aspect-ratio: 500 / 333;
    background:
      radial-gradient(ellipse 42% 30% at 32% 60%, rgba(255,184,0,0.55) 0%, transparent 70%),
      radial-gradient(ellipse 34% 24% at 62% 42%, rgba(255,164,0,0.40) 0%, transparent 72%),
      radial-gradient(ellipse 28% 20% at 48% 78%, rgba(255,184,0,0.30) 0%, transparent 75%);
    filter: url(#smokeWarp) blur(20px);
    opacity: 0.55;
    animation: smoke-drift 18s ease-in-out infinite alternate;
    /* feather every edge so the container's rectangle never shows as a hard line */
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  }
}
@media (min-width: 1021px) and (prefers-reduced-motion: reduce) {
  .page-home .hero__smoke { display: none; }
}

/* =========================================================================
   SCROLL EXPERIENCE (Nixtio-inspired)
   1. Floating pill navbar
   2. Stacking panels -- each section slides up over the previous one
   3. Scroll-linked word-by-word headline reveal
   (4. Desktop-only gliding scroll lives entirely in main.js)
   Every effect is scoped to .js, so with JavaScript off the site renders as
   a normal, fully visible page; 2 and 3 are also off under reduced motion.
   ========================================================================= */

/* ---------- 1. Floating pill navbar ----------
   The header is taken out of the page flow and fixed to the viewport. The
   heroes already reserve var(--nav-h) of top padding, so nothing shifts.
   (Previously .navbar was sticky *inside* a header of its own height, which
   meant it actually scrolled away after the first 78px.) */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px var(--pad) 0;
  pointer-events: none;
}
.navbar {
  position: relative;
  top: auto;
  pointer-events: auto;
  max-width: var(--container);
  height: 64px;
  margin-inline: auto;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,14,14,0.62);
  box-shadow: 0 10px 34px rgba(0,0,0,0.35);
}
.navbar.is-scrolled { border-color: rgba(255,255,255,0.1); background: rgba(14,14,14,0.88); }
.navbar__inner { padding-inline: 22px 8px; }
.navbar .brand img { height: 36px; }
.navbar .navbar__cta { border-radius: 999px; padding-block: 0.72rem; }
@media (max-width: 1020px) {
  header { padding: 10px 12px 0; }
  .navbar { height: 58px; }
  .navbar__inner { padding-inline: 18px 10px; }
  .navbar .brand img { height: 32px; }
}
footer { position: relative; z-index: 1; }

/* ---------- 2. Stacking panels ----------
   Sections become sticky "cards". --stick-top is set per section by main.js
   to min(0, viewportHeight - sectionHeight): a section taller than the
   screen scrolls normally until its *bottom* reaches the bottom of the
   viewport, and only then holds still -- so no content is ever hidden --
   while the next section slides up over it with rounded corners and a
   shadow. Later sections paint above earlier ones because they come later
   in the DOM and are all positioned. */
@media (prefers-reduced-motion: no-preference) {
  .js main > section { position: relative; background-color: var(--ink); }
  .js main > section.section--raised { background-color: var(--ink-raised); }
  .js main > section.stack-panel { position: sticky; top: var(--stick-top, 0px); }
  .js main > section.stack-panel + section {
    border-top: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.55);
  }
  @media (max-width: 860px) {
    .js main > section.stack-panel + section { border-radius: 22px 22px 0 0; }
  }
}

/* ---------- 3. Word-by-word headline reveal ----------
   main.js wraps each word in .w with --i (its index) and sets --p (0 -> 1)
   on the heading as it travels up the screen. Each word fades from dim to
   full over one step of --p, in reading order, so the heading "fills in"
   line by line -- and un-fills if you scroll back up. */
.js .word-reveal .w {
  opacity: clamp(0.18, calc(var(--p, 1) * (var(--n) + 1.5) - var(--i)), 1);
  transition: opacity 0.12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .js .word-reveal .w { opacity: 1 !important; }
}

/* The closing CTA sits over a stuck panel; promoting it to its own layer
   stops mobile browsers repainting that overlap as you scroll into it. */
.final-cta { transform: translateZ(0); }

/* Phones/tablets: the homepage hero already carries the gold smoke layer, so
   the glow sits back rather than doubling up on it (the old fixed-size glow
   was dimmed to 0.12 here for the same reason). Sized from vw instead of
   vmax, since on a tall phone vmax is the height and blows the glow up. */
@media (max-width: 1020px) {
  .page-home .hero__glow {
    top: -10%; width: 160%; height: 118%;
    background-image: image-set(url("../assets/glow-1280.webp") type("image/webp"),
                                url("../assets/glow-1280.png") type("image/png"));
    background-image: -webkit-image-set(url("../assets/glow-1280.webp") type("image/webp"),
                                        url("../assets/glow-1280.png") type("image/png"));
    animation: hero-drift 24s ease-in-out infinite alternate,
               hero-pulse-sm 5.5s ease-in-out infinite;
  }
}
@keyframes hero-pulse-sm {
  0%, 100% { opacity: 0.20; }
  50%      { opacity: 0.38; }
}
@media (max-width: 1020px) and (prefers-reduced-motion: reduce) {
  .page-home .hero__glow { animation: none; opacity: 0.2; }
}

/* Callouts on phones: the desktop padding (28px/40px) and h3-sized text are
   too heavy at 390px wide, where the box is nearly full width. */
@media (max-width: 640px) {
  .callout { padding: var(--sp-3) var(--sp-4); border-radius: 0 10px 10px 0; margin-top: var(--sp-4); }
  .callout p { font-size: 1.0625rem; line-height: 1.45; }
  /* the pricing section is text-heavy; close the gap under its heading a little */
  #pricing .section-head { margin-bottom: var(--sp-4); }
}

/* =========================================================================
   2026 REFRESH (appended)
   1. Colour themes: Dark / Light / Blue (Blue is the default)
   2. Top bar with theme switch + menu button (replaces the old pill nav)
   3. Semicircle dial menu
   4. Homepage: Silk hero and the new sections (prefixed sx-)
   ========================================================================= */

/* ---------- 1. Themes ----------
   Dark keeps the original tokens. Blue and Light override them. Gold is the
   brand accent in every theme; --signal-text is the shade used for gold
   *text*, darker in Light so it passes contrast on the cream background. */
:root {
  --signal-text: var(--signal);
  --tint: rgba(255,184,0,0.08);
  --ring: rgba(255,184,0,0.30);
  --nav-bg: rgba(14,14,14,0.62);
  --nav-border: rgba(255,255,255,0.08);
  --seg-bg: rgba(255,255,255,0.05);
  --panel-edge: rgba(255,255,255,0.07);
  --shadow: rgba(0,0,0,0.55);
  --card-shadow: none;
  --glow: rgba(255,184,0,0.16);
  --before: #7D5A00;
  --glass: rgba(16,16,16,0.55);
  --scrim: rgba(8,8,8,0.6);
}
html[data-theme="blue"] {
  --ink: #060D1F;
  --ink-raised: #0B1630;
  --ink-raised-2: #0F1C3B;
  --seam: #1B2A4D;
  --seam-strong: #2A3C66;
  --paper: #EEF3FF;
  --slate: #9DAACB;
  --slate-dim: #7F8DB0;
  --signal-text: #FFC233;
  --tint: rgba(255,184,0,0.10);
  --ring: rgba(255,184,0,0.32);
  --nav-bg: rgba(11,22,48,0.62);
  --nav-border: rgba(160,190,255,0.12);
  --seg-bg: rgba(160,190,255,0.07);
  --panel-edge: rgba(160,190,255,0.08);
  --shadow: rgba(0,4,20,0.6);
  --before: #5E4A1A;
  --glass: rgba(11,22,48,0.55);
  --scrim: rgba(6,13,31,0.6);
}
html[data-theme="light"] {
  --ink: #F7F5F0;
  --ink-raised: #FFFFFF;
  --ink-raised-2: #FFFCF4;
  --seam: #E4DFD4;
  --seam-strong: #CFC7B7;
  --paper: #121212;
  --slate: #55524C;
  --slate-dim: #6E6A62;
  --signal-text: #8A5A00;
  --signal-08: rgba(255,184,0,0.14);
  --signal-14: rgba(255,184,0,0.22);
  --signal-30: rgba(176,118,0,0.38);
  --tint: rgba(255,184,0,0.16);
  --ring: rgba(176,118,0,0.38);
  --nav-bg: rgba(255,255,255,0.72);
  --nav-border: rgba(0,0,0,0.08);
  --seg-bg: rgba(0,0,0,0.04);
  --panel-edge: rgba(0,0,0,0.06);
  --shadow: rgba(70,50,0,0.12);
  --card-shadow: 0 1px 2px rgba(60,40,0,0.05), 0 10px 28px rgba(60,40,0,0.07);
  --glow: rgba(255,184,0,0.26);
  --before: #D9C9A3;
  --glass: rgba(255,255,255,0.6);
  --scrim: rgba(247,245,240,0.6);
}
html[data-theme="light"] .card { box-shadow: var(--card-shadow); }
html[data-theme="light"].js main > section.stack-panel + section {
  border-top-color: var(--panel-edge);
  box-shadow: 0 -30px 60px var(--shadow);
}
html[data-theme="blue"].js main > section.stack-panel + section {
  border-top-color: var(--panel-edge);
  box-shadow: 0 -30px 60px var(--shadow);
}
/* Smooth cross-fade while switching theme (class is added for ~600ms). */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, box-shadow .5s ease !important;
}

/* ---------- 2. Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px var(--pad) 0;
  pointer-events: none;
}
.topbar__pill {
  pointer-events: auto;
  max-width: var(--container);
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 34px var(--shadow);
}
.topbar__brand { display: flex; align-items: center; flex: none; }
.topbar__brand img { height: 36px; width: auto; display: block; }
.topbar__brand:hover { opacity: .9; }
.logo-on-light { display: none !important; }
html[data-theme="light"] .logo-on-dark { display: none !important; }
html[data-theme="light"] .logo-on-light { display: block !important; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__cta { border-radius: 999px; padding-block: 0.72rem; }

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--seg-bg);
  border: 1px solid var(--nav-border);
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.theme-switch button:hover { color: var(--paper); }
.theme-switch button[aria-pressed="true"] { background: var(--signal); color: var(--signal-ink); }
.theme-switch svg { width: 15px; height: 15px; flex: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--seam-strong);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .25s var(--ease);
}
.menu-btn:hover { border-color: var(--signal); }
.menu-btn__lines { position: relative; width: 20px; height: 12px; display: block; }
.menu-btn__lines span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn__lines span:first-child { top: 1px; }
.menu-btn__lines span:last-child { top: 9px; }
body.dial-open .menu-btn__lines span:first-child { top: 5px; transform: rotate(45deg); }
body.dial-open .menu-btn__lines span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1300px) { .theme-switch__label { display: none; } .theme-switch button { padding: 0 10px; } }
@media (max-width: 1020px) { .topbar { padding: 10px 12px 0; } .topbar__pill { height: 58px; padding: 0 6px 0 18px; } .topbar__brand img { height: 32px; } }
@media (max-width: 640px) {
  .topbar__cta, .menu-btn__text { display: none; }
  .menu-btn { padding: 0 13px; height: 44px; }
  .theme-switch button { min-width: 34px; height: 34px; padding: 0 7px; }
  .topbar__actions { gap: 6px; }
}

/* ---------- 3. Semicircle dial menu ---------- */
.dial-edge {
  position: fixed;
  right: 0; top: 50%;
  translate: 0 -50%;
  z-index: 90;
  width: 30px; height: 84px;
  border-radius: 84px 0 0 84px;
  border: 1px solid var(--nav-border);
  border-right: 0;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding-left: 6px;
  transition: width .3s var(--ease), opacity .35s ease, transform .5s var(--ease), color .2s ease;
}
.dial-edge:hover { width: 38px; color: var(--signal-text); }
.dial-edge svg { width: 14px; height: 14px; }
body.dial-open .dial-edge { opacity: 0; transform: translateX(100%); pointer-events: none; }

.dial-scrim {
  position: fixed; inset: 0;
  z-index: 96;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
body.dial-open .dial-scrim { opacity: 1; pointer-events: auto; }

.dial {
  --R: 360px;
  --sel-rot: 0deg;
  position: fixed;
  right: 0; top: 50%;
  width: 0; height: 0;
  z-index: 97;
  outline: none;
  visibility: hidden;
  transition: visibility 0s linear .8s;
}
body.dial-open .dial { visibility: visible; transition: visibility 0s; }
.dial__wheel {
  position: absolute;
  right: 0;
  top: calc(var(--R) * -1);
  width: var(--R);
  height: calc(var(--R) * 2);
  border-radius: var(--R) 0 0 var(--R);
  overflow: hidden;
  border: 1px solid var(--nav-border);
  border-right: 0;
  background: radial-gradient(circle at 100% 50%, color-mix(in srgb, var(--signal) 14%, var(--ink-raised)) 0%, var(--ink-raised) 46%, color-mix(in srgb, var(--ink-raised) 94%, transparent) 100%);
  box-shadow: -40px 0 90px var(--shadow);
  transform: translateX(100%);
  transition: transform .8s var(--ease);
  cursor: pointer;
  touch-action: none;
}
body.dial-open .dial__wheel { transform: none; }
.dial__track, .dial__glow {
  position: absolute;
  left: 34px; top: 34px;
  width: calc((var(--R) - 34px) * 2);
  height: calc((var(--R) - 34px) * 2);
  border-radius: 50%;
}
.dial__track { border: 2px dotted var(--signal); opacity: .45; }
.dial__glow {
  border: 3px solid var(--signal);
  -webkit-mask: conic-gradient(from 263deg, #000 0deg 14deg, transparent 14deg 360deg);
  mask: conic-gradient(from 263deg, #000 0deg 14deg, transparent 14deg 360deg);
  transform: rotate(var(--sel-rot));
  transition: transform .5s cubic-bezier(.34,1.3,.64,1);
  filter: drop-shadow(0 0 8px rgba(255,184,0,.65));
}
.dial__center { position: absolute; left: var(--R); top: var(--R); width: 0; height: 0; }
.dial__knob {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform-origin: 0 0;
  transform: rotate(var(--sel-rot)) translateX(calc((var(--R) - 34px) * -1));
  transition: transform .5s cubic-bezier(.34,1.3,.64,1);
}
.dial__knob span {
  position: absolute; left: -11px; top: -11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 7px rgba(255,184,0,.18), 0 0 26px rgba(255,184,0,.75);
}
.dial__items { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.dial__slot {
  --a: 110deg;
  --d: 0ms;
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform-origin: 0 0;
  transform: rotate(var(--a)) translateX(calc((var(--R) + 22px) * -1));
  opacity: 0;
  transition: transform .8s var(--ease) var(--d), opacity .5s ease var(--d);
}
body.dial-open .dial__slot { opacity: 1; }
.dial__item {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  transform: rotate(calc(var(--a) * -1)) translate(-100%, -50%);
  transition: transform .8s var(--ease) var(--d);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 10px 16px;
  white-space: nowrap;
  touch-action: none;
}
.dial__name {
  font-family: var(--f-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 18px;
  color: var(--slate-dim);
  transition: color .3s ease, font-size .4s var(--ease);
}
.dial__line {
  flex: none; width: 18px; height: 2px; border-radius: 2px;
  background: var(--signal);
  opacity: 0; transform: scaleX(.2); transform-origin: right center;
  transition: opacity .3s ease, transform .4s var(--ease);
}
.dial__item.is-near .dial__name { font-size: 22px; color: var(--slate); }
.dial__item.is-sel .dial__name { font-size: 32px; color: var(--paper); }
.dial__item.is-sel .dial__line { opacity: 1; transform: none; }
.dial__item:hover .dial__name, .dial__item:focus-visible .dial__name { color: var(--signal-text); }
.dial__item[aria-current="page"] .dial__name::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-left: 10px; vertical-align: middle; }
.dial.is-small .dial__name { font-size: 15px; }
.dial.is-small .dial__item.is-near .dial__name { font-size: 18px; }
.dial.is-small .dial__item.is-sel .dial__name { font-size: 24px; }

.dial-hint {
  position: fixed;
  left: 40px; bottom: 32px;
  z-index: 98;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .45s ease, transform .6s var(--ease);
}
body.dial-open .dial-hint { opacity: 1; transform: none; pointer-events: auto; }
.dial-hint p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--slate); }
.dial-hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--seam-strong); font: 600 12px/1 var(--f-body); color: var(--paper);
}
.dial-hint__touch { display: none !important; }
@media (hover: none) {
  .dial-hint__keys { display: none !important; }
  .dial-hint__touch { display: block !important; }
}
@media (max-width: 640px) { .dial-hint { left: 20px; bottom: 20px; } }
body.dial-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .dial__wheel, .dial__slot, .dial__item, .dial__knob, .dial__glow, .dial-scrim, .dial-hint { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- Footer logo swap ---------- */
.footer__brand img.logo-on-light { display: none; }
html[data-theme="light"] .footer__brand img.logo-on-dark { display: none; }
html[data-theme="light"] .footer__brand img.logo-on-light { display: block; }

/* ---------- 4. Homepage ---------- */
.sx-h2 {
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.sx-sub { margin-top: var(--sp-4); max-width: 540px; font-size: 1.1875rem; }
.sx-sec { padding-block: var(--sp-8); }

/* Hero */
.sx-hero {
  position: relative;
  overflow: hidden;
  min-height: max(100svh, 760px);
  padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
}
.sx-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sx-hero__fallback {
  position: absolute; inset: -10%;
  pointer-events: none;
  opacity: 0;
  background-image: image-set(url("../assets/glow-2560.webp") type("image/webp"), url("../assets/glow-2560.png") type("image/png"));
  background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.no-js .sx-hero__fallback, .no-webgl .sx-hero__fallback { opacity: .85; animation: hero-drift 24s ease-in-out infinite alternate; }
.sx-hero__grid {
  position: relative; z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: var(--sp-6);
  align-items: end;
  will-change: transform, opacity;
}
.sx-hero__title {
  font-size: clamp(2.75rem, 5.2vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-4);
}
.sx-hero__accent { display: block; color: var(--signal-text); }
.sx-hero__lead { max-width: 560px; margin-bottom: var(--sp-5); }
.sx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sx-actions .btn { border-radius: 999px; padding: 1rem 1.7rem; }
.btn-glass { background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sx-pulse { animation: cta-pulse 2.8s ease-in-out infinite; }
.sx-hero__foot {
  position: relative; z-index: 1; width: 100%;
  margin-top: var(--sp-6);
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap;
}
.sx-trust { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--fs-small); color: var(--slate); }
.sx-scroll { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-dim); }
.sx-scroll__line {
  display: block; width: 2px; height: 44px;
  background-image: repeating-linear-gradient(180deg, var(--signal) 0 7px, transparent 7px 17px);
  background-size: 100% 34px;
  animation: flow-v 1.6s linear infinite;
}
@keyframes flow-v { to { background-position: 0 -34px; } }

.sx-proof__card {
  border: 1px solid var(--nav-border);
  border-radius: 24px;
  padding: 26px 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 70px -30px var(--shadow);
  animation: sx-float 7s ease-in-out infinite;
}
@keyframes sx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.sx-proof__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-dim); }
.sx-proof__badge { color: var(--signal-ink); background: var(--signal); border-radius: 99px; padding: 3px 10px; letter-spacing: .04em; }
.sx-proof__label { margin: 18px 0 12px; font-size: var(--fs-small); }
.sx-bar { display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--slate-dim); }
.sx-bar strong { font-family: var(--f-head); font-weight: 800; text-align: right; font-size: 15px; }
.sx-bar__track { height: 8px; border-radius: 99px; background: var(--seam); overflow: hidden; }
.sx-bar__fill { height: 100%; border-radius: 99px; transform-origin: left center; animation: sx-grow 1.4s .7s var(--ease) both; }
.sx-bar__fill--before { width: 13%; background: var(--before); }
.sx-bar__fill--after { width: 100%; background: var(--signal); }
@keyframes sx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sx-proof__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--seam); font-size: 13px; }

.sx-in { animation: sx-rise .9s var(--ease) both; }
.sx-in--1 { animation-delay: .05s; } .sx-in--2 { animation-delay: .16s; } .sx-in--3 { animation-delay: .28s; } .sx-in--4 { animation-delay: .40s; } .sx-in--5 { animation-delay: .55s; }
@keyframes sx-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Industries band */
.sx-band { padding-block: var(--sp-7); overflow: hidden; }
.sx-band .eyebrow { margin-bottom: var(--sp-5); }
.sx-marquee { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-5); }
.sx-marquee__row { display: flex; gap: 16px; width: max-content; padding-left: var(--pad); will-change: transform; }
.sx-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--seam);
  border-radius: 999px;
  font-family: var(--f-head); font-weight: 700; font-size: 1.25rem;
  color: var(--paper);
  background: var(--ink-raised);
  white-space: nowrap;
}
.sx-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.sx-marquee__row--alt .sx-pill { background: transparent; color: var(--slate); }
.sx-marquee__row--alt .sx-pill::before { background: var(--seam-strong); }

/* Split with sticky column */
.sx-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-8); align-items: start; }
.sx-split--how { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sx-sticky { position: sticky; top: 140px; }
.sx-sticky .eyebrow { margin-bottom: var(--sp-4); }

/* Problem spotlight */
.sx-spot { padding-top: var(--sp-5); }
.sx-spot li {
  display: flex; gap: 22px; align-items: baseline;
  padding-block: 64px;
  border-top: 1px solid var(--seam);
  color: var(--paper);
  transform-origin: left center;
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .35s ease;
}
.js .sx-spot li { opacity: .32; transform: scale(.96); }
.js .sx-spot li.is-active { opacity: 1; transform: none; color: var(--signal-text); }
.sx-spot__n { font-family: var(--f-head); font-weight: 800; font-size: 1rem; flex: none; }
.sx-spot__t { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.375rem, 1.4vw + 1rem, 1.875rem); line-height: 1.25; letter-spacing: -0.01em; }

/* Process: stacking cards */
.sx-steps { position: relative; padding-left: 48px; }
.sx-steps__rail { position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px; background: var(--seam); overflow: hidden; }
.sx-steps__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: top center; transform: scaleY(var(--fill, 0)); }
.no-js .sx-steps__fill { transform: none; }
.sx-step {
  position: sticky;
  top: calc(120px + var(--i) * 26px);
  margin-bottom: 140px;
  min-height: 280px;
  background: var(--ink-raised);
  border: 1px solid var(--seam);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 -16px 40px var(--shadow);
}
.sx-step:last-child { margin-bottom: 0; }
.sx-step__dot { position: absolute; left: -45px; top: 44px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--signal); }
.sx-step__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.sx-step h3 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.sx-step__n { font-family: var(--f-head); font-weight: 800; font-size: 4rem; line-height: .9; color: var(--signal); }
.sx-step > p { margin-top: 18px; max-width: 520px; font-size: 1.125rem; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px !important; }
.sx-tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--seam); color: var(--slate); }

/* Services index */
.sx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.sx-head > div { max-width: 760px; }
.sx-head .eyebrow { margin-bottom: var(--sp-4); }
.sx-head__note { max-width: 360px; font-size: 0.9375rem; }
.sx-index { border-bottom: 1px solid var(--seam); }
.sx-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 24px;
  padding: 30px 12px;
  border-top: 1px solid var(--seam);
  color: var(--paper);
  overflow: hidden;
}
.sx-row::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--tint), transparent 80%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.sx-row:hover::before, .sx-row:focus-visible::before { transform: scaleX(1); }
.sx-row__n { position: relative; font-family: var(--f-head); font-weight: 800; font-size: 15px; color: var(--slate-dim); }
.sx-row__body { position: relative; min-width: 0; }
.sx-row__t { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.625rem, 1.6vw + 1rem, 2.375rem); letter-spacing: -0.02em; line-height: 1.1; transition: color .3s ease, transform .45s var(--ease); }
.sx-row:hover .sx-row__t, .sx-row:focus-visible .sx-row__t { color: var(--signal-text); transform: translateX(10px); }
.sx-row__d { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s ease; }
.sx-row__d > span { overflow: hidden; min-height: 0; display: block; padding-top: 10px; font-size: 1rem; color: var(--slate); max-width: 640px; }
.sx-row:hover .sx-row__d, .sx-row:focus-visible .sx-row__d { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .sx-row__d { grid-template-rows: 1fr; opacity: 1; } }
.sx-row__arrow {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--seam-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform .45s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease;
}
.sx-row__arrow svg { width: 18px; height: 18px; }
.sx-row:hover .sx-row__arrow { transform: rotate(-45deg); background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }

/* Results */
.sx-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-top: var(--sp-4); }
.sx-big__before, .sx-big__after { font-family: var(--f-head); font-weight: 800; font-size: clamp(4.5rem, 10vw, 10rem); line-height: .95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.sx-big__before { color: var(--slate-dim); }
.sx-big__after { color: var(--signal-text); }
.sx-big__arrow { width: 72px; height: 40px; flex: none; color: var(--signal); }
.sx-big__caption { margin-top: var(--sp-3); font-family: var(--f-head); font-weight: 700; font-size: 1.625rem; color: var(--paper); }
.sx-results { margin-top: var(--sp-6); }
.sx-results .stat-card { text-align: left; }
.sx-results .stat__value { font-size: clamp(2.25rem, 2vw + 1.25rem, 3rem); }
.sx-results__link { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-3); color: var(--slate); }
.sx-results__link .link-arrow { align-self: flex-start; }

/* Why Upshift */
.sx-why { max-width: 1100px; }
.sx-why .eyebrow { margin-bottom: var(--sp-5); }
.sx-why__no.statement, .sx-why__yes.statement { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 3.6vw + 1rem, 4rem); line-height: 1.06; letter-spacing: -0.03em; }
.sx-why__no.statement { color: var(--slate-dim); }
.sx-why__yes.statement { margin-top: var(--sp-4); color: var(--paper); }
.sx-strike-wrap { position: relative; }
.sx-strike {
  position: absolute; left: 0; right: 0; top: 54%;
  height: 5px; border-radius: 4px;
  background: var(--signal);
  transform-origin: left center;
  transform: scaleX(var(--strike, 1));
}
.sx-why__foot { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); }
.sx-why__foot p { max-width: 440px; font-size: 0.9375rem; }
.sx-founder {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 12px 22px 12px 12px;
  border: 1px solid var(--seam); border-radius: 999px;
  background: var(--ink);
  transition: border-color .3s ease;
}
.sx-founder:hover { border-color: var(--ring); }
.sx-founder__mono {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, var(--tint), var(--ink-raised));
  border: 1px solid var(--ring);
  font-family: var(--f-head); font-weight: 800; font-size: 20px; color: var(--signal-text);
}
.sx-founder strong { display: block; font-family: var(--f-head); font-size: 1rem; }
.sx-founder small { display: block; font-size: 0.875rem; color: var(--slate); }

/* FAQ (two columns on the homepage) */
.sx-faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-8); align-items: start; }

@media (max-width: 980px) {
  .sx-hero__grid, .sx-split, .sx-split--how, .sx-faq { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .sx-sticky { position: relative; top: auto; }
  .sx-proof { max-width: 460px; }
}
@media (max-width: 640px) {
  .sx-hero { padding-top: calc(var(--nav-h) + var(--sp-6)); }
  .sx-actions { flex-direction: column; align-items: stretch; }
  .sx-actions .btn { width: 100%; }
  .sx-row { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 14px; }
  .sx-row__arrow { width: 40px; height: 40px; }
  .sx-step { padding: 28px 24px; top: calc(96px + var(--i) * 18px); margin-bottom: 100px; min-height: 0; }
  .sx-step__n { font-size: 3rem; }
  .sx-steps { padding-left: 36px; }
  .sx-step__dot { left: -33px; }
  .sx-steps__rail { left: 7px; }
  .sx-pill { font-size: 1rem; padding: 11px 20px; }
  .sx-spot li { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-in, .sx-pulse, .sx-proof__card, .sx-bar__fill, .sx-scroll__line { animation: none !important; }
}

/* ---------- 5. Refresh: finishing touches ---------- */
/* Without JavaScript the theme buttons and dial can't work, so they step
   aside; the footer links carry navigation instead. */
.no-js .theme-switch, .no-js .menu-btn, .no-js .dial-edge, .no-js .dial,
.no-js .dial-scrim, .no-js .dial-hint { display: none !important; }

/* Lock page scroll while the dial is open (html, not body: <html> already
   has overflow-x set, so overflow on <body> alone would not stop scrolling).
   The gutter stays reserved so nothing shifts sideways. */
html { scrollbar-gutter: stable; }
html.dial-lock { overflow: hidden; }

.topbar.is-scrolled .topbar__pill { box-shadow: 0 14px 40px var(--shadow); }

/* The hint's links must not be reachable by Tab while the dial is closed. */
.dial-hint { visibility: hidden; transition: opacity .45s ease, transform .6s var(--ease), visibility 0s linear .6s; }
body.dial-open .dial-hint { visibility: visible; transition: opacity .45s ease, transform .6s var(--ease), visibility 0s; }
.dial-hint .btn { border-radius: 999px; }

/* Silk canvas fades in on its first frame (no black flash in Light). */
.js .sx-hero__canvas { opacity: 0; transition: opacity 1s ease; }
.sx-hero__canvas.is-ready { opacity: 1; }

/* Strike-through that sweeps across every line of a wrapped sentence. */
.sx-strike-wrap {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 60%;
  background-size: calc(var(--strike, 1) * 100%) 5px;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
}

.sx-band__title { max-width: 760px; }
.sx-fit-head { max-width: 820px; }
.sx-cta-inner { max-width: 980px; }
.final-cta .sx-h2 { margin-bottom: var(--sp-4); }
.sx-actions--center { justify-content: center; }
.final-cta .lead { margin-bottom: var(--sp-5); }
.final-cta .lead { max-width: 620px; margin-inline: auto; }
.sx-cta-beam {
  position: absolute; left: -10%; right: -10%; top: 46%;
  height: 2px; transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: .5; filter: blur(1px); pointer-events: none;
}
.sx-results__link span:first-child { color: var(--slate); }
.sx-results__link:hover .link-arrow { color: var(--signal-text); border-color: var(--signal); }
.sx-results__link:hover .link-arrow svg { transform: translateX(4px); }

/* Light theme: gold glow on cream needs a touch more presence */
html[data-theme="light"] .final-cta__glow { background: radial-gradient(circle, var(--glow) 0%, transparent 70%); }
html[data-theme="light"] .btn-secondary { border-color: var(--seam-strong); }

/* Light theme: the dark wordmark */
.topbar__brand img, .footer__brand img { max-width: none; }

@media (max-width: 640px) {
  .dial-edge { display: none; }
  .sx-big__arrow { width: 48px; height: 28px; }
  .sx-big__caption { font-size: 1.25rem; }
}

/* =========================================================================
   6. Phone & tablet fixes (October 2026 audit)
   ========================================================================= */

/* A2: on the narrowest phones the dial is a little tighter, so the selected
   label can never run off the left edge. (main.js adds .is-xs under 380px.) */
.dial.is-xs .dial__item { gap: 8px; padding-left: 10px; }
.dial.is-xs .dial__line { width: 14px; }
.dial.is-xs .dial__name { font-size: 14px; }
.dial.is-xs .dial__item.is-near .dial__name { font-size: 16px; }
.dial.is-xs .dial__item.is-sel .dial__name { font-size: 20px; }
/* Very short phones (e.g. the original 320×568 iPhone SE): the hint line
   would touch the bottom label, so only the call-to-action stays. */
@media (max-height: 620px) { .dial-hint p { display: none !important; } }

/* D4: quicker sweep-in on touch screens, so a tap lands on settled labels. */
@media (pointer: coarse) {
  .dial { transition-delay: .55s; }
  .dial__wheel { transition-duration: .55s; }
  .dial__slot { transition-duration: .55s, .35s; }
  .dial__item { transition-duration: .55s; }
}

/* B1: the headline keeps "More of the right" together on 360px phones. */
@media (max-width: 370px) { .sx-hero__title { font-size: 2.5rem; } }
@media (max-width: 340px) { .sx-hero__title { font-size: 2.2rem; } }

/* B2: the case-study label and badge each stay on one line; if they don't
   fit side by side, the badge moves under the label instead of breaking. */
.sx-proof__top { flex-wrap: wrap; row-gap: 8px; }
.sx-proof__top > span:first-child, .sx-proof__badge { white-space: nowrap; }

/* B3: "1–2 → 7–15" fits on one line on phones. */
@media (max-width: 480px) {
  .sx-big { flex-wrap: nowrap; gap: 6px 14px; }
  .sx-big__before, .sx-big__after { font-size: clamp(3rem, 14vw, 4.5rem); }
  .sx-big__arrow { width: 40px; height: 24px; }
}

/* B4: on short landscape screens the pinned columns are a touch smaller
   (main.js also lowers their pin point so nothing is ever cut off). */
@media (min-width: 981px) and (max-height: 820px) {
  .sx-sticky .sx-h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); }
  .sx-sticky .sx-sub { font-size: 1.0625rem; margin-top: var(--sp-3); }
  .sx-sticky .callout { margin-top: var(--sp-4); }
}

/* B5: the diagonal gold line stays on desktop, where it sits between the
   heading and the text; on smaller screens it crossed the paragraph. */
@media (max-width: 980px) { .sx-cta-beam { display: none; } }

/* B6: a process card's dot fades once the next card has stacked over it,
   so the dots no longer pile up at the top of the rail. */
.sx-step__dot { transition: opacity .3s ease; }
.sx-step.is-covered .sx-step__dot { opacity: 0; }

/* B7: consistent gap between a section's small label and its heading. */
.sx-fit-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head .eyebrow + h2, .section-head .eyebrow + .sx-h2 { margin-top: 10px; }
.page-hero .eyebrow.center + h1 { margin-top: 10px; }

/* B8: on tablets in portrait the case-study link card spans the row
   instead of sitting alone at half width. */
@media (max-width: 980px) and (min-width: 641px) { .sx-results__link { grid-column: 1 / -1; } }

/* B9: on phones the service numbers and arrows line up with the title
   rather than floating in the middle of the description. */
@media (max-width: 640px) {
  .sx-row { align-items: start; }
  .sx-row__n { padding-top: 3px; }
  .sx-row__arrow { margin-top: -6px; }
}

/* D1–D3: comfortable tap areas on every touch screen (phones already had
   some of these under 760px; tablets now get them too). */
@media (pointer: coarse) {
  .theme-switch button { min-width: 44px; height: 44px; }
  .topbar__brand { min-height: 44px; }
  .menu-btn { min-height: 44px; }
  .dial-edge, .dial-edge:hover { width: 36px; height: 96px; }
  .breadcrumb a { padding-inline: 4px; margin-inline: -4px; }
  .footer__links { gap: 0; }
  .footer__links a, .footer__legal a, .footer__contact a, .breadcrumb a { display: inline-block; padding-block: 11px; }
  .link-arrow { position: relative; }
  .link-arrow::before { content: ''; position: absolute; inset: -12px -6px; }
  .footer__social a { width: 44px; height: 44px; }
}
.faq-item summary { min-height: 44px; }

/* D5: hover effects are for mouse users. On touch screens they would stay
   "stuck" after a tap (a lifted card, a gold-wiped row), so they are reset
   there; the pressed (:active) feedback still shows while tapping. */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--seam); background: var(--ink-raised); }
  .card:hover::before { opacity: 0; }
  .card:active { transform: translateY(-1px) scale(0.99); }
  .sx-row:hover::before, .sx-row:focus-visible::before { transform: scaleX(0); }
  .sx-row:active::before { transform: scaleX(1); }
  .sx-row:hover .sx-row__t { color: var(--paper); transform: none; }
  .sx-row:hover .sx-row__arrow { transform: none; background: transparent; border-color: var(--seam-strong); color: inherit; }
  .btn-primary:hover { transform: translate(var(--tx), var(--ty)); background: var(--signal); }
  .btn-primary:hover svg { transform: none; }
  .btn-primary:active { transform: scale(0.97); background: #ffc633; }
  .btn-secondary:hover { border-color: var(--seam-strong); color: var(--paper); transform: none; }
  .btn-secondary:active { transform: scale(0.97); border-color: var(--signal); color: var(--signal-text); }
  .pill:hover, .quick-jump__link:hover { transform: none; border-color: var(--seam); }
  .link-arrow:hover { color: var(--paper); border-color: var(--seam-strong); }
  .link-arrow:hover svg { transform: none; }
  .sx-results__link:hover .link-arrow { color: var(--paper); border-color: var(--seam-strong); }
  .sx-results__link:hover .link-arrow svg { transform: none; }
  .sx-founder:hover { border-color: var(--seam); }
  .dial-edge:hover { color: var(--paper); }
  .theme-switch button:hover { color: var(--slate); }
  .theme-switch button[aria-pressed="true"]:hover { color: var(--signal-ink); }
  .menu-btn:hover { border-color: var(--seam-strong); }
  .footer__links a:hover { color: var(--slate); }
  .footer__legal a:hover { color: var(--slate-dim); }
  .footer__social a:hover { border-color: var(--seam); color: var(--slate); }
  .breadcrumb a:hover { color: var(--slate-dim); }
}

/* =========================================================================
   7. Content round (October 2026)
   ========================================================================= */
/* The homepage's small label now sits inside the main heading, so search
   engines read "B2B outbound sales & lead generation" as part of it. It
   looks exactly as before. */
.sx-hero__h1 { margin: 0; font-size: inherit; line-height: normal; letter-spacing: normal; }
.sx-hero__kicker { display: block; font-size: var(--fs-body); line-height: 1.65; font-weight: 400; }
.sx-hero__kicker > .eyebrow { margin-bottom: var(--sp-4); }
.sx-hero__h1 > .sx-hero__title { display: block; }

/* =========================================================================
   8. Interaction round (October 2026)
   Reassurance CTA, section dock, searchable FAQ and toasts.
   ========================================================================= */

/* ---------- Reassurance CTA ----------
   Hovering or tabbing to a main "Book a Strategy Call" button shows what
   happens next. Mouse and keyboard only: on touch screens the meta row
   underneath says the same thing without getting in the way of the tap. */
.cta-pop-wrap { position: relative; display: inline-flex; }
.cta-pop {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 20;
  width: min(340px, 86vw); box-sizing: border-box; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; font-size: var(--fs-small); line-height: 1.45; font-weight: 400;
  color: var(--paper); background: var(--ink-raised-2);
  border: 1px solid var(--seam-strong); border-radius: 16px;
  box-shadow: 0 24px 50px -18px var(--shadow, rgba(0,0,0,.6));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 6px) scale(0.98); transform-origin: 50% 100%;
  transition: opacity .2s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
/* invisible bridge so the pointer can travel from the button to the card */
.cta-pop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.cta-pop__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-text); }
.cta-pop__step { display: flex; gap: 12px; align-items: flex-start; }
.cta-pop__n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--seam-strong); color: var(--signal-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
}
.cta-pop__dim { color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .cta-pop-wrap:hover .cta-pop,
  .cta-pop-wrap:focus-within .cta-pop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition: opacity .2s var(--ease) .12s, transform .35s var(--ease) .12s, visibility 0s linear .12s;
  }
}
.cta-pop-wrap.is-dismissed .cta-pop { opacity: 0 !important; visibility: hidden !important; }

.cta-meta {
  list-style: none; margin: var(--sp-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: var(--fs-small); color: var(--slate);
}
.cta-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; }
.cta-meta li::before { content: none; }
.cta-meta svg { width: 16px; height: 16px; flex: none; color: var(--signal-text); }
.cta-meta--center { justify-content: center; }
.cta-meta__dot { width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--signal); animation: meta-pulse 2.2s ease-out infinite; }
@keyframes meta-pulse {
  0% { box-shadow: 0 0 0 0 var(--signal-30); }
  70% { box-shadow: 0 0 0 7px rgba(255,184,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); }
}

.cta-block__row, .sx-actions--center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.cta-or { font-size: var(--fs-small); color: var(--slate-dim); }
.copy-email {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--seam-strong); background: var(--glass, transparent);
  color: var(--paper); font-size: 0.9375rem; font-weight: 500;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.copy-email svg { width: 16px; height: 16px; flex: none; }
.copy-email:hover { border-color: var(--signal); color: var(--signal-text); }
.copy-email.is-copied { border-color: var(--signal); color: var(--signal-text); }
.cta-block .btn-primary, .sx-actions--center .btn-primary { border-radius: 999px; }

@media (max-width: 640px) {
  .sx-actions .cta-pop-wrap { display: flex; }
  .sx-actions .cta-pop-wrap .btn { width: 100%; }
  .cta-block__row { flex-direction: column; align-items: stretch; }
  .cta-block__row .cta-pop-wrap { display: flex; }
  .cta-block__row .cta-pop-wrap .btn { width: 100%; }
  .cta-or { text-align: center; }
  .cta-meta { gap: 8px 16px; }
}

/* ---------- Section dock ----------
   Floating bar on long pages: shows where you are, jumps between sections,
   and keeps the call button in reach. Hidden in the page's opening screen,
   at the closing call-to-action, and while the dial menu is open. */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 85;
  max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 999px; background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--nav-border, var(--seam));
  box-shadow: 0 18px 40px -16px var(--shadow, rgba(0,0,0,.6));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.dock.is-shown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s;
}
body.dial-open .dock { opacity: 0; visibility: hidden; pointer-events: none; }
.dock__inner { display: flex; align-items: center; gap: 2px; padding: 5px; min-width: 0; }
.dock__tabs {
  display: flex; gap: 2px; min-width: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.dock__tabs::-webkit-scrollbar { display: none; }
.dock__tab {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: 999px; color: var(--slate); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.dock__tab:hover { color: var(--paper); }
.dock__tab[aria-current="true"] { background: var(--tint, var(--signal-14)); color: var(--signal-text); }
.dock__sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--seam-strong); }
.dock__cta {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--signal); color: var(--signal-ink);
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.dock__cta:hover { background: #ffc633; }
.dock__track { height: 2px; background: var(--seg-bg, rgba(255,255,255,.06)); }
.dock__bar { height: 100%; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 640px) {
  .dock { left: 12px; right: 12px; transform: translateY(24px); max-width: none; }
  .dock.is-shown { transform: none; }
  .dock__tab { padding: 0 12px; }
}
@media (hover: none) { .dock__tab:hover { color: var(--slate); } .dock__tab[aria-current="true"]:hover { color: var(--signal-text); } }

/* ---------- Searchable FAQ ---------- */
.faq-tools { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.faq-tools[hidden], .faq-empty[hidden], .faq-item[hidden] { display: none; }
.faq-search { position: relative; }
.faq-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.faq-search input {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 18px 0 48px;
  border-radius: 999px; border: 1px solid var(--seam-strong); background: var(--ink-raised);
  color: var(--paper); font: inherit; font-size: 1rem; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-search input::placeholder { color: var(--slate-dim); }
.faq-search input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px var(--ring, var(--signal-30)); }
.faq-topics { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.faq-topics__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topic {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--seam-strong); background: transparent; color: var(--slate);
  font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.faq-topic:hover { color: var(--paper); border-color: var(--slate-dim); }
.faq-topic[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.faq-count { font-size: var(--fs-small); color: var(--slate-dim); }
mark.faq-hit { background: var(--signal-30); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-empty { padding: var(--sp-5) 0; border-top: 1px solid var(--seam); }
.faq-empty__title { font-weight: 600; margin: 0 0 var(--sp-2); }
.faq-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: var(--sp-3) !important; font-size: var(--fs-small); color: var(--slate); }
.faq-vote button {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--seam-strong); background: transparent; color: var(--paper);
  font: inherit; font-size: var(--fs-small); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.faq-vote button:hover { border-color: var(--signal); color: var(--signal-text); }
.faq-vote a { color: var(--signal-text); font-weight: 600; }
@media (hover: none) {
  .faq-topic:hover { color: var(--slate); border-color: var(--seam-strong); }
  .faq-topic[aria-pressed="true"]:hover { color: var(--signal-ink); border-color: var(--signal); }
  .faq-vote button:hover { border-color: var(--seam-strong); color: var(--paper); }
  .copy-email:hover { border-color: var(--seam-strong); color: var(--paper); }
}

/* ---------- Toasts ----------
   Replace the browser alert(): short messages that offer a next step
   (Retry, Undo, Open email app) and get out of the way on their own. */
.toasts {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 120;
  width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  transition: bottom .4s var(--ease);
}
body.has-dock .toasts { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); }
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 10px 16px 16px; border-radius: 16px;
  background: var(--ink-raised-2); color: var(--paper);
  border: 1px solid var(--seam-strong);
  box-shadow: 0 18px 40px -14px var(--shadow, rgba(0,0,0,.6));
  animation: toast-in .45s var(--ease) both;
}
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.toast__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--signal-14); color: var(--signal-text);
}
.toast__icon svg { width: 16px; height: 16px; }
.toast--bad .toast__icon { background: rgba(255,138,101,.18); color: #FF9F80; }
html[data-theme="light"] .toast--bad .toast__icon { color: #B23C17; }
.toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.toast__title { font-weight: 600; font-size: 0.9375rem; }
.toast__msg { font-size: var(--fs-small); color: var(--slate); line-height: 1.45; overflow-wrap: anywhere; }
.toast__action {
  align-self: flex-start; margin-top: 8px; min-height: 34px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--signal); color: var(--signal-ink);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.toast__action:hover { background: #ffc633; }
.toast__close {
  flex: none; width: 36px; height: 36px; margin: -6px 0 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--slate-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.toast__close:hover { color: var(--paper); }
.toast__close svg { width: 14px; height: 14px; }
.toast__timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform-origin: 0 50%; animation: toast-timer linear forwards; }
.toast--bad .toast__timer { background: #FF9F80; }
.toast:hover .toast__timer, .toast:focus-within .toast__timer { animation-play-state: paused; }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
  .toasts { left: 12px; right: 12px; width: auto; }
}

/* Contact form: inline error under the buttons, and the sending spinner */
.form-error {
  grid-column: 1 / -1;
  margin-top: var(--sp-3); padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,138,101,.45); background: rgba(255,138,101,.08);
  font-size: var(--fs-small); color: var(--paper);
}
.form-error a { color: var(--signal-text); font-weight: 600; }
.btn-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(10,8,0,.25); border-top-color: currentColor; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cta-pop, .dock, .toast, .toast.is-leaving { transition: none !important; animation: none !important; }
  .cta-meta__dot { animation: none; }
  .toast__timer { animation-duration: 0s !important; opacity: 0; }
  .btn-spin { animation-duration: 1.6s; }
}

/* Without JavaScript the dock and FAQ tools stay hidden (they carry the
   hidden attribute until main.js removes it); the CTA card still works on
   hover because it is CSS only. */
main > section[tabindex="-1"]:focus { outline: none; }

/* ---------- Homepage hero: less text (October 2026) ----------
   At every screen size the hero keeps just the headline, the two buttons and
   the case-study card. The small label stays inside the <h1> for search
   engines and screen readers, only hidden from view. (The paragraph and the
   "Free · 20 minutes" row were removed from index.html; that row still sits
   under the closing call.) */
.sx-hero__kicker {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sx-hero__title { margin-bottom: var(--sp-6); }
@media (max-width: 640px) { .sx-hero__title { margin-bottom: var(--sp-5); } }
/* Smallest phones: keep "UK case study · Steel" and the 4 MONTHS badge on one line */
@media (max-width: 380px) {
  .sx-proof__top { flex-wrap: nowrap; font-size: 11px; letter-spacing: .1em; }
  .sx-proof__badge { font-size: 10.5px; padding: 3px 8px; }
}
/* With less text in the hero, centre the headline block in the space above
   the trust row instead of leaving it high up the screen. */
.sx-hero__grid { margin-block: auto; }
/* Tablet landscape / small laptops: give the case-study card enough width
   for its label and 4 MONTHS badge to share one line. */
@media (min-width: 981px) and (max-width: 1180px) {
  .sx-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .sx-proof__top { flex-wrap: nowrap; font-size: 11px; letter-spacing: .1em; }
  .sx-proof__badge { font-size: 10.5px; padding: 3px 8px; }
}

/* ---------- Phone hero: the headline fills the first screen (October 2026) ----------
   Phones only. "More of / the right / conversations." sit on their own
   lines, spaced to fill the screen between the top bar and the buttons, and
   "Consistently." types itself out (js/main.js). The case-study card and the
   trust lines follow just below the fold. Sizes scale with the screen width
   so the longest line always fits. */
.sx-hero__l { display: inline; }
@media (max-width: 640px) {
  .sx-hero { min-height: 0; justify-content: flex-start; }
  .sx-hero__grid { margin-block: 0; }
  .sx-hero__main {
    position: relative;
    display: flex; flex-direction: column;
    min-height: calc(100vh - var(--nav-h) - var(--sp-6) - 20px);
    min-height: calc(100svh - var(--nav-h) - var(--sp-6) - 20px);
    padding-bottom: 52px; box-sizing: border-box;
  }
  .sx-hero__h1 { margin-block: auto; padding-block: var(--sp-4); }
  .sx-hero__title { animation: none; margin-bottom: 0; font-size: min(2.875rem, calc((100vw - 44px) / 7.5)); line-height: 1.13; }
  .sx-hero__l { display: block; animation: sx-rise .9s var(--ease) both; }
  .sx-hero__l:nth-child(1) { animation-delay: .10s; }
  .sx-hero__l:nth-child(2) { animation-delay: .22s; }
  .sx-hero__l:nth-child(3) { animation-delay: .34s; }
  .sx-hero__accent {
    margin-top: 2rem; white-space: nowrap;
    font-size: min(3.375rem, calc((100vw - 44px) / 6.4)); line-height: 1.05;
    animation: sx-rise .9s var(--ease) .46s both;
  }
  /* short gold underline beneath "Consistently." */
  .sx-hero__accent::after {
    content: ''; display: block; width: 72px; height: 3px; margin-top: 20px;
    border-radius: 3px; background: var(--signal);
    transform-origin: 0 50%; transition: transform 1.1s var(--ease);
  }
  .sx-hero__accent.tw-pre::after { transform: scaleX(0); }
  .sx-hero__accent.tw-rule::after { transform: scaleX(1); }
  .sx-hero .sx-actions { margin-top: var(--sp-5); }
  /* a small gold line under the buttons, hinting there's more below */
  .sx-hero__main::after {
    content: ''; position: absolute; left: 50%; bottom: 8px; width: 2px; height: 28px; margin-left: -1px;
    border-radius: 2px; background: linear-gradient(var(--signal), rgba(255,184,0,0));
    transform-origin: top; animation: hero-cue 2s ease-in-out infinite;
  }
  .sx-hero__grid { gap: var(--sp-5); }
  .sx-scroll { display: none; }
}
@keyframes hero-cue {
  0% { transform: scaleY(.2); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
/* Typing: the word is hidden until main.js takes over, with a failsafe that
   shows it after 2.5s if the script never runs. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js .sx-hero__accent:not(.tw) { visibility: hidden; animation: tw-failsafe 0s linear 2.5s forwards; }
}
@keyframes tw-failsafe { to { visibility: visible; } }
.tw .tw-rest { visibility: hidden; }
.tw-caret {
  display: inline-block; width: .075em; height: .86em; margin: 0 .03em 0 .06em; vertical-align: -.04em;
  border-radius: 2px; background: var(--signal); box-shadow: 0 0 14px rgba(255,184,0,.9); opacity: 0;
}
.tw.tw-typing .tw-caret { opacity: 1; }
.tw.tw-blink .tw-caret { animation: tw-blink .9s steps(1) 3 both; }
.tw.tw-done .tw-caret { opacity: 0; transition: opacity .6s; }
@keyframes tw-blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
.tw.tw-glow .tw-typed { animation: tw-glow 1.6s ease-out both; }
@keyframes tw-glow {
  0% { text-shadow: 0 0 0 rgba(255,184,0,0); }
  35% { text-shadow: 0 0 28px rgba(255,184,0,.75); }
  100% { text-shadow: 0 0 0 rgba(255,184,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .sx-hero__l, .sx-hero__accent, .sx-hero__main::after { animation: none !important; }
}
/* Short phones (e.g. 320×568): tighten the spacing so both buttons still
   fit on the first screen. */
@media (max-width: 640px) and (max-height: 680px) {
  .sx-hero { padding-top: calc(var(--nav-h) + var(--sp-4)); }
  .sx-hero__main {
    min-height: calc(100vh - var(--nav-h) - var(--sp-4) - 12px);
    min-height: calc(100svh - var(--nav-h) - var(--sp-4) - 12px);
    padding-bottom: 40px;
  }
  .sx-hero__h1 { padding-block: 0; }
  .sx-hero__title { line-height: 1.08; }
  .sx-hero__accent { margin-top: 1.1rem; }
  .sx-hero__accent::after { margin-top: 12px; }
  .sx-hero .sx-actions { margin-top: var(--sp-4); gap: 10px; }
  .sx-hero .sx-actions .btn { padding-block: .85rem; }
}
