/* ==========================================================================
   YLA Solutions: homepage styles
   Mobile-first. Tokens → base → layout → components → sections → motion.
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Latin subset of two variable fonts, hosted here instead of on Google Fonts. One file per family covers every weight used.
   swap: text shows in the fallback font straight away and switches when the file arrives */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --black: #080808;
  --ink-900: #0e0e0e;
  --ink-800: #141414;
  --ink-700: #1c1c1c;
  --ink-600: #262626;
  --white: #ffffff;
  --grey-50: #f6f6f3;
  --grey-200: #e3e3de;
  --grey-300: #cdcdc7;
  --grey-500: #62625e;   /* body copy on light: 6.1:1 on white */
  --grey-on-dark: #a6a6a1; /* body copy on dark: 8:1 on black */
  --yellow: #ffd400;
  --yellow-deep: #f2c500;
  --line-dark: rgba(255, 255, 255, 0.1);
  --danger: #c4231b;
  --danger-on-dark: #ff7a70;
  --success-on-dark: #4ade80;

  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.2s; /* hovers, presses and other small feedback */
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* keep the scrollbar's space reserved so locking scroll (mobile menu open) doesn't shift the layout */
  scrollbar-gutter: stable;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Black like html and the hero. Safari shows it when the page is pulled past its top or bottom, and blends a
   see-through status bar colour against it. The status bar itself comes from .top-bar-tint, not from here.
   Every section paints its own background, so this never shows on the page itself. (The parts of a quick flick
   Safari hasn't drawn yet take the colour scheme's colour instead: initScrollScheme in main.js switches it) */
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--light :focus-visible,
.section--grey :focus-visible {
  outline-color: var(--black);
  box-shadow: 0 0 0 5px var(--yellow);
}

[id] { scroll-margin-top: 16px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--dark  { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--black); }
.section--grey  { background: var(--grey-50); color: var(--black); }
.section--yellow { background: var(--yellow); color: var(--black); }
.section--yellow .lead { color: var(--black); }
.section--yellow :focus-visible { outline-color: var(--black); box-shadow: 0 0 0 5px var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 + .lead { margin-top: 1.25rem; }

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 60ch;
}
.section--dark .lead { color: var(--grey-on-dark); }

/* Yellow text: only on dark surfaces */
.accent { color: var(--yellow); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
/* Hover feedback: every control eases its colours at the same speed */
.btn, .header-call, .nav-list a, .speed-btn, .live-btn, .calc-tab, .acc-trigger, .contact-link, .footer-col a, .footer-social a, .back-top {
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: var(--grey-200); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--sm { min-height: 42px; --btn-pad-y: 0.55rem; --btn-pad-x: 1.05rem; font-size: 0.9rem; }
.btn--lg { min-height: 54px; --btn-pad-y: 0.95rem; --btn-pad-x: 1.6rem; font-size: 1.02rem; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink-700);
  border: 1px solid rgba(255, 212, 0, 0.35);
  color: var(--yellow);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-weight: 500; color: var(--white); }
.logo-text strong { font-weight: 800; color: var(--white); margin-right: 0.08em; }

/* ---------- iOS status bar ---------- */
/* iOS 26 Safari ignores theme-color. It colours the status bar from the first fixed or sticky element it finds
   4px from the top of the screen, if that element is at least 90% of the screen wide and more than 10px tall.
   When it finds none, it shows blurred page content. It also keeps the last element it found until the page reloads.
   Without this strip, the bar was see-through until the menu was opened (the header turns fixed and black),
   and stayed black after that. 12px tall with half of it above the screen: it covers the point Safari checks and
   shows as 6px of black under the bar. Only on iOS, so other browsers never see a black line over light sections */
.top-bar-tint { display: none; }
@supports (-webkit-touch-callout: none) {
  .top-bar-tint {
    display: block;
    position: fixed;
    inset: -6px 0 auto;
    height: 12px;
    z-index: 101; /* above the header, so Safari's check lands here */
    background: var(--black);
    pointer-events: none;
  }
}

/* ---------- Header ---------- */
/* Sits at the top of the page and scrolls away with it */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
}
/* The open mobile menu is fixed to the screen. It needs no background of its own: the drawer behind the logo and
   close button is already black, and a second black layer fading in under it showed as a darker band at the top */
