/* FutureWave Solutions — site styles ("Aurora"). Tokens live in tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

h1 {
  font-size: var(--t-hero);
  line-height: 0.88;
}

h2 {
  font-size: var(--t-2xl);
}

h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  background: var(--cyan);
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-weight: 700;
  z-index: 50;
}

.skip:focus {
  top: var(--s-4);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 var(--s-6);
  font: 700 var(--t-base) / 1 var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--night);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--night-3);
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--quiet:hover {
  background: var(--ink);
  color: var(--white);
}

/* On night the primary action glows with the spectrum. */
.on-dark .btn--primary,
.site-header .btn--primary {
  background: var(--spectrum);
  color: var(--night);
  box-shadow: 0 8px 30px -8px rgba(139, 108, 255, 0.65);
}

.on-dark .btn--primary:hover,
.site-header .btn--primary:hover {
  box-shadow: 0 10px 36px -6px rgba(255, 79, 216, 0.7);
}

.on-dark .btn--quiet {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.on-dark .btn--quiet:hover {
  background: var(--white);
  color: var(--night);
  border-color: var(--white);
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cyan);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  border-bottom: 1px solid var(--line-night);
  color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--white);
  text-decoration: none;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.brand__word {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__word span {
  font-weight: 400;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--s-8);
}

.nav__list {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link[aria-current='page'] {
  border-bottom-color: var(--cyan);
}

.site-header .btn {
  min-height: 2.8rem;
  padding: 0 var(--s-5);
}

.nav-toggle {
  position: relative;
}

.nav-toggle__summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--night);
  background: var(--spectrum);
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-pill);
}

.nav-toggle__summary::-webkit-details-marker {
  display: none;
}

.nav-toggle__panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--s-3));
  width: min(19rem, calc(100vw - 2 * var(--gutter)));
  background: var(--night-2);
  border: 1px solid var(--line-night);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.nav-toggle__list {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  display: grid;
  gap: var(--s-1);
}

.nav-toggle__list .nav__link {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.2;
  border: 0;
}

.nav-toggle__panel .btn {
  width: 100%;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- Night bands (hero, page heads, closer) ---------- */

.on-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(139, 108, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(34, 230, 255, 0.12), transparent 70%),
    var(--night);
  color: var(--on-night);
}

.on-dark > .wrap {
  position: relative;
  z-index: 1;
}

/* The 3D wave (wave.js). Sits behind the content and fades toward the copy side. */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 32%;
  width: 100%;
  height: 68%;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.35) 15%, #000 60%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.35) 15%, #000 60%);
}

.spectrum-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

.on-dark a:not(.btn) {
  color: var(--cyan);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--s-16) 0;
}

.section--gray {
  background: var(--mist);
}

@media (min-width: 768px) {
  .section {
    padding: var(--s-24) 0;
  }
}

.section__head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-12);
}

.section__head p {
  max-width: 40rem;
}

.kicker {
  font-weight: 700;
  color: var(--accent-ink);
}

.on-dark .kicker {
  color: var(--cyan);
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-2);
}

.on-dark .lede {
  color: var(--on-night);
}

.note {
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--s-10) 0 var(--s-16);
  overflow: hidden;
}

.hero h1 > span {
  display: block;
}

.hero h1 .volt {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.04em;
}

.hero__row {
  display: grid;
  gap: var(--s-10);
  align-items: start;
  margin-top: var(--s-10);
}

@media (min-width: 1000px) {
  .hero {
    padding: var(--s-12) 0 var(--s-16);
  }
  .hero__row {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-16);
  }
}

.hero__copy {
  display: grid;
  gap: var(--s-6);
}

.hero__copy .lede {
  font-size: 1.3rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: var(--on-night-muted);
}

.hero__proof li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--s-2);
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: 0.1em;
}

/* ---------- The tally (hero signature) ---------- */

.tally {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  padding-top: var(--s-3);
}

.tally__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tally__line {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-night);
  color: var(--white);
  font-size: var(--t-base);
}

.tally__line b {
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}

.tally__big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-6);
  margin-top: var(--s-5);
}

.tally__old {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.tally__old::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 8px;
  background: var(--magenta);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.7);
  transform: rotate(-6deg);
  transform-origin: left;
}

.tally__new {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(139, 108, 255, 0.45));
}

.tally__label {
  display: block;
  margin-top: var(--s-2);
  font-weight: 700;
  color: var(--white);
}

.tally__caption {
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  color: var(--on-night-muted);
}

/* One orchestrated moment: the strike lands, then the real number rises.
   The finished state is the no-animation state, so nothing hides without it. */
