/* Fonts: Onest and IBM Plex Mono are self-hosted (SIL Open Font License). Massilia loads from Adobe Fonts (kit cmc3kui). */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Layout concept: a schematic. Scattered parts in the problem section become one wired track in the services section; a live system map in the hero states the thesis. */
:root {
  color-scheme: light;
  --paper: #EEF3F1;      /* cool mineral ground */
  --paper-2: #F3F7F6;    /* tinted section band */
  --white: #FFFFFF;
  --ink: #182E31;        /* brand primary */
  --ink-2: #24444A;
  --teal: #16615E;       /* brand accent */
  --teal-deep: #0E4A47;  /* accent hover */
  --mint: #A8E6BE;       /* signal, used on dark only */
  --muted: #53686A;
  --line: #D7E2DF;
  --line-dark: #33555A;
  --on-dark: #E4EEEC;
  --on-dark-muted: #A9C0BD;

  --f-display: "massilia-variable", "Segoe UI", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 14px;

  /* Type scale. Desktop / tablet (~820px) / mobile (~390px):
     H1 60 / 49 / 38px, H2 48 / 40 / 31px, H3 large 28 / 25 / 22px,
     H3 medium 22 / 21 / 19px, H3 small 20 / 19 / 18px. Headings never heavier than 600. */
  --fs-h1: clamp(2.375rem, 1.75rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(1.9rem, 1.45rem + 2.05vw, 3rem);
  --fs-h3-lg: clamp(1.375rem, 1.15rem + .75vw, 1.75rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.375rem);
  --fs-h3-sm: clamp(1.125rem, 1.05rem + .25vw, 1.25rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1, h2, h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font: 600 0.75rem/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.4em;
  border-radius: 999px;
  font: 600 1rem/1 var(--f-body);
  text-decoration: none;
  border: 0; cursor: pointer;
  background: var(--teal); color: var(--white);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.mint { background: var(--mint); color: var(--ink); }
.btn.mint:hover { background: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--white) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 1.5rem/1 var(--f-display); letter-spacing: -0.04em; }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav .btn { padding: .75em 1.2em; font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; font-size: 1.05rem; }
  .menu-btn { display: block; }
  .nav .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: .94;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero h1 .wire { color: var(--teal); position: relative; white-space: nowrap; }
.hero h1 .wire::after {
  content: ""; position: absolute; left: 0; right: .1em; bottom: .02em; height: .08em;
  background: var(--teal); border-radius: 4px;
  transform-origin: left; animation: draw 1.1s .3s cubic-bezier(.6,0,.2,1) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.hero-cta small { color: var(--muted); font-size: .92rem; }

.map {
  background: var(--ink);
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  position: relative;
  overflow: hidden;
  min-width: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  box-shadow: 0 30px 60px -30px rgba(24,46,49,.55);
}
.map::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, transparent 20%, var(--ink) 80%); pointer-events: none; }
.map-head { position: relative; display: flex; justify-content: space-between; align-items: center; color: var(--on-dark-muted); font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: .5em; color: var(--mint); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(168,230,190,.6); } 70% { box-shadow: 0 0 0 10px rgba(168,230,190,0); } 100% { box-shadow: 0 0 0 0 rgba(168,230,190,0); } }
.map svg { position: relative; display: block; width: 100%; height: auto; margin-top: .6rem; }
.map .wire-path { fill: none; stroke: var(--line-dark); stroke-width: 2; }
.map .wire-live { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; opacity: .85; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.map .node rect { fill: var(--ink-2); stroke: var(--line-dark); }
.map .node text { fill: var(--on-dark); font: 600 15px var(--f-body); }
.map .node .sub { fill: var(--on-dark-muted); font: 500 10.5px var(--f-mono); letter-spacing: .06em; }
.map .hub circle.outer { fill: none; stroke: var(--mint); stroke-opacity: .35; stroke-dasharray: 3 6; }
.map .hub circle.core { fill: var(--teal); stroke: var(--mint); stroke-width: 1.5; }
.map .hub text { fill: var(--white); font: 700 17px var(--f-display); text-anchor: middle; }
.map .hub .sub { fill: var(--mint); font: 500 10px var(--f-mono); letter-spacing: .08em; }
.map .out rect { fill: var(--mint); }
.map .out text { fill: var(--ink); font: 700 15px var(--f-display); }
.map .out .sub { fill: var(--ink-2); font: 500 10px var(--f-mono); letter-spacing: .06em; }
.map .pulse { fill: var(--mint); }
.map .spin { transform-origin: 318px 220px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .map .wire-live, .map .spin, .live i, .hero h1 .wire::after { animation: none; }
  .map .pulse { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--paper-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.6rem 1.4rem 2.2rem 0; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.stat b { font: 600 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .label { color: var(--teal); }
.stat p { font-size: .92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 820px) {
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.logos { padding-block: 2.2rem; }
.logos .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem; }
.logos .label { color: var(--muted); flex-basis: 100%; }

/* ---------- Section heads ---------- */
section { scroll-margin-top: 80px; }
.sec { padding-block: clamp(4rem, 9vw, 7.5rem); }
.head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1; font-weight: 600; }
.head .kicker { display: flex; flex-direction: column; gap: 1rem; }
.head p { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

/* ---------- Problem: scattered ---------- */
.problem { background: var(--paper-2); }
.problem-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.scatter { position: sticky; top: 110px; }
.scatter svg { width: 100%; height: auto; display: block; }
.scatter .frag rect { fill: var(--white); stroke: var(--line); }
.scatter .frag text { fill: var(--ink-2); font: 600 14px var(--f-body); }
.scatter .frag .sub { fill: var(--muted); font: 500 10px var(--f-mono); letter-spacing: .06em; }
.scatter .broken { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 6; }
.scatter .q { fill: var(--teal); font: 700 22px var(--f-display); }
.scatter figcaption { text-align: center; margin-top: 1rem; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.issues { display: flex; flex-direction: column; }
.issue { padding-block: 2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.issue:last-child { border-bottom: 1px solid var(--line); }
.issue h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; }
.issue .tag { font: 600 1.05rem/1.4 var(--f-body); color: var(--teal); }
.issue p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .scatter { position: static; max-width: 460px; }
}

/* ---------- Services: connected track ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: var(--teal);
}
.track::after {
  content: none; position: absolute; right: 0; top: -22px;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
}
.svc { position: relative; padding: 3.2rem clamp(1rem, 2.5vw, 2rem) 0 0; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.svc + .svc { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.svc .dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); display: grid; place-items: center; }
.svc + .svc .dot { left: clamp(1rem, 2.5vw, 2rem); }
.svc .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.svc h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.1; }
.svc .promise { font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.svc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.svc li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.svc li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--teal); }
.svc .more { margin-top: auto; align-self: flex-start; display: inline-flex; gap: .5rem; align-items: center; padding: .75em 1.15em; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--white); color: var(--teal); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.svc .more:hover { background: var(--teal); color: var(--white); }
.svc .more svg { transition: transform .2s; }
.svc .more:hover svg { transform: translateX(3px); }
.svc ul { margin-bottom: 1.2rem; }
.support { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.4rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; color: var(--ink-2); font-size: .98rem; }
.support .label { color: var(--muted); }
@media (max-width: 900px) {
  .track { grid-template-columns: 1fr; padding-left: 2.2rem; }
  .track::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .track::after { display: none; }
  .svc, .svc + .svc { padding: 0 0 2.6rem 0; border-left: 0; }
  .svc .dot, .svc + .svc .dot { left: -2.2rem; top: .2rem; }
}

/* ---------- Case studies ---------- */
.cases { background: var(--white); }
.case { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case-id { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.case-id h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.15; font-weight: 600; }
.case-body { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.case-body > p { color: var(--ink-2); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric { padding-top: .9rem; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.metric b { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--teal); }
.metric span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.case blockquote { margin: 0; padding: 1.2rem 1.4rem; background: var(--paper); border-radius: var(--r); display: flex; flex-direction: column; gap: .8rem; }
.case blockquote p { font-size: 1.02rem; color: var(--ink); }
.case cite { font-style: normal; font-size: .88rem; color: var(--muted); }
.case cite b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; gap: .4rem; } .metric { flex-direction: row; align-items: baseline; gap: .8rem; padding-block: .7rem .2rem; } }

/* ---------- About (dark) ---------- */
.about { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.about .label { color: var(--mint); }
.about .head h2 { color: var(--white); }
.about .head p { color: var(--on-dark); }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.principle { padding: 1.8rem 1.4rem 0 0; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.principle + .principle { padding-left: 1.4rem; border-left: 1px solid var(--line-dark); }
.principle h3 { font-size: 1.3rem; color: var(--white); font-weight: 600; line-height: 1.2; }
.principle p { color: var(--on-dark-muted); font-size: .96rem; line-height: 1.55; }
.about .cta-row { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.about .since { font: 500 .78rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { margin-top: 1.8rem; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 1.5rem 0 0; border-left: 0; }
  .principle + .principle { margin-top: 1.5rem; border-top: 1px solid var(--line-dark); }
}

/* ---------- Testimonials ---------- */
.voices { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.feature { display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 110px; }
.feature .mark { font: 800 6rem/.6 var(--f-display); color: var(--teal); height: .5em; }
.feature p { font: 500 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--f-display); letter-spacing: -0.015em; color: var(--ink); }
.who { display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; color: var(--muted); }
.who b { color: var(--ink); font-weight: 600; font-size: 1rem; }
.quotes { display: flex; flex-direction: column; }
.quote { padding-block: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.quote:last-child { border-bottom: 1px solid var(--line); }
.quote p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } .feature { position: static; } }

/* ---------- Contact ---------- */
.contact { background: var(--teal-deep); color: var(--on-dark); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact .label { color: var(--mint); }
.contact h2 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; color: var(--white); font-weight: 600; }
.contact .intro { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.contact .intro p { max-width: 48ch; }
.contact .wa { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 600; text-decoration: none; }
.contact .wa:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact .wa svg { width: 22px; height: 22px; }
form.plan { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); min-width: 0; }
.plan h3 { font-size: 1.35rem; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input { font: 400 1rem var(--f-body); padding: .8rem .9rem; border: 1.5px solid #7F908E; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,97,94,.18); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips label { padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chips input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.plan .btn { justify-content: center; margin-top: .3rem; }
.plan .fine { font-size: .82rem; color: var(--muted); text-align: center; }
.plan .done { padding: .9rem 1rem; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .92rem; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 4rem 2rem; font-size: .94rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot .logo { color: var(--white); margin-bottom: 1rem; }
.foot p { max-width: 32ch; line-height: 1.6; }
.foot h4 { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 1.1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.foot a { text-decoration: none; color: var(--on-dark-muted); }
.foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.legal a { color: var(--on-dark-muted); text-decoration: none; }
.legal a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1.1rem .55rem .55rem; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(24,46,49,.6);
  transition: transform .2s;
}
.float:hover { transform: translateY(-2px); }
.float .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--ink); flex: none; }
.float .ic svg { width: 20px; height: 20px; }
.float span { display: flex; flex-direction: column; line-height: 1.2; }
.float b { font-size: .92rem; }
.float small { font-size: .74rem; color: var(--on-dark-muted); }
@media (max-width: 560px) { .float span { display: none; } .float { padding: .5rem; } }

/* entrance */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ---------- Working together ---------- */
.how { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 1.6rem 1.6rem 0 0; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.step + .step { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.step h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.15; }
.step p { color: var(--ink-2); font-size: .98rem; }
.fit { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--ink); color: var(--on-dark); }
.fit strong { font: 600 clamp(1.1rem, 1.8vw, 1.35rem)/1.25 var(--f-display); color: var(--white); letter-spacing: -0.01em; }
.fit span { font-size: .95rem; color: var(--on-dark-muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.field textarea { font: 400 1rem var(--f-body); padding: .8rem .9rem; border: 1.5px solid #7F908E; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,97,94,.18); }
.field .opt { font-weight: 400; color: var(--muted); }
.foot address { font-style: normal; margin-top: 1rem; line-height: 1.6; color: var(--on-dark); }

/* Logo images */
.logo img { display: block; height: 36px; width: auto; }
.foot .logo img { height: 40px; }
.foot address a { color: var(--on-dark); }
/* Contact details */
.reach { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; }
.reach li { display: flex; gap: .8rem; align-items: baseline; }
.reach .label { color: var(--mint); min-width: 4.2rem; }
.reach a { color: var(--white); text-decoration: none; }
.reach a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Align section descriptions with the heading's top edge, not the eyebrow */
@media (min-width: 821px) { .head > p { padding-top: 1.95rem; } }
.head .kicker p { color: var(--ink-2); max-width: 56ch; }

/* Client logos */
/* Client logos: endless carousel */
.marquee { flex-basis: 100%; display: flex; 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); }
.logo-track { list-style: none; margin: 0; padding: 0 12px 0 0; display: flex; gap: 12px; flex: none; animation: logos 40s linear infinite; }
.marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li { flex: none; width: 180px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: .4rem; }
.logo-track img { width: 100%; max-width: 170px; height: auto; display: block; }
@keyframes logos { to { transform: translateX(-100%); } }
@media (max-width: 560px) { .logo-track li { width: 140px; } .logo-track { animation-duration: 32s; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; flex-wrap: wrap; flex: 1; justify-content: center; padding: 0; }
  .logo-track[aria-hidden] { display: none; }
}

/* Contact form: name row and WhatsApp with country code */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.phone { display: flex; gap: .5rem; }
.phone select { flex: 0 0 auto; max-width: 9.5rem; font: 400 .95rem var(--f-body); padding: .8rem .6rem; border: 1.5px solid #7F908E; border-radius: 10px; background: var(--white); color: var(--ink); }
.phone select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,97,94,.18); }
.phone input { flex: 1 1 auto; min-width: 0; }

/* ================= Service pages ================= */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-sub h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; }

/* Browser diagram inside the dark map */
.map .browser .frame { fill: var(--ink-2); stroke: var(--line-dark); }
.map .browser .bar { stroke: var(--line-dark); }
.map .browser .dot { fill: var(--line-dark); }
.map .browser .ln { fill: var(--line-dark); }
.map .browser .ln.strong { fill: var(--on-dark-muted); opacity: .55; }
.map .browser .cta { fill: var(--teal); stroke: var(--mint); stroke-width: 1.5; }
.map .browser .cta-t { fill: var(--white); font: 600 13px var(--f-body); text-anchor: middle; }
.map .browser .field { fill: none; stroke: var(--on-dark-muted); stroke-opacity: .5; }
.map .browser .cap { fill: var(--on-dark-muted); font: 500 10px var(--f-mono); letter-spacing: .06em; }
.map .browser .wa-dot { fill: var(--mint); }

/* Problem: three issues in a row */
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.issue-grid .issue { border-bottom: 0; }
@media (max-width: 900px) { .issue-grid { grid-template-columns: 1fr; } .issue-grid .issue:last-child { border-bottom: 1px solid var(--line); } }

/* Build types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.type { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.type h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.2; }
.type p { color: var(--ink-2); font-size: .98rem; }
.type ul { list-style: none; margin: .4rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.type li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.type li::before { content: ""; position: absolute; left: 0; top: .65em; width: 11px; height: 2px; background: var(--teal); }
.type.featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.type.featured .label { color: var(--mint); }
.type.featured h3 { color: var(--white); }
.type.featured p, .type.featured li { color: var(--on-dark); }
.type.featured ul { border-top-color: var(--line-dark); }
.type.featured li::before { background: var(--mint); }
@media (max-width: 900px) { .types { grid-template-columns: 1fr; } }

/* Connected: three linked stages */
.connected { background: var(--white); }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--teal); }
.links li { position: relative; padding: 2rem 1.6rem 0 0; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.links li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.links li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.links li + li::before { left: 1.6rem; }
.links h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.2; }
.links p { color: var(--ink-2); font-size: .97rem; }
.links .more { margin-top: .3rem; align-self: flex-start; display: inline-flex; gap: .5rem; align-items: center; padding: .65em 1.05em; border-radius: 999px; border: 1.5px solid var(--teal); color: var(--teal); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.links .more:hover { background: var(--teal); color: var(--white); }
@media (max-width: 900px) {
  .links { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--teal); }
  .links li, .links li + li { padding: 0 0 2rem 1.6rem; border-left: 0; }
  .links li::before, .links li + li::before { top: .3rem; left: -7px; }
}

/* Four-step process */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) and (min-width: 821px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } .steps-4 .step:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Single-column section head */
.head-single { grid-template-columns: 1fr; }
.head-single .kicker { max-width: 46rem; }

/* Testimonials in a row */
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.quote-row .quote { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .quote-row { grid-template-columns: 1fr; } .quote-row .quote + .quote { border-top: 0; } }

/* FAQ */
.faq-sec { background: var(--paper-2); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font: 600 clamp(1.08rem, 1.6vw, 1.25rem)/1.3 var(--f-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: grid; place-items: center; font: 500 1.2rem/1 var(--f-body); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; background: var(--teal); color: var(--white); }
.faq details p { padding: 0 3rem 1.4rem 0; color: var(--ink-2); max-width: 70ch; }
.issue-grid .issue h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }

/* Tools we work with */
.tools { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; }
.tools-group { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.tools-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tools-group li { padding: .5rem .95rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--ink); }
.tools-note { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-2); padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }

/* Example flow timeline */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); counter-reset: flow; }
.flow li { position: relative; padding: 1.2rem 0 0 0; border-top: 2px solid var(--teal); display: flex; flex-direction: column; gap: .45rem; counter-increment: flow; min-width: 0; }
.flow li::before { content: counter(flow); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 600 .8rem/1 var(--f-mono); }
.flow .when { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); padding-top: .4rem; }
.flow h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.2; }
.flow p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* What We Do dropdown */
.has-sub { position: relative; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font: 500 .95rem var(--f-body); color: var(--ink-2); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 14px); left: -1rem; width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 40px -20px rgba(24,46,49,.35); display: none; z-index: 60; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 861px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; } }
.sub a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border-radius: 10px; }
.sub a::after { display: none; }
.sub a:hover, .sub a:focus-visible { background: var(--paper); }
.sub b { font-weight: 600; color: var(--ink); font-size: .95rem; }
.sub span { font-size: .82rem; color: var(--muted); }
.sub-all { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.sub-all a { color: var(--teal); font-weight: 600; font-size: .9rem; }
@media (max-width: 860px) {
  .sub-toggle { width: 100%; justify-content: space-between; padding: .8rem 0; font-size: 1.05rem; }
  .sub { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--teal); border-radius: 0; padding: 0 0 .4rem .9rem; margin-left: .2rem; background: transparent; }
  .sub a { padding: .55rem 0; }
  .sub a:hover { background: transparent; }
  .sub span { display: none; }
}

