/* GrowAx content pages — pricing, contact, case studies, guides, comparisons,
   location pages, legal and hub indexes.

   Loaded AFTER page.css and service-page.css and built entirely on their
   tokens (--ink, --cream, --accent, --violet, --coral, --line, --radius…) and
   their bundled Haffer/Brisa fonts. Nothing here redefines a token or edits an
   existing component, so every page that already ships keeps rendering exactly
   as it did — these are extra blocks the newer page types compose with. */

/* --------------------------------------------------------- foundations ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-dark);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark a:focus-visible, .section--dark summary:focus-visible { outline-color: var(--accent); }

.wrap--narrow { max-width: 860px; }

/* The hero already has a reduced top pad; matching the bottom keeps the first
   real section from sitting a screen-height below the fold. */
.hero { padding-block-end: clamp(2rem, 4.5vw, 3.5rem); }
.section--flush { padding-block: 0; }
.center { text-align: center; }
.center .lead, .center .cluster { margin-inline: auto; }

/* Section heading block used at the top of most blocks below. */
/* Measured in rem, not ch: "ch" here resolves against the wrapper's 16px body
   size, which squeezed a 3.4rem heading into a body-copy column. */
.sec-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.sec-head .lead { margin-bottom: 0; }

/* ------------------------------------------------------------- chips ------ */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.chip {
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.section--dark .chip { background: rgba(247,242,237,.06); border-color: rgba(247,242,237,.16); color: rgba(247,242,237,.74); }
.section--dark a.chip:hover { color: var(--cream); border-color: rgba(247,242,237,.4); }
.chip--accent { background: var(--accent); border-color: var(--accent); color: var(--ink-dark); }

/* ------------------------------------------------------------ panels ------ */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.panel--tint { background: rgba(109,61,244,.05); border-color: rgba(109,61,244,.18); }
.panel--accent { background: rgba(156,255,87,.16); border-color: rgba(156,255,87,.5); }
.panel--dark { background: var(--ink-dark); color: var(--cream); border-color: transparent; }
.panel--dark p, .panel--dark li { color: rgba(247,242,237,.74); }
.panel h3 { margin-bottom: 0.5rem; }
.panel p:last-child { margin-bottom: 0; }
.section--dark .panel { background: rgba(247,242,237,.05); border-color: rgba(247,242,237,.12); }
.section--dark .panel p { color: rgba(247,242,237,.72); }

/* Short aside inside long-form copy. */
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(29,25,25,.035);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
}
.callout strong { display: block; margin-bottom: 0.35rem; }
.callout p { margin: 0; color: var(--muted); }
.callout--violet { border-left-color: var(--violet); }
.callout--coral { border-left-color: var(--coral); }

/* ------------------------------------------------------------- split ------ */
/* Two-column feature row. Alternates side with .split--flip. */

/* Top-aligned by default: these rows pair a column of copy with a panel or a
   second list, and centring the shorter one leaves it floating. */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
/* Grid items default to min-width:auto, which lets a wide child (a comparison
   table) push the whole column — and the page — past the viewport on a phone. */
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--flip > :first-child { order: 2; }
}
.split + .split { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.split__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- steps ------ */
/* Numbered process timeline. */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem) 0;
  border-top: 1px solid var(--line);
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.section--dark .steps__item { border-color: rgba(247,242,237,.14); }
.steps__num {
  counter-increment: step;
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-dark);
  color: var(--accent);
  flex: 0 0 auto;
}
.steps__num::before { content: counter(step, decimal-leading-zero); }
.section--dark .steps__num { background: var(--accent); color: var(--ink-dark); }
.steps__body h3 { margin-bottom: 0.35rem; }
.steps__body p { color: var(--muted); margin: 0; }
.section--dark .steps__body p { color: rgba(247,242,237,.72); }

/* ------------------------------------------------------------- stats ------ */

