/* SoNSo — design system
   Ink base, white space, one accent (the blue N from the wordmark).
   Stage tints appear only on stage labels, dots and icons. */

:root {
  --ink: #0F1720;
  --ink-2: #18222F;
  --ink-line: #2A3644;
  --text: #17202C;
  --muted: #566170;
  --faint: #677282;
  --line: #E3E7ED;
  --line-strong: #C8D0DA;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --accent: #2453E6;
  --accent-hover: #1B43C4;
  --accent-soft: #EBF0FE;

  --build: #5B3FD6;     --build-soft: #F1EEFD;    --build-light: #B3A6F7;
  --automate: #0F766E;  --automate-soft: #E6F4F2; --automate-light: #6ED3C4;
  --grow: #C2410C;      --grow-soft: #FDF0E8;     --grow-light: #F7A177;
  --measure: #B4235A;   --measure-soft: #FBEAF1;  --measure-light: #F28DB3;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 23 32 / .05);
  --shadow: 0 1px 2px rgb(15 23 32 / .04), 0 12px 32px -16px rgb(15 23 32 / .18);
  --shadow-lg: 0 2px 4px rgb(15 23 32 / .04), 0 30px 60px -24px rgb(15 23 32 / .28);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-stage="build"]    { --stage: var(--build);    --stage-soft: var(--build-soft);    --stage-light: var(--build-light); }