/* Form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan .btn[disabled] { opacity: .7; cursor: wait; }
.form-error { padding: .9rem 1rem; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-size: .92rem; }
.form-error a { color: inherit; font-weight: 600; }

/* Plans */
.plans .type { position: relative; }
.plans .type h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.plans .type ul { flex: 1; }
.plans .btn { margin-top: .8rem; align-self: flex-start; }
.plans .type.featured .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.plans .badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: .35em .75em; border-radius: 999px; background: var(--mint); color: var(--ink); font: 600 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.plans-note { margin-top: 1.6rem; color: var(--ink-2); }
.plans-note a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.plan-pick { margin-top: -.5rem; padding: .6rem .9rem; border-radius: 10px; background: var(--paper); font-size: .9rem; color: var(--ink-2); }
.plan-pick b { color: var(--ink); }
.faq-sec .head a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }

/* Footer extras */
.foot .hours { margin-top: 1rem; font-size: .88rem; color: var(--on-dark-muted); }
.foot .social { display: flex; flex-direction: row; gap: .6rem; margin-top: .9rem; }
.foot .social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background .2s, color .2s; }
.foot .social a:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.foot .social svg { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plans .type h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; }
.plan-tag { margin-top: -.3rem; font: 600 1.05rem/1.2 var(--f-display); color: var(--teal); }
.type.featured .plan-tag { color: var(--mint); }

