/* offhand: offhandagency.com
   Palette: paper / ink / one accent (signal orange). The accent is for large
   type, marks, borders and focus rings only (3.5:1 on paper), never small text.
   One typeface: Bricolage Grotesque (variable: weight 400–800, optical size 12–96).
   Platform logos are monochrome ink, never recoloured.
   Motion: transform and opacity only. Everything is visible without JavaScript,
   and nothing moves under prefers-reduced-motion. */

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE7E0;
  --ink: #121211;
  --ink-2: #2A2926;
  --muted: #5E5B55;        /* 6.0:1 on paper */
  --muted-dark: #A6A29A;   /* 7.4:1 on ink */
  --rule: #D9D5CC;
  --rule-dark: #34322E;
  --accent: #E8471E;       /* 3.5:1 on paper, 4.8:1 on ink */
  --accent-bright: #FF5A2B;/* 6.0:1 on ink */
  --grey-mark: #8A867E;    /* de-emphasis chart marks, 3.2:1 on paper */

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --space: clamp(72px, 8.5vw, 128px);
  --top-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
p, li { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; text-decoration: none; z-index: 60;
}
.skip:focus { top: 12px; }

/* Signs inside big numbers: a touch of air at tight tracking */
.sgn { margin-right: 0.06em; }
.n { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-block;
  font-weight: 800;
  font-size: 1.75rem;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 2px;
  transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.dot { color: var(--accent); }

/* ---------- Header ----------
   With JS the header is fixed and condenses once the page scrolls. The spacer
   (body padding) never changes, so nothing shifts. Without JS it is static. */

.top {
  position: relative;
  z-index: 30;
  height: var(--top-h);
}
.js .top { position: fixed; top: 0; left: 0; right: 0; pointer-events: none; }
.js .top a { pointer-events: auto; }
.js body { padding-top: var(--top-h); }

.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform-origin: 50% 0;
  transition: opacity .3s ease, transform .35s var(--ease);
}
.top__in {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform .35s var(--ease);
}
.top.is-condensed::before { opacity: 1; transform: scaleY(.79); }
.top.is-condensed .top__in { transform: translateY(-8px); }
.top.is-condensed .wordmark { transform: scale(.88); }

.top__nav { display: flex; align-items: center; gap: 28px; }
.top__link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 10px 0;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 6px);
  background-size: 0 2px;
  transition: background-size .25s var(--ease);
}
.top__link:hover,
.top__link[aria-current="page"] { background-size: 100% 2px; }

/* ---------- Buttons & links ---------- */

.btn {
  --mx: 0px;
  --my: 0px;
  --lift: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 22px 0 24px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .3s var(--ease);
}
.btn:hover { --lift: -2px; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:active { --lift: 0px; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow,
.more:hover .arrow { transform: translateX(4px); }

.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }

.link {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--muted);
  transition: text-decoration-color .2s ease;
  padding: 12px 0;
}
.link:hover { text-decoration-color: var(--accent); }
.link--light { color: var(--paper); text-decoration-color: var(--muted-dark); }
.link--light:hover { text-decoration-color: var(--accent-bright); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding: 6px 0 4px;
  transition: border-color .2s ease;
}
.more:hover { border-color: var(--accent); }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 112px);
  padding-bottom: clamp(64px, 7.5vw, 112px);
}

