/* ==========================================================================
   Pillar Forward Consulting — site stylesheet (v2, AI automation rebuild)
   Colours come from tokens.css. This file owns layout, type and components.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono-f: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --glass: rgba(18, 36, 60, 0.55);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-line-2: rgba(255, 255, 255, 0.14);
  --nav-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  background: var(--bg);
}

/* Scripts show and hide things with the hidden attribute; a component's own
   display: flex or grid must never win over it. */
[hidden] {
  display: none !important;
}

/* Never split an email address at its hyphen on a narrow screen. */
a[href^="mailto:"] {
  white-space: nowrap;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* Grain + grid behind everything. Fixed, so it never scrolls with content. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 110, 200, 0.10), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- type ------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
}

.display {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  letter-spacing: -0.042em;
}
.h2 {
  font-size: clamp(1.9rem, 1.25rem + 2.5vw, 3.3rem);
}
.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.gold {
  background: linear-gradient(100deg, #fff3d6 0%, var(--accent-light) 28%, var(--accent) 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
:where(.display, .h1, .h2) + .lede {
  margin-top: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-family: var(--mono-f);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.mono {
  font-family: var(--mono-f);
}
.small {
  font-size: 0.875rem;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.mt-sm { margin-top: 0.6rem; }
.mt { margin-top: 1.1rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.mb-sm { margin-bottom: 0.6rem; }
.mb { margin-bottom: 1.1rem; }
.mb-lg { margin-bottom: 2rem; }
.mb-xl { margin-bottom: 3rem; }

/* --- buttons ---------------------------------------------------------- */

.btn {
  --btn-pad: 0.8rem 1.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease), background var(--mid) var(--ease), color var(--fast), border-color var(--fast);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn svg {
  flex: none;
}

.btn--primary {
  color: var(--on-accent);
  background: var(--gold-sheen);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.4) inset, 0 10px 30px -10px rgba(var(--accent-rgb), 0.65);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--primary:hover {
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.6) inset, 0 16px 40px -10px rgba(var(--accent-rgb), 0.85);
}
.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn--lg {
  --btn-pad: 1rem 1.6rem;
  font-size: 1rem;
}
.btn--sm {
  --btn-pad: 0.55rem 0.95rem;
  font-size: 0.85rem;
}
.btn--block {
  display: flex;
  width: 100%;
}
/* Touch screens: small buttons and pills still get a thumb-sized target. */
@media (pointer: coarse) {
  .btn--sm,
  .pill {
    min-height: 44px;
  }
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
/* Phones: paired buttons stack anyway, so give them one even width. A row
   of short jump links shares one line instead. */
@media (max-width: 480px) {
  .btn-row > .btn:not(.btn--sm) {
    flex: 1 1 100%;
  }
  .btn-row--jump {
    gap: 0.5rem;
  }
  .btn-row--jump > .btn:not(.btn--sm) {
    flex: 1 1 0;
    --btn-pad: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-light);
}
.arrow-link::after {
  content: "→";
  transition: transform var(--fast) var(--ease);
}
.arrow-link:hover::after {
  transform: translateX(3px);
}

/* --- nav -------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--mid) var(--ease), border-color var(--mid), backdrop-filter var(--mid);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 20, 38, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--glass-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.logo__img {
  height: 34px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav__phone {
  margin-left: 0.4rem;
  font-family: var(--mono-f);
  font-size: 0.82rem;
  color: var(--muted);
}
.nav__phone:hover {
  color: var(--accent-light);
}
.nav .btn {
  margin-left: 0.5rem;
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    /* Solid, no backdrop-filter: nested inside the nav's own backdrop-filter,
       a second one renders unreliably in Chromium. */
    background: #0a1729;
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility var(--mid);
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  /* Scrim: dims the page below so its links don't read as part of the menu. */
  .nav__links::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background: rgba(4, 10, 20, 0.6);
  }
  .nav__link {
    padding: 0.85rem 0.6rem;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .nav .btn {
    margin: 0.6rem 0 0;
    --btn-pad: 0.95rem 1.25rem;
    font-size: 1rem;
  }
  .nav__phone {
    margin: 0.8rem 0 0;
    text-align: center;
  }
  .nav {
    background: rgba(8, 20, 38, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* --- sections --------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section--line {
  border-top: 1px solid var(--glass-line);
}
.section__head {
  max-width: 820px;
  margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.6rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .lede {
  margin-inline: auto;
}
.section__head .lede {
  margin-top: 1.1rem;
}

/* Reveal on scroll (site.js adds .is-visible). */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html:not(.no-js) [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- glass card ------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
.card__title {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.card__body {
  color: var(--text-2);
  font-size: 0.97rem;
}
.h-card {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  color: var(--accent-light);
  background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.06));
  border: 1px solid var(--accent-line);
}

/* =========================================================================
   STORY — the 3D scroll intro
   ========================================================================= */

.story {
  position: relative;
  /* One screen. Since 22 Oct 2026 the intro plays as a looping slideshow
     (story.js) instead of being scrubbed by a 680vh scroll. */
  height: 100vh;
  height: 100svh;
  min-height: 540px;
}
.story__sticky {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Slideshow controls: pause/play and one dot per slide. The active dot
   stretches into a bar that fills while its slide holds (--story-fill). */
.story__controls {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.story__toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-line-2);
  background: rgba(8, 20, 38, 0.55);
  color: var(--accent-light);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--fast), background var(--fast);
}
.story__toggle:hover {
  border-color: var(--accent-line);
}
.story__toggle svg {
  fill: currentColor;
}
.story__toggle .i-play,
.story.is-paused .story__toggle .i-pause {
  display: none;
}
.story.is-paused .story__toggle .i-play {
  display: block;
}
.story__dots {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story__dots button {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 36px;
  padding: 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.story__dots i {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: width 0.45s var(--ease), background var(--fast);
}
.story__dots button:hover i {
  background: rgba(255, 255, 255, 0.55);
}
.story__dots .is-active i {
  width: 30px;
  background: rgba(255, 255, 255, 0.22);
}
.story__dots .is-active i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform-origin: left;
  transform: scaleX(var(--story-fill, 0));
}
.story__dots button:focus-visible,
.story__toggle:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 99px;
}
.story__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.story.is-ready .story__canvas {
  opacity: 1;
}
/* Shown until the first frame lands, and for anyone without WebGL. */
.story__poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 55% at 68% 50%, rgba(var(--accent-rgb), 0.28), transparent 70%),
    radial-gradient(25% 70% at 68% 50%, rgba(255, 210, 140, 0.12), transparent 70%),
    var(--bg);
  transition: opacity 1.2s var(--ease);
}
.story__poster::after {
  content: "";
  position: absolute;
  left: 68%;
  top: 16%;
  width: 7vw;
  min-width: 70px;
  height: 68%;
  transform: translateX(-50%);
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.55) 0 10%, rgba(var(--accent-rgb), 0.18) 10% 20%);
  filter: blur(0.3px);
  box-shadow: 0 0 80px rgba(var(--accent-rgb), 0.35);
  opacity: 0.55;
}
.story.is-ready .story__poster {
  opacity: 0;
}
.story__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 20, 38, 0.93) 0%, rgba(8, 20, 38, 0.78) 30%, rgba(8, 20, 38, 0.3) 48%, rgba(8, 20, 38, 0) 62%),
    linear-gradient(0deg, rgba(8, 20, 38, 0.9) 0%, rgba(8, 20, 38, 0) 22%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.6) 0%, rgba(8, 20, 38, 0) 16%);
}
.story__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(38% 30% at 58% 52%, rgba(var(--accent-rgb), 0.32), rgba(8, 20, 38, 0) 70%),
    var(--bg);
}

