/* ============================================================
   SirWay — bento redesign, v4 (Hugo)
   Palette taken from the SirWay logo: black wordmark, teal and
   olive-green road shapes, a red tie. Warm off-white surfaces.
   Bento at every breakpoint: on small screens the grid narrows
   to two columns rather than collapsing into a single stack.
   ============================================================ */

/* Self-hosted variable fonts (SIL OFL, see fonts/LICENSE-*.txt): the same latin + latin-ext
   subsets Google Fonts serves, so nothing is requested from Google. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-teal: #e3f0f1;
  --surface-green: #eef1dc;
  --surface-dark: #111517;
  --surface-dark-2: #1a2326;
  --ink: #101315;
  --ink-soft: #4a5257;
  --ink-faint: #7f888d;
  --ink-inverse: #f4f6f6;
  --ink-inverse-soft: #aab6b8;
  --teal: #208894;
  --teal-deep: #16646d;
  --teal-bright: #35a7b3;
  --teal-light: #8fd0d7;
  --green: #94a034;
  --green-ink: #6c7722;
  --green-light: #d6de8a;
  --red: #c82c14;
  --line: #e3e1d8;
  --line-strong: #d2cfc2;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 19, 21, 0.04), 0 6px 24px -8px rgba(16, 19, 21, 0.08);
  --shadow-lift: 0 2px 4px rgba(16, 19, 21, 0.05), 0 18px 40px -12px rgba(16, 19, 21, 0.16);

  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gap: 16px;
  --pad: 28px;
  --section-gap: 104px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { left: 12px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 12px 10px 20px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--surface-teal); color: var(--ink); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff !important; font-weight: 600;
  padding: 9px 18px !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--teal-deep) !important; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}

/* ---------- bento primitives ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  color: inherit;
}
.tile.is-hover:hover, a.tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: var(--line-strong); text-decoration: none;
}
.tile--teal { background: var(--surface-teal); border-color: #cfe2e4; }
.tile--green { background: var(--surface-green); border-color: #dfe3c4; }
.tile--dark {
  background: linear-gradient(160deg, var(--surface-dark-2), var(--surface-dark) 70%);
  border-color: #2a3438; color: var(--ink-inverse);
}
.tile--dark h2, .tile--dark h3 { color: #fff; }
.tile--dark a { color: var(--teal-light); }
.tile--dark .btn--light { color: var(--ink); }
.tile--dark .btn--light:hover { color: var(--ink); }
.tile--flush { padding: 0; }

.s-2 { grid-column: span 2; }
.s-3 { grid-column: span 3; }
.s-4 { grid-column: span 4; }
.s-5 { grid-column: span 5; }
.s-6 { grid-column: span 6; }
.s-7 { grid-column: span 7; }
.s-8 { grid-column: span 8; }
.s-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }

/* ---------- shared text bits ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--red); flex: none; }
.tile--dark .kicker { color: var(--ink-inverse-soft); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 32px; margin: var(--section-gap) 0 26px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.tie { color: var(--red); }   /* the red "i" from the logo */
.section-head .lede { max-width: 56ch; color: var(--ink-soft); }
.section-head > div:first-child { display: grid; gap: 12px; }

