/* ==========================================================================
   servandosilva.com
   Neubrutalist system: one ground, one outline colour, three accents.
   Palette from kristi.digital · structure per neubrutalism.com
   ========================================================================== */

/* FONTS:START — served from this site, not Google, so there's no extra connection to wait for */
@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-v1.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('../fonts/cabin-v1.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
/* FONTS:END */

/* Page transitions. Chrome, Edge and Safari crossfade from one page to the next instead of
   blanking the screen. The header is identical on every page, so it appears to stay put while
   only the content changes. Other browsers simply load the page as usual. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
/* The header is its own layer that never moves, even when the link was far down the page */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

:root {
  /* Neutrals */
  --beige: #F9F5F2;      /* page ground */
  --white: #FFFFFF;      /* cards on ground */
  --grey: #EDEDED;       /* inset wells */
  --ink: #282825;        /* text, every border, every shadow, dark bands */
  --body: #52514E;       /* secondary text on beige / white */
  --sage: #D0D5D2;       /* secondary text on ink */
  --fg: #282825;         /* text on the page ground and cards */
  --band: #282825;       /* dark sections and the footer */
  --error: #B3261E;
  --error-bg: #FFF4F1;

  /* Accents — ink text on all three, never white */
  --yellow: #F7CB45;     /* primary buttons, bands */
  --coral: #FF7D59;      /* CTA bands, Contact hero */
  --blue: #91A8ED;       /* data panels, quote band */

  /* Structure */
  --stroke: 3px;
  --border: var(--stroke) solid var(--ink);
  --radius: 5px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  /* Type */
  --font-display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Cabin', 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(36px, 4.2vw + 8px, 68px);
  --fs-h1: clamp(38px, 3.6vw + 10px, 62px);
  --fs-h2: clamp(30px, 2.2vw + 12px, 44px);
  --fs-lead: clamp(17px, 0.3vw + 14px, 19px);

  /* Layout */
  --maxw: 1328px;
  --gutter: 56px;
  --section-y: 96px;
}

/* Dark mode (the moon button in the header). Only the neutral ground, cards, header and form
   change; yellow, coral, blue and dark sections keep their colours (see "Fixed-colour areas"). */
:root[data-mode="dark"] {
  color-scheme: dark;
  --beige: #292824;      /* page ground */
  --white: #33322D;      /* cards */
  --grey: #413F3A;       /* wells, hover fills */
  --ink: #0E0E0C;        /* outlines and shadows */
  --fg: #F4F0EA;         /* text */
  --body: #C3BEB5;       /* secondary text */
  --band: #1A1917;       /* dark sections and the footer */
  --error: #FF8A80;
  --error-bg: #3A2422;
}

/* Fixed-colour areas: these look the same in both themes, so inside them the light values apply */
.band--yellow, .band--coral, .band--blue, .card--yellow,
.chip--yellow, .chip--coral, .chip--blue, .badge, .icon-chip, .avatar, .photo,
.btn--primary, .btn--coral, .btn--blue, .btn--ink,
.case__head, .snapshot__head, .engagement__head,
.logo, .nav-toggle, .highlight, .skip-link,
.band--ink, .card--ink, .site-footer {
  --beige: #F9F5F2; --white: #FFFFFF; --grey: #EDEDED; --ink: #282825;
  --fg: #282825; --body: #52514E; --error: #B3261E; --error-bg: #FFF4F1;
}
.band--yellow, .band--coral, .band--blue, .card--yellow,
.case__head, .snapshot__head, .engagement__head, .icon-chip, .avatar, .photo, .badge,
.chip--yellow, .chip--coral, .chip--blue, .highlight, .nav-toggle { color: var(--fg); }

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --section-y: 44px;
  }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--band); /* matches the footer, so overscroll never flashes */
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { background: var(--beige); }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--fg); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.band--ink :focus-visible,
.site-footer :focus-visible,
.card--ink :focus-visible { outline-color: var(--beige); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); border: var(--border); border-radius: var(--radius);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout primitives ---------- */