.story__panels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.story__panel {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  top: 50%;
  width: min(600px, calc(100vw - 2 * var(--gutter)));
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
  isolation: isolate;
  text-shadow: 0 1px 14px rgba(8, 20, 38, 0.8);
}
/* Soft dark pool behind each panel's copy. The pillar and its bloom can sit
   right behind the text on laptop and tablet widths; this keeps the copy
   readable without dimming the scene elsewhere. It fades with the panel. */
.story__panel::before {
  content: "";
  position: absolute;
  inset: -56px -72px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 20, 38, 0.74), rgba(8, 20, 38, 0.45) 55%, rgba(8, 20, 38, 0));
}
/* Laptops and tablets: the pillar sits directly behind the copy, so the pool
   needs to be stronger for gold-on-gold headline words to stay legible. */
@media (max-width: 1100px) {
  .story__panel::before {
    background: radial-gradient(closest-side, rgba(8, 20, 38, 0.88), rgba(8, 20, 38, 0.66) 60%, rgba(8, 20, 38, 0));
  }
}
/* Phones put the copy below the scene over the veil's own bottom shading;
   the pool would only draw a visible band there. */
@media (max-width: 760px) {
  .story__panel::before {
    display: none;
  }
}
.story__panel.is-active {
  pointer-events: auto;
}
.story__panel:first-child {
  opacity: 1;
}
.story__panel--low {
  top: auto;
  bottom: 9vh;
  transform: none;
}
.story__panel .lede {
  margin-top: 1.3rem;
}
.story__panel .btn-row {
  margin-top: 2rem;
}
.story__title {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.story__title--hero {
  font-size: clamp(2.7rem, 1.2rem + 5.6vw, 6rem);
  line-height: 0.95;
}
.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--mono-f);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.story__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.story__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--text-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chip--strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 97, 88, 0.7);
  color: var(--muted);
}
.chip--gold {
  border-color: var(--accent-line);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
}

.ticks {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.3' fill='none' stroke='%23f9d48c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
  border: 1px solid var(--accent-line);
}

/* labels pinned to 3D points */
.story__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tag3d {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  white-space: nowrap;
  will-change: transform, opacity;
}
.tag3d__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transform: translate(-50%, calc(-100% - 46px));
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  background: rgba(8, 20, 38, 0.72);
  border: 1px solid var(--accent-line);
  font-family: var(--mono-f);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag3d__inner b {
  color: var(--dim);
  font-weight: 500;
}
.tag3d--human .tag3d__inner {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.tag3d--input .tag3d__inner {
  transform: translate(-50%, -50%);
  color: var(--text-2);
  border-color: var(--glass-line-2);
}

.story__rail {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story__rail li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  font-family: var(--mono-f);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color var(--mid);
}
.story__rail li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  transition: all var(--mid) var(--ease);
}
.story__rail li {
  color: transparent;
}
.story__rail li.is-active {
  color: var(--accent-light);
}
.story__rail li.is-active::after {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: scale(1.3);
}