.stats { display: grid; gap: clamp(1rem, 2.4vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stats__item { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.section--dark .stats__item { border-top-color: var(--accent); }
.stats__val { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stats__label { color: var(--muted); font-size: 0.93rem; margin: 0.5rem 0 0; }
.section--dark .stats__label { color: rgba(247,242,237,.7); }

/* ------------------------------------------------------------- table ------ */
/* Comparison and spec tables. Scrolls sideways rather than squashing on phones. */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.6rem; max-width: 100%; }
.ctable {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.97rem;
}
.ctable th, .ctable td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable thead th {
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(29,25,25,.035);
  font-weight: 400;
}
.ctable tbody th { font-weight: 600; width: 30%; }
.ctable td { color: var(--muted); }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.ctable .yes { color: #2f7a2f; font-weight: 600; }
.ctable .no { color: var(--coral); font-weight: 600; }
.section--dark .ctable { background: rgba(247,242,237,.05); border-color: rgba(247,242,237,.12); color: var(--cream); }
.section--dark .ctable th, .section--dark .ctable td { border-color: rgba(247,242,237,.12); }
.section--dark .ctable thead th { background: rgba(247,242,237,.06); color: rgba(247,242,237,.6); }
.section--dark .ctable td { color: rgba(247,242,237,.72); }
.table-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; }

/* ------------------------------------------------------------ pricing ----- */

.price-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price--featured { background: var(--ink-dark); color: var(--cream); border-color: var(--ink-dark); position: relative; }
.price--featured .price__note, .price--featured .list li { color: rgba(247,242,237,.72); }
.price__tag {
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: var(--ink-dark);
  border-radius: 999px; padding: 0.3rem 0.7rem;
  position: absolute; top: 1.1rem; right: 1.1rem;
}
.price__name { font-family: "Haffer Mono", ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.price--featured .price__name { color: rgba(247,242,237,.6); }
.price__amount { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.price__amount small { font-size: 0.9rem; font-weight: 400; color: var(--muted); display: block; margin-top: 0.35rem; letter-spacing: 0; }
.price--featured .price__amount small { color: rgba(247,242,237,.6); }
.price__note { color: var(--muted); font-size: 0.95rem; margin: 0.9rem 0 1.2rem; }
.price .list { margin-bottom: 1.5rem; }
.price .btn { margin-top: auto; justify-content: center; }

/* ------------------------------------------------------------- quote ------ */

.quote { border-left: 3px solid var(--coral); padding-left: clamp(1rem, 2.5vw, 1.6rem); max-width: 60ch; }
.quote p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--muted); font-family: "Haffer Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.section--dark .quote cite { color: rgba(247,242,237,.62); }

/* ------------------------------------------------------- article layout --- */

.article { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.article > * { min-width: 0; }
@media (min-width: 1000px) { .article { grid-template-columns: 250px minmax(0, 1fr); } }

.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 100px; } }
.toc h2 {
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 0.9rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { text-decoration: none; color: var(--muted); font-size: 0.94rem; display: flex; gap: 0.6rem; line-height: 1.3; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: "Haffer Mono", monospace; font-size: 0.72rem; opacity: .6; padding-top: 0.16rem; }
.toc a:hover { color: var(--ink); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-top: clamp(2.4rem, 5vw, 3.2rem); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.prose p, .prose li { color: var(--muted); font-size: 1.04rem; line-height: 1.62; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,25,25,.3); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose > .callout p, .prose > .panel p { font-size: 1rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center;
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.meta span + span::before { content: "·"; margin-right: 1.1rem; opacity: .6; }

.author { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.6rem; }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.author strong { color: var(--ink); display: block; font-size: 1rem; }

.takeaways { background: var(--ink-dark); color: var(--cream); border-radius: var(--radius); padding: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: 2rem; }
.takeaways h2 { font-size: 0.74rem !important; font-family: "Haffer Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,242,237,.6); font-weight: 400; margin: 0 0 1rem !important; }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.takeaways li { display: flex; gap: 0.7rem; color: rgba(247,242,237,.82); font-size: 1rem; line-height: 1.5; }
.takeaways li::before { content: "→"; color: var(--accent); flex: 0 0 auto; }

/* ---------------------------------------------------------- link index ---- */
/* Big link rows used by hub pages and the HTML sitemap. */

.index-list { list-style: none; margin: 0; padding: 0; display: grid; }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; gap: 0.3rem 1.5rem; align-items: baseline;
  padding: clamp(0.95rem, 2vw, 1.35rem) 0;
  text-decoration: none;
  transition: padding-left .2s ease;
}
@media (min-width: 760px) { .index-list a { grid-template-columns: minmax(0, 24ch) minmax(0, 1fr) auto; } }
.index-list a:hover { padding-left: 0.6rem; }
.index-list__title { font-weight: 600; font-size: 1.05rem; }
.index-list__desc { color: var(--muted); font-size: 0.97rem; }
.index-list__go { color: var(--muted); font-family: "Haffer Mono", monospace; font-size: 0.9rem; }
.index-list a:hover .index-list__go { color: var(--ink); }
.section--dark .index-list li { border-color: rgba(247,242,237,.14); }
.section--dark .index-list__desc, .section--dark .index-list__go { color: rgba(247,242,237,.7); }

/* --------------------------------------------------------------- form ----- */

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: "Haffer Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a9a49d; }
.form__note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------- office ------- */

.office { display: grid; gap: 0.5rem; }
.office h3 { margin-bottom: 0.2rem; }
.office address { font-style: normal; color: var(--muted); line-height: 1.55; }
.office__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.93rem; }
.office__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.office__links a:hover { color: var(--ink); }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-dark); position: relative; }
.map-card img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }

/* ------------------------------------------------------------- kv list ---- */
/* Definition rows for the glossary and the legal pages. */

.kv { display: grid; gap: 0; margin: 1.8rem 0 0; }
.kv__row { border-top: 1px solid var(--line); padding: clamp(1rem, 2vw, 1.4rem) 0; display: grid; gap: 0.4rem 2rem; }
.kv__row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .kv__row { grid-template-columns: minmax(0, 22ch) minmax(0, 1fr); } }
.kv__row dt { font-weight: 600; font-size: 1.04rem; scroll-margin-top: 110px; }
.kv__row dd { margin: 0; color: var(--muted); line-height: 1.6; }
.kv__row dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- media ------ */

.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { padding: 0.8rem 1.1rem; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); margin: 0; }
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.4rem; align-items: center; }
.logo-row img { height: 38px; width: auto; margin: 0 auto; opacity: .75; filter: saturate(.1) contrast(.95); }