/* Recent work: screenshots in a browser frame */
.work-sec { background: var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 2.8rem) clamp(1rem, 2.2vw, 1.6rem); }
.work { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.work h3 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.2; }
.work p { color: var(--ink-2); font-size: .94rem; max-width: 52ch; }
.shot { margin-bottom: .7rem; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(24,46,49,.45); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F6F8F7; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD6D3; flex: none; }
.shot-bar span { flex: 1; margin-left: 10px; max-width: 60%; padding: 3px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 500 .7rem/1.4 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.work:hover .shot img { transform: scale(1.015); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }

/* Cookie banner */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(380px, calc(100vw - 32px)); padding: 1.1rem 1.2rem 1rem; border-radius: 16px; background: var(--ink); color: var(--on-dark); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.cookie.show { opacity: 1; transform: none; }
.cookie a { color: var(--mint); text-underline-offset: 3px; }
.cookie-prefs { display: flex; flex-direction: column; gap: .55rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); }
.cookie-prefs label { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; font-weight: 600; color: var(--white); cursor: pointer; }
.cookie-prefs label span { grid-column: 2; font-weight: 400; font-size: .8rem; color: var(--on-dark-muted); }
.cookie-prefs input { width: 18px; height: 18px; accent-color: var(--mint); grid-row: span 2; }
.cookie-btns { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.cookie-link { margin-right: auto; background: none; border: 0; padding: .4rem 0; font: 600 .88rem var(--f-body); color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-btn { padding: .6em 1.1em; border-radius: 999px; border: 0; font: 600 .88rem var(--f-body); background: var(--mint); color: var(--ink); cursor: pointer; }
.cookie-btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.cookie-btn:hover { filter: brightness(1.05); }
.cookie-btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
.foot-cookie { color: var(--on-dark-muted); font-weight: 400; text-decoration: none; }
.foot-cookie:hover { color: var(--white); text-decoration: underline; }

/* Legal pages */
.legal-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; font-weight: 600; margin-top: 1.2rem; }
.legal-hero .updated { margin-top: 1rem; font: 500 .8rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-doc { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.legal-doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: .9rem; font-size: .9rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--muted); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.btn.small { padding: .65em 1.1em; font-size: .88rem; align-self: flex-start; }
.doc { max-width: 76ch; color: var(--ink-2); }
.doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 2.8rem 0 1rem; scroll-margin-top: 100px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin: 1.8rem 0 .6rem; }
.doc p, .doc ul { margin: 0 0 1rem; }
.doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.doc a { color: var(--teal); text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc .table { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.doc tr:last-child > * { border-bottom: 0; }
.doc thead th { font: 600 .72rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--paper); }
.doc th[scope=row] { width: 34%; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .legal-doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
}
@media (max-width: 560px) { .doc table { min-width: 520px; } .doc table:not(:has(thead)) { min-width: 0; } }
.cookie-prefs[hidden], .cookie[hidden] { display: none; }

/* About / Contact pages */
.page-hero .wrap { display: flex; flex-direction: column; gap: 1rem; }
.page-hero h1 { max-width: 20ch; margin-top: .4rem; }
.page-hero .lede { max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.story { display: flex; flex-direction: column; gap: 1rem; color: var(--ink-2); max-width: 60ch; }
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cert { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.cert-mark { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--mint); font: 700 1.4rem/1 var(--f-display); }
.cert h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.2; margin-bottom: .45rem; }
.cert p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } }
.reach-sec { padding-block: clamp(2rem, 4vw, 3rem); }
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.way { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.way-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--teal); margin-bottom: .5rem; }
.way-ic svg { width: 22px; height: 22px; }
.way h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.way p { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.way a { margin-top: auto; padding-top: .5rem; color: var(--teal); font-weight: 600; text-decoration: none; word-break: break-word; }
.way a:hover { text-decoration: underline; text-underline-offset: 3px; }
.way-note { margin-top: auto; padding-top: .5rem; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ways { grid-template-columns: 1fr; } }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--teal); }


