/* ==========================================================================
   Pablo César Martínez Silva — Dirección financiera externa

   One stylesheet, no dependencies. The page sells a service the way a product
   page sells a product: white space, large type in few words, one blue for
   every action, and the thing a client receives (the board, the report) drawn
   as real interface. Everything inside a .ui block is sized in em from the
   width of its container, so the same markup holds from a phone to a desktop.
   ========================================================================== */

/* First Sans, the studio's own face (SIL OFL, licence beside the file). It is declared under its own
   name so that a copy installed on the computer still serves if the file cannot be loaded. */
@font-face {
  font-family: "First Sans Web";
  src: url("../fonts/FirstSans-VF.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #fff;
  --tint: #f5f5f7;
  --fg: #0b0c0e;
  --fg-2: #666b74;
  --fg-3: #868b94;
  --line: rgb(11 12 14 / 0.1);

  --blue: #0a60ff;
  --blue-press: #0049d1;
  --blue-on-black: #4d94ff;
  --green: #0a7a4b;
  --green-bg: #e3f6ec;
  --red: #c0353a;
  --red-bg: #fde8e8;
  --amber: #9a6200;
  --amber-bg: #fff1d6;

  --black: #000;
  --on-black: #f5f5f7;
  --on-black-2: #a1a1a6;
  --line-b: rgb(255 255 255 / 0.16);

  --grad: linear-gradient(100deg, #0a60ff, #0d9c9a 60%, #12a86b);
  --grad-b: linear-gradient(100deg, #5b9dff, #2fd1c0 55%, #7be8a4);

  --r-xl: 32px;
  --font: "First Sans Web", "First Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1240px;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgb(10 96 255 / 0.45); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { --max: 860px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: #fff; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ---- Type ---- */
h1, .h1 { font-size: clamp(2.125rem, 1rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.h2 { font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
h1 span, .h2 span { color: var(--fg-3); }
.h2 span { display: inline-block; }
.eyebrow { font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); font-weight: 600; letter-spacing: -0.01em; color: var(--blue); }
.lede { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--fg-2); text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); max-width: 96ch; }

/* ---- Actions: one filled pill, one link ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--blue-press); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--line { background: none; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 0.4em; color: var(--blue); font-size: 1.0625rem; font-weight: 500; }
.link::after { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: translate 0.2s var(--ease); }
.link:hover::after { translate: 3px 0; }
@media (pointer: coarse) {
  .link, .foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .contact a { padding-block: 12px; }
}
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__brand { margin-right: auto; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.nav__links { display: flex; gap: 32px; font-size: 0.875rem; color: var(--fg-2); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--fg); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn--sm { min-height: 44px; padding-inline: 18px; }
}
@media (max-width: 380px) { .nav { gap: 12px; } .nav__brand { font-size: 0.9375rem; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 104px)); text-align: center; overflow: clip; }
.hero__copy { display: grid; justify-items: center; gap: clamp(18px, 2vw, 28px); }
.hero .lede { max-width: 44ch; }
.hero .cta { margin-top: clamp(8px, 1.2vw, 16px); }

.stage {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding-bottom: clamp(64px, 9vw, 136px);
  container-type: inline-size;
  isolation: isolate;
}
.stage::before {
  content: "";
  position: absolute;
  inset: -10% -14% 12%;
  z-index: -1;
  background:
    radial-gradient(46% 55% at 28% 42%, rgb(10 96 255 / 0.3), transparent 70%),
    radial-gradient(42% 50% at 76% 56%, rgb(18 190 160 / 0.28), transparent 70%);
  filter: blur(40px);
}
.stage figcaption { margin-top: 20px; font-size: 0.8125rem; color: var(--fg-2); }

/* ==========================================================================
   THE INTERFACE: board, report and analysis are built from the same parts
   ========================================================================== */
.ui {
  --c-bg: #fff;
  --c-card: var(--tint);
  --c-line: var(--line);
  --c-fg: var(--fg);
  --c-fg2: var(--fg-2);
  --c-accent: var(--blue);
  --c-mute: #dde1e8;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 1.6em;
  background: var(--c-bg);
  color: var(--c-fg);
  box-shadow: 0 3em 7em -2.5em rgb(13 38 90 / 0.3), 0 1em 2.4em -1.2em rgb(13 38 90 / 0.16);
  font-size: clamp(10.5px, 1.32cqw, 15px);
  line-height: 1.3;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.art .ui { font-size: clamp(10.5px, 1.9cqw, 15px); }
.ui--dark {
  --c-bg: #0c0d10;
  --c-card: rgb(255 255 255 / 0.06);
  --c-line: rgb(255 255 255 / 0.12);
  --c-fg: #f5f5f7;
  --c-fg2: #a1a1a6;
  --c-accent: var(--blue-on-black);
  --c-mute: rgb(255 255 255 / 0.18);
  box-shadow: none;
}
.ui--rise { border-bottom: 0; border-radius: 1.6em 1.6em 0 0; }

.ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.5em; border-bottom: 1px solid var(--c-line); }
.ui__title { display: flex; align-items: center; gap: 0.65em; font-size: 1.05em; font-weight: 600; letter-spacing: -0.01em; }
.ui__title i { width: 1.45em; height: 1.45em; border-radius: 0.42em; background: var(--grad); }
.ui__date, .tag { font-size: 0.87em; color: var(--c-fg2); }
.tag { padding: 0.3em 0.85em; border-radius: 99em; background: var(--c-card); }
.seg { display: flex; padding: 0.2em; border-radius: 99em; background: var(--c-card); font-size: 0.87em; color: var(--c-fg2); }
.seg > * { padding: 0.35em 0.95em; border-radius: 99em; font-weight: 500; }
.seg b { background: #fff; color: var(--c-fg); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14); }

.ui__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1em; padding: 1.25em 1.5em 1.5em; }
.ui__body--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui__body--1 { grid-template-columns: minmax(0, 1fr); }

.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { display: grid; gap: 0.4em; padding: 1.1em 1.2em; border-radius: 1.1em; background: var(--c-card); }
.kpi span { font-size: 0.87em; color: var(--c-fg2); }
.kpi b { font-size: 2em; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; white-space: nowrap; }
.kpi em { justify-self: start; padding: 0.2em 0.65em; border-radius: 99em; font-style: normal; font-size: 0.8em; font-weight: 600; }
.up { background: var(--green-bg); color: var(--green); }
.down { background: var(--red-bg); color: var(--red); }
.ui--dark .up { background: rgb(95 224 160 / 0.14); color: #5fe0a0; }
.ui--dark .down { background: rgb(255 138 138 / 0.14); color: #ff8a8a; }

.panel { display: grid; align-content: start; gap: 1.1em; padding: 1.2em 1.3em 1.3em; border: 1px solid var(--c-line); border-radius: 1.1em; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.panel__head b { font-weight: 600; }
.panel__head span { font-size: 0.85em; color: var(--c-fg2); }

/* the cash line */
.plot { position: relative; height: 12.5em; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), var(--c-line) calc(25% - 1px) 25%); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot path { vector-effect: non-scaling-stroke; }
.plot__line { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ui:not(.ui--dark) .plot__line { stroke: var(--c-accent); }
.plot__min { position: absolute; left: 0; right: 0; top: 86.4%; border-top: 1.5px dashed rgb(192 53 58 / 0.55); }
.plot__min i { position: absolute; right: 0; bottom: 0.4em; font-style: normal; font-size: 0.75em; color: var(--red); }
.ui--dark .plot__min { border-top-color: rgb(255 138 138 / 0.6); }
.ui--dark .plot__min i { color: #ff8a8a; }
.plot__dot {
  position: absolute;
  left: 66.67%;
  top: 80%;
  width: 0.95em;
  height: 0.95em;
  margin: -0.475em;
  border: 0.22em solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: 0 0 0 0.4em color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.plot__tip {
  position: absolute;
  left: 66.67%;
  top: 80%;
  transform: translate(-50%, -195%);
  padding: 0.5em 0.85em;
  border-radius: 0.75em;
  background: var(--c-fg);
  color: var(--c-bg);
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}
.plot__tip b { margin-right: 0.6em; font-weight: 500; opacity: 0.72; }
.axis { display: flex; justify-content: space-between; font-size: 0.78em; color: var(--c-fg2); }
.axis--6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9em; text-align: center; }

/* budget against result */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9em; height: 12.5em; border-bottom: 1px solid var(--c-line); }
.bars span { display: flex; align-items: flex-end; gap: 0.25em; }
.bars i { flex: 1; border-radius: 0.35em 0.35em 0 0; transform-origin: bottom; }
.bars i:first-child { height: calc(var(--b) * 1%); background: var(--c-mute); }
.bars i:last-child { height: calc(var(--a) * 1%); background: var(--c-accent); }
.legend { display: flex; align-items: center; gap: 0.45em; }
.legend i { width: 0.7em; height: 0.7em; border-radius: 0.2em; background: var(--c-mute); }
.legend i:nth-of-type(2) { margin-left: 0.6em; background: var(--c-accent); }

/* margins by line */
.hbars { display: grid; gap: 0.95em; }
.hbars > div { display: grid; grid-template-columns: 4.2em 1fr 3.2em; align-items: center; gap: 0.7em; font-size: 0.95em; }
.hbars i { width: calc(var(--v) * 2.7%); height: 0.7em; border-radius: 99em; background: var(--c-accent); transform-origin: left; }
.hbars .neg i { background: var(--red); }
.hbars b { font-weight: 600; text-align: right; }
.hbars .neg b { color: var(--red); }

/* findings and their status */
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0.8em 0; border-top: 1px solid var(--c-line); font-size: 0.95em; }
.rows li:first-child { padding-top: 0; border-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.pill { padding: 0.25em 0.75em; border-radius: 99em; font-style: normal; font-size: 0.82em; font-weight: 600; white-space: nowrap; }
.pill--red { background: var(--red-bg); color: var(--red); }
.pill--amber { background: var(--amber-bg); color: var(--amber); }
.pill--green { background: var(--green-bg); color: var(--green); }

/* the 90-day plan */
.gantt { display: grid; gap: 0.8em; }
.gantt > div { display: grid; grid-template-columns: 6.2em 1fr; align-items: center; gap: 0.6em; font-size: 0.95em; }
.gantt p { position: relative; height: 0.6em; margin: 0; border-radius: 99em; background: var(--c-card, var(--tint)); }
.gantt i { position: absolute; inset-block: 0; left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%); border-radius: 99em; background: var(--blue); transform-origin: left; }
.gantt > div:nth-child(2) i { background: #12a8a0; }
.gantt > div:nth-child(3) i { background: #17b26a; }
.gantt > div:nth-child(4) i { background: var(--fg-3); }

/* the improvement scenario */
.bridge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7em; }
.bridge > div { display: grid; gap: 0.3em; padding: 0.9em 1em; border-radius: 0.9em; background: var(--c-card); }
.bridge span { font-size: 0.82em; color: var(--c-fg2); }
.bridge b { font-size: 1.5em; font-weight: 600; letter-spacing: -0.03em; }
.bridge .gain b { color: var(--green); }
.bridge .total { background: var(--blue); color: #fff; }
.bridge .total span { color: rgb(255 255 255 / 0.8); }

@container (max-width: 620px) {
  .win .ui__body { grid-template-columns: minmax(0, 1fr); }
  .win .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg, .panel--budget { display: none; }
}
@container (max-width: 520px) {
  .art .ui__body--2 { grid-template-columns: minmax(0, 1fr); }
  .art .kpi { padding: 0.9em; }
  .art .kpi b { font-size: 1.55em; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding-block: clamp(88px, 11vw, 176px); }
.sec--tint { background: var(--tint); }
.sec--black { background: var(--black); color: var(--on-black); }
.sec__head { max-width: 900px; margin-bottom: clamp(40px, 5.5vw, 80px); }

/* ---- Lo esencial: the mosaic ---- */
#esencial .h2 { margin-bottom: clamp(40px, 5.5vw, 80px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 320px;
  padding: clamp(28px, 3.2vw, 48px);
  border-radius: var(--r-xl);
  background: #fff;
}
.tile h3 { max-width: 22ch; font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.tile p { max-width: 40ch; margin-top: 8px; color: var(--fg-2); }
.tile .tile__big { max-width: none; margin: 0; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: inherit; white-space: nowrap; }
.tile__big small { margin-left: 0.2em; font-size: 0.32em; font-weight: 500; letter-spacing: 0; }
.tile .tile__label { margin: 0; font-weight: 600; color: inherit; }
.tile--years { grid-column: span 5; background: var(--black); color: var(--on-black); }
.tile--years .tile__big { font-size: clamp(3.75rem, 2rem + 5.5vw, 6.5rem); }
.tile--years p { color: var(--on-black-2); }
.tile--years .grad, .sec--black .grad { background-image: var(--grad-b); }
.tile--pillars { grid-column: span 7; }
.tile--pillars h3 { max-width: 26ch; }
.tile--start { grid-column: span 5; background: var(--blue); color: #fff; }
.tile--start .link { margin-top: 14px; color: #fff; }
.tile--plan { grid-column: span 4; }
.tile--remote { grid-column: span 3; }

.pillars li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { padding-bottom: 0; }
.pillars li > div { display: grid; grid-template-columns: 8.5em 1fr; align-items: baseline; gap: 2px 16px; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(10 96 255 / 0.1); color: var(--blue); }
.ico svg { width: 22px; height: 22px; }
.pillars b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.pillars p { margin-top: 0; line-height: 1.35; }

@media (max-width: 1100px) {
  .bento { grid-auto-flow: dense; }
  .tile--years, .tile--start, .tile--plan, .tile--remote { grid-column: span 6; }
  .tile--pillars { grid-column: span 12; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--years, .tile--start, .tile--plan, .tile--remote, .tile--pillars { grid-column: auto; min-height: 0; }
  .tile--years, .tile--start, .tile--plan, .tile--remote { min-height: 230px; }
}
@media (max-width: 560px) { .pillars li > div { grid-template-columns: minmax(0, 1fr); } }

/* ---- Services: each one presented like a product ---- */
.rail__track { display: grid; gap: 24px; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.prod {
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(56px, 7.5vw, 112px) clamp(20px, 4vw, 64px) 0;
  border-radius: var(--r-xl);
  background: var(--tint);
  text-align: center;
}
.prod__copy { display: grid; justify-items: center; gap: 18px; max-width: 720px; }
.prod h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; text-wrap: balance; }
.prod__copy > p { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.prod__copy > .eyebrow { color: var(--blue); }
.prod .cta { margin-top: 12px; }
.art { position: relative; display: flex; flex-direction: column-reverse; width: min(100%, 860px); margin-top: clamp(44px, 5.5vw, 80px); container-type: inline-size; isolation: isolate; }
.art figcaption { margin-bottom: 16px; font-size: 0.8125rem; color: var(--fg-2); }

.prod--black { background: var(--black); color: var(--on-black); }
.prod--black .prod__copy > p, .prod--black .art figcaption { color: var(--on-black-2); }
.prod--black .prod__copy > .eyebrow, .prod--black .link { color: var(--blue-on-black); }
.prod--black .art::before {
  content: "";
  position: absolute;
  inset: -4% -16% 0;
  z-index: -1;
  background: radial-gradient(50% 62% at 50% 46%, rgb(59 139 255 / 0.62), rgb(24 194 180 / 0.2) 55%, transparent 74%);
  filter: blur(60px);
}

/* wide screens: the card turns sideways, the words on the left and the document rising on the right */
@media (min-width: 900px) {
  .prod {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    justify-items: stretch;
    height: clamp(500px, 44vw, 620px);
    padding: 0;
    text-align: left;
  }
  .prod__copy { align-self: center; justify-items: start; padding: clamp(32px, 4.4vw, 72px); padding-right: 0; }
  .prod .cta { justify-content: flex-start; }
  .art { width: auto; min-height: 0; margin: 0; padding: clamp(28px, 3.6vw, 56px) clamp(28px, 3.6vw, 56px) 0; }
  .art .ui { flex: 0 1 auto; min-height: 0; font-size: clamp(11px, 2.9cqw, 14px); }
}

/* and where the browser can tie an animation to the scroll, the section holds still while the three cards pass sideways */
@media (min-width: 900px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not(.static) #servicios { padding-block: 0; }
    html:not(.static) .rail { height: 300vh; view-timeline: --rail block; view-timeline-inset: 0; }
    html:not(.static) .rail__pin {
      position: sticky;
      top: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100svh;
      padding-block: calc(var(--nav-h) + clamp(20px, 5vh, 56px)) clamp(20px, 5vh, 56px);
      overflow: clip;
    }
    html:not(.static) .rail .sec__head { margin-bottom: clamp(20px, 4.5vh, 48px); }
    html:not(.static) .rail__track {
      flex: 1;
      display: flex;
      width: max-content;
      min-height: 0;
      max-height: 700px;
      margin: 0;
      padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
      animation: rail linear both;
      animation-timeline: --rail;
      animation-range: contain;
    }
    html:not(.static) .rail .prod { flex: none; width: min(1100px, 100vw - 2 * var(--gutter) - 72px); height: auto; }
  }
}
@keyframes rail { to { transform: translateX(calc(100vw - 100%)); } }

/* ---- Plans ---- */
.plans__label { margin: clamp(48px, 5.5vw, 80px) 0 18px; font-weight: 600; color: var(--fg-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.2vw, 48px); border-radius: var(--r-xl); background: #fff; }
.plan h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.plan p { color: var(--fg-2); }
.plan .plan__price { margin-top: 6px; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.625rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
:is(.plan__price, .plan__term) small { display: block; margin-top: 10px; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.plan .plan__term { margin-top: 6px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan__term small { margin-top: 6px; }
.plans .checks { margin: 8px 0 28px; }
.plans .btn { align-self: flex-start; margin-top: auto; }
.plan--wide { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); }
.plan__main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plan__main .btn { margin-top: 18px; }
.plan__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 28px; padding-top: 6px; }
.plan h4 { margin-bottom: 16px; font-size: 0.875rem; font-weight: 600; color: var(--fg-2); }
.checks { display: grid; gap: 13px; line-height: 1.35; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgb(10 96 255 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a60ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* the way in is the one card in colour */
.plan--lead { background: linear-gradient(140deg, var(--blue) 30%, #0043c8); color: #fff; }
.plan--lead :is(p, h4, small) { color: rgb(255 255 255 / 0.88); }
.plan--lead :is(.plan__price, .plan__term) { color: #fff; }
.plan--lead .plan__price { font-size: clamp(2.5rem, 1.9rem + 2vw, 3.25rem); }
.plan--lead .btn { background: #fff; color: var(--blue); }
.plan--lead .btn:hover { background: #e3edff; }
.plan--lead :focus-visible { outline-color: #fff; }
.plan--lead .checks li::before { background-color: rgb(255 255 255 / 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plan__tag { padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.18); font-size: 0.875rem; font-weight: 600; }

/* of the three monthly plans, one is ringed and gets the filled button; the bars say how far each plan goes */
.plan--pick { box-shadow: inset 0 0 0 2px var(--blue), 0 30px 60px -36px rgb(10 96 255 / 0.5); }
.plans h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.tier i { width: 5px; height: 100%; border-radius: 2px; background: #dde1e8; }
.tier i:nth-child(1) { height: 45%; }
.tier i:nth-child(2) { height: 72%; }
.tier[data-n="1"] i:nth-child(1), .tier[data-n="2"] i:nth-child(-n+2), .tier[data-n="3"] i { background: var(--blue); }

.plans__note { margin-top: clamp(32px, 4vw, 56px); font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); max-width: 72ch; }
@media (max-width: 900px) {
  .plans, .plan--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .plan__lists { grid-template-columns: minmax(0, 1fr); } }

/* ---- Method ---- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: 10px; padding: clamp(26px, 2.8vw, 40px); border-radius: var(--r-xl); background: var(--tint); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: clamp(20px, 3vw, 48px); border-radius: 50%; background: var(--fg); color: #fff; font-weight: 600; }
.steps h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }
.steps p { line-height: 1.45; color: var(--fg-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---- Track record, on black ---- */
.sec--black .eyebrow { margin-bottom: 20px; color: var(--blue-on-black); }
.lit { max-width: 32ch; font-size: clamp(1.625rem, 1rem + 2.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.18; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(64px, 8vw, 120px); }
.stats > div { padding-top: 28px; border-top: 1px solid var(--line-b); }
.stats b { display: inline-block; font-size: clamp(2.75rem, 1.8rem + 3.2vw, 4.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.stats p { max-width: 30ch; margin-top: 16px; color: var(--on-black-2); }
.roles { margin-top: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line-b); }
.roles li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 10.5em; align-items: baseline; gap: 4px 24px; padding: 22px 0; border-top: 1px solid var(--line-b); }
.roles b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.roles span, .roles em { color: var(--on-black-2); }
.roles em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.creds { margin-top: clamp(40px, 5vw, 72px); }
.creds p { font-size: 1.125rem; color: var(--on-black-2); }
.creds b { font-weight: 600; color: var(--on-black); }
.sec--black .fine { margin-top: 16px; color: var(--on-black-2); }
@media (max-width: 800px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .roles li { grid-template-columns: minmax(0, 1fr); }
  .roles em { text-align: left; }
}

/* ---- Questions ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; list-style: none; cursor: pointer; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--fg-2); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq p { max-width: 60ch; padding-bottom: 28px; font-size: 1.0625rem; color: var(--fg-2); }

/* ---- Closing and footer ---- */
.close { text-align: center; }
.close .wrap { display: grid; justify-items: center; gap: 24px; }
.close .lede { max-width: 38ch; }
.close .cta { margin-top: 8px; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.contact a { display: block; padding: 10px 18px; border-radius: 999px; background: #fff; font-size: 0.9375rem; transition: color 0.2s; }
.contact a:hover { color: var(--blue); }

.foot { padding-bottom: 40px; background: var(--tint); font-size: 0.8125rem; color: var(--fg-2); }
.foot .wrap { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot p { max-width: 110ch; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a:hover { color: var(--fg); }

/* on a phone the way to write to him stays in reach once the hero has scrolled away */
.fab { display: none; }
@media (max-width: 800px) {
  .fab {
    display: inline-flex;
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    translate: -50% 0;
    white-space: nowrap;
    background: var(--fg);
    box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.28);
    transform: translateY(180%);
    transition: transform 0.45s var(--ease), background 0.2s;
  }
  .fab.is-on { transform: none; }
  .foot { padding-bottom: 96px; }
}

/* ==========================================================================
   MOTION: sections rise in once, charts draw once, the board grows with the scroll
   ========================================================================== */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js [data-r].in, .static [data-r] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.static) .hero__copy > * { animation: rise 0.9s var(--ease) both; }
  .js:not(.static) .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .js:not(.static) .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .js:not(.static) .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .js:not(.static) .stage { animation: stage-in 1.1s var(--ease) 0.25s both; }

  .js:not(.static) :is([data-r], [data-seen]) :is(.bars i, .hbars i, .gantt i) { transition: transform 1s var(--ease) 0.35s; }
  .js:not(.static) :is([data-r], [data-seen]):not(.in) .bars i { transform: scaleY(0); }
  .js:not(.static) :is([data-r], [data-seen]):not(.in) :is(.hbars i, .gantt i) { transform: scaleX(0); }
  .js:not(.static) :is([data-r], [data-seen]) .plot svg { clip-path: inset(-8px -8px -8px -8px); transition: clip-path 1.6s var(--ease) 0.35s; }
  .js:not(.static) :is([data-r], [data-seen]):not(.in) .plot svg { clip-path: inset(-8px 100% -8px -8px); }
  .js:not(.static) :is([data-r], [data-seen]) :is(.plot__dot, .plot__tip) { transition: opacity 0.4s ease 1.5s; }
  .js:not(.static) :is([data-r], [data-seen]):not(.in) :is(.plot__dot, .plot__tip) { opacity: 0; }

  @supports (animation-timeline: view()) {
    .js:not(.static) .win { transform-origin: 50% 0; animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
    .js:not(.static) .lit {
      background: linear-gradient(90deg, #fff 50%, rgb(255 255 255 / 0.24) 50%) 100% 0 / 220% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: lit linear both;
      animation-timeline: view();
      animation-range: entry 25% cover 55%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes grow { from { transform: scale(0.93); } to { transform: none; } }
@keyframes lit { to { background-position: 0 0; } }