body.nav-open .site-header,
body.nav-closing .site-header { position: fixed; }
/* Opened from a scrolled page (or closed by a link that scrolls), the header appears or leaves at the top of the screen:
   fade its controls with the drawer instead of popping. Not the whole header, because the drawer sits inside it and
   would otherwise fade twice (its own opacity times the header's) */
body.nav-reveal .header-inner > :not(.primary-nav) { animation: header-in 0.22s ease both; }
body.nav-reveal.nav-closing .header-inner > :not(.primary-nav) { animation: header-out 0.22s ease both; }
/* First step of opening (see setOpen in main.js): drawer and controls are painted at opacity 0 for one frame, so the
   fades start on layers Safari has already drawn */
body.nav-preparing .primary-nav { visibility: visible; transition: none; }
body.nav-preparing.nav-reveal .header-inner > :not(.primary-nav) { opacity: 0; animation: none; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-inner .logo { margin-right: auto; position: relative; z-index: 2; }

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* Phones: a round call button sits beside the menu button */
.header-call {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
}
.header-call:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.header-call .icon { width: 20px; height: 20px; stroke-width: 2; }
@media (min-width: 640px) { .header-call { display: none; } }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-right: -6px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 22px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.15s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer: covers the screen behind the header's logo and close button */
.primary-nav {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--black);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  /* Opacity on plain ease: --ease reaches 30% in the first frame, so one late frame showed as a jump */
  transition: opacity 0.22s ease, transform 0.2s var(--ease), visibility 0s linear 0.22s;
}
.primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.22s ease, transform 0.2s var(--ease), visibility 0s;
}
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--white);
}
.nav-list a::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transform: rotate(45deg);
  opacity: 0.8;
}
.nav-cta { align-self: stretch; min-height: 56px; }

/* Without JS the mobile panel can't open, so show the links inline */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .primary-nav {
  position: static; visibility: visible; opacity: 1; transform: none;
  flex-direction: row; padding: 0; background: none; overflow: visible;
}
html:not(.js) .nav-list { display: flex; gap: 1rem; }
html:not(.js) .nav-list a { font-size: 0.9rem; border: 0; min-height: 44px; }
html:not(.js) .nav-list a::after, html:not(.js) .nav-cta { display: none; }
html:not(.js) .site-header { position: absolute; }
@media (max-width: 899px) { html:not(.js) .nav-list li:nth-child(n+3) { display: none; } }

@media (min-width: 1080px) {
  .nav-toggle, .nav-cta { display: none; }
  .primary-nav {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    margin-right: 0.75rem;
  }
  .nav-list { display: flex; gap: 0.35rem; }
  .nav-list a {
    position: relative;
    min-height: 44px;
    padding: 0 0.8rem;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.78);
  }
  .nav-list a::after {
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 8px;
    width: auto; height: 2px;
    border: 0;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 1;
  }
  .nav-list a:hover,
  .nav-list a.is-active { color: var(--white); }
  .nav-list a.is-active::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
}

.hero-inner,
.featured-inner,
.faq-layout,
.contact-layout { grid-template-columns: minmax(0, 1fr); }