.wrap { max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.band { padding-block: var(--section-y); border-bottom: var(--border); }
.band--beige { background: var(--beige); }
.band--white { background: var(--white); }
.band--yellow { background: var(--yellow); }
.band--coral { background: var(--coral); }
.band--blue { background: var(--blue); }
.band--ink { background: var(--band); color: var(--beige); }
.band--tight { padding-block: 44px; }
.band--flush { border-bottom: 0; }

.stack > * + * { margin-top: var(--stack, 20px); }

.grid { display: grid; gap: var(--gap, 28px); }
.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)); }

.split { display: grid; grid-template-columns: var(--split, minmax(0, 1fr) minmax(0, 1fr)); gap: var(--split-gap, 64px); align-items: var(--split-align, start); }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: var(--gap-m, 20px); }
  .grid--4.grid--m2, .grid--3.grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--split-gap-m, 32px); }
}

/* ---------- Type ---------- */

.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title { font-size: var(--fs-hero); line-height: 0.94; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.05; }
.h3-display { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.17; }
.h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--body);
}
.band--yellow .eyebrow, .band--coral .eyebrow, .band--blue .eyebrow { color: var(--ink); }
.band--ink .eyebrow { color: var(--sage); }

.lead { font-size: var(--fs-lead); line-height: 1.58; max-width: 40em; }
.muted { color: var(--body); }
.band--ink .muted { color: var(--sage); }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body);
}
.band--ink .label, .card--ink .label { color: var(--sage); }

.highlight { background: var(--yellow); box-shadow: 0 0 0 6px var(--yellow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.section-head { max-width: 760px; }
.section-head .eyebrow + * { margin-top: 16px; }
.section-head h2 + .lead { margin-top: 18px; }
.section-head + * { margin-top: 48px; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .eyebrow { font-size: 11px; }
  .section-head + * { margin-top: 28px; }
}

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

.btn {
  --sh: 5px;
  --sh-c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 17px 28px;
  font: 700 17px/1.2 var(--font-body);
  color: var(--fg);
  background: var(--beige);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh) var(--sh) 0 var(--sh-c);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--sh-c); }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--sh-c); }

.btn--primary { background: var(--yellow); }
.btn--coral { background: var(--coral); }
.btn--blue { background: var(--blue); }
.btn--ink { background: var(--ink); color: var(--beige); --sh-c: var(--beige); }
.btn--ink:hover { color: var(--beige); }

.btn--sm { --sh: 3px; padding: 11px 20px; font-size: 15px; }
.btn--lg { --sh: 6px; padding: 19px 30px; }
.btn--xl { --sh: 8px; padding: 24px 40px; font-size: 20px; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 900px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .btn--xl { --sh: 5px; padding: 18px 24px; font-size: 17px; width: 100%; }
}

/* ---------- Cards & chips ---------- */

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--lg { box-shadow: var(--shadow-lg); }
.card--beige { background: var(--beige); }
.card--yellow { background: var(--yellow); }
.card--ink { background: var(--band); color: var(--beige); }
.card--pad { padding: 32px 30px; }
.snapshot, .engagement { overflow: hidden; }

a.card { display: block; text-decoration: none; color: var(--fg); transition: transform 0.1s ease, box-shadow 0.1s ease; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
a.card:active { transform: translate(5px, 5px); box-shadow: none; }

.chip {
  display: inline-block;
  padding: 7px 12px;
  border: var(--border);
  border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.2;
}
.chip--yellow { background: var(--yellow); }
.chip--coral { background: var(--coral); }
.chip--blue { background: var(--blue); }

.badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 15px; line-height: 1;
  padding: 7px 12px;
  border: var(--border); border-radius: var(--radius);
}

.icon-chip {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: var(--radius);
}
.icon-chip svg { width: 26px; height: 26px; }

.rule { height: 3px; background: var(--ink); border: 0; margin: 22px 0; }
.rule--thin { height: 2px; }