.hero__title {
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(5.25rem, 14.2vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.045em;
}
.hw { display: inline-block; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 64px;
  margin-top: clamp(36px, 4.5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.hero__lede {
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

/* Platforms strip under the hero: monochrome marks, all one size */
.strip {
  display: flex;
  align-items: center;
  gap: 18px 56px;
  margin-top: clamp(44px, 5vw, 72px);
}
.strip__label {
  flex: none;
  max-width: 13ch;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.strip__logos {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  color: var(--ink-2);
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo__icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Page intro (case studies) */
.intro {
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.intro__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 56px;
}
.facts--intro { flex: 0 1 520px; padding-bottom: 6px; }
.facts--intro .fact__num { font-size: clamp(2.25rem, 2.9vw, 3rem); }
.intro__title {
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-left: -0.03em;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.jump a:hover { border-color: var(--ink); background: var(--paper-2); }
.jump a:hover .arrow { transform: translateY(3px); }

/* ---------- Sections ---------- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 48px;
  padding-top: 36px;
  padding-bottom: var(--space);
  position: relative;
}
.block::before,
.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}

.heading {
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.875rem, 2.2vw + 1rem, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.block__body { min-width: 0; }

/* Big statement lines */
.statement {
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.75rem, 3vw + 0.6rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: pretty;
}
mark {
  background: none;
  color: inherit;
  background-image: linear-gradient(transparent 62%, rgba(232, 71, 30, 0.28) 62%, rgba(232, 71, 30, 0.28) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Results */
.results__headline {
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.75rem, 2.6vw + 0.75rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 20ch;
  text-wrap: balance;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(36px, 4vw, 56px);
}
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.stats .stat:first-child { border-top-color: var(--accent); }
.stat__num {
  display: block;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(3rem, 4.6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.stat__text {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 24ch;
}
.results__chart {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 32px;
  align-items: end;
  margin-top: clamp(44px, 5vw, 72px);
}
.results__chart .chart { margin-top: 0; max-width: 480px; }
.results__cta { margin-top: clamp(40px, 4.5vw, 56px); }

/* How we work */
.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: clamp(40px, 4.5vw, 64px);
}
.points li {
  border-top: 1px solid var(--rule);
  padding: 22px 0 32px;
}
.points .points__lead {
  grid-column: 1 / -1;
  border-top: 2px solid var(--accent);
}
.points h3 {
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.375rem, 1.1vw + 1rem, 1.875rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.points .points__lead h3 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.points p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }

/* Services */
.services > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.services > li:first-child { padding-top: 4px; }
.services > li:last-child { border-bottom: 0; padding-bottom: 0; }
.services h3,
.steps h3 {
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.services p { color: var(--ink-2); max-width: 40ch; padding-top: 0.25em; }

/* Platform marks inside case-study meta lines */
.pf {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.pf__icon {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}

/* Track record: scale facts, then sectors */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fact {
  padding: 2px 24px 4px;
  border-left: 1px solid var(--rule);
}
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__num {
  display: block;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.5rem, 3.6vw, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.fact__text {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.sectors { margin-top: clamp(44px, 5vw, 72px); }
.sectors__title {
  font-weight: 700;
  font-variation-settings: "opsz" 36;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 14px;
}
.sectors__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0 24px;
}
.sectors__list li {
  padding: 14px 0 15px;
  border-top: 1px solid var(--rule);
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: 1.3125rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--ink-2); max-width: 34ch; }
.steps__cta { margin-top: clamp(40px, 4.5vw, 56px); }

/* ---------- Pricing ---------- */

.pricing {
  position: relative;
  padding-top: 36px;
  padding-bottom: var(--space);
}
.pricing__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.founding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: clamp(26px, 3.6vw, 48px);
}
.founding :focus-visible { outline-color: var(--accent-bright); }
.founding__title {
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.founding__text {
  margin-top: 14px;
  color: var(--muted-dark);
  max-width: 34ch;
}
.founding__price { text-align: right; }
.founding__anchor { margin-top: 10px; color: var(--muted-dark); }

.price__num {
  display: block;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.75rem, 3.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.price__per {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  transition: translate .35s var(--ease), border-color .25s ease;
}
.tier:hover { translate: 0 -5px; border-color: var(--ink); }
.tier--rec { border: 2px solid var(--ink); }
.tier--rec:hover { border-color: var(--accent); }
.tier__badge {
  position: absolute;
  top: -14px;
  left: clamp(22px, 2.3vw, 32px);
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
}
.tier__name {
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.25rem, .7vw + 1rem, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  min-height: 2.3em;
}
.tier .price__num { font-size: clamp(2.5rem, 3.2vw, 3.5rem); }
.tier .price__per { color: var(--ink-2); }
.tier__list { border-top: 1px solid var(--rule); }
.tier__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  line-height: 1.35;
}
.tier .btn { margin-top: auto; align-self: flex-start; }

.pricing__terms {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(1.0625rem, .4vw + .95rem, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- Questions ---------- */

.faq__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.faq__item:first-child { padding-top: 4px; }
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 {
  font-weight: 700;
  font-variation-settings: "opsz" 36;
  font-size: clamp(1.125rem, .5vw + 1rem, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.faq__item p { color: var(--ink-2); max-width: 44ch; }

/* ---------- Case studies ---------- */

.cases { padding-bottom: clamp(24px, 4vw, 48px); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 48px;
  padding-top: 36px;
  padding-bottom: clamp(64px, 8vw, 112px);
  position: relative;
}
.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--rule);
}
.case__title {
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.case__meta {
  margin-top: 14px;
  color: var(--muted);
  max-width: 34ch;
}
.case__meta .pf { color: var(--ink); font-weight: 600; }
.pf--sm { display: inline; }
.pf--sm .pf__icon { display: inline-block; vertical-align: -0.1em; margin-right: 0.3em; }
.case__body { min-width: 0; }
.case__headline {
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.75rem, 2.6vw + 0.75rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.case__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.case__stats li {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.case__stats li:first-child { border-top-color: var(--accent); }
.case__num {
  display: block;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.75rem, 4.2vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.case__label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 22ch;
}

/* More accounts: sector + region, platforms and years, one line each */
.accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.acct {
  border-top: 1px solid var(--rule);
  padding: 22px 0 32px;
}
.accounts .acct:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.accounts .acct:first-child { border-top-color: var(--accent); }
.acct__title {
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.375rem, 1.1vw + 1rem, 1.875rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.acct__meta {
  margin-top: 10px;
  color: var(--muted);
}
.acct__meta .pf { color: var(--ink); font-weight: 600; }
.acct__fact {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 32ch;
}

/* ---------- Charts ---------- */

.chart {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 440px;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart svg:focus { outline: none; }
.chart svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.chart text {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--muted);
}
.chart .chart__end {
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
}
.chart__grid { stroke: var(--rule); stroke-width: 1; }
.chart__ref { stroke: var(--ink-2); stroke-opacity: 0.5; stroke-width: 1; }
.chart__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart__line--est { stroke-dasharray: 5 6; }
.chart__area { fill: var(--accent); fill-opacity: 0.1; }
.chart__range { fill: var(--accent); fill-opacity: 0.25; }
.chart__dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.chart__bar--base { fill: var(--grey-mark); }
.chart__bar--key { fill: var(--accent); }
.chart__cross { stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1; visibility: hidden; }
.chart__hot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; visibility: hidden; }
.chart__tip {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.chart__tip[hidden] { display: none; }
.chart__tip strong { font-weight: 700; }
.chart__tip span { color: var(--muted-dark); }

/* ---------- Closing CTA ---------- */

.close {
  background: var(--ink);
  color: var(--paper);
}
.close__inner {
  padding-top: var(--space);
  padding-bottom: var(--space);
}
.close__title {
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
  text-wrap: balance;
}
.close__text {
  color: var(--muted-dark);
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.375rem);
  line-height: 1.4;
  max-width: 40ch;
  margin: 28px 0 40px;
}
.close :focus-visible { outline-color: var(--accent-bright); }

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

.foot {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--rule-dark);
  padding-top: 32px;
  padding-bottom: 32px;
  overflow: hidden;
}
.foot :focus-visible { outline-color: var(--accent-bright); }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 0.9375rem;
}
.foot__links a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--rule-dark);
  text-underline-offset: 5px;
  display: inline-block;
  padding: 6px 0;
  transition: text-decoration-color .2s ease;
}
.foot__links a:hover { text-decoration-color: var(--accent-bright); }

.foot__mark {
  font-weight: 800;
  font-variation-settings: "opsz" 40;
  font-size: clamp(4.5rem, 22.5vw, 19.5rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  font-feature-settings: "liga" 0;
  margin: clamp(48px, 8vw, 120px) 0 clamp(28px, 3vw, 40px) -0.04em;
  white-space: nowrap;
  user-select: none;
}
.foot__mark .dot { color: var(--accent-bright); }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  color: var(--muted-dark);
  font-size: 0.875rem;
}

/* ---------- Sticky review bar (phones, after the hero) ---------- */

.sticky { display: none; }

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

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.lost__title {
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ---------- Motion ----------
   Everything is visible by default. The .js class (set inline in <head>)
   enables the reveal states; site.js adds .is-in as things scroll into view.
   ?static or prefers-reduced-motion shows the finished state with no motion. */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
@keyframes word {
  from { opacity: 0; transform: translateY(0.28em); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  0% { opacity: 0; transform: translateY(-0.9em); }
  60% { opacity: 1; transform: translateY(0.05em); }
  80% { transform: translateY(-0.03em); }
  100% { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lift {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Hero: the words land one by one, the orange full stop last */
.hero .hw { animation: word .9s var(--ease) both; }
.hero .hw:nth-child(1) { animation-delay: .08s; }
.hero .nw .hw:first-child { animation-delay: .26s; }
.hero .hw--dot { color: var(--accent); animation: drop .8s var(--ease) .74s both; }
.hero__foot { animation: lift .9s var(--ease) .38s both; }
.intro__title { animation: rise .9s var(--ease) .05s both; }
.jump { animation: lift .9s var(--ease) .3s both; }

/* Platforms strip: the label, then each mark in turn, once the hero has landed */
.strip__label { animation: fade .8s ease .6s both; }
.logo { animation: lift .8s var(--ease) both; animation-delay: calc(.7s + var(--d, 0) * 70ms); }

.js [data-reveal] {
  transition: opacity .7s ease, transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.js .sectors__list [data-reveal] { transition-delay: calc(var(--d, 0) * 60ms); }

/* Pricing cards: the reveal uses transform, the hover lift uses translate */
.js .tier[data-reveal] {
  transition: opacity .7s ease, transform .8s var(--ease), translate .35s var(--ease), border-color .25s ease;
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s;
}

.js .foot__mark { transition: opacity 1s ease, transform 1.2s var(--ease); }
.js .foot__mark:not(.is-in) { opacity: 0; transform: translateY(28%); }

.js .chart .chart__line:not(.chart__line--est) {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease) .2s;
}
.js .chart:not(.is-in) .chart__line:not(.chart__line--est) { stroke-dashoffset: 1; }
.js .chart .chart__area,
.js .chart .chart__dot,
.js .chart .chart__end,
.js .chart .chart__range,
.js .chart .chart__line--est { transition: opacity .6s ease 1.1s; }
.js .chart:not(.is-in) .chart__area,
.js .chart:not(.is-in) .chart__dot,
.js .chart:not(.is-in) .chart__end,
.js .chart:not(.is-in) .chart__range,
.js .chart:not(.is-in) .chart__line--est { opacity: 0; }
.js .chart .chart__bar {
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 1s var(--ease) .2s;
}
.js .chart .chart__bar--key { transition-delay: .35s; }
.js .chart:not(.is-in) .chart__bar { transform: scaleX(0); }

/* No motion: the finished state, straight away */
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }
.js.reveal-off [data-reveal],
.js.reveal-off .foot__mark { opacity: 1; transform: none; }
.js.reveal-off .chart .chart__line { stroke-dashoffset: 0; }
.js.reveal-off .chart .chart__area,
.js.reveal-off .chart .chart__dot,
.js.reveal-off .chart .chart__end,
.js.reveal-off .chart .chart__range,
.js.reveal-off .chart .chart__line--est { opacity: 1; }
.js.reveal-off .chart .chart__bar { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal],
  .js .foot__mark { opacity: 1 !important; transform: none !important; }
  .js .chart .chart__line { stroke-dashoffset: 0 !important; }
  .js .chart .chart__area,
  .js .chart .chart__dot,
  .js .chart .chart__end,
  .js .chart .chart__range,
  .js .chart .chart__line--est { opacity: 1 !important; }
  .js .chart .chart__bar { transform: none !important; }
  .btn, .btn:hover { transform: none !important; }
  .tier:hover,
  .tier--rec,
  .tier--rec:hover { translate: none !important; }
  .top.is-condensed::before,
  .top.is-condensed .top__in,
  .top.is-condensed .wordmark { transform: none !important; }
}

/* ---------- Responsive ---------- */

@media (min-width: 1081px) {
  .tier--rec { translate: 0 -10px; }
  .tier--rec:hover { translate: 0 -15px; }
}

@media (max-width: 1080px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 620px; gap: 28px; }
  .tier__name { min-height: 0; }
  .strip { flex-direction: column; align-items: flex-start; }
  .strip__label { max-width: none; }
  .strip__logos { justify-content: flex-start; gap: 16px 32px; }
}

@media (max-width: 900px) {
  .block,
  .case,
  .pricing__head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .results__chart { grid-template-columns: minmax(0, 1fr); }
  .founding { grid-template-columns: minmax(0, 1fr); }
  .founding__price { text-align: left; }
  .top__link--call { display: none; }
}

@media (max-width: 600px) {
  :root { --top-h: 64px; }
  .js .top { position: absolute; }
  .top .btn--small { display: none; }
  .wordmark { font-size: 1.5rem; }
  .top__nav { gap: 22px; }
  .hero__title { line-height: 0.84; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .strip { gap: 16px; }
  .strip__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
  }
  .logo { font-size: 1rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact,
  .fact:first-child { padding: 16px 0 18px; border-left: 0; border-top: 1px solid var(--rule); }
  .fact:first-child { padding-top: 4px; border-top: 0; }
  .sectors__list { gap: 0 16px; }
  .facts--intro { flex-basis: 100%; grid-template-columns: repeat(3, auto); justify-content: start; }
  .facts--intro .fact,
  .facts--intro .fact:first-child { padding: 2px 12px 4px 13px; border-top: 0; border-left: 1px solid var(--rule); }
  .facts--intro .fact:first-child { padding-left: 0; border-left: 0; }
  .facts--intro .fact__num { font-size: 1.625rem; }
  .facts--intro .fact__text { margin-top: 8px; font-size: 0.875rem; }
  .accounts { grid-template-columns: minmax(0, 1fr); }
  .accounts .acct:nth-child(2) { border-top: 1px solid var(--rule); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .services > li,
  .faq__item { grid-template-columns: minmax(0, 1fr); }
  .services p { padding-top: 0; }
  .case__stats { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta .btn,
  .tier .btn { width: 100%; align-self: stretch; }
  .foot__links { flex-direction: column; gap: 0; }
  .jump { gap: 8px; }
  .jump a { min-height: 40px; padding: 0 12px 0 14px; font-size: 0.875rem; }
  .chart,
  .results__chart .chart { max-width: none; }

  .js .sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 241, 236, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%);
    transition: transform .4s var(--ease);
  }
  .js .sticky.is-on { transform: none; }
  .sticky .btn { width: 100%; }
}

@media (max-width: 360px) {
  .top__nav { gap: 16px; }
  .strip__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Platforms strip as a slow scrolling banner (Alex, 1 Nov) */
.marquee {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .strip__logos {
  flex: none;
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0 56px;
  padding-right: 56px;
  width: auto !important;
}
.marquee .logo { white-space: nowrap; animation: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .marquee .strip__logos { gap: 0 36px; padding-right: 36px; }
  .marquee__track { animation-duration: 24s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee .strip__logos[aria-hidden="true"] { display: none !important; }
  .marquee .strip__logos { flex-wrap: wrap; gap: 14px 32px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.strip { min-width: 0; max-width: 100%; overflow: hidden; }
.strip > * { min-width: 0; }
.marquee { max-width: 100%; }