@media (prefers-reduced-motion: no-preference) {
  .tally__old::after {
    animation: strike 0.6s 0.8s ease both;
  }
  .tally__new {
    animation: rise 0.6s 1.4s ease both;
  }
}

@keyframes strike {
  from {
    transform: rotate(-6deg) scaleX(0);
  }
  to {
    transform: rotate(-6deg) scaleX(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  background: var(--spectrum-soft);
  color: var(--night);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  white-space: nowrap;
  overflow: hidden;
  padding: var(--s-3) 0;
}

.ticker__track {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: slide 40s linear infinite;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Service rows (home) ---------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-8) 0;
  border-top: 3px solid var(--ink);
}

.row:last-child {
  border-bottom: 3px solid var(--ink);
}

@media (min-width: 900px) {
  .row {
    grid-template-columns: 1fr 1.3fr auto;
    gap: var(--s-12);
    align-items: start;
  }
}

.row h3 a {
  color: inherit;
  text-decoration: none;
}

.row h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
}

.row p {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-2);
}

.fee {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-ink);
  white-space: nowrap;
}

.fee small {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: var(--s-2);
}

/* ---------- Steps (a real sequence, so numbered) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-10);
}

.steps li {
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: var(--s-3);
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 0.9;
  justify-self: start;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  font-size: var(--t-lg);
  margin-bottom: var(--s-2);
}

.steps p {
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-8);
  }
}

/* ---------- Split layout (founder, writing, terms) ---------- */

.split {
  display: grid;
  gap: var(--s-8);
}

.split__body {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-16);
  }
}

.founder {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}

.founder__badge {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.founder__initials {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--cyan);
  box-shadow: inset 0 0 0 2px rgba(139, 108, 255, 0.6);
  font-family: var(--display);
  font-size: 1.5rem;
  flex: none;
}

.founder__badge strong {
  display: block;
  font-weight: 700;
}

.founder__badge span:not(.founder__initials) {
  font-size: var(--t-sm);
  color: var(--muted);
}

.quote {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  max-width: 30ch;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.facts li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.facts strong {
  font-weight: 700;
}

@media (max-width: 480px) {
  .facts li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.limits {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-3);
}

.limits h3 {
  font-size: var(--t-lg);
}

/* ---------- LinkedIn band ---------- */

.writing {
  background: var(--spectrum-soft);
  color: var(--ink);
}

.writing__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

.writing h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.writing p {
  font-size: var(--t-lg);
  color: var(--ink);
}

.writing .btn--primary {
  background: var(--ink);
  color: var(--white);
}

.writing .btn--primary:hover {
  background: var(--accent-ink);
}

@media (min-width: 900px) {
  .writing__inner {
    grid-template-columns: 1fr auto;
    gap: var(--s-16);
  }
}

/* ---------- Closing call to action ---------- */

.closer__inner {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
}

.closer h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  max-width: 14ch;
}

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- Page heads ---------- */

.page-head {
  padding: var(--s-12) 0 var(--s-16);
}

.page-head__inner {
  display: grid;
  gap: var(--s-6);
}

.page-head__inner > * {
  max-width: 52rem;
}

.page-head h1 {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
}

.jump .btn {
  min-height: 2.6rem;
  font-size: var(--t-sm);
}

/* ---------- Service detail page ---------- */

.service {
  display: grid;
  gap: var(--s-10);
}

.service__intro {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.service__intro h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.service__fee {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-ink);
}

.service__fee small {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: var(--s-2);
}

.tiers {
  display: grid;
  gap: var(--s-5);
}

.tier {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 3px solid var(--ink);
}

.tier__name {
  font-weight: 700;
}

.service__lists {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

.service__lists > div {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--s-6);
}

.service__lists h3 {
  font-size: var(--t-lg);
  margin-bottom: var(--s-4);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.ticks li {
  position: relative;
  padding-left: var(--s-8);
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--accent-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 4fr 7fr;
    gap: var(--s-12);
  }
  .service__lists {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: var(--s-8);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 4fr 7fr;
    gap: var(--s-12);
    align-items: start;
  }
}

.direct {
  display: grid;
  gap: var(--s-3);
  background: var(--mist);
  border-radius: var(--r-md);
  padding: var(--s-6);
}

.direct a {
  font-weight: 700;
  font-size: var(--t-lg);
  word-break: break-word;
}

.form-card {
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--s-6);
  background: var(--white);
}

@media (min-width: 560px) {
  .form-card {
    padding: var(--s-8);
  }
}

.form {
  display: grid;
  gap: var(--s-5);
}