.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { font-size: 14px; line-height: 2; }
.dash-list li::before { content: "— "; }
.dash-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 900px) { .dash-list--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sample tags (delete the spans once real quotes and results go in) ---------- */

.sample-tag {
  display: inline-block; vertical-align: middle;
  background: var(--grey); color: var(--fg);
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  padding: 4px 7px; border-radius: 3px;
}
.case__meta .sample-tag { margin-right: 8px; }
.quote { position: relative; }
.sample-tag--corner { position: absolute; top: 18px; right: 18px; }

/* ---------- Header & navigation ---------- */

.site-header { background: var(--beige); border-bottom: var(--border); position: relative; z-index: 20; }
.site-header__inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo: the name as two joined labels, surname on yellow. Live text, no image file. */
.logo {
  display: inline-flex; flex-shrink: 0;
  border: var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.logo__first, .logo__last { padding: 10px 11px 9px; }
.logo__first { background: var(--white); }
.logo__last { background: var(--yellow); border-left: var(--border); }
a.logo:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
a.logo:active { transform: translate(3px, 3px); box-shadow: none; }

.site-header__actions { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; align-items: center; gap: 34px; }

/* Dark-mode button: a moon in light mode, a sun in dark mode */
.theme-toggle {
  width: 46px; height: 46px; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--fg);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.theme-toggle:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.theme-toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon-sun { display: none; }
:root[data-mode="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-mode="dark"] .theme-toggle .icon-moon { display: none; }
.nav__link {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding-block: 4px; border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--fg); border-bottom-color: var(--fg); }
.nav__link[aria-current="page"] { border-bottom-color: var(--fg); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--yellow); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: var(--border); background: var(--beige); padding: 12px var(--gutter) 24px; }
.mobile-menu a:not(.btn) {
  display: block; padding: 16px 0; border-bottom: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 24px; text-decoration: none;
}
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mobile-menu .btn { margin-top: 22px; }

@media (max-width: 900px) {
  .site-header__inner { height: 64px; }
  .logo { font-size: 14px; }
  .logo__first, .logo__last { padding: 8px 9px 7px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions { gap: 12px; }
}
@media (max-width: 360px) {
  .logo { font-size: 12.5px; }
  .logo__first, .logo__last { padding: 8px 7px 7px; }
  .site-header__actions { gap: 8px; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Home: hero ---------- */

.hero { --split: minmax(0, 1.25fr) minmax(0, 1fr); padding-block: 88px; }
.hero .lead { margin-top: 34px; max-width: 620px; }
.hero .btn-row { margin-top: 36px; }
.hero__meta { margin-top: 28px; font-size: 13px; color: var(--body); }

.snapshot__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: var(--border); background: var(--blue); }
.snapshot__head span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.snapshot__rows { padding: 10px 22px; }
.snapshot__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 2px dashed var(--ink); }
.snapshot__row:last-child { border-bottom: 0; }
.snapshot__row dt { font-size: 13px; color: var(--body); }
.snapshot__row dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.snapshot__foot { padding: 14px 22px; border-top: var(--border); background: var(--beige); font-size: 12px; line-height: 1.5; color: var(--body); border-radius: 0 0 var(--radius) var(--radius); }

@media (max-width: 900px) {
  .hero { padding-block: 40px; }
  .hero .lead { margin-top: 24px; }
  .hero .btn-row { margin-top: 26px; }
  .snapshot__row dd { font-size: 18px; }
}

/* ---------- Stats (proof bar) ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat__value { font-size: 40px; font-weight: 700; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: 13px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .stat__value { font-size: 30px; }
  .stat__label { font-size: 11px; }
}

/* ---------- Service cards (home) ---------- */

.service-card { padding: 32px 30px; display: flex; flex-direction: column; }
.service-card .h3-display { margin-top: 22px; }
.service-card p { margin-top: 14px; font-size: 16px; line-height: 1.56; color: var(--body); }
.service-card .dash-list li { font-size: 13px; line-height: 2.15; }
.service-card__foot { margin-top: auto; }
@media (max-width: 900px) { .service-card { padding: 24px 22px; } }

/* ---------- Process ---------- */

.step { padding: 28px 26px; }
.step__num { font-family: var(--font-display); font-size: 42px; line-height: 1; }
.step .h3 { margin-top: 16px; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--body); }
.step__when { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Case study / results card ---------- */

.case { overflow: hidden; }
.case__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 36px; border-bottom: var(--border); }
.case__name { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.case__meta { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.metrics { display: grid; gap: var(--stroke); background: var(--ink); border-bottom: var(--border); }
.metrics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { background: var(--white); padding: 30px 32px; }
.metric__value { font-size: 38px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric__label { margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); }
.metrics--lg .metric { padding: 34px 36px; }
.metrics--lg .metric__value { font-size: 46px; }

.case__body { padding: 34px 36px; display: grid; gap: 40px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.case__body p { margin-top: 12px; font-size: 16px; line-height: 1.62; }

@media (max-width: 900px) {
  .case__head { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .case__name { font-size: 20px; }
  .case__meta { font-size: 12px; }
  .metrics--3, .metrics--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics--3 .metric:last-child { grid-column: span 2; }
  .metric, .metrics--lg .metric { padding: 20px; }
  .metric__value, .metrics--lg .metric__value { font-size: 30px; }
  .metric__label { font-size: 11px; }
  .case__body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 20px; }
  .case__body p { margin-top: 8px; font-size: 15px; }
}

/* ---------- Testimonials ---------- */

.quote { padding: 30px 28px; display: flex; flex-direction: column; }
.quote svg { width: 40px; height: 32px; }
.quote blockquote { margin-top: 22px; font-size: 17px; line-height: 1.6; flex-grow: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: var(--border); }
.avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: var(--radius);
  font-size: 11px; font-weight: 700;
}
.quote__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.quote__role { font-size: 13px; color: var(--body); }
@media (max-width: 900px) { .quote { padding: 24px 22px; } }

/* ---------- Photos ---------- */

.photo {
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 24px;
}
.photo--home { min-height: 440px; background: var(--blue); }
.photo--about { min-height: 560px; background: var(--coral); }
@media (max-width: 900px) {
  .photo { box-shadow: 6px 6px 0 var(--ink); }
  .photo--home, .photo--about { min-height: 320px; }
}
/* A real photo fills the frame edge to edge */
.photo.photo--img { padding: 0; min-height: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.photo--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Square on phones, so the headline next to it still shows on the first screen */
@media (max-width: 900px) { .photo.photo--img { aspect-ratio: 1 / 1; } }

/* ---------- FAQ (details/summary) ---------- */

.faq { display: grid; gap: var(--faq-gap, 16px); }
.faq details { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font-size: 19px; font-weight: 700; line-height: 1.35;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--grey); }
.faq details[open] summary:hover { background: transparent; }
.faq__answer { padding: 0 26px 24px; font-size: 17px; line-height: 1.6; color: var(--body); max-width: 60em; }
@media (max-width: 900px) {
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq__answer { padding: 0 20px 20px; font-size: 16px; }
  .faq details { box-shadow: 4px 4px 0 var(--ink); }
}

.faq-layout { --split: minmax(0, 440px) minmax(0, 1fr); }
.support-card { margin-top: 36px; padding: 28px 26px; }
.support-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--beige); }
.support-card p { margin-top: 14px; font-size: 16px; line-height: 1.56; color: var(--sage); }
.support-card .btn { margin-top: 26px; }
@media (max-width: 900px) { .support-card { margin-top: 24px; } }

/* ---------- CTA band ---------- */

.cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { font-size: clamp(32px, 2.4vw + 14px, 50px); line-height: 1.04; }
.cta p { margin-top: 22px; font-size: 18px; line-height: 1.56; max-width: 560px; }
@media (max-width: 900px) {
  .cta { flex-direction: column; align-items: stretch; gap: 24px; }
  .cta p { margin-top: 16px; font-size: 16px; }
}

/* ---------- Page heroes ---------- */

.page-hero { padding-block: 80px; }
.page-hero h1 { margin-top: 18px; max-width: 1050px; }
.page-hero .lead { margin-top: 26px; max-width: 760px; }
@media (max-width: 900px) {
  .page-hero { padding-block: 40px; }
  .page-hero .lead { margin-top: 20px; }
}

/* ---------- Services page ---------- */

.service-block { --split: minmax(0, 1.35fr) minmax(0, 1fr); --split-gap: 56px; padding-block: 80px; }
.service-block__top { display: flex; align-items: center; gap: 16px; }
.service-block h2 { margin-top: 22px; font-size: clamp(30px, 1.4vw + 20px, 40px); line-height: 1.1; }
.service-block .lead { margin-top: 18px; font-size: 18px; max-width: 640px; }
.service-block .rule { margin: 28px 0 24px; }
.service-block .dash-list { margin-top: 16px; }

.engagement__head { padding: 20px 28px; border-bottom: var(--border); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.engagement__body { padding: 28px; }
.engagement__price { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.engagement__terms { margin-top: 6px; font-size: 13px; color: var(--body); }
.engagement dl { margin: 24px 0 0; border-top: 2px solid var(--ink); padding-top: 14px; }
.engagement dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.engagement dt { color: var(--body); }
.engagement dd { margin: 0; font-weight: 700; text-align: right; }
.engagement .btn { margin-top: 24px; }

@media (max-width: 900px) {
  .service-block { padding-block: 40px; }
  .service-block .lead { font-size: 16px; }
  .engagement__head { padding: 16px 20px; }
  .engagement__body { padding: 22px 20px; }
  .engagement__price { font-size: 34px; }
}

.nofit { list-style: none; padding: 0; margin: 0; }
.nofit li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 2px solid var(--body); font-size: 17px; line-height: 1.55; }
.nofit li:last-child { border-bottom: 0; }
.nofit li::before { content: "\00D7"; color: var(--coral); font-size: 20px; line-height: 1.3; font-weight: 700; }

/* ---------- Numbered list on ink ---------- */

.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: flex; gap: 20px; padding: 22px 0; border-bottom: 2px solid var(--body); font-size: 17px; line-height: 1.55; }
.numbered li:last-child { border-bottom: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-weight: 700; font-size: 15px; line-height: 1.75; color: var(--yellow); font-variant-numeric: tabular-nums; }
.numbered--on-yellow li { border-bottom-color: var(--ink); padding: 18px 0; font-size: 16px; }
.numbered--on-yellow li::before { color: var(--ink); }
.numbered--compact li { padding: 16px 0; font-size: 16px; }
@media (max-width: 900px) { .numbered li { padding: 16px 0; font-size: 16px; } }

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

.about-hero { --split: minmax(0, 480px) minmax(0, 1fr); padding-block: 80px; }
.about-hero h1 { margin-top: 18px; font-size: clamp(40px, 2.4vw + 22px, 56px); }
.about-hero .lead { margin-top: 28px; }
.about-hero p + p { margin-top: 20px; }
@media (max-width: 900px) { .about-hero { padding-block: 36px; } }

.moment { padding: 26px 24px; }
.moment .h3 { margin-top: 14px; }
.moment p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--body); }