.hero-inner { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); align-items: center; }
.hero-art { width: min(100%, 320px); margin-inline: auto; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

/* Below 1000px the hero reads: headline, description, illustration, buttons */
@media (max-width: 999.98px) {
  .hero-inner { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-title { order: 1; }
  .hero-lead { order: 2; }
  .hero-art { order: 3; margin-block: 2.5rem; width: min(100%, 380px); }
  .hero-art .node-label { font-size: 15px; }
  .hero-inner .hero-actions { order: 4; margin-top: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 0.5rem + 7vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-title .line { display: block; }

.hero-lead {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.55;
  color: var(--grey-on-dark);
  max-width: 40em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2.5rem; }
  .hero-title { font-size: clamp(3.6rem, 0.5rem + 5.4vw, 5.6rem); }
  .hero-art { width: 100%; margin-inline: 0; justify-self: end; order: 2; }
  .hero { min-height: min(100vh, 960px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}

/* ---------- Hero vector ---------- */
.hero-art .node-bg { fill: var(--ink-800); stroke: var(--yellow); stroke-opacity: 0.45; }
.hero-art .node-icon { stroke: var(--yellow); }
.hero-art .node-label { fill: var(--grey-on-dark); }
.hero-art .node.is-active .node-bg { fill: var(--yellow); stroke-opacity: 1; }
.hero-art .node.is-active .node-icon { stroke: var(--black); }
.hero-art .node.is-active .node-label { fill: var(--white); }
.hero-art .node-pulse { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-art .node.is-active .node-bg { filter: drop-shadow(0 0 14px rgba(255, 212, 0, 0.35)); }
.hero-art .beam { stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
/* Only the visible beam carries the glow: SVG filters are costly to paint, and the other beams are transparent */
.hero-art .beam.is-active { filter: drop-shadow(0 0 7px rgba(255, 212, 0, 0.9)); }

/* ---------- Demo call player ---------- */
.demo { margin: 0; position: relative; }
.demo-card {
  position: relative;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.demo-card::before {
  /* thin yellow edge at the top: the "charged" detail */
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.7;
}

/* Waveform */
.wave {
  --bar-color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: clamp(72px, 12vh, 110px);
  margin: 1.1rem 0.25rem;
}

.wave span {
  --h: 0.4;
  flex: 1 1 0;
  max-width: 6px;
  height: 100%;
  border-radius: 3px;
  background: var(--bar-color);
  /* --level (0-1) is set by call-player.js from the captions */
  transform: scaleY(calc(var(--h) * var(--level, 0.08) + 0.05));
  transition: transform 90ms linear, background-color 0.4s var(--ease);
}
[data-speaker-now="ai"] .wave { --bar-color: var(--yellow); }

/* Pseudo-random bar heights */
.wave span:nth-child(7n+1) { --h: 0.28; }
.wave span:nth-child(7n+2) { --h: 0.62; }
.wave span:nth-child(7n+3) { --h: 0.9; }
.wave span:nth-child(7n+4) { --h: 0.45; }
.wave span:nth-child(7n+5) { --h: 0.75; }
.wave span:nth-child(7n+6) { --h: 0.36; }
.wave span:nth-child(7n+7) { --h: 0.55; }
.wave span:nth-child(-n+3),
.wave span:nth-last-child(-n+3) { --h: 0.16; }

/* Conversation. Fixed height from the first paint: captions scroll inside it, so nothing below ever moves */
.convo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: min(34vh, 320px);
  height: min(34svh, 320px); /* iOS Safari: vh changes as its toolbar shows and hides, which would resize the box mid-call */
  overflow-y: auto;
  padding-right: 0.25rem;
}
.msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
  line-height: 1.5;
}
.msg-who {
  display: flex; align-items: center; gap: 0.3rem;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.msg-who .icon { width: 0.95em; height: 0.95em; }
.msg--caller {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  border-bottom-left-radius: 4px;
}
.msg--ai {
  align-self: flex-end;
  background: var(--yellow);
  color: var(--black);
  border-bottom-right-radius: 4px;
}
.msg--ai .msg-who { opacity: 0.75; }
.msg--ai .msg-who .icon { fill: currentColor; stroke: none; }

/* System step the agent took (checking the diary, booking): visual only, not speech */
.msg--action {
  align-self: stretch;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.06);
}
.action-tile { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--yellow); color: var(--black); }
.action-tile .icon { width: 17px; height: 17px; stroke-width: 2; }
.action-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.action-name { font-family: var(--font-display); font-weight: 700; }
.action-status { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--success-on-dark); }
.action-status .icon { width: 0.95em; height: 0.95em; stroke-width: 3; }
.action-time { flex: none; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--grey-on-dark); }

.convo:empty::before {
  content: "Press play to hear a real call. Captions appear here as it plays.";
  display: block;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--grey-on-dark);
  text-align: center;
}
[data-unavailable] .convo:empty::before { content: "Call recording coming soon."; }
.msg:not(.is-current) { opacity: 0.6; }

.live-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.live-btn {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
}
.live-btn:hover { background: var(--yellow-deep); }
.live-btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--yellow); }
.live-seek:disabled { opacity: 0.4; cursor: not-allowed; }
.live-btn .icon { width: 22px; height: 22px; }
.live-btn .icon-play { display: none; }
.demo:not([data-playing]) .live-btn .icon-play { display: block; }
.demo:not([data-playing]) .live-btn .icon-pause { display: none; }

