/* =====================================================================
   CodEase 2.0 — the chosen direction · MONOLITH+
   Monolith (the real mark as one sculpted, reliable system; dark studio, one spotlight),
   with Orbit's flows in the pillar map.
   ===================================================================== */
:root {
  --bg: #000E21;
  --bg-2: #00122A;
  --panel: #000A19;
  --panel-2: #001024;
  --text: #EAF2FB;
  --muted: #90A5BF;
  --faint: #5F7794;
  --blue: #009FF6;
  --blue-300: #5CC3FA;
  --navy: #001D3F;
  --line: rgb(var(--line-rgb) / .12);
  --line-2: rgb(var(--line-rgb) / .22);
  --signal: #FF8A3D;
  --sans: "Mona Sans", system-ui, sans-serif;
  --label: "Hubot Sans", "Mona Sans", system-ui, sans-serif;
  --display: var(--sans);                                 /* headlines */
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* surfaces and inks (the Monolith+ styles in /styles/ override these) */
  --accent: var(--blue);                                  /* large accent text */
  --on-blue: #001226;                                     /* text on a blue fill */
  --tint: 255 255 255;                                    /* hover and wash fills, as rgb */
  --line-rgb: 160 200 240;
  --surface: rgba(0, 14, 34, .9);                         /* the legend */
  --chip: rgba(0, 18, 42, .84);                           /* projected labels */
  --soft: rgba(0, 18, 42, .55);                           /* list chips */
  --form-bg: rgba(0, 18, 42, .6);
  --field: rgba(0, 10, 25, .7);
  --hdr: rgba(0, 10, 25, .94);
  --hdr-open: rgba(0, 10, 25, .97);
  --card: linear-gradient(180deg, rgba(0, 12, 30, .86), rgba(0, 12, 30, .95));   /* phone copy cards */
  --card-panel: linear-gradient(180deg, rgba(0, 12, 30, .9), rgba(0, 12, 30, .96));
  --halo: rgba(0, 8, 22, .85);
  --shadow: rgba(0, 0, 0, .7);
  --shadow-s: rgba(0, 8, 20, .5);
  --btn-hover: #fff;
  --logo-filter: invert(1);                               /* black client logos → white */
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 22px; --pill: 999px;
  /* the studio */
  --studio-bg: radial-gradient(120% 90% at 50% 120%, #00142C 0%, var(--bg) 60%), var(--bg);
  --spot-rgb: 0 90 160;
  --spot-core: rgba(92, 195, 250, .12);
  --warm-glow: rgba(255, 138, 61, .2);
  --vignette: rgba(0, 4, 12, .7);
  --floor-glow: rgba(0, 159, 246, .14);
  --fallback-shadow: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(0, 159, 246, .35));
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
#main { position: relative; z-index: 2; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }
.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 { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--blue); color: var(--bg); border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 11.5px/1.3 var(--label); font-stretch: 115%; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 20px; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 750; font-stretch: 118%; max-width: 16ch; }
.h-xl { font-size: clamp(40px, 5.4vw, 80px); max-width: 13ch; }
.body { color: var(--muted); font-size: 17.5px; max-width: 54ch; }

/* ---------- studio ---------- */
.studio { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  --sx: 22vw; --sy: 0px; --spot: .55;
  background: var(--studio-bg); }
.spot { position: absolute; inset: 0; transition: opacity .6s;
  background:
    radial-gradient(520px 460px at calc(50% + var(--sx)) calc(44% + var(--sy)), rgb(var(--spot-rgb) / var(--spot)), transparent 70%),
    radial-gradient(260px 200px at calc(50% + var(--sx)) calc(42% + var(--sy)), var(--spot-core), transparent 70%); }