.form__pair {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .form__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.form__field {
  display: grid;
  gap: var(--s-2);
}

.form__label {
  font-weight: 700;
}

.form__req {
  color: var(--accent-ink);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: var(--s-3) var(--s-4);
  min-height: 3.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form__textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px rgba(91, 63, 214, 0.18);
}

.form__status {
  font-size: var(--t-sm);
  margin: var(--s-2) 0 0;
}

.form__status--error {
  color: #c01a2c;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__done {
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  background: var(--spectrum-soft);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  border-top: 1px solid var(--line-night);
  color: var(--on-night-muted);
  padding: var(--s-16) 0 var(--s-8);
  font-size: var(--t-sm);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-8);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__tagline {
  margin-top: var(--s-4);
  max-width: 30rem;
}

.site-footer__head {
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: var(--s-3);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.site-footer__legal {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: var(--s-2);
  font-size: var(--t-xs);
}

.site-footer__legal p {
  max-width: 90ch;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Animated variant. Everything below is layout for the motion layer (anim.js).
   With no JS or with reduced motion, these sections render in their final state.
   ========================================================================== */

.hero--full {
  min-height: calc(100svh - 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--s-24);
}

.wave--full {
  top: 0;
  height: 100%;
  opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 45%, #000 75%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 45%, #000 75%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--s-8);
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--on-night-muted);
  max-width: none;
}

.scroll-cue span {
  width: 2px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan));
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span {
    animation: cue 1.8s ease-in-out infinite;
  }
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Split text: anim.js wraps characters; the mask lets them rise from below a line. */
/* Descenders (the y in "story") hang below the line box, so the mask and every
   character get extra room underneath; the negative margin keeps line spacing. */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.4em;
  margin-bottom: -0.4em;
}

/* Contain line margins inside the heading, and let the last line keep enough of its
   extra room that descenders never reach the block below. */
.is-split {
  display: flow-root;
}

.split-line:last-child {
  margin-bottom: -0.12em;
}

.split-char {
  display: inline-block;
  padding-bottom: 0.4em;
  margin-bottom: -0.4em;
  will-change: transform;
}

/* Gradient text survives splitting: each char carries the slice of the spectrum,
   so the line wrapper itself paints nothing. */
.hero h1 .split-line.volt {
  background: none;
  color: inherit;
}

.hero h1 .volt .split-char {
  background: var(--spectrum);
  background-size: var(--split-w, 100%) 100%;
  background-position: var(--split-x, 0) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- The math (pinned scroll story) ---------- */

.math {
  padding: var(--s-16) 0;
  border-top: 1px solid var(--line-night);
}

.math__grid {
  display: grid;
  gap: var(--s-10);
  align-items: center;
  min-height: 70vh;
}

@media (min-width: 1000px) {
  .math {
    padding: 0;
  }
  .math__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
    min-height: 100vh;
  }
}

.math__lead {
  display: grid;
  gap: var(--s-5);
}

.math__lead h2 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
}

.math__old {
  position: relative;
  white-space: nowrap;
}

.math__old::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  top: 52%;
  height: 0.09em;
  background: var(--magenta);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.7);
  transform: rotate(-5deg) scaleX(var(--strike, 1));
  transform-origin: left;
}

.math__total {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-4);
}

.math__total-label {
  font-weight: 700;
  color: var(--white);
}

.math__count {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(139, 108, 255, 0.45));
}

.math__sheet {
  margin: 0;
  background: rgba(13, 21, 48, 0.7);
  border: 1px solid var(--line-night);
  border-radius: var(--r-md);
  padding: var(--s-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.math__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.math__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line-night);
  color: var(--white);
  font-size: var(--t-lg);
  line-height: 1.35;
}

.math__row b {
  color: var(--amber);
  white-space: nowrap;
}

.math__row.is-on b {
  text-shadow: 0 0 18px rgba(255, 179, 92, 0.6);
}

/* ---------- Word-by-word quote ---------- */

.quote .word {
  transition: color 0.2s;
}

/* ---------- Flowing gradient band ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-flow] {
    background-size: 220% 100%;
    animation: flow 12s ease-in-out infinite alternate;
  }
}

@keyframes flow {
  to {
    background-position: 100% 0;
  }
}

/* Service rows: the rule draws across as each row arrives. */
.row {
  position: relative;
}

[data-magnetic] {
  will-change: transform;
}

/* Held back until anim.js plays the intro (head script removes .anim after 3s regardless). */
.anim [data-hero] h1,
.anim .page-head h1,
.anim [data-rise] {
  visibility: hidden;
}