.story__hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-family: var(--mono-f);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity var(--mid);
}
.story__hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.story__skip {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: 28px;
  font-family: var(--mono-f);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: auto;
}

@media (max-width: 760px) {
  .story__panel {
    top: auto;
    bottom: 76px;
    transform: none;
  }
  .story__veil {
    background:
      linear-gradient(0deg, rgba(8, 20, 38, 0.97) 0%, rgba(8, 20, 38, 0.85) 34%, rgba(8, 20, 38, 0) 62%),
      linear-gradient(180deg, rgba(8, 20, 38, 0.6) 0%, rgba(8, 20, 38, 0) 16%);
  }
  .story__rail,
  .tag3d--input {
    display: none;
  }
  .story__title--hero {
    font-size: clamp(2.5rem, 1.6rem + 6vw, 3.6rem);
  }
  .story__panel .lede {
    font-size: 1rem;
    margin-top: 0.9rem;
  }
  .story__panel .btn-row {
    margin-top: 1.3rem;
  }
  .story__meta {
    margin-top: 1rem;
  }
  .ticks {
    gap: 0.45rem;
    margin-top: 1rem;
  }
  .ticks li {
    font-size: 0.94rem;
  }
  .story__hint {
    display: none;
  }
  .story__skip {
    bottom: 20px;
  }
  .story__poster::after {
    left: 50%;
    top: 10%;
    height: 44%;
  }
}
/* Phones with the browser bar showing are often only 560 to 700px tall. The
   panels grow up from the bottom, so the hero has to be compact enough that
   its first line clears the nav bar. */
@media (max-width: 760px) and (max-height: 760px) {
  .story__panel {
    bottom: 60px;
  }
  /* The copy reaches higher up the scene here, so the shading does too. */
  .story__veil {
    background:
      linear-gradient(0deg, rgba(8, 20, 38, 0.97) 0%, rgba(8, 20, 38, 0.88) 46%, rgba(8, 20, 38, 0.5) 64%, rgba(8, 20, 38, 0) 80%),
      linear-gradient(180deg, rgba(8, 20, 38, 0.6) 0%, rgba(8, 20, 38, 0) 16%);
  }
  .story__panel .eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .story__title {
    font-size: clamp(1.9rem, 1rem + 5vw, 2.4rem);
  }
  .story__title--hero {
    font-size: clamp(2.2rem, 1.1rem + 6vw, 2.8rem);
  }
  .story__panel .lede {
    font-size: 0.95rem;
    margin-top: 0.7rem;
  }
  .story__panel .btn-row {
    margin-top: 1rem;
    gap: 0.6rem;
  }
  .story__panel .btn--lg {
    --btn-pad: 0.85rem 1.35rem;
  }
  .story__meta {
    margin-top: 0.8rem;
  }
  .story__panel .chips {
    margin-top: 1rem;
  }
  .story__skip {
    bottom: 16px;
  }
}
/* The hero eyebrow is one long line; at phone size it should break into
   "AI implementation · Any industry ·" and the location. */
@media (max-width: 480px) {
  .story__panel .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 760px) {
  .story__controls {
    bottom: 10px;
  }
}
@media (max-width: 760px) and (max-height: 620px) {
  .story__meta {
    display: none;
  }
}

/* Static fallback: no WebGL, no JS, or reduced motion. The panels become an
   ordinary stack of sections; the poster or a single rendered frame sits
   behind the first one. */
.story--static {
  height: auto;
}
.story--static .story__sticky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
}
.story--static .story__panels {
  position: relative;
  pointer-events: auto;
}
.story--static .story__panel {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  opacity: 1 !important;
  width: auto;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7rem var(--gutter) 3rem;
}
.story--static .story__panel:first-child {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story--static .story__panel > * {
  max-width: 640px;
}
.story--static .story__controls,
.story--static .story__hint,
.story--static .story__labels,
.story--static .story__flash,
.story--static .story__skip {
  display: none;
}

/* =========================================================================
   PRICING
   ========================================================================= */

.pricing {
  position: relative;
  /* The glow below is 120% wide; clip it sideways so it can never widen the
     page (phones would otherwise let visitors pan left and right). */
  overflow-x: clip;
}
.pricing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 120%;
  height: 520px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
  perspective: 1400px;
  align-items: stretch;
}
@media (max-width: 1020px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}
/* The depth effect only reads well side by side with a mouse. Stacked on a
 * phone, the perspective origin sits far from each card and the raised name
 * and price slide onto the text around them. */
@media (max-width: 1020px), (hover: none) {
  .tiers { perspective: none; }
  .tiers .tier,
  .tier .tier__name,
  .tier .tier__price { transform: none; }
}