.live-seek {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  accent-color: var(--yellow);
  cursor: pointer;
}
.live-speed { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; margin-top: 0.5rem; }
.live-speed-label { margin-right: 0.25rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-on-dark); }
.speed-btn {
  min-width: 48px;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.speed-btn:hover { border-color: var(--white); }
.speed-btn.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.speed-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.live-duration {
  white-space: nowrap;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--grey-on-dark);
}

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  background: var(--white);
}
.problem-card h3 { margin: 1rem 0 0.5rem; }
.problem-card p { color: var(--grey-500); }

.problem-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--black);
  color: var(--yellow);
}
.problem-icon .icon { width: 22px; height: 22px; }

/* ---------- Icon tiles ---------- */
.icon-tile {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--black);
  color: var(--yellow);
  flex: none;
}
.icon-tile .icon { width: 24px; height: 24px; }

/* ---------- Pricing comparison matrix ---------- */
/* Icon-only cells keep all four columns on screen, even on a 320px phone */
.mx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.mx-col-feature { width: 40%; }
.mx-col--base, .mx-col--mid { background: #f9f9f7; }
.mx-col--top { background: #fff8d6; }

.mx-table th,
.mx-table td { padding: clamp(0.75rem, 1.8vw, 1.15rem) clamp(0.35rem, 1.5vw, 1.25rem); border-bottom: 1px solid var(--grey-200); }
.mx-table tbody tr:last-child > * { border-bottom: 0; }

.mx-corner { text-align: left; vertical-align: bottom; font-family: var(--font-display); font-size: clamp(0.85rem, 0.8rem + 0.4vw, 1.1rem); font-weight: 800; background: var(--white); }

/* .mx-table prefix: outranks the padding shorthand on .mx-table th */
.mx-table .mx-head {
  position: relative;
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  vertical-align: bottom;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 0.6rem + 0.6vw, 1.05rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* The receptionist is the benchmark, not a tier: an outlined header instead of a solid one */
.mx-head--base { background: var(--white); color: var(--grey-500); border: 1.5px dashed var(--grey-300); border-bottom: 0; }
/* Label spanning the two tiers; its bottom padding clears the round badges above the headers */
.mx-table .mx-group > * { background: var(--white); border-bottom: 0; padding-bottom: clamp(2rem, 3.2vw, 2.5rem); }
.mx-group th { font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.mx-head--mid { background: var(--black); color: var(--white); }
.mx-head--top { background: var(--yellow); color: var(--black); }
.mx-badge {
  position: absolute;
  left: 50%; top: 0;
  display: grid; place-items: center;
  width: clamp(30px, 4vw, 44px); height: clamp(30px, 4vw, 44px);
  border-radius: 50%;
  border: 3px solid var(--white);
  transform: translate(-50%, -50%);
}
.mx-badge .icon { width: 50%; height: 50%; }
.mx-head--base .mx-badge { background: var(--grey-500); color: var(--white); }
.mx-head--mid .mx-badge { background: var(--black); color: var(--yellow); }
.mx-head--mid .mx-badge .icon,
.mx-head--top .mx-badge .icon { fill: currentColor; stroke: none; }
.mx-head--top .mx-badge { background: var(--yellow); color: var(--black); }

.mx-table tbody th { text-align: left; font-weight: 500; }
.mx-feature { display: block; font-size: clamp(0.8rem, 0.75rem + 0.3vw, 1rem); line-height: 1.35; }

.mx-cell { text-align: center; vertical-align: middle; }
/* Filled status icons: solid circle with a white tick or cross */
td.mx-cell .icon {
  margin-inline: auto;
  width: clamp(26px, 3vw, 32px); height: clamp(26px, 3vw, 32px);
  padding: 6px;
  border-radius: 50%;
  background: var(--state);
  color: var(--white);
  stroke-width: 3.2;
}
.mx-cell.is-yes { --state: #1f8a4c; }
.mx-cell.is-no { --state: var(--danger); }

.mx-price .mx-cell { line-height: 1.1; }
.mx-amount { display: block; font-family: var(--font-display); font-size: clamp(0.95rem, 0.7rem + 1.1vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; }
.mx-per { display: block; margin-top: 0.15rem; font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem); color: var(--grey-500); }
.mx-text { font-weight: 600; font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem); }
.mx-fit { display: block; font-family: var(--font-display); font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9rem); line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }

/* Phones: the matrix slides sideways edge to edge. Feature names stay pinned and each column snaps flush against them */
@media (max-width: 639px) {
  .matrix {
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 0 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 7.5rem;
    scrollbar-width: none;
    contain: paint; /* keeps the wide table from widening the page */
  }
  .matrix::-webkit-scrollbar { display: none; }
  .mx-table { width: 36rem; }
  .mx-col-feature { width: 7.5rem; }
  .mx-badge { display: none; }
  .mx-table .mx-group > * { padding-bottom: 0.75rem; }
  .mx-table .mx-head { padding-top: clamp(1.1rem, 3vw, 2rem); }
  .mx-corner,
  .mx-table tbody th { position: sticky; left: 0; z-index: 2; padding-left: var(--gutter); background: var(--white); box-shadow: 1px 0 0 var(--grey-200); }
  .mx-head,
  .mx-table tbody td { scroll-snap-align: start; }
  .mx-table th, .mx-table td { padding-inline: 0.75rem; }
}

/* Custom tier: deliberately outside the matrix, since its features are chosen by the customer */
.custom-tier {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--black);
}
.custom-copy { flex: 1 1 18rem; min-width: 0; }
.custom-copy h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.03em; }
.custom-copy p { margin-top: 0.4rem; color: var(--grey-500); max-width: 52ch; }
/* The white primary button would vanish on the white card */
.custom-tier .btn--primary { background: var(--black); color: var(--white); }
.custom-tier .btn--primary:hover { background: var(--ink-600); }
@media (max-width: 479px) { .custom-tier .btn { width: 100%; } }

.custom-features {
  flex: 1 1 100%;
  display: grid;
  gap: 0.85rem 2rem;
  margin-top: 0.5rem;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--grey-200);
}
.custom-features li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; line-height: 1.4; }
.custom-features .icon {
  width: 22px; height: 22px;
  margin-top: -1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  stroke-width: 3.2;
}
@media (min-width: 640px) { .custom-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .custom-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* On phones the button follows the list it summarises */
@media (max-width: 639px) { .custom-tier .btn { order: 1; } }

/* ---------- Savings calculator ---------- */
/* Light form for typing into; the black result card is the focal point */
.calc-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.calc-tab:hover { border-color: var(--black); }
.calc-tab[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.calc-tab[aria-selected="true"] .icon { color: var(--yellow); }
/* Phones: the two tabs share the full width, equal halves */
@media (max-width: 639px) {
  .calc-tab { flex: 1 1 0; justify-content: center; min-width: 0; padding-inline: 0.5rem; }
}

.calc-panel { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.calc-panel[hidden] { display: none; }
@media (min-width: 900px) { .calc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); } }

/* Without JS both calculators show, one after the other */
html:not(.js) .calc-tabs { display: none; }
html:not(.js) .calc-panel[hidden] { display: grid; margin-top: clamp(3rem, 6vw, 4.5rem); }

.calc-fields { display: grid; gap: 1.75rem; }
.calc-field label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.calc-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-500);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.calc-input:hover { border-color: var(--grey-500); }
/* Same black ring + yellow halo as :focus-visible on light sections */
.calc-input:focus-within { border-color: var(--black); box-shadow: 0 0 0 1px var(--black), 0 0 0 5px var(--yellow); }
.calc-input input {
  flex: 1;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font-size: 1.05rem; /* 16px+ stops iOS zooming in on focus */
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
/* The wrapper draws the focus ring; without this the input adds a second, square one */
.calc-input input:focus-visible { outline: 0; box-shadow: none; }
.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-affix { font-weight: 600; }

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  text-align: center;
}
/* The section's black focus ring would vanish on the black card */
.calc-result :focus-visible { outline-color: var(--yellow); box-shadow: none; }
.calc-result-label { font-family: var(--font-display); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); font-weight: 700; }
.calc-amount {
  display: block;
  max-width: 100%;
  margin: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  overflow-wrap: anywhere;
}
.calc-amount--loss { color: var(--danger-on-dark); }
.calc-result-note { color: var(--grey-on-dark); }
.calc-result .btn { width: 100%; margin-top: 1.75rem; }
.calc-fineprint { margin-top: 1rem; font-size: 0.8rem; color: var(--grey-on-dark); }