.sub-head {
  font-size: 15px; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  margin: 40px 0 16px; display: flex; align-items: center; gap: 14px;
}
.sub-head::after { content: ""; flex: 1; border-top: 1px dashed var(--line-strong); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 13px 24px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--teal-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-green); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #a82310; color: #fff; }
.btn--quiet { background: transparent; color: var(--ink-inverse-soft); border-color: transparent; padding-inline: 14px; }
.btn--quiet:hover { color: #fff; }
.btn--onphoto { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.btn--onphoto:hover { background: #fff; color: var(--ink); }
.btn svg { flex: none; }
.btn .count {
  font-family: var(--font-mono); font-size: 12px; background: var(--surface-teal); color: var(--teal-deep);
  border-radius: 999px; padding: 2px 8px;
}

/* ============================================================ HERO ============================================================ */
.hero { margin-top: 26px; }

.tile--photo { padding: 0; background: var(--surface-dark); border-color: #2a3438; }
.hero-main { min-height: 480px; display: flex; }
.hero-main .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-main::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, rgba(12, 18, 20, 0.86) 0%, rgba(12, 18, 20, 0.62) 46%, rgba(12, 18, 20, 0.9) 100%);
}
.hero-body {
  position: relative; z-index: 2; align-self: flex-end;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 44px; width: 100%;
}
.hero-body .kicker { color: var(--green-light); }
.hero-body .kicker::before { background: var(--green-light); }
.hero-main h1 {
  color: #fff; font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
}
.hero-main .sub { font-size: 18px; color: rgba(255, 255, 255, 0.84); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* rotating headline phrase — all variants stack in one grid cell so
   the line never reflows as the word changes */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator .rw {
  grid-area: 1 / 1; justify-self: start; white-space: nowrap; color: var(--green-light);
  opacity: 0; transform: translateY(0.26em);
  transition: opacity 0.45s ease, transform 0.45s ease;
  border-bottom: 4px solid rgba(214, 222, 138, 0.4);
  padding-bottom: 0.04em;
}
.rotator .rw.is-on { opacity: 1; transform: none; }
.rotator .rw.is-out { opacity: 0; transform: translateY(-0.26em); }

/* road tile with traffic */
.hero-road { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 250px; }
.hero-road svg.road { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-road .label { position: relative; }
.hero-road h2 { font-size: 20px; max-width: 18ch; letter-spacing: -0.01em; }
.hero-road::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(17, 21, 23, 0) 0%, rgba(17, 21, 23, 0.86) 62%);
}
.hero-road .label { z-index: 1; }
@keyframes dash-roll { to { stroke-dashoffset: -64; } }
.road .centerline { stroke-dasharray: 26 38; animation: dash-roll 2.6s linear infinite; }
.road .v-down { fill: #f3f6f6; }
.road .v-down.v-truck { fill: var(--green-light); }
.road .v-up { fill: var(--teal-light); }

.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.stat .num {
  font-family: var(--font-mono); font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.stat .num sup { font-size: 0.45em; color: var(--red); }
.stat .what { font-size: 14px; color: var(--ink-soft); max-width: 22ch; }
/* hero stat tiles: the number is the point — big and centred */
.hero .stat {
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  text-align: center; gap: 6px;
}
.hero .stat .num { font-size: clamp(60px, 6.4vw, 96px); letter-spacing: -0.05em; }
/* caption gets a fixed height so both numbers sit at the same level */
.hero .stat .what { max-width: 18ch; font-size: 14.5px; line-height: 1.4; min-height: calc(1.4em * 3); align-self: start; }

.funders {
  margin-top: var(--gap);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px;
  padding: 20px var(--pad);
}
.funders .lead-in {
  flex: 1 0 100%; text-align: center; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-faint);
}
.chip {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 7px 15px; white-space: nowrap;
}

/* ============================================================ ABOUT ============================================================ */
.problem { display: flex; flex-direction: column; gap: 16px; }
.problem h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; }
.problem > p { color: var(--ink-soft); }
.problem .figures { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.figure {
  flex: 1 1 150px; border: 1px solid var(--line); background: var(--bg);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.figure .v { font-family: var(--font-mono); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; display: block; }
.figure .v.bad { color: var(--red); }
.figure .v.good { color: var(--green-ink); }
.figure .k { font-size: 13px; color: var(--ink-soft); margin-top: 2px; display: block; line-height: 1.45; }

.pave-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.pave-quote .big {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.18;
}
.pave-quote .big em { font-style: normal; color: var(--teal-deep); }
.pave-quote .btn { align-self: flex-start; }

.who { display: grid; gap: 18px; align-content: start; }
.service { display: flex; flex-direction: column; gap: 14px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how li { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-soft); align-items: baseline; }
.how li b { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.service h3 { font-size: 19px; }
.service p { font-size: 14.5px; color: var(--ink-soft); }

.icon-disc {
  width: 46px; height: 46px; flex: none; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--surface-teal); color: var(--teal);
}
.tile--dark .icon-disc { background: rgba(255, 255, 255, 0.09); color: var(--green-light); }
.tile--teal .icon-disc { background: #fff; }

/* ============================================================ WHERE WE WORK (MAP) ============================================================ */
.map-tile { display: grid; gap: 18px; }
.map-wrap { width: 100%; }
.worldmap { width: 100%; height: auto; display: block; }
.worldmap .m-idle path, .worldmap .m-idle circle { fill: #1f282c; stroke: #2a3438; stroke-width: 0.8; }
.worldmap .m-region path, .worldmap .m-region circle {
  fill: #2f5d66; stroke: #3f7a84; stroke-width: 0.8;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.worldmap .m-region, .worldmap .bubble { cursor: pointer; }
.worldmap .m-region.is-live path, .worldmap .m-region.is-live circle { fill: var(--teal); stroke: var(--teal-light); }
.worldmap .m-region.is-on path, .worldmap .m-region.is-on circle { fill: var(--teal-bright); stroke: #bfe6ea; }
.worldmap .bubble .halo { fill: rgba(214, 222, 138, 0.32); r: 30; }
.worldmap .bubble .disc { fill: var(--green-light); stroke: var(--surface-dark); stroke-width: 2; r: 20; transition: fill 0.2s ease; }
.worldmap .bubble text { font-family: var(--font-mono); font-weight: 700; font-size: 20px; fill: var(--ink); }
.worldmap .bubble.is-live .disc, .worldmap .bubble.is-on .disc { fill: #fff; }
@keyframes pin-pulse { 0% { transform: scale(0.6); opacity: 1; } 70% { transform: scale(1.7); opacity: 0; } 100% { transform: scale(1.7); opacity: 0; } }
.worldmap .bubble .halo { transform-box: fill-box; transform-origin: center; animation: pin-pulse 3.4s ease-out infinite; }
.worldmap .bubble:nth-child(2) .halo { animation-delay: 0.6s; }
.worldmap .bubble:nth-child(3) .halo { animation-delay: 1.2s; }
.worldmap .bubble:nth-child(4) .halo { animation-delay: 1.8s; }
.worldmap .bubble:nth-child(5) .halo { animation-delay: 2.4s; }
.worldmap .bubble:nth-child(6) .halo { animation-delay: 3.0s; }
.worldmap .office circle { fill: #fff; stroke: var(--surface-dark); stroke-width: 1.6; r: 6; }
.worldmap .office--hq circle { fill: var(--red); }

.map-foot { display: grid; gap: 12px; }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.rg {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-inverse-soft);
  background: rgba(255, 255, 255, 0.05); border: 1px solid #2f3d42;
  border-radius: 999px; padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.rg b {
  font-family: var(--font-mono); font-size: 12px; color: var(--green-light);
  background: rgba(214, 222, 138, 0.14); border-radius: 999px; padding: 2px 8px;
}
.rg:hover, .rg:focus-visible, .rg.is-live { color: #fff; border-color: #6ea6ae; background: rgba(32, 136, 148, 0.28); }
.rg[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.rg[aria-pressed="true"] b { background: var(--surface-green); color: var(--green-ink); }
.map-note { font-size: 12.5px; color: #8a979a; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.office-key { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-inverse-soft); }
.office-key .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.4px solid var(--surface-dark); display: inline-block; }
.office-key .dot--hq { background: var(--red); }

/* ============================================================ SOLUTIONS ============================================================ */
.product-big { display: flex; flex-direction: column; gap: 12px; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-big h3, .product-big h2 { font-size: clamp(21px, 2vw, 25px); letter-spacing: -0.02em; margin-top: 4px; }
.product-big > p { font-size: 15px; color: var(--ink-soft); }
.product-big .tag, .svc .tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-deep);
  background: var(--surface-teal); border-radius: 999px;
  padding: 5px 11px; align-self: flex-start; white-space: nowrap;
}
.product-big .offer-link { margin-top: auto; padding-top: 8px; }
.product-big--compact h3 { font-size: 18px; }
.product-big--compact > p { font-size: 14px; }

.svc { display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 19px; letter-spacing: -0.015em; }

.offer-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; align-self: flex-start; color: var(--teal);
}
a.tile:hover .offer-link { text-decoration: underline; text-underline-offset: 3px; }

/* hand-drawn icons: uneven paths pushed further by an SVG
   displacement filter so the strokes read as pen, not vector */
.hd-icon {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  color: var(--green-ink);
}
.hd-icon .hd { width: 100%; height: 100%; filter: url(#sketch); }
.product-big:nth-child(2n) .hd-icon .hd, .svc:nth-child(2n) .hd-icon .hd { filter: url(#sketch2); }
.product-big:nth-child(2n) .hd-icon, .svc:nth-child(3n) .hd-icon { color: var(--teal); }
.svc:nth-child(4n) .hd-icon { color: var(--ink); }
.hd-icon--light { color: var(--green-light); }

/* question-led tiles: name in the pill, the client's question as the heading, one answer, keyword chips */
.kw { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw li {
  font-size: 12.5px; font-weight: 600; color: var(--green-ink);
  background: var(--surface-green); border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.product-big .answer, .svc .answer { font-size: 15px; color: var(--ink-soft); }
.product-big h3.ask { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.22; }
.svc h3.ask { font-size: 18.5px; line-height: 1.25; }
.svc .answer { font-size: 14px; }
.svc .answer b { color: var(--ink); }
.svc .kw { margin-top: auto; padding-top: 6px; }
.product-big .tag, .svc .tag { font-weight: 700; text-align: right; white-space: normal; max-width: 60%; }
/* ============================================================ ASSESSMENT ============================================================ */
.quiz { display: grid; gap: 20px; align-content: start; min-height: 470px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quiz-dots { display: flex; gap: 7px; list-style: none; margin: 0; padding: 0; }
.quiz-dots li {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); transition: background 0.2s ease, transform 0.2s ease;
}
.quiz-dots li.on { background: var(--green-light); }
.quiz-dots li.done { background: rgba(214, 222, 138, 0.45); }

.quiz form { display: grid; gap: 18px; }
.quiz .q { display: none; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.quiz .q.is-on { display: grid; gap: 10px; }
.quiz legend {
  padding: 0; font-size: clamp(20px, 2.2vw, 25px); font-weight: 700;
  letter-spacing: -0.02em; color: #fff; line-height: 1.2; margin-bottom: 6px;
}
.quiz .q label {
  display: flex; align-items: flex-start; gap: 13px;
  border: 1px solid #2f3d42; border-radius: var(--radius-sm);
  padding: 14px 17px; cursor: pointer; font-size: 15px;
  color: var(--ink-inverse-soft);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.quiz .q label:hover { border-color: #4c6067; background: rgba(255, 255, 255, 0.04); color: #fff; }
.quiz .q input { accent-color: var(--green-light); margin: 4px 0 0; flex: none; }
.quiz .q label:has(input:checked) {
  border-color: var(--green-light); background: rgba(214, 222, 138, 0.12); color: #fff;
}
.quiz-hint { font-size: 13px; color: var(--ink-inverse-soft); min-height: 20px; }
.quiz-hint.warn { color: var(--green-light); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.quiz-lead, .quiz-done { display: grid; gap: 12px; align-content: start; }
.quiz-lead h3, .quiz-done h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; }
.quiz-lead > p, .quiz-done > p { font-size: 15px; color: var(--ink-inverse-soft); max-width: 56ch; }
.done-mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-light); color: var(--ink);
}
.lead-form { display: grid; gap: 10px; margin-top: 6px; }
.lead-form > label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-inverse-soft);
}
.lead-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-row input {
  flex: 1 1 240px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid #2f3d42;
  border-radius: 999px; padding: 13px 20px;
}
.lead-row input::placeholder { color: #74858a; }
.lead-row input:focus { outline: none; border-color: var(--green-light); background: rgba(255, 255, 255, 0.1); }
.lead-note { font-size: 12.5px; color: #8a979a; }
.lead-done { font-size: 14px; color: var(--green-light); font-weight: 600; }
.lead-done.warn { color: #f0a08f; }
.lead-form .quiz-nav { justify-content: flex-start; }
.restart { justify-self: start; padding-left: 0; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }

.levels { display: grid; gap: 16px; align-content: start; }
.level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.level-list li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid rgba(108, 119, 34, 0.3); }
.level-list li b { font-size: 14.5px; letter-spacing: -0.01em; }
.level-list li span { font-size: 13.5px; color: var(--ink-soft); }

/* ============================================================ WORK & NEWS ============================================================ */
.work-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin: 26px 0 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-count { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); }

/* every card is the same height as the others in its row: the grid
   stretches them and the title/summary are clamped to a fixed number
   of lines, so nothing depends on how long a given entry is */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.entry { display: flex; flex-direction: column; color: inherit; height: 100%; }
.entry .photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; flex: none; }
.entry .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.entry:hover .photo img { transform: scale(1.04); }
.entry .body { flex: 1; padding: 20px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 10px; }
.entry .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint);
}
.badge {
  font-weight: 700; color: var(--teal-deep); background: var(--surface-teal);
  border-radius: 999px; padding: 3px 10px; letter-spacing: 0.08em;
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
}
.badge--news { color: var(--green-ink); background: var(--surface-green); }
.entry .ttl {
  font-size: 18.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entry .sum {
  font-size: 14.5px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entry .more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; color: var(--teal);
}
.entry:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.entry:hover { text-decoration: none; }

.work-more { display: flex; justify-content: center; margin-top: 22px; }

/* ============================================================ POST / SOLUTION PAGES ============================================================ */
body.is-sub main { padding-top: 26px; }
.page-head, .post-head { display: grid; gap: 14px; margin: 0 0 26px; max-width: 76ch; }
.page-head h1, .post-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.page-head .lede, .post-head .lede { color: var(--ink-soft); font-size: 17px; max-width: 60ch; }
.post-head .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint);
}
.post-figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.post-facts { display: grid; gap: 18px; align-content: start; }
.post-facts dl { margin: 0; display: grid; gap: 12px; }
.post-facts dl div { display: grid; gap: 2px; }
.post-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-inverse-soft); }
.post-facts dd { margin: 0; font-weight: 600; color: #fff; }
.post-facts .btn { justify-self: start; }
.sol-features { display: grid; gap: 18px; align-content: start; }
.sol-features .hd-icon { width: 64px; height: 64px; }
.sol-cases { margin-top: 16px; font-size: 14px; color: var(--ink-inverse-soft); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.sol-cases .kicker { margin: 0; }
.sol-cases a { color: var(--green-light); font-weight: 600; text-decoration: none; }
.sol-cases a:hover { text-decoration: underline; }
.sol-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.prose { display: grid; gap: 14px; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 10px; }
.prose h3 { font-size: 18px; color: var(--ink); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose a { font-weight: 600; }
.prose em { color: var(--ink-faint); }
.post-more-head { margin-top: 64px; }
.post-more-head h2 { font-size: clamp(24px, 3vw, 32px); }

/* ============================================================ TEAM CAROUSEL ============================================================ */
.carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.car-track {
  list-style: none; margin: 0; padding: 6px 2px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > li { scroll-snap-align: start; }
.car-btn {
  width: 44px; height: 44px; flex: none; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.car-btn:hover { background: var(--ink); color: #fff; }
.car-rail {
  grid-column: 2; height: 4px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.car-thumb { display: block; height: 100%; width: 30%; border-radius: 999px; background: var(--ink); transition: transform 0.2s ease, width 0.2s ease; }

.person { padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; height: 100%; }
.person img.face {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--surface-teal);
}
.person .who { display: grid; gap: 1px; }
.person .who b { font-size: 15px; letter-spacing: -0.01em; }
.person .who span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.person .li { margin-top: auto; color: var(--ink-faint); display: inline-flex; padding: 4px; border-radius: 8px; }
.person .li:hover { color: var(--teal); }
.person.is-placeholder { border-style: dashed; }
.person.is-placeholder .who span { font-style: italic; color: var(--ink-faint); }

/* ============================================================ FAQ ============================================================ */
.faq-col { display: grid; gap: var(--gap); align-content: start; }
details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px var(--pad); font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
}
details.faq summary::-webkit-details-marker { display: none; }
.faq-side { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.aud {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--surface-teal); border-radius: 999px; padding: 3px 9px;
}
.aud--partner { color: var(--green-ink); background: var(--surface-green); }
details.faq summary .ind {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; background: var(--surface-teal); color: var(--teal);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
details.faq[open] summary .ind { transform: rotate(45deg); background: var(--ink); color: #fff; }
details.faq .a { padding: 0 var(--pad) 22px; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }

.why-tile { display: grid; gap: 16px; align-self: start; }
.why-tile h3 { font-size: 22px; letter-spacing: -0.02em; }
.why-tile > p { font-size: 14.5px; color: var(--ink-inverse-soft); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.why-list li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; }
.why-list li svg { flex: none; margin-top: 3px; color: var(--green-light); }
.why-tile .btn { justify-self: start; }
.quiet-link { font-size: 14px; font-weight: 600; }

/* ============================================================ CONTACT ============================================================ */
.contact-form { display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(32, 136, 148, 0.16);
}
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--ink-faint); max-width: 40ch; }

.contact-card { display: grid; gap: 18px; align-content: start; }
.contact-card .row-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-card .row-item .icon-disc { width: 40px; height: 40px; }
.contact-card .row-item b {
  display: block; font-size: 13px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint);
  font-weight: 500; margin-bottom: 2px;
}
.contact-card .row-item span, .contact-card .row-item a { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact-card .row-item a:hover { color: var(--teal); }
.contact-card .wa {
  display: inline-flex; margin-left: 8px; font-size: 13px !important; font-weight: 600 !important;
  color: var(--teal-deep) !important; background: #fff; border-radius: 999px; padding: 3px 10px;
}
.contact-card .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contact-card .socials a {
  display: inline-flex; align-items: center;
  font-size: 13.5px !important; font-weight: 600 !important; color: var(--ink) !important;
  border: 1px solid #cfe2e4; background: #fff;
  padding: 6px 13px; border-radius: 999px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card .socials a:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-1px); }

.branches-tile { display: grid; gap: 16px; align-content: start; }
.branches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.branches li { display: flex; gap: 11px; font-size: 14px; color: var(--ink-inverse-soft); align-items: flex-start; }
.branches li svg { flex: none; margin-top: 3px; color: var(--green-light); }
.branches li b { color: #fff; font-weight: 600; display: block; font-size: 14.5px; }

.colophon {
  margin: 34px 0 40px; padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px; color: var(--ink-faint);
}

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road .centerline, .worldmap .bubble .halo { animation: none; }
  .car-track { scroll-behavior: auto; }
  .rotator .rw { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE — the bento stays a bento.
   ============================================================ */
@media (max-width: 1020px) {
  .s-2 { grid-column: span 3; }
  .s-3 { grid-column: span 6; }
  .s-4, .s-5, .s-7 { grid-column: span 6; }
  .s-6, .s-8 { grid-column: span 12; }
  .hero-main { grid-column: span 12; min-height: 420px; }
  .hero-road { grid-column: span 12; min-height: 220px; }
  .faq-col { grid-column: span 12; }
  .why-tile { grid-column: span 12; }
  .quiz { grid-column: span 12; }
  .levels { grid-column: span 12; }
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 12px;
  }
  .site-nav.open a { display: block; text-align: center; padding: 12px; }
  .site-header .bar { position: relative; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; --gap: 12px; --section-gap: 64px; --radius: 18px; --radius-sm: 12px; }

  /* two-column bento instead of a single stack of loose boxes */
  .bento { grid-template-columns: repeat(2, 1fr); }
  .s-2, .s-3 { grid-column: span 1; }
  .s-4, .s-5, .s-6, .s-7, .s-8, .s-12 { grid-column: span 2; }
  .r-2 { grid-row: span 1; }

  .container { width: calc(100% - 28px); }
  .site-header { padding: 10px 0; }
  .site-header .bar { padding: 8px 8px 8px 14px; }
  .brand img { height: 28px; }

  /* hero: text anchored to the tile, not floating in an empty box */
  .hero { margin-top: 16px; }
  .hero-main { min-height: 0; flex-direction: column; }
  .hero-main .hero-bg { position: relative; height: 190px; flex: none; }
  .hero-main::after { bottom: auto; height: 190px; background: linear-gradient(180deg, rgba(12,18,20,0.5) 0%, rgba(12,18,20,0.85) 100%); }
  .hero-body { padding: 18px 20px 24px; gap: 14px; background: var(--surface-dark); }
  .hero-main h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-main .sub { font-size: 15.5px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; padding-inline: 16px; }

  .hero-road { min-height: 190px; padding: 18px 20px; justify-content: flex-end; }
  .hero-road h2 { font-size: 16px; max-width: none; }
  .hero-road::after { height: 100%; background: linear-gradient(180deg, rgba(17,21,23,0) 0%, rgba(17,21,23,0.55) 42%, rgba(17,21,23,0.95) 78%); }

  .stat { gap: 8px; }
  .stat .num { font-size: 28px; }
  .hero .stat .num { font-size: 44px; }
  .stat .what { font-size: 12.5px; max-width: none; }

  .funders { gap: 8px; padding: 16px 20px; }
  .funders .lead-in { flex: 1 0 100%; margin: 0 0 2px; }
  .chip { font-size: 12.5px; padding: 6px 12px; }

  .section-head { margin-bottom: 18px; gap: 10px; }
  .problem .figures { gap: 8px; }
  .how li { grid-template-columns: 1fr; gap: 2px; }
  .figure { flex: 1 1 100%; padding: 12px 14px; }
  .figure .v { font-size: 22px; }

  .work-grid { grid-template-columns: 1fr; }
  .hd-icon { width: 46px; height: 46px; }

  .quiz { min-height: 0; }
  .quiz-nav .btn { flex: 1 1 auto; justify-content: center; }
  .lead-form .quiz-nav .btn { flex: 0 0 auto; }

  .map-tile { padding: 20px 16px; }
  .worldmap .bubble text { font-size: 24px; }
  .worldmap .bubble .disc { r: 25; }
  .worldmap .bubble .halo { r: 36; }
  .worldmap .office circle { r: 7.5; }
  .rg { font-size: 13px; padding: 7px 12px; }

  .work-bar { margin: 18px 0 14px; }
  .entry .photo { aspect-ratio: 16 / 9; }

  .carousel { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .car-track { grid-auto-columns: 62%; padding-bottom: 10px; }
  .car-rail { grid-column: 1; }

  .contact-form .row { grid-template-columns: 1fr; }
  .branches { gap: 10px 22px; }
  .post-figure img { min-height: 200px; }
  .colophon { margin-bottom: 28px; }
}

@media (max-width: 420px) {
  .s-2, .s-3 { grid-column: span 2; }
  .hero .stat { display: flex; flex-direction: row; align-items: baseline; justify-content: flex-start; text-align: left; gap: 14px; }
  .hero .stat .what { flex: 1; max-width: none; min-height: 0; }
  .car-track { grid-auto-columns: 78%; }
}