[data-stage="automate"] { --stage: var(--automate); --stage-soft: var(--automate-soft); --stage-light: var(--automate-light); }
[data-stage="grow"]     { --stage: var(--grow);     --stage-soft: var(--grow-soft);     --stage-light: var(--grow-light); }
[data-stage="measure"]  { --stage: var(--measure);  --stage-soft: var(--measure-soft);  --stage-light: var(--measure-light); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: -.032em;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: clamp(3rem, 2rem + 5.2vw, 6rem); line-height: .96; }
.h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; }
.h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.04; }
.h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.lede { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.stage-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stage, var(--muted));
  line-height: 1;
}
.stage-tag::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 2px;
  background: currentColor; flex: none;
}
.stage-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.stage-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--stage-soft); color: var(--stage);
  font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem;
  border-radius: 10px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-line: var(--accent); box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 6px 16px -8px rgb(36 83 230 / .7); }
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-line: var(--accent-hover); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgb(255 255 255 / .28); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.text-link:hover { border-color: var(--ink); }
.text-link .icon { width: .9rem; height: .9rem; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile menu, collapsing the menu to zero height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
body.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.wordmark {
  font-weight: 700; font-size: 1.625rem; letter-spacing: -.045em; font-stretch: 92%;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark span { color: var(--accent); }
.wordmark--light { color: #fff; }
.wordmark--light span { color: #7E9BFF; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .75rem;
  border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--text);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover { background: var(--mist); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.has-menu .nav-link { padding-right: .25rem; }
.menu-caret {
  display: inline-grid; place-items: center; width: 28px; height: 32px; margin-left: -.1rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--muted);
}
.menu-caret svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.menu-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-caret:hover { background: var(--mist); color: var(--ink); }

.mega {
  position: absolute; top: calc(100% + .6rem); left: -1rem;
  width: min(640px, 90vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  padding: .6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.mega::before { content: ""; position: absolute; inset: -.8rem 0 auto; height: .8rem; } /* hover bridge */
.has-menu.is-open .mega,
.no-js .has-menu:hover .mega,
.has-menu:focus-within .mega {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
@media (hover: hover) and (min-width: 960px) {
  .has-menu:hover .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.mega-item {
  display: grid; gap: .3rem; padding: .9rem 1rem; border-radius: 10px; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.mega-item:hover { background: var(--stage-soft); }
.mega-item strong { font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega-item > span:last-child { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.mega-foot {
  grid-column: 1 / -1; margin-top: .25rem; padding: .8rem 1rem; border-top: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.mega-foot:hover { text-decoration: underline; }

.header-cta { margin-left: .5rem; }
.nav-mobile-cta { display: none; }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -.5rem;
  background: none; border: 0; border-radius: 10px; cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-bars { top: 21px; }
.menu-bars::before { content: ""; left: 0; top: -6px; }
.menu-bars::after { content: ""; left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  .menu-toggle { display: block; margin-left: .25rem; }
  .header-cta { margin-left: auto; min-height: 38px; padding: .4rem .85rem; font-size: .875rem; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--paper); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    display: flex; flex-direction: column; gap: 1.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; min-height: 56px; padding-inline: 0; font-size: 1.25rem; font-weight: 600; border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .menu-caret { width: 44px; height: 44px; }
  .mega {
    position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 .75rem;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .mega::before { display: none; }
  .has-menu.is-open .mega { display: grid; }
  .has-menu:focus-within .mega { opacity: 1; }
  .mega-item { padding: .75rem .9rem; background: var(--mist); }
  .mega-foot { border-top: 0; padding-inline: .9rem; }
  .nav-mobile-cta { display: inline-flex; width: 100%; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--ink { background: var(--ink); color: #C9D2DD; }
.section--ink .h2, .section--ink .h3, .section--ink .h4 { color: #fff; }
.section--ink .lede { color: #A9B4C2; }
.section--ink .eyebrow { color: #8A97A8; }
.section--ink [data-stage] { --stage: var(--stage-light); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.25rem; }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem;
}
.section-head--split > div { max-width: 46rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.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)); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  --card-pad: clamp(1.4rem, 2.4vw, 1.9rem);
  padding: var(--card-pad);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.section--mist .card { border-color: transparent; box-shadow: var(--shadow-sm); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: var(--stage-soft, var(--mist)); color: var(--stage, var(--ink)); margin-bottom: .5rem;
}
.card-foot { margin-top: auto; padding-top: .75rem; }
.card .muted { font-size: 1rem; }

/* Service card (home + services index) */
.service-card { min-height: 100%; }
.service-card::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--stage); transform: scaleX(.18); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card .h4 { font-size: 1.25rem; }
.service-card .promise { font-weight: 600; color: var(--ink); }
.service-card .arrow-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--stage); font-size: .95rem; }
.service-card .arrow-cta .icon { width: .9rem; height: .9rem; transition: transform .2s var(--ease); }
.service-card:hover .arrow-cta .icon { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgb(15 23 32 / .045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgb(15 23 32 / .045) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 75% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 30%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero-grid > *, .service-hero-grid > * { min-width: 0; }
.hero-title { display: flex; flex-direction: column; }
.hero-title span { display: block; }
.hero-title i { font-style: normal; color: var(--stage); }
.hero .lede { margin-top: 1.75rem; max-width: 33em; color: #46505E; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-note .icon { width: 1rem; height: 1rem; color: var(--automate); }
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Dashboard mock (sample data) ---------- */
.dash {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .875rem;
}
.dash-bar { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dash-title { font-weight: 600; color: var(--ink); font-size: .875rem; }
.dash-sample { white-space: nowrap; margin-left: auto; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--mist); padding: .25rem .5rem; border-radius: 6px; }
.dash-body { padding: 1.1rem; display: grid; gap: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.kpi { padding: .75rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.kpi dt { font-size: .6875rem; color: var(--muted); font-weight: 500; line-height: 1.3; }
.kpi dd { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.kpi .delta { display: block; font-size: .6875rem; font-weight: 600; color: var(--automate); letter-spacing: 0; }
.dash-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dash-table th { text-align: left; font-size: .6875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 .5rem .5rem; border-bottom: 1px solid var(--line); }
.dash-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table th:not(:first-child), .dash-table td:not(:first-child) { text-align: right; }
.dash-table .src { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.dash-table .src i { width: 8px; height: 8px; border-radius: 2px; background: var(--stage); }
.bar-cell { width: 34%; }
.bar { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.bar b { display: block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .85; }
.dash-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); background: #FBFCFD; font-size: .75rem; color: var(--muted); }
.dash-foot .stage-chip { font-size: .625rem; padding: .2rem .45rem; }
.dash-foot .sep { color: var(--line-strong); }
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-table .hide-sm { display: none; }
  .bar-cell { width: auto; }
  .bar b { display: none; }
  .dash-title { font-size: .8125rem; }
}

/* ---------- Problem picker ---------- */
.picker { display: grid; border-top: 1px solid var(--line); }
.picker-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem;
  padding: 1.5rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: padding .25s var(--ease), background-color .25s var(--ease);
}
.picker-row:hover { background: linear-gradient(to right, var(--stage-soft, var(--mist)), transparent 80%); padding-left: 1rem; }
.picker-quote { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.picker-quote small { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
.picker-go { display: inline-flex; align-items: center; gap: .6rem; }
.picker-go .icon { width: 1.1rem; height: 1.1rem; color: var(--ink); transition: transform .2s var(--ease); }
.picker-row:hover .picker-go .icon { transform: translateX(4px); }
.picker-row--unsure .picker-quote { color: var(--muted); }
@media (max-width: 599px) { .picker-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; } }

/* ---------- The loop ---------- */
.loop { margin: 0; }
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr);
  grid-template-rows: auto 4.5rem auto;
  grid-template-areas:
    "build    a1   automate"
    "a4       core a2"
    "measure  a3   grow";
}
.loop-node[data-stage="build"] { grid-area: build; }
.loop-node[data-stage="automate"] { grid-area: automate; }
.loop-node[data-stage="grow"] { grid-area: grow; }
.loop-node[data-stage="measure"] { grid-area: measure; }
.loop-arrow--right { grid-area: a1; }
.loop-arrow--down { grid-area: a2; }
.loop-arrow--left { grid-area: a3; }
.loop-arrow--up { grid-area: a4; }
.loop-core { grid-area: core; }

.loop-node {
  position: relative; display: grid; align-content: start; gap: .45rem;
  padding: 1.35rem 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.loop-node:hover { border-color: var(--stage); box-shadow: var(--shadow); transform: translateY(-2px); }
.loop-node strong { font-size: 1.125rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.loop-hint { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.loop-here { display: none; }
.loop-arrow { position: relative; align-self: center; justify-self: center; }
.loop-arrow--right, .loop-arrow--left { width: calc(100% - 1.5rem); height: 1px; background: var(--line-strong); }
.loop-arrow--up, .loop-arrow--down { width: 1px; height: calc(100% - 1rem); background: var(--line-strong); }
.loop-arrow::after {
  content: ""; position: absolute; width: 8px; height: 8px;
  border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint);
}
.loop-arrow--right::after { right: 0; top: -4px; transform: rotate(45deg); }
.loop-arrow--left::after { left: 0; top: -4px; transform: rotate(-135deg); }
.loop-arrow--down::after { bottom: 0; left: -4px; transform: rotate(135deg); }
.loop-arrow--up::after { top: 0; left: -4px; transform: rotate(-45deg); }
.loop-core {
  align-self: center; justify-self: center; text-align: center;
  font-size: .8125rem; font-weight: 600; line-height: 1.25; color: var(--muted);
}
.loop-caption { margin-top: 1.5rem; text-align: center; font-size: .9375rem; color: var(--muted); }

/* "You are here" state */
.loop[data-active] .loop-node { opacity: 1; }
.loop[data-active="build"] .loop-node[data-stage="build"],
.loop[data-active="automate"] .loop-node[data-stage="automate"],
.loop[data-active="grow"] .loop-node[data-stage="grow"],
.loop[data-active="measure"] .loop-node[data-stage="measure"] {
  border-color: var(--stage); background: var(--stage-soft); box-shadow: 0 0 0 3px var(--stage-soft);
}
.loop[data-active="build"] .loop-node[data-stage="build"] .loop-here,
.loop[data-active="automate"] .loop-node[data-stage="automate"] .loop-here,
.loop[data-active="grow"] .loop-node[data-stage="grow"] .loop-here,
.loop[data-active="measure"] .loop-node[data-stage="measure"] .loop-here {
  display: inline-block; position: absolute; top: -.7rem; right: 1rem;
  background: var(--stage); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  padding: .2rem .5rem; border-radius: 999px;
}

/* Compact loop: used in service-page heroes */
.loop--compact .loop-grid { grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr); grid-template-rows: auto 2.5rem auto; }
.loop--compact .loop-node { padding: 1rem 1.05rem; gap: .35rem; }
.loop--compact .loop-node strong { font-size: .95rem; }
.loop--compact .loop-hint, .loop--compact .loop-core { display: none; }
.loop--compact .loop-caption { font-size: .8125rem; margin-top: 1rem; }
.loop--compact .loop-arrow--right, .loop--compact .loop-arrow--left { width: calc(100% - .75rem); }

@media (max-width: 719px) {
  .loop-grid { grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); grid-template-rows: auto 2.25rem auto; }
  .loop-node { padding: 1rem; }
  .loop-node strong { font-size: .95rem; }
  .loop-hint, .loop-core { display: none; }
  .loop-arrow--right, .loop-arrow--left { width: calc(100% - .5rem); }
}

/* ---------- Journey (Connected by design) ---------- */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.journey-step { position: relative; padding: 0 1.25rem 0 0; }
.journey-step::before {
  content: ""; position: absolute; top: 1.15rem; left: 2.6rem; right: .6rem; height: 1px;
  background: linear-gradient(to right, var(--ink-line), var(--ink-line));
}
.journey-step:last-child::before { display: none; }
.journey-node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 10px;
  background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--stage);
  margin-bottom: 1.25rem;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.journey-node .icon { width: 1.15rem; height: 1.15rem; }
.journey-step .stage-tag { margin-bottom: .6rem; }
.journey-step h3 { font-size: 1.125rem; font-weight: 600; color: #fff; letter-spacing: -.01em; margin-bottom: .4rem; }
.journey-step p { font-size: .95rem; line-height: 1.5; color: #A9B4C2; }
.js .journey.is-in .journey-node { animation: node-pulse 1.2s var(--ease) both; animation-delay: calc(var(--i) * 260ms); }
@keyframes node-pulse {
  0% { box-shadow: 0 0 0 0 transparent; }
  35% { background: var(--stage); color: var(--ink); box-shadow: 0 0 0 6px rgb(255 255 255 / .06); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.journey-summary {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem;
}
.journey-summary p { font-size: 1.0625rem; color: #C9D2DD; }
.journey-summary strong { display: block; color: #fff; font-weight: 600; margin-bottom: .35rem; }
.journey-summary .bad strong { color: #F28D8D; }
.journey-summary .good strong { color: #7FD8B1; }
@media (max-width: 959px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .journey-step { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: 1.25rem; padding: 0; }
  .journey-node { grid-row: span 3; margin: 0; }
  .journey-step::before { top: 2.6rem; bottom: -1.5rem; left: 1.15rem; right: auto; width: 1px; height: auto; }
  .journey-summary { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Case cards ---------- */
.case-card { gap: 1rem; }
.case-card .h3 { margin-top: .25rem; }
.case-industry { font-size: .9375rem; color: var(--muted); }
.case-measures { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.case-measures dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.case-measures dd { display: flex; flex-wrap: wrap; gap: .4rem; }
.measure-pill { font-size: .8125rem; font-weight: 500; padding: .25rem .6rem; border-radius: 6px; background: var(--mist); color: var(--text); }
.feature-case-side .measure-pill { background: var(--paper); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step); display: block; margin-bottom: 1rem;
  font-size: .8125rem; font-weight: 600; color: var(--accent); letter-spacing: .04em;
}
.step:first-child { border-top-color: var(--accent); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: 1rem; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 599px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.why-item h3 { margin-bottom: .6rem; }
.why-item p { color: var(--muted); }
.why-mark { display: block; width: 2.5rem; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 1.5rem; }
@media (max-width: 859px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Article cards ---------- */
.article-card .h4 { font-size: 1.25rem; line-height: 1.3; }
.article-meta { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #C9D2DD; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(36 83 230 / .35), transparent 65%); pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; }
.cta-band .h2 { color: #fff; }
.cta-band .lede { color: #A9B4C2; margin-top: 1.25rem; }
.cta-actions { display: grid; gap: 1rem; justify-items: start; }
.cta-alt { font-size: .9375rem; color: #A9B4C2; }
.cta-alt a { color: #fff; text-underline-offset: 3px; }
@media (max-width: 859px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero .stage-tag { margin-bottom: 1.5rem; font-size: .8125rem; }
.page-hero .loop .stage-tag, .page-hero .stage-chip { margin-bottom: 0; font-size: .75rem; }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (max-width: 959px) { .service-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }

/* ---------- Pain points ---------- */
.pain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.pain blockquote {
  position: relative; padding: 1.75rem 1.6rem 1.6rem; background: var(--paper); border-radius: var(--radius);
  font-size: 1.1875rem; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--ink);
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--stage);
}
@media (max-width: 859px) { .pain { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Offer cards ---------- */
.offer-card .h4 { font-size: 1.25rem; }
.checklist { display: grid; gap: .55rem; margin-top: .25rem; }
.checklist li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: 1rem; color: var(--text); line-height: 1.45; }
.checklist .icon { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--stage, var(--accent)); }

/* ---------- Fit / signals ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.fit h3 { margin-bottom: 1.25rem; }
.fit-list { display: grid; gap: .9rem; }
.fit-list li { padding-left: 1.5rem; position: relative; color: var(--text); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--stage, var(--accent)); }
.signal-list { display: grid; gap: .75rem; }
.signal-list li { padding: 1rem 1.2rem; background: var(--mist); border-radius: 10px; font-style: italic; color: var(--ink); }
.section--mist .signal-list li { background: var(--paper); box-shadow: var(--shadow-sm); }
@media (max-width: 859px) { .fit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Featured case ---------- */
.feature-case {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
}
.feature-case-main { padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1rem; align-content: start; }
.feature-case-side { padding: clamp(1.75rem, 4vw, 3rem); background: var(--mist); display: grid; gap: 1.5rem; align-content: start; }
.feature-case-side h3 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .6rem; }
@media (max-width: 859px) { .feature-case { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Outcomes ---------- */
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome { padding: 1.75rem 1.5rem 1.75rem 0; }
.outcome + .outcome { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.outcome h3 { font-size: 1.1875rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-bottom: .4rem; line-height: 1.3; }
.outcome p { font-size: .975rem; color: var(--muted); }
@media (max-width: 959px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome:nth-child(3) { padding-left: 0; border-left: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .outcome, .outcome + .outcome { padding-left: 0; border-left: 0; }
  .outcome + .outcome { border-top: 1px solid var(--line); }
}

/* ---------- Connected-with ---------- */
.connect-card .h4 { margin-top: .25rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.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: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--muted); }
@media (max-width: 859px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-strong); font-weight: 500; font-size: .9375rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.filter-btn[data-stage]::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--stage); }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-empty { color: var(--muted); padding: 2rem 0; }
[data-filter-item][hidden] { display: none; }

/* ---------- Prose (articles, legal, case studies) ---------- */
.prose { font-size: 1.125rem; line-height: 1.7; color: #26303C; }
.prose > * + * { margin-top: 1.25rem; }
.prose > h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 600; font-stretch: 88%; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); margin-top: 2.75rem; }
.prose > h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-top: 2rem; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; color: var(--ink); font-weight: 500; }
.article-head { max-width: 760px; }
.article-head .stage-tag { margin-bottom: 1.25rem; }
.article-head .article-meta { margin-top: 1.5rem; }
.article-end {
  margin-top: 3.5rem; padding: 2rem; border-radius: var(--radius); background: var(--stage-soft, var(--mist));
  display: grid; gap: 1rem; justify-items: start;
}
.article-end .h4 { font-size: 1.375rem; }

/* ---------- Case study page ---------- */
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; padding-block: 1.75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2.5rem; }
.case-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .4rem; }
.case-facts dd { color: var(--ink); font-weight: 500; }
@media (max-width: 679px) { .case-facts { grid-template-columns: minmax(0, 1fr); } }
.did-list { display: grid; gap: 1rem; }
.did-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.did-item:first-child { border-top: 1px solid var(--line); }
.did-item p { color: var(--text); }
@media (max-width: 599px) { .did-item { grid-template-columns: minmax(0, 1fr); gap: .75rem; } }

/* ---------- People ---------- */
.person { display: grid; gap: .9rem; align-content: start; padding: clamp(1.4rem, 2.4vw, 1.9rem); border: 1px solid var(--line); border-radius: var(--radius); }
.person-photo {
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 1.125rem; font-weight: 600; letter-spacing: .02em;
}
.person p { color: var(--muted); font-size: 1rem; }
.person h3 { font-size: 1.375rem; }
.person .stage-tags { margin-top: .25rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 599px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 1rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23566170' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; padding-right: 2.5rem; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #C0392B; }
.field-error { font-size: .875rem; color: #B42318; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .2rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem .9rem;
  border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; font-size: .9375rem; line-height: 1.25;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice span::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; background: var(--stage, var(--faint)); flex: none; }
.choice input:hover + span { border-color: var(--faint); }
.choice input:checked + span { border-color: var(--stage, var(--ink)); background: var(--stage-soft, var(--mist)); box-shadow: inset 0 0 0 1px var(--stage, var(--ink)); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 500; }
.form-status[data-kind="error"] { background: #FEF3F2; color: #B42318; }
.form-success { padding: 2rem; border-radius: var(--radius); background: var(--automate-soft); display: grid; gap: 1rem; justify-items: start; }
.form-success .h3 { color: var(--automate); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact-method { display: grid; gap: .3rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-method h2 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.contact-method a:not(.btn) { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.contact-method a:not(.btn):hover { color: var(--accent); }
.contact-method p { font-size: .9375rem; color: var(--muted); }
.contact-method--primary { background: var(--ink); border-color: var(--ink); color: #C9D2DD; }
.contact-method--primary h2 { color: #8A97A8; }
.contact-method--primary p { color: #A9B4C2; }
.contact-method--primary .btn { margin-top: .5rem; justify-self: start; }
@media (max-width: 959px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

/* ---------- Booking ---------- */
.book-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  grid-template-areas: "intro panel" "list panel"; grid-template-rows: auto 1fr;
}
.book-intro { grid-area: intro; }
.book-layout .book-panel { grid-area: panel; }
.book-layout .call-list { grid-area: list; }
@media (max-width: 959px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "panel" "list"; grid-template-rows: auto; }
  .book-layout .book-panel { margin-top: 2rem; }
  .book-layout .call-list { margin-top: 2.5rem; }
}
.book-step2 { scroll-margin-top: calc(var(--header-h) + 1rem); }
body[data-page="book"] .wa-float { display: none; }
.book-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); box-shadow: var(--shadow); }
.book-panel .choice-grid { grid-template-columns: minmax(0, 1fr); }
.book-panel .choice span { min-height: 58px; font-size: 1rem; }
.book-panel .choice small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .8125rem; }
.book-step { display: flex; align-items: center; gap: .65rem; font-size: 1.1875rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-bottom: 1rem; padding: 0; }
.book-step-num {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600;
}
.book-step2 { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.book-step2:focus { outline: none; }
.book-step2:not(.is-ready) .book-step { color: var(--muted); }
.book-step2:not(.is-ready) .book-step-num { background: var(--line-strong); }
.book-placeholder {
  padding: 1.25rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font-size: .9375rem; text-align: center;
}
.book-step2 .book-fallback { margin-top: 0; }
.book-cal { display: grid; gap: 1rem; justify-items: start; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.book-cal .btn { margin: 0; }
@media (max-width: 599px) { .book-cal .btn { width: 100%; } }
.book-fallback { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); display: grid; gap: 1rem; }
.book-fallback .btn-row { gap: .6rem; }
.call-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.call-list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .75rem; }
.call-list .icon { width: 1.15rem; height: 1.15rem; color: var(--accent); margin-top: .25rem; }
.call-list strong { display: block; color: var(--ink); }
.call-list span { color: var(--muted); font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B4C2; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: .9375rem; }
.cta-band + .site-footer { border-top: 1px solid var(--ink-line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .9fr); gap: 2.5rem; }
.footer-brand { display: grid; gap: 1.25rem; justify-items: start; align-content: start; max-width: 22rem; }
.footer-brand p { line-height: 1.55; }
.footer-title { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8794A5; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: #D5DCE5; text-decoration: none; display: inline-flex; align-items: baseline; gap: .6rem; line-height: 1.4; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col .dot { width: .45rem; height: .45rem; border-radius: 2px; background: var(--stage-light); flex: none; transform: translateY(-1px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--ink-line); font-size: .875rem; color: #8794A5; }
.footer-bottom ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; }
.footer-bottom a { color: #A9B4C2; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* WhatsApp: quiet, mobile only */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: none; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: #128C4B; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 767px) { .wa-float { display: grid; } body.nav-open .wa-float { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-anim > * { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .cta-band { display: none; }
}

/* ---------- Lead and booking fallbacks ---------- */
.need-note {
  margin-bottom: 1.5rem; padding: .9rem 1.1rem; border-radius: 10px;
  background: var(--accent-soft); color: var(--ink); font-weight: 500; font-size: .975rem;
}
.form-handoff {
  display: grid; gap: .75rem; justify-items: start; padding: 1.5rem; border-radius: var(--radius);
  border: 1.5px solid var(--accent); background: var(--accent-soft);
}
.form-handoff:focus { outline: none; }
.form-handoff p { color: var(--text); }
.book-fallback .btn-row, .form-handoff .btn-row { margin-top: 0; }
@media (max-width: 599px) {
  .book-fallback .btn, .form-handoff .btn { width: 100%; }
  .form-handoff .btn-row { width: 100%; }
}


/* ---------- Article banners and thumbnails ---------- */
.article-banner { margin-top: -.5rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.article-banner img { width: 100%; max-width: 1040px; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--radius-lg); background: var(--ink); }
.card-thumb {
  display: block; width: calc(100% + var(--card-pad) * 2); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) .5rem; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--ink);
}
.article-card--feature { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .article-card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 2.25rem; align-content: center; }
  .article-card--feature .card-thumb { grid-row: 1 / span 5; width: calc(100% + var(--card-pad)); margin: calc(var(--card-pad) * -1) 0 calc(var(--card-pad) * -1) calc(var(--card-pad) * -1); height: calc(100% + var(--card-pad) * 2); border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
  .article-card--feature > :not(.card-thumb) { align-self: center; }
  .article-card--feature .h4 { font-size: 1.625rem; }
}
.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related-title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .75rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.related a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); line-height: 1.5; }
.related a:hover { border-color: var(--ink); }
.contact-method a:not(.btn) + a:not(.btn) { margin-top: .15rem; }