.belief { padding: 30px 28px; display: flex; gap: 20px; }
.belief__num { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--coral); }
.belief h3 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.belief p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--body); }
@media (max-width: 900px) { .belief { flex-direction: column; gap: 10px; padding: 22px 20px; } }

.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { border: 3px solid var(--beige); border-radius: var(--radius); padding: 10px 18px; font-size: 14px; }

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

.contact-layout { --split: minmax(0, 1.5fr) minmax(0, 1fr); --split-gap: 56px; }

.form { padding: 40px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form__row + .form__row, .form__row + .field, .field + .field, .field + .form__row { margin-top: 24px; }
.form__row > .field + .field { margin-top: 0; } /* side by side: the row's gap does the spacing */
.field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 16px/1.4 var(--font-body);
  color: var(--fg);
  background: var(--beige);
  border: var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23282825' stroke-width='3.5' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
:root[data-mode="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F4F0EA' stroke-width='3.5' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--fg); outline-offset: 3px; background: var(--white); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--error); background: var(--error-bg); }
.field__error { display: none; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--error); }
.field input:user-invalid ~ .field__error, .field textarea:user-invalid ~ .field__error { display: block; }

.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; }
.consent input { width: 24px; height: 24px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--fg); }
.consent label { font-size: 14px; line-height: 1.55; color: var(--body); }