.calc-bars { display: grid; gap: 1rem; width: 100%; margin-top: 0.5rem; text-align: left; }
.calc-bar { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; font-size: 0.9rem; }
.calc-bar-label { font-weight: 600; }
.calc-bar-value { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--grey-on-dark); }
.calc-bar-track { grid-column: 1 / -1; height: 10px; border-radius: var(--radius-pill); background: var(--ink-600); overflow: hidden; }
/* Only transform animates, so resizing a bar never triggers layout */
.calc-bar-fill {
  display: block;
  height: 100%;
  background: var(--grey-on-dark);
  transform: scaleX(var(--scale, 1));
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.calc-bar--ai .calc-bar-fill { background: var(--yellow); }

/* ---------- Featured agent (demo call) ---------- */
.featured { overflow: hidden; }
.featured-inner { display: grid; gap: clamp(3rem, 6vw, 4.5rem); align-items: center; }
.featured-copy h2 { margin-bottom: 1.25rem; }

@media (min-width: 1000px) {
  .featured-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
}

.accordion { border-top: 1px solid var(--grey-200); }
.acc-item { border-bottom: 1px solid var(--grey-200); }
.acc-heading { font-size: inherit; letter-spacing: normal; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  min-height: 64px;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  cursor: pointer;
}
.acc-trigger:hover { color: var(--ink-600); }
.acc-icon {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  flex: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--yellow); border-color: var(--yellow); transform: rotate(180deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }

.acc-panel-inner p { padding: 0 3rem 1.5rem 0; color: var(--grey-500); max-width: 66ch; }

/* Collapsing only happens when JS is available */
.js .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s linear 0.35s;
}
.js .acc-panel-inner { overflow: hidden; min-height: 0; }
.js .acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s;
}
html:not(.js) .acc-icon { display: none; }