/* --------------------------------------------------------------- misc ----- */

.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.section--dark .muted { color: rgba(247,242,237,.7); }

.card--link { text-decoration: none; display: block; transition: transform .18s ease, border-color .18s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--ink); }
.section--dark .card--link:hover { border-color: rgba(247,242,237,.42); }
.card__eyebrow {
  font-family: "Haffer Mono", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.5rem;
}
.section--dark .card__eyebrow { color: rgba(247,242,237,.58); }

@media (prefers-reduced-motion: reduce) {
  .card--link:hover, .index-list a:hover { transform: none; padding-left: 0; }
}

/* ------------------------------------------------------- scroll reveal ---- */

/* The hidden state is scoped to .js-reveal, a class the inline script adds to
   <html> at runtime. With JavaScript off, blocked, or broken, none of these
   rules apply and the page is simply visible — never a blank screen, and never
   content a crawler cannot see. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Anything already on screen when the page loads moves but never fades. An
   element at opacity 0 has not "painted" as far as the browser is concerned,
   so fading the H1 in would push Largest Contentful Paint out by the whole
   duration of the animation — a real Core Web Vitals cost for a flourish
   nobody asked for. Transform alone is free. */
.js-reveal [data-reveal][data-reveal-above] {
  opacity: 1;
  transform: translateY(12px);
}
.js-reveal [data-reveal][data-reveal-above].is-in {
  transform: none;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Cards lift slightly on hover — only where a pointer can actually hover, so
   phones do not get a stuck hover state after a tap. */
@media (hover: hover) and (pointer: fine) {
  .card, .panel, .price, .office {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .card:hover, .panel:hover, .price:hover, .office:hover {
    transform: translateY(-3px);
  }
  .card--link:hover { box-shadow: 0 10px 30px rgba(29, 25, 25, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal][data-reveal-above] { opacity: 1; transform: none; }
  .js-reveal [data-reveal].is-in { transition: none; }
  .card, .panel, .price, .office { transition: none; }
  .card:hover, .panel:hover, .price:hover, .office:hover { transform: none; }
}

/* ------------------------------------------------ portfolio card media ---- */

/* The work cards pull real screenshots, which arrive at whatever proportion the
   capture happened to be. Left alone they gave the grid ragged card heights —
   one card 194px tall next to one at 271px. Fixing the ratio makes the row
   even without cropping the subject out of frame. */
.card .figure { overflow: hidden; }
.card .figure img {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ------------------------------------------------------------------ *
 * Kinetic headings                                                    *
 * ------------------------------------------------------------------ *
 * The reveal script splits plain-text H1s and H2s into words so they
 * cascade in rather than the whole block sliding as one piece. Like the
 * rest of the reveal CSS this is scoped to .js-reveal, so with scripting
 * off — or with prefers-reduced-motion set, which makes the script exit
 * before it adds that class or splits anything — headings are untouched
 * plain text.                                                          */

/* The words carry the motion for a block that has a kinetic heading, so
   the block itself only fades, and fast enough to be finished while the
   first words are still rising. */
.js-reveal [data-reveal][data-reveal-flat] {
  transform: none;
}
.js-reveal [data-reveal][data-reveal-flat].is-in {
  transition: opacity 0.3s linear;
  transition-delay: 0ms;
}

.js-reveal [data-kinetic] .kw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* the mask is a tight box, and without this the descenders on g, y and p
     are sliced off while the word sits still */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

/* No will-change here. It promotes a layer per word, and a long page holds
   every word that has not animated yet — 45 layers on a services page, which
   on a phone costs more in GPU memory than the hint ever saves on a half-second
   transform. */
.js-reveal [data-kinetic] .kw__i {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: 0% 100%;
}

.js-reveal [data-reveal].is-in[data-kinetic] .kw__i,
.js-reveal [data-reveal].is-in [data-kinetic] .kw__i {
  transform: none;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--kw-d, 0ms);
}

/* Above the fold the heading is usually the Largest Contentful Paint
   element, and a word hidden inside a mask has not painted — starting it
   there would delay LCP by the whole length of the animation. So the
   opening heading keeps every word fully visible and only nudges it. */
.js-reveal [data-kinetic][data-kinetic-open] .kw {
  overflow: visible;
}
.js-reveal [data-kinetic][data-kinetic-open] .kw__i {
  transform: translateY(0.24em) rotate(1.2deg);
}
.js-reveal [data-reveal].is-in[data-kinetic][data-kinetic-open] .kw__i {
  transition-duration: 0.46s;
}

/* Belt and braces, matching the reset above: the script exits before adding
   .js-reveal when reduced motion is set, so these never match — but if the
   class ever arrives by another route the words must still sit still. */
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-kinetic] .kw { overflow: visible; }
  .js-reveal [data-kinetic] .kw__i { transform: none; transition: none; }
}