.form .btn { margin-top: 32px; font-size: 19px; padding-block: 21px; }
.form .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.form__status {
  margin-top: 18px; padding: 14px 16px;
  border: 3px solid var(--error); border-radius: var(--radius); background: var(--error-bg);
  font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--error);
}
.form__note { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--body); }

.sidebar { display: grid; gap: 28px; }
.sidebar h2 { font-size: 24px; line-height: 1.25; }
.sidebar .numbered { margin-top: 12px; }

@media (max-width: 900px) {
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form__row + .form__row, .form__row + .field, .field + .field, .field + .form__row { margin-top: 18px; }
  .form .btn { font-size: 18px; }
  .sidebar { gap: 22px; }
}

/* ---------- Thanks ---------- */

.thanks-hero { --split: minmax(0, 1fr) minmax(0, 420px); --split-align: center; padding-block: 88px; }
.check {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--beige); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.check svg { width: 32px; height: 32px; }
.thanks-hero h1 { margin-top: 30px; }
.thanks-hero .lead { margin-top: 28px; }
.next-card { padding: 32px 30px; box-shadow: 8px 8px 0 var(--beige); }
.next-card .numbered { margin-top: 10px; }
.next-card .numbered li { padding: 18px 0; font-size: 16px; }

.link-card { padding: 36px 34px; }
.link-card h3 { margin-top: 22px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.13; letter-spacing: -0.02em; }
.link-card p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--body); }
.link-card__go { margin-top: 26px; font-weight: 700; }