.tier {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  border-radius: 24px;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.10), transparent 40%),
    linear-gradient(180deg, rgba(28, 48, 76, 0.75), rgba(12, 26, 47, 0.85));
  border: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -50px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color var(--mid), box-shadow var(--mid);
}
.tier:hover {
  border-color: var(--accent-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 50px 90px -50px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(var(--accent-rgb), 0.35);
}
.tier.is-tilting {
  transition: transform 0.08s linear, border-color var(--mid), box-shadow var(--mid);
}
.tier--feature {
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.16), transparent 40%),
    linear-gradient(180deg, rgba(44, 62, 92, 0.85), rgba(16, 32, 56, 0.9));
}
.tier--feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--accent-light), rgba(var(--accent-rgb), 0.15) 40%, rgba(var(--accent-rgb), 0.05) 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tier__kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono-f);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier__kicker b {
  color: var(--accent-light);
  font-weight: 500;
}
/* Narrow cards: the badge drops below the number instead of both wrapping. */
.tier__kicker {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}
.tier__kicker > * {
  white-space: nowrap;
}
.tier__name {
  margin-top: 1.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  transform: translateZ(30px);
}
.tier__fit {
  margin-top: 0.4rem;
  color: var(--text-2);
  min-height: 3.2em;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.5rem 0 0.2rem;
  transform: translateZ(40px);
}
.tier__amount {
  font-size: clamp(2.7rem, 2.2rem + 1.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--revenue);
  text-shadow: 0 0 40px rgba(var(--revenue-rgb), 0.25);
}
.tier__amount sup {
  font-size: 0.45em;
  vertical-align: 0.95em;
  margin-right: 0.04em;
  font-weight: 500;
}
.tier__unit {
  color: var(--muted);
  font-size: 0.95rem;
}
.tier__unit--pre {
  align-self: center;
  margin-right: 0.15rem;
  font-family: var(--mono-f);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* One build (22 Oct 2026): the Custom card beside the size guide. */
@media (min-width: 1021px) {
  .tiers--single {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    max-width: 1040px;
    margin-inline: auto;
  }
}
.sizes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
}
.sizes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.sizes__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-line);
}
.sizes__list li:first-child {
  border-top: 0;
  padding-top: 0.3rem;
}
.sizes__price {
  grid-row: span 2;
  min-width: 7.2rem;
  font-family: var(--mono-f);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--revenue);
  white-space: nowrap;
}
.sizes__name {
  color: #fff;
  font-weight: 600;
}
.sizes__summary {
  color: var(--text-2);
  font-size: 0.92rem;
}
.sizes .btn {
  margin-top: auto;
}
@media (max-width: 420px) {
  .sizes__list li {
    grid-template-columns: 1fr;
  }
  .sizes__price {
    grid-row: auto;
  }
}
.tier__terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
  padding: 0.9rem 0;
  border-block: 1px solid var(--glass-line);
}
.tier__terms dt {
  font-family: var(--mono-f);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.tier__terms dd {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.tier .ticks {
  margin-top: 1.3rem;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}
.tier .btn {
  margin-top: auto;
}
.tier__examples {
  margin: -0.4rem 0 1.6rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed var(--accent-line);
}
.tier__examples-label {
  margin-bottom: 0.6rem;
  font-family: var(--mono-f);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tier__examples ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tier__examples li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-2);
}
.tier__examples li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-light);
}
.plan-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-left: 0.5rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: rgba(var(--accent-rgb), 0.1);
  font-family: var(--mono-f);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.45em;
  color: var(--accent-light);
  white-space: nowrap;
}
.plan-badge span {
  color: var(--revenue);
  letter-spacing: 0;
}
.plan-badge:hover {
  color: #fff;
  border-color: var(--accent);
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
  margin-top: clamp(1.2rem, 0.8rem + 1vw, 1.8rem);
}
@media (max-width: 1020px) {
  .support {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}
/* Three monthly plans: the intro runs across the top, plans below. */
.support--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.support--3 .support__intro {
  grid-column: 1 / -1;
  padding-bottom: 0;
}
@media (max-width: 1020px) {
  .support--3 {
    grid-template-columns: 1fr;
  }
}
.pricing-more {
  display: flex;
  justify-content: center;
  margin: clamp(1.2rem, 0.8rem + 1vw, 1.8rem) 0 0;
}
.pricing-more .btn {
  white-space: normal;
  text-align: center;
}
@media (max-width: 640px) {
  .pricing-more__detail {
    display: none;
  }
}
.support__intro {
  padding: 1.6rem 0.4rem;
}
.support__intro h3 {
  font-size: 1.4rem;
}
.support__intro p {
  margin-top: 0.7rem;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.plan__name {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.plan__price {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--revenue);
}
.plan__price small {
  font-size: 0.5em;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.plan .ticks {
  margin-top: 1rem;
  font-size: 0.93rem;
}

.fineprint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--glass-line);
  font-size: 0.86rem;
  color: var(--muted);
}
.fineprint strong {
  color: var(--text-2);
  font-weight: 600;
}
@media (max-width: 900px) {
  .fineprint { grid-template-columns: 1fr; }
}

/* =========================================================================
   ROI CALCULATOR
   ========================================================================= */

.roi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(28, 48, 76, 0.55), rgba(12, 26, 47, 0.75));
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.9);
}
@media (max-width: 960px) {
  .roi { grid-template-columns: 1fr; }
}
.roi__inputs {
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem);
  border-right: 1px solid var(--glass-line);
}
@media (max-width: 960px) {
  .roi__inputs { border-right: 0; border-bottom: 1px solid var(--glass-line); }
}
.roi__out {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem);
  background: radial-gradient(70% 70% at 70% 30%, rgba(var(--accent-rgb), 0.10), transparent 70%);
}