/* ---------- Type scale (applies the --fs-* tokens; keep at the end of the file) ---------- */
.hero h1, .hero-sub h1, .legal-hero h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 600; }
.head h2, .contact h2 { font-size: var(--fs-h2); line-height: 1.05; font-weight: 600; }
.plans .type h3, .issue h3, .svc h3, .case-id h3, .doc h2 { font-size: var(--fs-h3-lg); line-height: 1.15; }
.step h3, .type h3, .links h3, .work h3, .cert h3, .plan h3 { font-size: var(--fs-h3); line-height: 1.2; }
.principle h3, .flow h3, .way h2, .faq summary { font-size: var(--fs-h3-sm); }
.doc h3 { font-size: 1.125rem; }
.issue-grid .issue h3 { font-size: var(--fs-h3); }


/* ---------- Look refresh: white base, clear section rhythm ---------- */
:root { --shadow-lift: 0 1px 2px rgba(24,46,49,.05), 0 18px 40px -22px rgba(24,46,49,.28); }

/* Hero: wider headline column on a faint schematic grid */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#E8EFED 1px, transparent 1px), linear-gradient(90deg, #E8EFED 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); }
.hero .wrap { grid-template-columns: 1.2fr 1fr; }
.hero .lede { max-width: 44ch; }
.hero-sub h1 { max-width: 16ch; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Separate two white sections that sit next to each other */
.cases + #testimonials, .connected + #where-we-work, #recent-work + .connected { border-top: 1px solid var(--line); }
#credentials { background: var(--paper-2); }

/* Plans: a dark band between the white services and case studies */
.plans-sec { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.plans-sec::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(22,97,94,.55), transparent 70%); }
.plans-sec .wrap { position: relative; }
.plans-sec .label { color: var(--mint); }
.plans-sec .head h2 { color: var(--white); }
.plans-sec .head p { color: var(--on-dark); }
.plans { align-items: stretch; }
.plans .type { background: rgba(255,255,255,.04); border-color: var(--line-dark); color: var(--on-dark); }
.plans .type h3 { color: var(--white); }
.plans .type p, .plans .type li { color: var(--on-dark); }
.plans .type ul { border-top-color: var(--line-dark); }
.plans .type li::before { background: var(--mint); }
.plans .plan-tag { color: var(--mint); }
.plans .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.plans .btn.ghost:hover { background: var(--white); color: var(--ink); }
.plans .type.featured { background: var(--white); border-color: var(--white); color: var(--ink); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); transform: translateY(-12px); }
.plans .type.featured h3 { color: var(--ink); }
.plans .type.featured p, .plans .type.featured li { color: var(--ink-2); }
.plans .type.featured ul { border-top-color: var(--line); }
.plans .type.featured li::before { background: var(--teal); }
.plans .type.featured .plan-tag { color: var(--teal); }
.plans .type.featured .btn.mint { background: var(--teal); color: var(--white); }
.plans .type.featured .btn.mint:hover { background: var(--teal-deep); }
.plans .badge { background: var(--mint); color: var(--ink); }
.plans-note { color: var(--on-dark-muted); }
.plans-note a { color: var(--mint); }
@media (max-width: 900px) { .plans .type.featured { transform: none; } }