@media (max-width: 559px) {
  .acc-panel-inner p { padding-right: 0; }
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; }
}
.contact-intro .lead { margin-top: 1.25rem; }

.contact-list { display: grid; gap: 0.85rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  text-decoration: none;
}
.contact-link:hover { border-color: var(--black); }
.contact-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.contact-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-500); }
.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact-arrow { margin-left: auto; width: 1.2em; height: 1.2em; stroke-width: 2.2; }
@media (max-width: 479px) { .contact-arrow { display: none; } .contact-link { padding-inline: 1rem; gap: 0.85rem; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; gap: 2.5rem; }
.footer-brand p { margin: 1.25rem 0 1.5rem; color: var(--grey-on-dark); max-width: 42ch; font-size: 0.95rem; }
.footer-heading {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col ul { display: grid; gap: 0.15rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--grey-on-dark);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
  color: var(--grey-on-dark);
}
.back-top { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; min-height: 44px; }
.back-top .icon { transform: rotate(-90deg); width: 1em; height: 1em; }
.back-top:hover { color: var(--yellow); }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
}
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-social .icon { width: 20px; height: 20px; }

@media (min-width: 600px) { .footer-top { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }

/* ---------- 404 page ---------- */
/* Fills the screen under the floating header, on the homepage hero's grid */
.not-found {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.nf-title {
  font-size: clamp(2.2rem, 1.2rem + 4.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

/* Just the bottom strip of the homepage footer */
.nf-footer { padding-top: 0; border-top: 0; }
.nf-footer .footer-bottom { margin-top: 0; }

/* ---------- Motion ---------- */
@keyframes header-in { from { opacity: 0; } }
@keyframes header-out { to { opacity: 0; } }
@keyframes beam-travel {
  0% { opacity: 1; stroke-dashoffset: 1; }
  30% { opacity: 1; stroke-dashoffset: 0; }
  70% { opacity: 0.85; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes node-pulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero vector: the whole line glows from the bolt to the item, then the item lights up and pulses */
  .hero-art .node-bg,
  .hero-art .node-icon,
  .hero-art .node-label { transition: fill 0.4s var(--ease), stroke 0.4s var(--ease), stroke-opacity 0.4s var(--ease), filter 0.4s var(--ease); }
  .hero-art .node.is-active .node-bg,
  .hero-art .node.is-active .node-icon,
  .hero-art .node.is-active .node-label { transition-delay: 0.5s; }
  .hero-art .beam.is-active { animation: beam-travel 1.7s ease-out forwards; }
  .hero-art .node.is-active .node-pulse { animation: node-pulse 1.4s ease-out 0.5s infinite backwards; }
  /* Set by main.js while the hero is off-screen or the tab is hidden. As specific as the rules above, which reset the play state */
  .hero-art.is-paused .beam.is-active,
  .hero-art.is-paused .node.is-active .node-pulse { animation-play-state: paused; }
}

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