.range {
  margin-top: 1.7rem;
}
.range__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.range__label {
  color: #fff;
  font-weight: 500;
}
.range__value {
  white-space: nowrap;
  font-family: var(--mono-f);
  font-size: 1.05rem;
  color: var(--accent-light);
}
input[type="range"] {
  --fill: 30%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), rgba(255, 255, 255, 0.1) var(--fill) 100%);
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-sheen);
  border: 3px solid #0c1a2f;
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(var(--accent-rgb), 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0c1a2f;
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(var(--accent-rgb), 0.6);
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.35rem;
  margin-top: 0.7rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-line);
}
.seg--2 {
  grid-template-columns: repeat(2, 1fr);
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background var(--fast), color var(--fast);
}
.seg label span {
  font-family: var(--mono-f);
  font-size: 0.75rem;
  color: var(--muted);
}
.seg input:checked + label {
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent-line) inset;
}
.seg input:focus-visible + label {
  outline: 2px solid var(--accent-light);
}

.gauge {
  position: relative;
  width: min(340px, 100%);
  margin: 0.5rem auto 0;
}
.gauge svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.gauge__readout {
  position: absolute;
  left: 0;
  right: 0;
  top: 47%;
  text-align: center;
}
.gauge__x {
  font-size: clamp(2.8rem, 2rem + 2vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}
.gauge__cap {
  margin-top: 0.3rem;
  font-family: var(--mono-f);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.roi__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.roi__stat {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-line);
}
.roi__stat dt {
  font-family: var(--mono-f);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}
.roi__stat dd {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--revenue);
}
.verdict {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--revenue-line);
  background: var(--revenue-dim);
  color: #e9fff6;
  font-size: 0.95rem;
  transition: background var(--mid), border-color var(--mid);
}
.verdict__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--revenue);
  box-shadow: 0 0 12px var(--revenue);
}
.verdict[data-tone="mid"] {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  color: #fff6e2;
}
.verdict[data-tone="mid"] .verdict__dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.verdict[data-tone="low"] {
  border-color: rgba(255, 138, 61, 0.45);
  background: var(--amber-dim);
  color: #fff0e6;
}
.verdict[data-tone="low"] .verdict__dot {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
.roi__formula {
  margin-top: 1rem;
  font-family: var(--mono-f);
  font-size: 0.76rem;
  color: var(--dim);
  line-height: 1.6;
}
/* Phones: three stat boxes leave about 60px for a number like $19,200, so
   they become label-and-value rows; the caption tightens to sit inside the arc. */
@media (max-width: 520px) {
  .range__top {
    gap: 0.75rem;
  }
  .range__value {
    font-size: 0.95rem;
  }
  .gauge__cap {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }
  .roi__stats {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .roi__stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
  .roi__stat dd {
    margin: 0;
    white-space: nowrap;
  }
}

/* =========================================================================
   PROCESS TIMELINE
   ========================================================================= */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 1.45rem;
  height: 1px;
  background: var(--line-2);
}
.timeline::after {
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 14px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.4s var(--ease);
}
.timeline.is-visible::after {
  transform: scaleX(1);
}
.timeline li {
  position: relative;
  counter-increment: step;
}
.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line-bright);
  font-family: var(--mono-f);
  font-size: 0.8rem;
  color: var(--accent-light);
  transition: border-color 0.6s, box-shadow 0.6s;
}
.timeline.is-visible .timeline__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08), 0 0 22px rgba(var(--accent-rgb), 0.3);
}
.timeline h3 {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.timeline p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.timeline .done {
  display: block;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-2);
  font-size: 0.8rem;
  color: var(--muted);
}
.timeline .done b {
  display: block;
  font-family: var(--mono-f);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
@media (max-width: 1100px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before,
  .timeline::after {
    left: 1.45rem;
    right: auto;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1px;
    height: auto;
  }
  .timeline::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .timeline.is-visible::after {
    transform: scaleY(1);
  }
  .timeline li {
    display: grid;
    grid-template-columns: 2.9rem 1fr;
    column-gap: 1.2rem;
    padding-bottom: 1.6rem;
  }
  .timeline li > :not(.timeline__dot) {
    grid-column: 2;
  }
  .timeline h3 {
    margin-top: 0.5rem;
  }
}

/* =========================================================================
   MISC BLOCKS
   ========================================================================= */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--glass-line);
}
.stat-band > div {
  padding: 1.8rem 1.2rem;
  border-right: 1px solid var(--glass-line);
}
.stat-band > div:last-child {
  border-right: 0;
}
.stat-band__v {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1;
}
.stat-band__l {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band > div:nth-child(2) { border-right: 0; }
  .stat-band > div:nth-child(-n + 2) { border-bottom: 1px solid var(--glass-line); }
}

.quote-src {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.compare {
  display: grid;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  border-bottom: 1px solid var(--glass-line);
}
.compare__row:last-child {
  border-bottom: 0;
}
.compare__row > div {
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
}
.compare__row > div:nth-child(2) {
  color: var(--muted);
  border-inline: 1px solid var(--glass-line);
}
.compare__row > div:nth-child(3) {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.05);
}
.compare__head > div {
  font-family: var(--mono-f);
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}
.compare__head > div:nth-child(3) {
  color: var(--accent-light) !important;
}
@media (max-width: 760px) {
  .compare__row {
    grid-template-columns: 1fr;
  }
  .compare__row > div:nth-child(2) {
    border-inline: 0;
    border-block: 1px dashed var(--glass-line);
  }
  .compare__head {
    display: none;
  }
  .compare__row > div:nth-child(1) {
    color: #fff;
    font-weight: 600;
  }
  .compare__row > div:nth-child(2)::before {
    content: "Generic software: ";
    color: var(--dim);
  }
  .compare__row > div:nth-child(3)::before {
    content: "Pillar Forward: ";
    color: var(--accent-light);
  }
}