/* Case studies: results read at a glance */
.metric b { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.metric { border-top-color: var(--teal); }

/* Raised surfaces get one consistent lift */
.shot, form.plan, .way, .cert { box-shadow: var(--shadow-lift); }

/* Closing band on pages without a contact form */
.cta-band { background: var(--teal-deep); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.cta-band h2 { color: var(--white); font-size: var(--fs-h2); line-height: 1.05; max-width: 18ch; }
.cta-band p { margin-top: .8rem; max-width: 48ch; color: var(--on-dark); }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.cta-band .btn.ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Hero diagram assembles on load ----------
   Inputs slide in, wires draw to the hub, the hub switches on,
   outputs appear, then leads start flowing. Pure CSS, no library. */
.map .node, .map .browser { animation: map-in .6s cubic-bezier(.2,.7,.2,1) both; }
.map .node:nth-of-type(1), .map .browser { animation-delay: .45s; }
.map .node:nth-of-type(2) { animation-delay: .57s; }
.map .node:nth-of-type(3) { animation-delay: .69s; }
@keyframes map-in { from { opacity: 0; transform: translateX(-16px); } }

.map .wire-path { stroke-dasharray: 600; animation: wire-draw .8s .75s cubic-bezier(.6,0,.2,1) both; }
.map use.wire-path[href="#p4"], .map use.wire-path[href="#q4"], .map use.wire-path[href^="#b"] { animation-delay: 1.45s; }
@keyframes wire-draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.map .wire-live { animation: flow 1.6s linear infinite, wire-on .5s 1.6s both; }
@keyframes wire-on { from { opacity: 0; } to { opacity: .85; } }

.map .hub { transform-box: fill-box; transform-origin: center; animation: hub-in .7s 1.15s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes hub-in { from { opacity: 0; transform: scale(.55); } }
.map .hub circle.core { animation: hub-on 1s 1.3s ease-out both; }
@keyframes hub-on { from { fill: var(--ink-2); stroke-opacity: .2; } 40% { fill: #1F8A84; } to { fill: var(--teal); stroke-opacity: 1; } }

.map .out { animation: out-in .6s 1.6s cubic-bezier(.2,.7,.2,1) both; }
.map .out:nth-of-type(6) { animation-delay: 1.72s; }
.map .out:nth-of-type(7) { animation-delay: 1.84s; }
@keyframes out-in { from { opacity: 0; transform: translateX(16px); } }

.map .pulse { animation: pulse-on .3s 1.9s both; }
@keyframes pulse-on { from { opacity: 0; } to { opacity: 1; } }
.map .live { animation: pulse-on .4s 1.9s both; }

@media (prefers-reduced-motion: reduce) {
  .map .node, .map .browser, .map .wire-path, .map .hub, .map .hub circle.core, .map .out, .map .live { animation: none; }
  .map .wire-live { animation: none; opacity: .85; }
}

/* ---------- Page transitions (browsers that support cross-page View Transitions) ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: page-out .22s ease-in both; }
::view-transition-new(root) { animation: page-in .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Step 3: supporting motion and micro-interactions ---------- */
/* Scroll reveal (only when JS adds .js-motion, so content is never hidden without it) */
.js-motion .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js-motion .reveal.in { opacity: 1; translate: none; }

/* Services track: line draws, stops light up in turn */
.js-motion .track::before { transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.6,0,.2,1) .15s; }
.js-motion .track.in::before { transform: none; }
.js-motion .svc .dot::after { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.js-motion .track.in .svc:nth-child(1) .dot::after { transform: none; transition-delay: .35s; }
.js-motion .track.in .svc:nth-child(2) .dot::after { transform: none; transition-delay: .85s; }
.js-motion .track.in .svc:nth-child(3) .dot::after { transform: none; transition-delay: 1.35s; }
@media (max-width: 900px) { .js-motion .track::before { transform: scaleY(0); transform-origin: top; } }
.js-motion .links { border-top-color: transparent; position: relative; }
.js-motion .links::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.6,0,.2,1) .1s; }
.js-motion .links.in::after { transform: none; }
@media (max-width: 900px) { .js-motion .links { border-top: 0; border-left-color: var(--teal); } .js-motion .links::after { display: none; } }

/* Counting numbers keep their width steady */
.stat b, .metric b { display: inline-block; }

/* Plan cards: pointer spotlight, lift, badge shimmer */
.plans .type { transition: border-color .3s, box-shadow .3s, translate .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); overflow: hidden; }
.plans .type::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(168,230,190,.16), transparent 70%); }
.plans .type.featured::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(22,97,94,.09), transparent 70%); }
.plans .type:hover::after { opacity: 1; }
.plans .type:not(.featured):hover { border-color: rgba(168,230,190,.45); }
.plans .type > * { position: relative; z-index: 1; }
.plans .badge { position: absolute; z-index: 2; background: linear-gradient(110deg, var(--mint) 40%, #DDF7E6 50%, var(--mint) 60%) 0 0 / 250% 100%; animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* Buttons: small lift and a deeper shadow on hover */
.btn { transition: background .2s, color .2s, box-shadow .25s, transform .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(14,74,71,.6); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Navigation: compacts and gains a soft shadow once you scroll */
.nav .wrap { transition: height .25s ease; }
.nav { transition: border-color .2s, box-shadow .25s; }
.nav.scrolled { box-shadow: 0 8px 24px -18px rgba(24,46,49,.35); }
.nav.scrolled .wrap { height: 62px; }

/* FAQ: answers open smoothly; the plus turns into a close mark */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary::after { transition: transform .3s ease, background .3s, color .3s; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq summary:hover { color: var(--teal); }

/* Form: fields ease into focus; success gets an animated tick */
.field input, .field textarea, .phone select { transition: border-color .2s, box-shadow .2s; }
.plan .done { display: flex; gap: .8rem; align-items: center; }
.plan .done::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; animation: tick .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes tick { from { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  .plans .badge { animation: none; }
  .btn:hover { transform: none; }
  .faq details::details-content { transition: none; }
  .plan .done::before { animation: none; }
}

/* ---------- Dark header with the mint logo ---------- */
:root { --nav-bg: #10262A; }
.nav { background: color-mix(in srgb, var(--nav-bg) 95%, transparent); border-bottom-color: transparent; }
.nav.scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.nav .logo img { display: block; height: 34px; width: auto; }
.nav-links a, .sub-toggle { color: var(--on-dark); }
.nav-links a:hover, .sub-toggle:hover { color: var(--white); }
.nav-links a::after { background: var(--mint); }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--mint); }
.nav .btn { background: var(--mint); color: var(--ink); }
.nav .btn:hover { background: var(--white); color: var(--ink); }
.menu-btn { color: var(--white); }
.nav .sub a { color: var(--ink); }
.nav .sub-all a { color: var(--teal); }
@media (max-width: 860px) {
  .nav-links { background: var(--nav-bg); border-bottom-color: var(--line-dark); }
  .nav .sub { border-left-color: var(--mint); }
  .nav .sub a, .nav .sub b { color: var(--on-dark); }
  .nav .sub-all a { color: var(--mint); }
}
.foot .logo img { display: block; height: 40px; width: auto; }

/* ---------- Scroll story: "The real issue" diagram ---------- */
.scatter .joined { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.scatter .hub-new { opacity: 0; }
.scatter .hub-new circle { fill: var(--teal); stroke: var(--mint); stroke-width: 2; }
.scatter .hub-new text { fill: var(--white); font: 600 12.5px var(--f-display); text-anchor: middle; }
.scatter .sub.good { opacity: 0; fill: var(--teal); }
.scatter .cap-good { display: none; }
.scatter.story .joined { stroke-dashoffset: calc(160 * (1 - var(--p, 0))); }
.scatter.story .broken { opacity: clamp(0, calc(1 - var(--p, 0) * 1.6), 1); }
.scatter.story .q { opacity: clamp(0, calc(1 - var(--p, 0) * 2.2), 1); }
.scatter.story .sub.bad { opacity: clamp(0, calc((.75 - var(--p, 0)) * 4), 1); }
.scatter.story .sub.good { opacity: clamp(0, calc((var(--p, 0) - .7) * 4), 1); }
.scatter.story .hub-new { opacity: clamp(0, calc((var(--p, 0) - .55) * 3), 1); transform-box: fill-box; transform-origin: center; transform: scale(calc(.6 + .4 * clamp(0, calc((var(--p, 0) - .55) * 2.3), 1))); }
.scatter .frag rect { transition: stroke .4s, fill .4s; }
.scatter.joined-up .frag rect { stroke: var(--teal); stroke-width: 1.5; }
.scatter.joined-up .cap-bad { display: none; }
.scatter.joined-up .cap-good { display: inline; color: var(--teal); }
svg .sub { display: inline; }  /* SVG labels share the .sub class name with the menu dropdown */

/* ---------- Fixes (Oct 2) ---------- */
.plan .done[hidden] { display: none; }
.steps-4 .step { min-width: 0; }
@media (max-width: 820px) { .steps-4 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .metric { border-top: 1px solid rgba(22, 97, 94, .3); }
  .foot > div:last-child { grid-column: 1 / -1; }
}
.foot h4 { line-height: 1.5; }
.legal ul { gap: .45rem 1.4rem; line-height: 1.4; }
.legal { gap: .7rem 1rem; }