.spot::after { content: ""; position: absolute; inset: 0; opacity: var(--warm, 0); background: radial-gradient(440px 380px at calc(50% + var(--sx)) calc(46% + var(--sy)), var(--warm-glow), transparent 70%); }
.studio::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 40%, transparent 55%, var(--vignette)); }
#gl, #flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* #flow sits under #gl: requests pass behind the solid parts */
#gl { opacity: 0; transition: opacity 1s var(--ease); }
.studio.gl-ok #gl { opacity: 1; }
#flow { pointer-events: none; }
.fallback { position: absolute; left: calc(50% + var(--sx)); top: 44%; width: min(30vw, 380px); transform: translate(-50%, -50%) rotate(-6deg); filter: var(--fallback-shadow); transition: opacity .6s; }
.fallback svg { display: block; width: 100%; height: auto; }
.studio.gl-ok .fallback { opacity: 0; }
.floorglow { position: absolute; left: calc(50% + var(--sx)); top: calc(66% + var(--sy)); width: 520px; height: 120px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--floor-glow), transparent); }

/* projected captions */
.callout { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; transition: opacity .35s; will-change: transform; }
.callout.on { opacity: 1; }
.callout i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 20%, transparent), 0 0 24px color-mix(in srgb, var(--blue) 80%, transparent); }
.callout i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 88px; height: 1px; background: linear-gradient(90deg, var(--blue-300), color-mix(in srgb, var(--blue-300) 20%, transparent)); transform: rotate(-37.6deg); transform-origin: 0 0; }
.callout span { position: absolute; left: 74px; top: -76px; white-space: nowrap; padding: 8px 12px; border-radius: var(--pill); background: var(--chip); border: 1px solid var(--line-2); font: 600 12px/1 var(--label); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.callout.flip i::after { transform: rotate(-142.4deg); }
.callout.flip span { left: auto; right: 74px; }
.plabels { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity .45s; }
.plabels.on { opacity: 1; }
.pl { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border-radius: var(--pill); background: var(--chip); border: 1px solid var(--line-2); will-change: transform; transition: border-color .3s, box-shadow .3s; }
.pl i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue-300); font: 700 10.5px/1 var(--label); font-style: normal; letter-spacing: .04em; }
.pl b { font: 700 14px/1.2 var(--sans); font-stretch: 110%; color: var(--text); white-space: nowrap; }
.pl.pl-core { padding: 9px 15px; background: var(--blue); border-color: rgba(217, 240, 254, .55); box-shadow: 0 10px 30px var(--shadow-s), 0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent); }
.pl.pl-core b { color: var(--on-blue); }
.pl.hot { border-color: color-mix(in srgb, var(--blue-300) 70%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 12%, transparent), 0 0 30px color-mix(in srgb, var(--blue) 30%, transparent); }
/* the orbit: satellite nodes and the two sides of the marketplace */
.olabels { position: absolute; inset: 0; z-index: 3; }
.sl, .anc { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; opacity: 0; }
.sl { font: 600 10.5px/1.2 var(--label); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.sl.hot { color: var(--blue-300); }
.olabels:not(.hub) .on-map, .olabels.hub .on-ch { display: none; }
.anc { display: inline-flex; align-items: center; gap: 10px; font: 650 11.5px/1 var(--label); font-stretch: 115%; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.anc i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent), 0 0 14px var(--blue-300); }
.anc[data-anc="s"] i { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent), 0 0 14px var(--blue); }
@media (max-width: 899px) { .callout, .plabels, .sl { display: none; } .anc { font-size: 9.5px; gap: 7px; letter-spacing: .12em; } }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: var(--hdr); border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand img { display: block; height: 23px; width: auto; }
.nav { display: flex; gap: 28px; font: 500 14.5px/1 var(--sans); font-stretch: 108%; color: var(--muted); }
.nav a { padding: 8px 0; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: translateX(-50%) scale(1); }
.hdr-act { display: flex; align-items: center; gap: 14px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.seg button { all: unset; cursor: pointer; padding: 7px 11px; border-radius: var(--pill); font: 600 11px/1 var(--label); letter-spacing: .1em; color: var(--muted); }
.seg button.is-active { background: var(--text); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--blue); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 1080px) {
  .nav, .hdr-act .btn-sm { display: none; }
  .burger { display: inline-block; }
  .mnav { display: grid; position: absolute; inset: 74px 0 auto 0; padding: 8px 24px 28px; background: var(--hdr-open); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
  .mnav a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 24px/1.2 var(--display); font-stretch: 115%; }
  .mnav .btn { margin-top: 18px; justify-content: center; font-size: 16px; border-bottom: 0; }
  .hdr.is-open .mnav { opacity: 1; visibility: visible; transform: none; }
  .hdr.is-open { background: var(--hdr-open); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--pill); background: var(--text); color: var(--bg); font: 650 15.5px/1 var(--sans); font-stretch: 108%; border: 1px solid var(--text); cursor: pointer; transition: background .2s, color .2s, box-shadow .25s; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { background: var(--btn-hover); box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 12%, transparent); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgb(var(--tint) / .06); box-shadow: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.capterra { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.capterra:hover { color: var(--text); }
.stars { color: #FFB547; letter-spacing: 2px; font-size: 13px; }

/* ---------- object sections (transparent over the studio) ---------- */
.os { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 96px 0 72px; }
.os > .wrap { width: min(1320px, calc(100% - 64px)); }
.col { max-width: 560px; }
.col-r { margin-left: auto; }
.hero { flex-direction: column; justify-content: center; align-items: stretch; padding: 120px 0 34px; }
.hero > .wrap:first-child { flex: 1; display: flex; align-items: center; }
.hero .col { max-width: 640px; }                        /* the tagline's longest word sets the lockup's width */
.hero h1 { font-size: clamp(46px, 6.2vw, 96px); line-height: .92; letter-spacing: -.04em; font-weight: 800; font-stretch: 122%; margin-bottom: 26px; max-width: 11ch; }
.hero h1 > span { display: block; }
/* sized in em of the h1, so the lockup scales as one: one line as wide as the tagline's longest word */
.hero-k { font-size: .41em; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); margin-bottom: .4em; }
.cat { font: 600 clamp(18px, 1.5vw, 21px)/1.35 var(--sans); font-stretch: 106%; margin-bottom: 14px; max-width: 34ch; }
.lead { color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-foot { display: flex; justify-content: space-between; gap: 20px; }
.spec { font: 600 11px/1.4 var(--label); font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.spec-r { text-align: right; }

.num { font: 600 12px/1.3 var(--label); font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 16px; }
.num span { color: var(--muted); margin-left: 8px; }
.chapter .col { max-width: 610px; }
.chapter h3 { font-size: clamp(34px, 4.1vw, 60px); line-height: .98; letter-spacing: -.035em; font-weight: 800; font-stretch: 120%; margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; margin-bottom: 20px; }
.feat { margin: 0; border-top: 1px solid var(--line); }
.feat > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feat dt { font-weight: 650; font-stretch: 106%; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feat dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.feat-2 { margin-top: 24px; }
.nodes { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.nodes span { font: 600 11px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; padding: 9px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--muted); transition: color .35s, border-color .35s, box-shadow .35s; }
.nodes span.hot { color: var(--blue-300); border-color: color-mix(in srgb, var(--blue-300) 60%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--blue) 25%, transparent); }

.map { align-items: flex-start; min-height: 100vh; padding-top: 118px; }
.map-in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.map-h { text-align: center; }
.map-h h2 { max-width: 24ch; margin: 0 auto; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; }
.map-sub { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font: 600 clamp(16px, 1.3vw, 19px)/1.4 var(--sans); font-stretch: 106%; }
/* while the hub forms, the heading crosses the sculpture: a soft halo keeps it legible */
.map-h h2, .map-h .eyebrow { text-shadow: 0 2px 18px var(--halo), 0 0 42px color-mix(in srgb, var(--halo) 82%, transparent); }
.legend { align-self: flex-start; max-width: 460px; padding: 22px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
/* with the 3D studio running, the projected labels carry the map on desktop; the legend stays for screen readers */
@media (min-width: 900px) {
  html.ce-gl .map .legend { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.legend ul { display: grid; gap: 0; }
.legend li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.legend li:first-child { border-top: 0; }
.legend li b { font-weight: 650; }
.legend li > span { color: var(--muted); text-align: right; }

.vrow { min-height: 100vh; }
.vrow h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; font-stretch: 118%; margin-bottom: 16px; }
.value .os-head { min-height: 100vh; }
.value .os-head .body { margin-top: 18px; }

.connect { margin-top: 28px; }
.connect ul { display: flex; flex-wrap: wrap; gap: 8px; }
.connect li { font: 600 12px/1 var(--label); letter-spacing: .06em; padding: 10px 13px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--text); background: var(--soft); }

.aud { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aud li { padding: 15px 16px; border-radius: calc(var(--r-m) + 2px); border: 1px solid var(--line); background: var(--soft); font-weight: 600; font-stretch: 106%; line-height: 1.3; }

.eras { display: grid; gap: 0; border-top: 1px solid var(--line); }
.eras li { display: grid; grid-template-columns: 60px 1fr; gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.eras span { font: 600 12px/1.6 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); grid-row: span 2; }
.eras b { font: 800 clamp(24px, 2.6vw, 38px)/1.05 var(--display); font-stretch: 120%; letter-spacing: -.03em; }
.eras small { color: var(--muted); font-size: 14.5px; }
.eras .past b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.eras .now span { color: var(--blue-300); }
.eras .now b { color: var(--text); }
.closing { margin-top: 28px; font: 750 clamp(22px, 2.3vw, 32px)/1.2 var(--display); font-stretch: 112%; letter-spacing: -.02em; }
.signals { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.signals li { font: 600 11px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- panels (opaque, cover the studio) ---------- */
/* content pages live in the studio too (no opaque bands sliding over the sculpture): the mark steps back to the right
   edge as a dark relief while they are read */
.panel { position: relative; z-index: 3; padding: clamp(80px, 9vw, 130px) 0; }
@media (min-width: 900px) {
  .panel:not(.ftr) { min-height: 100vh; display: flex; align-items: center; padding: 96px 0 64px; }
  html.snap { scroll-snap-type: y mandatory; }
  html.snap [data-stop], html.snap .panel:not(.ftr) { scroll-snap-align: start; scroll-snap-stop: always; }
  html.snap .ftr { scroll-snap-align: end; }
}
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (min-width: 900px) { .stats { min-height: 100vh; display: flex; align-items: center; } .stats > .wrap { width: min(1320px, calc(100% - 64px)); } }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.nums li { padding: 28px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.nums li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.nums strong { font: 800 clamp(48px, 6vw, 96px)/.9 var(--display); font-stretch: 125%; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.nums li:first-child strong { color: var(--accent); }
.nums span { color: var(--muted); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; } .nums li:nth-child(3) { padding-left: 0; border-left: 0; } .nums li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; } }
@media (max-width: 440px) { .nums { grid-template-columns: 1fr; } .nums li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; } }

.compare h2 { margin-bottom: 40px; }
.tbl { border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 17px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { border-top: 0; font: 600 11px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: rgb(var(--tint) / .02); }
.tbl tbody th { font-weight: 650; }
.tbl td { color: var(--muted); }
.tbl .ce { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--text); font-weight: 600; }
.tbl thead .ce img { height: 17px; width: auto; display: block; }
@media (max-width: 860px) { .tbl { overflow-x: auto; } .tbl table { min-width: 720px; } }

.cases-h { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; align-items: last baseline; margin-bottom: 44px; }
/* the headline figure: the number, its caption's last line and the heading share one baseline (bottoms where last
   baseline isn't supported); the caption has its own measure and wraps in balanced lines beside the number */
.big { display: flex; align-items: flex-end; align-items: last baseline; gap: 16px; color: var(--muted); }
.big strong { flex: none; font: 800 clamp(40px, 4.4vw, 64px)/1 var(--display); font-stretch: 122%; color: var(--accent); letter-spacing: -.04em; }
.big span { max-width: 31ch; line-height: 1.35; text-wrap: balance; }
.case-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); scrollbar-width: none; }
.case-grid::-webkit-scrollbar { display: none; }
.case-grid:focus-visible { outline-offset: 4px; }
.case { scroll-snap-align: start; padding: 26px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-height: 360px; transition: background .3s; }
.rail-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.rn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.rn:hover { background: rgb(var(--tint) / .06); border-color: rgb(var(--line-rgb) / .4); }
.rn[disabled] { opacity: .35; cursor: default; }
.rail-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 2px; transform-origin: 0 0; transition: transform .35s var(--ease), width .35s var(--ease); }
.case:hover { background: color-mix(in srgb, var(--blue) 5%, transparent); }
.case-logo { height: 30px; display: flex; align-items: center; }
.case-logo img { max-height: 30px; max-width: 150px; width: auto; filter: var(--logo-filter); opacity: .85; }
.case-n { font: 600 11px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.case-m { font: 750 20px/1.18 var(--display); font-stretch: 112%; letter-spacing: -.015em; }
.case-t { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 640px) { .cases-h { grid-template-columns: 1fr; } .big { flex-direction: column; align-items: flex-start; gap: 8px; } }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: 36px; }
.quotes figure { margin: 0; padding-top: 30px; border-top: 1px solid var(--line-2); display: grid; gap: 26px; align-content: space-between; }
.quotes blockquote { margin: 0; }
.quotes p { font: 600 clamp(20px, 1.9vw, 27px)/1.36 var(--display); font-stretch: 104%; letter-spacing: -.015em; }
.quotes figcaption { display: flex; align-items: center; gap: 16px; }
.quotes figcaption img { height: 22px; width: auto; filter: var(--logo-filter); opacity: .85; }
.quotes figcaption > span { display: grid; font-size: 14px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line-2); }
.quotes figcaption b { color: var(--text); font-size: 15px; }
.capterra-l { padding: 13px 20px; border: 1px solid var(--line-2); border-radius: var(--pill); gap: 12px; }
.capterra-l b { color: var(--text); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.logos h2 { margin-bottom: 40px; }
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-row li { display: grid; place-items: center; height: 120px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-row img { max-height: 40px; max-width: 78%; width: auto; filter: var(--logo-filter); opacity: .6; transition: opacity .3s; }
.logo-row li:hover img { opacity: 1; }
@media (max-width: 860px) { .logo-row { grid-template-columns: repeat(3, 1fr); } .logo-row li { height: 96px; } }
@media (max-width: 480px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }

.part-h { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.ptypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.ptypes article { padding: 26px 26px 0 0; display: grid; gap: 12px; align-content: start; }
.ptypes article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.ptypes h3 { font: 750 24px/1.1 var(--display); font-stretch: 115%; letter-spacing: -.02em; }
.ptypes p { color: var(--muted); font-size: 15.5px; }
.plist { margin-top: 40px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); }
.plist .eyebrow { margin: 0; }
.plist ul { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1; }
.plist li { font: 650 16px/1.3 var(--sans); font-stretch: 108%; }
@media (max-width: 860px) { .part-h { grid-template-columns: 1fr; gap: 18px; } .ptypes { grid-template-columns: 1fr; } .ptypes article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; } }

.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 20px; }
.cdl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.cdl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cdl dt { font: 600 11px/1.6 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cdl dd { margin: 0; display: grid; gap: 3px; }
.cdl a:hover { color: var(--blue-300); }
.form { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--form-bg); }
.form label { display: grid; gap: 8px; font: 600 11px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 12px 15px; text-transform: none; letter-spacing: 0; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.form .cf-turnstile { display: flex; justify-content: center; margin: 4px 0; min-height: 65px; }
.form .btn { justify-content: center; }
.form .note { font-size: 13px; color: var(--faint); text-align: center; text-wrap: balance; }
.form .sent-t { display: block; color: var(--text); }
.note-act { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note-act:hover { text-decoration-thickness: 2px; }
.note-act .done, .note-act.is-done .idle { display: none; }
.note-act.is-done { text-decoration: none; cursor: default; }
.note-act.is-done .done { display: inline; }
.note-act.is-done .done::before { content: "✓ "; content: "✓ " / ""; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cdl > div { grid-template-columns: 1fr; gap: 4px; } }

.ftr { padding: 56px 0 96px; box-shadow: none; }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; }
.ftr-b img { height: 24px; width: auto; margin-bottom: 16px; }
.ftr-b p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.ftr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; color: var(--muted); font-size: 15px; }
.ftr-nav a:hover { color: var(--text); }
.ftr-m { display: grid; gap: 16px; justify-items: end; color: var(--faint); font-size: 13px; }
@media (max-width: 860px) { .ftr-in { grid-template-columns: 1fr; } .ftr-m { justify-items: start; } }

/* ---------- tablet / mobile: the sculpture sits above the copy ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .col, .hero .col { max-width: 480px; }
}
@media (max-width: 899px) {
  .fallback { left: 50%; top: 24%; width: min(46vw, 230px); }
  .os { min-height: 0; padding: 56vh 0 64px; align-items: flex-end; }
  .hero { padding: 104px 0 30px; min-height: 100svh; }
  .hero > .wrap:first-child { align-items: flex-end; padding-top: 34vh; }
  .panel { padding: 64px 0; }
  .panel > .wrap { padding: 24px 20px; border-radius: var(--r-xl); background: var(--card-panel); border: 1px solid var(--line); }
  .ftr.panel > .wrap { background: none; border: 0; padding: 0; }
  .os .col, .os .col-r { margin-left: 0; max-width: none; padding: 26px 22px; border-radius: var(--r-xl);
    background: var(--card); border: 1px solid var(--line); }
  .hero .col { padding: 24px 20px; }
  .hero-foot { display: none; }
  .map { padding-top: 56vh; align-items: flex-end; }
.map .map-in { padding: 24px 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.map-h { text-align: left; }
.map-h h2 { margin: 0; }
  .map .legend { background: none; border: 0; padding: 0; }
  .vrow { min-height: 0; }
  .map { min-height: 0; }
  .map-in { gap: 22px; }
  .legend { max-width: none; align-self: stretch; }
  .hero-foot { flex-direction: column; gap: 6px; }
  .spec-r { text-align: left; }
}

/* ---------- desktop pages fit one screen at any window height: type and spacing scale with the height too ---------- */
@media (min-width: 900px) {
  .os { padding: clamp(78px, 10.6vh, 96px) 0 clamp(36px, 8vh, 72px); }
  .panel:not(.ftr) { padding: clamp(78px, 10.6vh, 96px) 0 clamp(32px, 7vh, 64px); }
  .hero { padding: clamp(78px, 11.6vh, 120px) 0 clamp(16px, 3.2vh, 34px); }
  .hero h1 { font-size: clamp(42px, min(6.2vw, 10.1vh), 96px); margin-bottom: clamp(14px, 2.6vh, 26px); }
  .cat { font-size: clamp(16px, min(1.5vw, 2.3vh), 21px); margin-bottom: clamp(8px, 1.4vh, 14px); }
  .lead { font-size: clamp(15px, 1.95vh, 17px); margin-bottom: clamp(16px, 3vh, 30px); }
  .cta { margin-bottom: clamp(12px, 2.6vh, 26px); }
  h2 { font-size: clamp(30px, min(4.2vw, 6.6vh), 60px); }
  .h-xl { font-size: clamp(36px, min(5.4vw, 8.8vh), 80px); }
  .eyebrow { margin-bottom: clamp(12px, 2.1vh, 20px); }
  .body { font-size: clamp(15px, 1.95vh, 17.5px); }
  .chapter h3 { font-size: clamp(30px, min(4.1vw, 6.5vh), 60px); margin-bottom: clamp(10px, 1.9vh, 18px); }
  .num { margin-bottom: clamp(8px, 1.7vh, 16px); }
  .lede { font-size: clamp(15.5px, min(1.4vw, 2.2vh), 20px); margin-bottom: clamp(10px, 2.1vh, 20px); }
  .feat > div { padding: clamp(6px, 1.3vh, 12px) 0; }
  .feat dt { font-size: clamp(15px, 1.85vh, 17px); }
  .feat dd { font-size: clamp(13.5px, 1.72vh, 15.5px); line-height: 1.5; }
  .nodes { margin-top: clamp(10px, 2.1vh, 20px); }
  .vrow h3 { font-size: clamp(28px, min(3.4vw, 5.4vh), 48px); }
  .map { padding-top: clamp(84px, 12.6vh, 118px); }
  .map-h h2 { font-size: clamp(26px, min(3.2vw, 5.2vh), 48px); }
  .map-sub { margin-top: clamp(8px, 1.5vh, 14px); font-size: clamp(15px, 2vh, 19px); }
  .feat-2 { margin-top: clamp(12px, 2.6vh, 24px); }
  .connect { margin-top: clamp(14px, 3vh, 28px); }
  .aud { margin-top: clamp(14px, 3vh, 28px); }
  .aud li { padding: clamp(10px, 1.7vh, 15px) 16px; }
  .eras li { padding: clamp(9px, 1.8vh, 16px) 0; }
  .eras b { font-size: clamp(22px, min(2.6vw, 4.2vh), 38px); }
  .closing { margin-top: clamp(14px, 3vh, 28px); font-size: clamp(20px, min(2.3vw, 3.6vh), 32px); }
  .signals { margin-top: clamp(10px, 2.2vh, 20px); }
  .nums strong { font-size: clamp(44px, min(6vw, 10vh), 96px); }
  .compare h2, .logos h2 { margin-bottom: clamp(18px, 4vh, 40px); }
  .tbl th, .tbl td { padding: clamp(9px, 1.8vh, 17px) 20px; }
  .cases-h { margin-bottom: clamp(18px, 4vh, 44px); }
  .case { min-height: 0; padding: clamp(18px, 2.8vh, 26px) 24px clamp(20px, 3.2vh, 30px); }
  .quotes { margin-bottom: clamp(18px, 3.8vh, 36px); }
  .quotes p { font-size: clamp(18px, min(1.9vw, 2.9vh), 27px); }
  .logo-row li { height: clamp(78px, 13vh, 120px); }
  .part-h { margin-bottom: clamp(18px, 4vh, 40px); }
  .ptypes article { padding-top: clamp(16px, 2.8vh, 26px); }
  .plist { margin-top: clamp(18px, 4vh, 40px); padding-top: clamp(14px, 2.6vh, 26px); }
  .contact h2 { margin-bottom: clamp(10px, 2vh, 20px); }
  .cdl { margin-top: clamp(14px, 2.8vh, 28px); }
  .cdl > div { padding: clamp(6px, 1.2vh, 11px) 0; }
  .form { gap: clamp(9px, 1.5vh, 14px); padding: clamp(18px, 3.2vh, 34px); }
  .form input, .form textarea { padding: clamp(9px, 1.4vh, 12px) 15px; }
  .form textarea { height: clamp(70px, 11vh, 110px); }
}