.refuse {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--glass-line);
}
.refuse li {
  display: grid;
  grid-template-columns: 2.2rem 1fr 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--glass-line);
}
.refuse__x {
  font-family: var(--mono-f);
  color: var(--danger);
}
.refuse strong {
  color: #fff;
  font-weight: 600;
}
.refuse span:last-child {
  color: var(--muted);
  font-size: 0.93rem;
}
@media (max-width: 700px) {
  .refuse li {
    grid-template-columns: 2rem 1fr;
  }
  .refuse span:last-child {
    grid-column: 2;
  }
}

.verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform var(--mid) var(--ease), border-color var(--mid);
}
.demo-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.demo-card__viz {
  position: relative;
  height: 150px;
  margin: -0.4rem -0.4rem 1.3rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 50% 120%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-line);
}
.demo-card__viz .flow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}
.flow__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(8, 20, 38, 0.9);
  border: 1px solid var(--accent-line);
  color: var(--accent-light);
}
.flow__node--human {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.flow::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  opacity: 0.7;
  animation: flow 1.2s linear infinite;
  background-size: 32px 2px;
}
@keyframes flow {
  to { background-position: 32px 0; }
}
.demo-card__tag {
  font-family: var(--mono-f);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.demo-card h3 {
  margin-top: 0.5rem;
  font-size: 1.35rem;
}
.demo-card p {
  margin-top: 0.5rem;
}
.demo-card .arrow-link {
  margin-top: auto;
  padding-top: 1.2rem;
}

.faq {
  display: grid;
  gap: 0.7rem;
}
.faq details {
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--mid), background var(--mid);
}
.faq details[open] {
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.04);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-line-2);
  color: var(--accent-light);
  font-family: var(--mono-f);
  transition: transform var(--mid) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 1.3rem 1.25rem;
  color: var(--text-2);
  max-width: 75ch;
}
.faq details > div > * + * {
  margin-top: 0.7rem;
}

/* --- final CTA ------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.4rem, 1rem + 3vw, 4rem);
  border-radius: 32px;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(60% 90% at 85% 50%, rgba(var(--accent-rgb), 0.28), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(60, 110, 200, 0.16), transparent 70%),
    linear-gradient(180deg, #13284a, #0c1a2f);
  box-shadow: 0 60px 120px -60px rgba(var(--accent-rgb), 0.35);
}
.cta__mark {
  position: absolute;
  right: clamp(-60px, 2vw, 60px);
  top: 50%;
  width: clamp(180px, 28vw, 360px);
  transform: translateY(-50%);
  opacity: 0.2;
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.6));
  pointer-events: none;
}
.cta__body {
  position: relative;
  max-width: 640px;
}
.cta .btn-row {
  margin-top: 2rem;
}
.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  font-family: var(--mono-f);
  font-size: 0.84rem;
  color: var(--muted);
}
.cta__contacts a {
  color: var(--text-2);
}
.cta__contacts a:hover {
  color: var(--accent-light);
}

/* --- page hero (sub-pages, ambient 3D) -------------------------------- */

.page-hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  overflow: hidden;
}
.page-hero--short {
  min-height: min(56vh, 560px);
}
.page-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.page-hero.is-ready .page-hero__canvas {
  opacity: 1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 20, 38, 0.95) 0%, rgba(8, 20, 38, 0.8) 38%, rgba(8, 20, 38, 0.3) 58%, rgba(8, 20, 38, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 20, 38, 0) 35%);
}
.page-hero__body {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.page-hero .lede {
  margin-top: 1.3rem;
}
.page-hero .btn-row {
  margin-top: 2rem;
}
@media (max-width: 760px) {
  .page-hero::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 20, 38, 0.82) 45%, rgba(8, 20, 38, 0.35) 100%);
  }
}

/* --- footer ---------------------------------------------------------- */