@media (max-width: 900px) {
  .thanks-hero { padding-block: 40px; }
  .check { width: 56px; height: 56px; }
  .thanks-hero h1 { margin-top: 24px; }
  .next-card { padding: 24px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .link-card { padding: 24px 20px; }
  .link-card h3 { font-size: 24px; }
}

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

.site-footer { background: var(--band); color: var(--beige); padding: 52px 0 40px; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.site-footer__mark { display: flex; }
/* On the ink footer an ink shadow disappears, so it casts yellow like the footer chips. */
.logo--footer { font-size: 30px; box-shadow: 5px 5px 0 var(--yellow); }
.logo--footer .logo__first, .logo--footer .logo__last { padding: 16px 19px 14px; }
.site-footer__blurb { margin-top: 16px; font-size: 16px; line-height: 1.56; color: var(--sage); max-width: 420px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.site-footer__nav a { font-size: 17px; font-weight: 700; color: var(--beige); text-decoration: none; }
.site-footer__nav a:hover { color: var(--yellow); }
.site-footer__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 4px; }
.site-footer__chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fchip {
  display: inline-block; padding: 13px 18px;
  background: var(--beige); color: var(--ink);
  border: var(--border); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--yellow);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.fchip:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }
.fchip:active { transform: translate(3px, 3px); box-shadow: none; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 3px solid var(--body);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; color: var(--sage);
}

@media (max-width: 900px) {
  .site-footer { padding: 40px 0 32px; }
  .site-footer__top { flex-direction: column; gap: 24px; }
  .logo--footer { font-size: 22px; box-shadow: 3px 3px 0 var(--yellow); }
  .logo--footer .logo__first, .logo--footer .logo__last { padding: 12px 14px 11px; }
  .site-footer__blurb { font-size: 15px; }
  .site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; padding-top: 0; }
  .site-footer__nav a { font-size: 16px; }
  .site-footer__chips { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .fchip { padding: 12px 16px; font-size: 14px; }
  .site-footer__bottom { margin-top: 26px; padding-top: 18px; font-size: 12px; }
}

/* ---------- 404 ---------- */

.lost { padding-block: 120px; }
.lost__code { font-family: var(--font-display); font-size: clamp(96px, 12vw, 180px); line-height: 0.85; letter-spacing: -0.04em; }
.lost h1 { margin-top: 28px; }
.lost .lead { margin-top: 22px; }
.lost .btn-row { margin-top: 36px; }
@media (max-width: 900px) { .lost { padding-block: 56px; } }

/* ---------- Motion ---------- */

/* ---------- Charts (plain HTML + inline SVG, built from the data in each page) ----------
   One series each, hairline grid, endpoints labelled, a hover / keyboard readout from main.js,
   and a "View as table" twin. Positions are percentages, so charts stretch to any width. */

.case__chart { padding: 30px 36px 26px; border-bottom: var(--border); }
.snapshot__trend { padding: 2px 22px 18px; }

.chart {
  margin: 0;
  --line: var(--fg);
  --wash: color-mix(in srgb, var(--fg) 7%, transparent);
  --gridc: var(--grey);
  --ring: var(--white);
}
.chart [hidden] { display: none !important; }
.chart__title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.chart__plot { position: relative; margin-top: 12px; padding-left: 46px; touch-action: pan-y; cursor: crosshair; }
.chart__plot:focus-visible { outline-offset: 8px; }
.chart__canvas { position: relative; height: 170px; margin-top: 24px; }
.chart__grid, .chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__grid path { fill: none; stroke: var(--gridc); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__draw { position: absolute; inset: 0; }
.chart__line { fill: none; stroke: var(--line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__area { fill: var(--wash); stroke: none; }

.chart__ytick {
  position: absolute; left: -46px; width: 36px; top: calc(var(--y) * 1%); transform: translateY(-50%);
  text-align: right; font-size: 12px; line-height: 1; color: var(--body); font-variant-numeric: tabular-nums;
}
.chart__x { position: relative; height: 16px; margin-top: 10px; }
.chart__x span {
  position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%);
  font-size: 12px; line-height: 1; color: var(--body); white-space: nowrap;
}
.chart--line .chart__x span:first-child { transform: none; }
.chart--line .chart__x span:last-child { transform: translateX(-100%); }

.chart__pt, .chart__hover {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 2px var(--ring);
}
.chart__pt--end { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--coral); }
.chart__hover { z-index: 2; pointer-events: none; }
.chart__label {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  font-size: 13px; font-weight: 700; line-height: 1; color: var(--fg); white-space: nowrap;
}
.chart__label--end { font-size: 16px; }
.chart__label[data-pos="above-right"] { transform: translate(4px, calc(-100% - 10px)); }
.chart__label[data-pos="above-left"] { transform: translate(calc(-100% - 4px), calc(-100% - 10px)); }
.chart__label[data-pos="left"] { transform: translate(calc(-100% - 14px), -50%); }
.chart__cross {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 1px;
  background: var(--fg); opacity: 0.4; pointer-events: none;
}
.chart__tip {
  position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, calc(-100% - 14px));
  display: flex; flex-direction: column; gap: 2px; padding: 7px 11px;
  background: var(--white); color: var(--fg); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-size: 12px; line-height: 1.2; white-space: nowrap; pointer-events: none;
}
.chart__tip strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.chart__tip span { color: var(--body); }
.chart__tip[data-edge="start"] { transform: translate(-12px, calc(-100% - 14px)); }
.chart__tip[data-edge="end"] { transform: translate(calc(-100% + 12px), calc(-100% - 14px)); }

/* Columns: before the fixes muted, after in full ink */
.chart__bar {
  position: absolute; bottom: 0; left: calc(var(--x) * 1%); width: 22px; margin-left: -11px;
  height: calc(var(--h) * 1%); border-radius: 4px 4px 0 0; transform-origin: bottom;
  background: var(--fg);
}
.chart__bar--before { background: color-mix(in srgb, var(--fg) 26%, var(--white)); }
.chart__bar.is-hover { opacity: 0.72; }
.chart__mark { position: absolute; top: -26px; bottom: 0; left: calc(var(--x) * 1%); width: 2px; margin-left: -1px; background: var(--fg); }
.chart__mark span {
  position: absolute; top: 0; left: 8px; white-space: nowrap;
  background: var(--yellow); color: #282825; border: 2px solid var(--ink); border-radius: 3px;
  padding: 2px 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.chart__group {
  position: absolute; top: 4px; left: calc(var(--x) * 1%); transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--body); white-space: nowrap;
}
.chart__group--after { color: var(--fg); }

.chart__table { margin-top: 16px; font-size: 13px; }
.chart__table summary { display: inline-block; cursor: pointer; font-weight: 700; color: var(--body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chart__table table { margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { text-align: left; padding: 5px 24px 5px 0; border-bottom: 1px solid var(--grey); font-weight: 400; }
.chart__table thead th { font-weight: 700; color: var(--body); }

/* Sparkline in the hero snapshot */
.chart--spark .chart__plot { padding-left: 0; margin-top: 8px; }
.chart--spark .chart__canvas { height: 54px; margin-top: 0; }

@media (max-width: 900px) {
  .case__chart { padding: 22px 20px 20px; }
  .chart__canvas { height: 140px; }
  .chart__plot { padding-left: 40px; }
  .chart__ytick { left: -40px; width: 32px; font-size: 11px; }
  .chart__x span, .chart__group { font-size: 11px; }
  .chart__bar { width: 16px; margin-left: -8px; }
}

/* ---------- Arrow pointing at the hero's main button ---------- */

.hero .btn-row--pointer { position: relative; margin-top: 88px; }
.cta-pointer {
  position: absolute; left: 150px; bottom: calc(100% - 8px);
  display: flex; align-items: flex-start; pointer-events: none;
}
.cta-pointer__arrow { width: 112px; height: 66px; overflow: visible; flex-shrink: 0; }
.cta-pointer__shaft, .cta-pointer__head {
  fill: none; stroke: var(--fg); stroke-width: 3.5; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 1;
}
.cta-pointer__note { margin: -16px 0 0 -2px; }
.cta-pointer__note > span {
  display: inline-block; transform: rotate(-4deg);
  background: var(--white); color: var(--fg); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 900px) {
  .hero .btn-row--pointer { margin-top: 74px; }
  .cta-pointer { left: 12%; }
  .cta-pointer__arrow { width: 90px; height: 53px; }
  .cta-pointer__note > span { font-size: 11px; padding: 5px 8px; }
}
@media (max-width: 380px) {
  .cta-pointer__more { display: none; }
}

/* ---------- Motion ----------
   <head> adds .motion unless the visitor asked their device for less motion. main.js then adds
   .js-ready and plays each piece once, as it scrolls into view. If the script never runs, the
   failsafe shows everything after a moment, so nothing stays hidden. */

.count-anim { display: inline-block; }
.snapshot__row dd .count-anim { text-align: right; }

.motion [data-count]:not(.count-ready) { opacity: 0; }
.motion .rise[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
.motion .chart--line[data-reveal]:not(.is-in) .chart__draw,
.motion .chart--spark[data-reveal]:not(.is-in) .chart__draw { clip-path: inset(-40px 100% -40px -40px); }
.motion .chart--cols[data-reveal]:not(.is-in) .chart__bar { transform: scaleY(0); }
.motion .chart--cols[data-reveal]:not(.is-in) :is(.chart__mark, .chart__group) { opacity: 0; }
.motion .cta-pointer[data-reveal]:not(.is-in) .cta-pointer__note { opacity: 0; transform: scale(0.6); }
.motion .cta-pointer[data-reveal]:not(.is-in) :is(.cta-pointer__shaft, .cta-pointer__head) { stroke-dashoffset: 1; }

.motion:not(.js-ready) [data-count],
.motion:not(.js-ready) .rise[data-reveal],
.motion:not(.js-ready) .chart[data-reveal] :is(.chart__draw, .chart__bar, .chart__mark, .chart__group),
.motion:not(.js-ready) .cta-pointer[data-reveal] :is(.cta-pointer__note, .cta-pointer__shaft, .cta-pointer__head) {
  animation: motion-failsafe 0s 2.5s forwards;
}
@keyframes motion-failsafe { to { opacity: 1; transform: none; clip-path: inset(-40px -40px -40px -40px); stroke-dashoffset: 0; } }

/* Cards rise in, one after another when they sit side by side (no stagger once they stack on phones) */
.rise { --stagger: 220ms; }
.motion .rise.is-in { animation: rise-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--i, 0) * var(--stagger)) both; }
@media (max-width: 900px) { .rise { --stagger: 0ms; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } }

.motion :is(.chart--line, .chart--spark).is-in .chart__draw { animation: wipe-in 1.8s cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes wipe-in {
  from { clip-path: inset(-40px 100% -40px -40px); }
  to { clip-path: inset(-40px -40px -40px -40px); }
}
.motion .chart--cols.is-in .chart__bar { animation: grow-up 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--i, 0) * 120ms) both; }
@keyframes grow-up { from { transform: scaleY(0); } }
.motion .chart--cols.is-in :is(.chart__mark, .chart__group) { animation: fade-in 0.6s ease 1.3s both; }
@keyframes fade-in { from { opacity: 0; } }

.motion .cta-pointer.is-in .cta-pointer__note { animation: pop-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) 0.2s both; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } }
.motion .cta-pointer.is-in .cta-pointer__shaft { animation: draw-in 0.45s ease-out 0.45s both; }
.motion .cta-pointer.is-in .cta-pointer__head { animation: draw-in 0.18s ease-out 0.88s both; }
@keyframes draw-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.motion .cta-pointer.is-in .cta-pointer__arrow { animation: nudge 0.5s ease-in-out 1.2s 1; }
@keyframes nudge { 50% { transform: translate(-4px, 4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .btn:active, a.card:hover, a.card:active, .fchip:hover, .fchip:active { transform: none; }
}