.footer {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__title {
  margin-bottom: 0.9rem;
  font-family: var(--mono-f);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  color: var(--text-2);
}
.footer__links a:hover {
  color: var(--accent-light);
}
.contacts {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contacts.mt {
  margin-top: 1.1rem;
}
.contacts li {
  display: grid;
  gap: 0.15rem;
}
.contacts a:first-child,
.contacts__name {
  color: #fff;
  font-weight: 500;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--glass-line);
  font-size: 0.82rem;
  color: var(--dim);
}
.footer__bottom a {
  color: var(--text-2);
}
.footer__bottom a:hover {
  color: var(--accent-light);
}

/* --- legal pages (privacy, terms) ------------------------------------- */

.legal {
  max-width: 72ch;
}
.legal__meta {
  margin: 0 0 1.5rem;
  font-family: var(--mono-f);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.legal h2 {
  margin: 2.4rem 0 0.7rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
}
.legal p,
.legal li {
  color: var(--text-2);
  line-height: 1.7;
}
.legal p {
  margin: 0 0 0.9rem;
}
.legal ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding-left: 1.2em;
}
.legal strong {
  color: #fff;
  font-weight: 500;
}
.legal a {
  color: var(--accent-light);
}

/* =========================================================================
   FORMS, BOOKING (class names are shared with booking.js and forms.js)
   ========================================================================= */

.form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .field__row { grid-template-columns: 1fr; }
}
.label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.label span {
  color: var(--dim);
  font-weight: 400;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(4, 12, 24, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.textarea {
  min-height: 130px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23dcaf5f' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.select option {
  background: #0c1a2f;
}
.input::placeholder,
.textarea::placeholder {
  color: #66708a;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(4, 12, 24, 0.75);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.field__error {
  color: var(--danger);
  font-size: 0.84rem;
}
.field__error:empty {
  display: none;
}
.form__status {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}
.form__status:empty {
  display: none;
}
.form__status.is-error {
  color: #ffd9d6;
  background: rgba(255, 97, 88, 0.1);
  border: 1px solid rgba(255, 97, 88, 0.35);
}
.form__status.is-success {
  color: #e9fff6;
  background: var(--revenue-dim);
  border: 1px solid var(--revenue-line);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.loading {
  color: var(--muted);
  font-size: 0.92rem;
}
.loading::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.6em;
  vertical-align: -0.12em;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.callout {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-2);
  font-size: 0.95rem;
}
.callout strong {
  color: #fff;
}
.callout--amber {
  border-color: rgba(255, 138, 61, 0.4);
  background: var(--amber-dim);
}

.booking-steps {
  display: grid;
  gap: 2.6rem;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-family: var(--mono-f);
  font-size: 0.85rem;
  color: var(--on-accent);
  background: var(--gold-sheen);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}
.step__title {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.type-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-option__box {
  display: grid;
  gap: 0.45rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--glass-line-2);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.type-option:hover .type-option__box {
  border-color: var(--accent-line);
}
.type-option input:checked + .type-option__box {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.09);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 0 30px -10px rgba(var(--accent-rgb), 0.6);
}
.type-option input:focus-visible + .type-option__box {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.type-option__label {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #fff;
  font-weight: 600;
}
.type-option__mins {
  flex: none;
  font-family: var(--mono-f);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
}
.type-option__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.day-block {
  margin-bottom: 1.2rem;
}
.day-block__label {
  margin-bottom: 0.6rem;
  font-family: var(--mono-f);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 0.5rem;
}
.slot {
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-family: var(--mono-f);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--fast);
}
.slot:hover {
  border-color: var(--accent-line);
  background: rgba(var(--accent-rgb), 0.07);
}
.slot.is-selected {
  border-color: var(--accent);
  background: var(--gold-sheen);
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 0 22px -4px rgba(var(--accent-rgb), 0.7);
}
.selected-slot {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-light);
  font-weight: 500;
}
.selected-slot.is-visible {
  display: flex;
}

/* --- demos ----------------------------------------------------------- */

.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-line-2);
  background: #000;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02);
}
.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.chapters {
  display: grid;
  gap: 0.15rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.chapters li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--glass-line);
  font-size: 0.93rem;
}
.chapters li span:first-child {
  font-family: var(--mono-f);
  color: var(--accent-light);
}

/* utilities used across pages */
.hide-sm { }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Below desktop the copy spans most of the width, so the ambient scene sits
   behind it rather than beside it. Dim it so the text stays the hero. */
@media (max-width: 1100px) {
  .page-hero.is-ready .page-hero__canvas {
    opacity: 0.5;
  }
}

/* =========================================================================
   /pricing page (Oct 2026 offers): summary chips, package options, the
   Blueprint strip, example projects, the scope table, quick adds, monthly
   plans and Pillar Books. Rendered by assets/js/pricing-render.js.
   ========================================================================= */

.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--glass-line-2);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-2);
  font-size: 0.92rem;
}
.price-chip b {
  color: var(--revenue);
  font-family: var(--mono-f);
  font-weight: 600;
}
.price-chip:hover {
  border-color: var(--accent-line);
  color: #fff;
}
/* Phones: two compact tiles a row (price over name) instead of five
   full-width pills. */
@media (max-width: 560px) {
  .price-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .price-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.86rem;
  }
  .price-chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.pricing-sub {
  margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 1rem;
  color: #fff;
}
.section__head + .pricing-sub {
  margin-top: 0;
}
.pricing-grid {
  display: grid;
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
}
.pricing-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pricing-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1020px) {
  .pricing-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .pricing-grid--2,
  .pricing-grid--3 {
    grid-template-columns: 1fr;
  }
}
.pricing-grid > .card .ticks {
  margin-top: 0.9rem;
}

.tier__options {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-2);
}
.tier__options li {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: rgba(8, 20, 38, 0.35);
}
.tier__options b {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.tier .small.dim {
  margin-top: 0.8rem;
}
/* The note right before the button: keeps a gap when the card has no spare
   height for the button's margin-top: auto (always, on phones). */
.tier > .small.dim:nth-last-child(2) {
  margin-bottom: 1.4rem;
}

.blueprint {
  margin-top: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  display: grid;
  gap: 0.4rem;
}
.blueprint__head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.blueprint__head .h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}
.blueprint__price {
  font-family: var(--mono-f);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--revenue);
  display: grid;
  text-align: right;
}
.blueprint__price small {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.ticks--inline {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0.6rem 0 1rem;
}
.blueprint .btn {
  justify-self: start;
}

.example {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.example__tag {
  font-family: var(--mono-f);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0;
}
.example .card__title {
  margin-bottom: 0.1rem;
}
.example .card__body strong {
  color: #fff;
  font-weight: 600;
}
.example__result {
  margin: 0.3rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--glass-line);
  color: var(--revenue);
  font-size: 0.93rem;
}

.scope-table {
  overflow-x: auto;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
}
.scope-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.scope-table th,
.scope-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--glass-line);
  vertical-align: top;
}
.scope-table thead th {
  font-family: var(--mono-f);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
}
.scope-table tbody th {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.scope-table td {
  color: var(--text-2);
}
.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td {
  border-bottom: 0;
}
/* Phones: each limit becomes a row with both packages side by side, so
   nothing hides in a sideways scroll. */
@media (max-width: 560px) {
  .scope-table {
    overflow: visible;
  }
  .scope-table table {
    min-width: 0;
  }
  .scope-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .scope-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--glass-line);
  }
  .scope-table tbody tr:last-child {
    border-bottom: 0;
  }
  .scope-table tbody th {
    grid-column: 1 / -1;
    padding: 0 0 0.4rem;
    border: 0;
    white-space: normal;
  }
  .scope-table td {
    padding: 0;
    border: 0;
  }
  .scope-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--mono-f);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
  }
}

.defs {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 0;
}
.defs div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.8rem;
}
.defs dt {
  color: #fff;
  font-weight: 600;
}
.defs dd {
  margin: 0;
  color: var(--text-2);
}
@media (max-width: 520px) {
  .defs div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.quickadd__price {
  margin: 0 0 0.4rem;
  font-family: var(--mono-f);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--revenue);
}
.quickadd__price small {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.plan-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan-terms li::before {
  content: "· ";
  color: var(--accent);
}
.pricing-grid .plan .small.dim {
  margin-top: 0.9rem;
}

/* =========================================================================
   Service catalog (27 Oct 2026): /pricing groups of service cards, and the
   homepage category cards. Rendered by pricing-render.js / index.html.
   ========================================================================= */
.pricing-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1020px) {
  .pricing-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pricing-grid--4 { grid-template-columns: 1fr; }
}
.svc-group {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  scroll-margin-top: 6rem;
}
.svc-group__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  max-width: 62ch;
}
.svc-group__head .h3 {
  color: #fff;
}
.svc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.svc__price {
  margin: 0 0 0.3rem;
  font-family: var(--mono-f);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--revenue);
}
.svc__price small {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.svc__meta {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--glass-line);
  font-size: 0.88rem;
}
.svc__meta div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
}
.svc__meta dt {
  color: var(--muted);
}
.svc__meta dd {
  margin: 0;
  color: var(--text-2);
}
.svc .small.dim {
  margin-top: auto;
  padding-top: 0.6rem;
}
.svc-needs {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
#plans,
#books {
  scroll-margin-top: 4rem;
}

/* Homepage: one card per service group, each with its starting price. */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
}
@media (max-width: 1020px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cats { grid-template-columns: 1fr; }
}
.cat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat__from {
  margin: 0;
  font-family: var(--mono-f);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--revenue);
}
.cat__from small {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.cat__list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--glass-line);
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.cat__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-2);
}
.cat__list li span:last-child {
  font-family: var(--mono-f);
  color: var(--revenue);
  white-space: nowrap;
}
.cat .btn {
  margin-top: auto;
}
.cat .card__body {
  margin-bottom: 0.4rem;
}
/* Four monthly plans: the intro runs across the top, plans below. */
.support--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.support--4 .support__intro {
  grid-column: 1 / -1;
  padding-bottom: 0;
}
@media (max-width: 1020px) {
  .support--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 640px) {
  .support--4 { grid-template-columns: 1fr; }
}
/* Four plans to a row: name above price on every card, so they line up. */
.support--4 .plan__top,
.pricing-grid--4 .plan__top {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.pricing-more .btn {
  gap: 0;
}
/* Desktop: each service group reads heading-left, cards-right, so groups of
   one or two services don't leave half the row empty. */
@media (min-width: 1021px) {
  .svc-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
    gap: 1.4rem 2.2rem;
    align-items: start;
    padding-top: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
    border-top: 1px solid var(--glass-line);
  }
  .svc-group__head {
    position: sticky;
    top: 6rem;
  }
  .svc-group .pricing-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
   Email-signature contact cards (31 Oct 2026): Cody and Dalton, matching
   their email signatures. Logo tile, gold rule, name, title, wordmark,
   email and website, tagline. No phone numbers are published.
   ========================================================================= */
.sigs {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.sig {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.sig__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #081426;
  border: 1px solid var(--glass-line);
}
.sig__mark img {
  width: 30px;
  height: auto;
}
.sig__body {
  min-width: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.sig__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.sig__title {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
}
.sig__brand {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.sig__brand span {
  color: var(--accent);
}
.sig__lines {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}
.sig__lines div {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.5rem;
}
.sig__lines dt {
  font-weight: 700;
  color: var(--accent);
}
.sig__lines abbr {
  text-decoration: none;
}
.sig__lines dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sig__lines a {
  color: var(--text-2);
}
.sig__lines a:hover {
  color: var(--accent-light);
}
.sig__tag {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--accent);
}
.sigs .sig + .sig {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-line);
}
@media (max-width: 440px) {
  .sig { gap: 0.75rem; }
  .sig__mark { width: 48px; height: 48px; }
  .sig__mark img { width: 22px; }
  .sig__body { padding-left: 0.8rem; }
  .sig__brand { letter-spacing: 0.1em; }
}
@media (max-width: 320px) {
  .sig { grid-template-columns: 1fr; }
}
