/* Breakpoints (mobile-first)
   < 640px   mobile (base)
   ≥ 640px   sm  — large phones / small tablets
   ≥ 768px   md  — iPad portrait
   ≥ 1024px  lg  — laptops / iPad landscape
   ≥ 1280px  xl  — desktop
   ≥ 1536px  2xl — large monitors
*/

/* Jost, served from this site (assets/fonts/jost/, with its SIL Open Font
   License) instead of Google Fonts, so no visitor's IP goes to Google just
   to draw the text. One variable file per subset covers every weight the
   site uses (200-500); unicode-range means the latin-ext file only loads
   if a page needs one of its characters. Same files and settings Google
   served. The latin file is preloaded in each page's <head>. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url("assets/fonts/jost/jost-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url("assets/fonts/jost/jost-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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Scroll-reveal initial state — applied only when JS is available,
   so content stays visible if scripts fail to load. */
.js [data-reveal],
.js [data-reveal-item] {
  opacity: 0;
}

:root {
  --base: min(100vw, 1440px);

  /* Theme colors — dark by default */
  --bg: #000000;
  --fg: #fafafa;
  --placeholder: #1a1a1a;

  /* Only paint property we still animate per-element is text color (small
     area). The full-page background flip is done via the GPU-composited
     .theme-bg opacity crossfade, not background-color. */
  --theme-transition: color 1s ease;
}

/* Inverted (light) theme — toggled once "Media budgets are investment
   capital…" (.efficiency-title) scrolls into view */
body.theme-light {
  --bg: #f4f3ef;
  --fg: #0a0a0a;
  --placeholder: #e6e5e0;
}

body {
  background-color: #000000;
  min-height: 100vh;
}

/* Fixed full-screen light layer, crossfaded via opacity (composited on the
   GPU = zero repaint). The dark base is the body background underneath. */
.theme-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #f4f3ef;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

body.theme-light .theme-bg {
  opacity: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: block;
  margin: 0 auto;
  padding-top: calc(var(--base) * 48 / 1440);
  width: calc(var(--base) * 5 / 100);
  height: auto;
  opacity: 0;
  animation: heroLineIn 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.nav {
  margin-top: calc(var(--base) * 56 / 1440);
  display: flex;
  justify-content: center;
}

/* Gap between links is padding, not flex `gap` — a larger, more forgiving
   hoverable box per link. Behavior mirrors Thoma Bravo's header nav: each
   link fades independently between a dimmed default and full brightness on
   its own hover — no cross-link dimming, so there's nothing for one link's
   hover state to interrupt on another. */
.nav-link {
  position: relative;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 110%;
  letter-spacing: 0.3em;
  color: var(--fg);
  opacity: 0.6;
  text-decoration: none;
  padding: 0 calc(var(--base) * 24 / 1440) calc(var(--base) * 4 / 1440);
  transition: var(--theme-transition), opacity 0.3s ease;
  /* Same page-load entrance as the hero lines below, staggered left to
     right. Fill mode "both", not just "forwards": the static opacity above
     is 0.6 (its resting dimmed state), which doesn't match the animation's
     0 starting point the way it does for the other hero elements (theirs
     is a plain 0 either way) — with only "forwards", that mismatch showed
     as the links flashing visible at 0.6 during animation-delay, then
     snapping to 0 once the animation actually started. "both" applies the
     from-keyframe during the delay too. Ends at 0.6, not 1 — a JS cleanup
     (see script near the theme-flip logic) drops the animation once it
     finishes, handing opacity back to the plain :hover rule below. Without
     that, animation-fill-mode would keep "winning" the cascade over :hover
     forever, since a filled animation outranks a normal rule. */
  animation: navLinkIn 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.nav-link:nth-child(1) { animation-delay: 0.15s; }
.nav-link:nth-child(2) { animation-delay: 0.22s; }
.nav-link:nth-child(3) { animation-delay: 0.29s; }
.nav-link:nth-child(4) { animation-delay: 0.36s; }

.nav-link:hover {
  opacity: 1;
}

/* Menu button — phones only (< 640px, see the Phones block at the end). */
.nav-toggle {
  display: none;
}

@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 0.6;
    transform: translateY(0);
  }
}

/* The hero stretches down so the ticker sits on the bottom edge of the
   first screen and the Clients heading under it never shows before the
   visitor scrolls, whatever the screen's height. --hero-above (header +
   the hero's top margin) and --hero-below (the ticker with its margin) are
   measured by the script after the ticker; without it the fallbacks make
   the min-height 0 — the natural height. 100svh is the screen with the
   browser bars showing, i.e. the first screen on load (100vh: fallback for
   browsers without svh). The content centres in the extra height. Phones
   do it differently — see the Phones block. */
.hero {
  margin-top: calc(var(--base) * 104 / 1440);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--hero-above, 100vh) - var(--hero-below, 0px));
  min-height: calc(100svh - var(--hero-above, 100svh) - var(--hero-below, 0px));
}

.hero-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 4rem;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--fg);
  text-align: center;
  transition: var(--theme-transition);
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headline: five unbreakable chunks and the <br>s between them; only the
   breaks of the current layout (data-lines, picked by the script under the
   <h1>) show — see the comment above the <h1> for the three layouts. */
.hero-title[data-lines="2"] .hero-br:not(.hero-br--2),
.hero-title[data-lines="3"] .hero-br:not(.hero-br--3),
.hero-title[data-lines="4"] .hero-br:not(.hero-br--4) {
  display: none;
}

/* inline-block: a chunk never breaks inside, and it can take the fade-up's
   transform (an inline box can't). */
.hero-chunk {
  display: inline-block;
  opacity: 0;
  animation: heroLineIn 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.55s;
}

/* Line by line: every chunk starts with the line it sits on in the current
   layout, 0.15s per line (the old two-line timing), so a line's chunks rise
   together. Line 1 (0.55s) is the default above. */
.hero-title[data-lines="2"] .hero-chunk--c,
.hero-title[data-lines="2"] .hero-chunk--d,
.hero-title[data-lines="2"] .hero-chunk--e,
.hero-title[data-lines="3"] .hero-chunk--b,
.hero-title[data-lines="3"] .hero-chunk--c,
.hero-title[data-lines="4"] .hero-chunk--b {
  animation-delay: 0.7s;
}

.hero-title[data-lines="3"] .hero-chunk--d,
.hero-title[data-lines="3"] .hero-chunk--e,
.hero-title[data-lines="4"] .hero-chunk--c,
.hero-title[data-lines="4"] .hero-chunk--d {
  animation-delay: 0.85s;
}

.hero-title[data-lines="4"] .hero-chunk--e {
  animation-delay: 1s;
}

/* Subtitle and button keep following the headline's last line: each extra
   line pushes them 0.15s later (0.85s / 1s with two lines). */
.hero-title[data-lines="3"] ~ .hero-subtitle { animation-delay: 1s; }
.hero-title[data-lines="3"] ~ .contact-btn { animation-delay: 1.15s; }
.hero-title[data-lines="4"] ~ .hero-subtitle { animation-delay: 1.15s; }
.hero-title[data-lines="4"] ~ .contact-btn { animation-delay: 1.3s; }

.hero-subtitle {
  margin-top: calc(var(--base) * 56 / 1440);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-align: center;
  opacity: 0;
  animation: heroLineIn 1s cubic-bezier(0.65, 0, 0.35, 1) 0.85s forwards;
  transition: var(--theme-transition);
}

/* A hyphenated word kept whole — wrapping text never breaks it at its
   hyphen ("investment-" / "grade"). */
.no-break {
  white-space: nowrap;
}

.contact-btn {
  margin-top: calc(var(--base) * 56 / 1440);
  display: inline-block;
  padding: calc(var(--base) * 24 / 1440) calc(var(--base) * 32 / 1440);
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.3em;
  color: var(--fg);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  animation: heroLineIn 1s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.7s ease;
}

.contact-btn:hover {
  background-color: var(--fg);
  color: var(--bg);
}

.ticker {
  margin-top: calc(var(--base) * 104 / 1440);
  width: 100%;
  overflow: hidden;
  padding: calc(var(--base) * 24 / 1440) 0;
  opacity: 0;
  animation: heroLineIn 1s cubic-bezier(0.65, 0, 0.35, 1) 1.15s forwards;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 calc(var(--base) * 40 / 1440);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* Dark-theme colour only, no colour transition: the ticker can still be on
     screen when the theme flips, and repainting the whole moving band every
     frame for a second made the scroll stutter. The light-theme colour is a
     cloned overlay crossfaded via opacity (.theme-overlay-text). */
  color: #fafafa;
  white-space: nowrap;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Clients — client names right under the ticker (the logo wall this
   replaced is archived in _archive/clients-v1/). Starts in the dark zone;
   the light theme flips on once .efficiency-title enters the screen, while
   the list is still in view — so the heading and names recolour through
   cloned overlays (.theme-overlay-text), like the rest of the flip-zone
   text, not through a colour transition.
   Jost caps set tight, flowing down balanced columns (not grid rows): 3
   across, 2 from 899px down. In rows a one-line name stood next to a
   three-line one with a hole under it; in columns each name just follows
   the one above. */
.clients {
  width: 100%;
  background-color: transparent;
  padding: calc(var(--base) * 160 / 1440) 0 0;
}

.clients-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
}

/* Without JS: plain CSS columns, which balance on their own. */
.clients-list {
  --clients-cols: 3;
  --clients-gap: max(16px, calc(var(--base) * 32 / 1440));
  list-style: none;
  columns: var(--clients-cols);
  column-gap: var(--clients-gap);
}

/* With JS: a column-wrapping flexbox whose height the script sets to the
   one CSS columns would balance to (see the Clients script near </body>).
   Safari mis-paints animated items inside CSS columns — the name at the
   top of a column (Rutgers) vanished or jumped to the foot of the previous
   column while it faded in, on hover and on the theme flip. Flexbox has no
   such bug, and the names land in the same places. */
.clients-list.is-balanced {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  columns: auto;
}

.clients-list.is-balanced > .client {
  width: calc((100% - (var(--clients-cols) - 1) * var(--clients-gap)) / var(--clients-cols));
}

/* The gap under a name is padding inside its unbreakable box, so a column
   never starts with a stray gap or splits a name across two columns. */
.client {
  break-inside: avoid;
  padding-bottom: max(12px, calc(var(--base) * 24 / 1440));
}

.client-name {
  display: block;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(20px, calc(var(--base) * 44 / 1440), 44px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  /* Dark-theme colour only, no colour transition: seventeen big names
     repainted every frame for the second the theme flips made the scroll
     stutter. The light-theme colour is a dark clone inside each name,
     crossfaded via opacity (.theme-overlay-text). */
  color: #fafafa;
  /* Names rest muted and light up to full on hover, like the nav links
     (0.6 → 1). Opacity rather than a grey, so it mutes both themes: the
     clone sits inside the name and is muted along with it. On the inner
     span, not on .client: the scroll reveal leaves an inline opacity on
     .client that would beat these rules. */
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* The dark clone inside each name (.theme-overlay-text) stays on its own
   compositor layer for good, not only while it fades. When the layer
   appeared just for the theme flip, the browser moved the names onto new
   layers mid-flip and back after it: the letters shifted a pixel and back,
   and names still rising in moved in whole-pixel steps. */
.client-name > .theme-overlay-text {
  will-change: opacity;
}

/* Mouse/trackpad only — on touch a tap would leave the name lit. The ">"
   keeps it off the clone, which is a .client-name too (one level deeper)
   and must stay hidden on the dark theme. */
@media (hover: hover) {
  .client:hover > .client-name {
    opacity: 1;
  }
}

.efficiency {
  width: 100%;
  background-color: transparent;
  padding: calc(var(--base) * 160 / 1440) 0 calc(var(--base) * 64 / 1440);
}

.efficiency-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: calc(var(--base) * 32 / 1440);
  align-items: start;
}

.efficiency-label {
  margin-top: calc(var(--base) * 12 / 1440);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  /* Dark-theme color. The light-theme color is a cloned overlay (.theme-overlay-text)
     crossfaded via opacity — paint-free, see the JS that builds the clones. */
  color: #fafafa;
}

.efficiency-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 115%;
  letter-spacing: 0;
  color: #fafafa;
}

.insights {
  width: 100%;
  background-color: transparent;
  padding: calc(var(--base) * 40 / 1440) 0 calc(var(--base) * 120 / 1440);
}

.insights-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--base) * 40 / 1440);
}

.insight-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* Sizes inside the illustrations (dots, marker, cursor, chart label) are
     drawn in this box's own units: --ill is one design px of the 346.667px
     card at 1440, so they keep their proportion to the picture whatever its
     width — three cards across, or one wide card when zoomed in. */
  container-type: inline-size;
  --ill: calc(100cqw / 346.667);
  /* Fallback tone showing through any transparent area of the SVG (and
     while its artwork is still a placeholder comment) — same role the old
     flat .insight-icon background played. */
  background-color: var(--placeholder);
  transition: var(--theme-transition), background-color 1s ease;
}

.insight-anim {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Per-shape hooks for the pasted-in vector artwork, e.g.:
     .insight-anim--compass .needle { transform-origin: 240px 150px; }
     .insight-anim--compass.is-in-view .needle { animation: compassSwing 3s ease-in-out infinite; }
   Keep loops gated on .is-in-view (toggled by the ScrollTrigger hook below)
   so nothing animates — and burns battery — off-screen. See stella.systems'
   .stella-pulse / .flow-dots-march for the same pattern (CSS @keyframes on
   inline SVG shapes, GSAP/ScrollTrigger only for the on-enter gating). */
.insight-anim__art {
  transform-box: fill-box;
}

/* --- "Investment-Grade Rigor" stat chart (graph-curve-line.svg + mockup) --- */

.insight-chart {
  --chart-marker-size: calc(var(--ill) * 7.5);
  --chart-tooltip-gap: calc(var(--ill) * 12);
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-chart__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-chart__path {
  fill: none;
  stroke: #cccccc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-chart__label {
  position: absolute;
  left: 4%;
  top: 4%;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: calc(var(--ill) * 28);
  color: #cccccc;
  /* Fixed-width digit glyphs — so as the number changes every frame, each
     digit's own column stays put instead of the whole string re-kerning
     (see the JS zero-padding in formatValue() for the other half of this:
     keeping the digit COUNT fixed too, not just each digit's width). */
  font-variant-numeric: tabular-nums;
}

/* Pulls the "S" of "ROAS" 1% of the font size closer to the "A". A margin,
   not letter-spacing: Jost kerns the A-S pair itself (by about -0.03em), and
   Chrome drops that built-in kerning the moment letter-spacing is non-zero —
   so asking for -0.01em there actually ends up 2% WIDER. A margin leaves the
   font's own kerning intact and just shifts what follows. */
.insight-chart__label-kern {
  margin-right: -0.01em;
}

/* Marker + tooltip are moved to the SAME point (the point on the curve,
   read via path.getPointAtLength — see the script near </body>), by the JS
   through the `translate` property — these two transforms are what split
   one coordinate into "centered on the point" vs "floating above it", so
   the JS only ever has one number to set per axis. (The tooltip's x is
   clamped to stay inside the card.) */
.insight-chart__marker {
  position: absolute;
  width: var(--chart-marker-size);
  height: var(--chart-marker-size);
  border-radius: 50%;
  background-color: var(--fg);
  transform: translate(-50%, -50%);
  transition: var(--theme-transition), background-color 1s ease;
}

.insight-chart__tooltip {
  position: absolute;
  /* Up from the point by half the marker (to clear its top edge) plus a
     fixed gap, then its own full height (measured from the bottom, so a
     wider/taller value string never pushes it further from the marker). */
  transform: translate(-50%, calc(-100% - (var(--chart-marker-size) / 2) - var(--chart-tooltip-gap)));
  padding: calc(var(--ill) * 8) calc(var(--ill) * 14);
  border-radius: 999px; /* matches .contact-btn's pill shape */
  /* JS locks a fixed px `width` (the widest the cycle's text ever gets) so
     the pill stops resizing frame to frame — border-box so that width
     includes this padding, matching the offsetWidth it was measured with. */
  box-sizing: border-box;
  text-align: center;
  background-color: var(--fg);
  color: var(--bg);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: calc(var(--ill) * 14);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: var(--theme-transition), background-color 1s ease, color 1s ease;
}

/* --- "Institutional Marketing Discipline" slider animation --- */

.insight-sliders {
  --slider-thumb-width: calc(var(--ill) * 7.5);
  --slider-cursor-width: calc(var(--ill) * 25);
  --slider-cursor-height: calc(var(--ill) * 29);
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-sliders__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-sliders__line {
  stroke: #cccccc;
  stroke-width: 3;
  stroke-linecap: round;
}

.insight-sliders__thumb {
  position: absolute;
  width: var(--slider-thumb-width);
  height: calc(var(--ill) * 20);
  border-radius: calc(var(--slider-thumb-width) / 2);
  background-color: var(--fg);
  transform: translate(-50%, -50%);
  transition: var(--theme-transition), background-color 1s ease;
}

.insight-sliders__cursor {
  position: absolute;
  z-index: 2;
  width: var(--slider-cursor-width);
  height: var(--slider-cursor-height);
}

/* --- "Private Equity Logic for Digital Growth" scatter plot --- */

.insight-scatter {
  --scatter-dot-size: calc(var(--ill) * 7.5);
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-scatter__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.insight-scatter__line {
  stroke: #cccccc;
  stroke-width: 3;
}

/* Same diameter as the stat chart's marker and the slider thumbs' width —
   one dot size shared across all three cards. */
.insight-scatter__dot {
  position: absolute;
  width: var(--scatter-dot-size);
  height: var(--scatter-dot-size);
  border-radius: 50%;
  background-color: var(--fg);
  transform: translate(-50%, -50%);
  transition: var(--theme-transition), background-color 1s ease;
}

.insight-title {
  margin-top: calc(var(--base) * 24 / 1440);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 120%;
  letter-spacing: 0;
  color: #fafafa;
}

.insight-text {
  margin-top: calc(var(--base) * 20 / 1440);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: #fafafa;
}

/* xl — desktop */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* Comparison section — a black rounded box (always dark) sitting on the light
   themed page, with two parallel columns compared row-by-row. */
.compare {
  max-width: 1280px;
  margin: 0 auto;
  /* Same side padding as .insights-inner / .efficiency-inner so the box edges
     line up with the content (columns) above. */
  padding: 0 calc(var(--base) * 80 / 1440) calc(var(--base) * 120 / 1440);
}

.compare-box {
  /* Optical compensation: a dark box on a light page reads smaller than it is,
     so widen it 10% beyond the content line (5% bleed each side), kept centred. */
  width: 110%;
  margin-left: -5%;
  background-color: #000000;
  border-radius: calc(var(--base) * 32 / 1440);
  padding: calc(var(--base) * 120 / 1440);
}

.compare-inner {
  max-width: 936px;
  margin: 0 auto;
}

.compare-intro {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 135%;
  letter-spacing: 0;
  color: #fafafa;
  margin-bottom: calc(var(--base) * 128 / 1440);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--base) * 96 / 1440);
  row-gap: calc(var(--base) * 48 / 1440);
  align-items: start;
}

.compare-col-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 0;
  color: #fafafa;
  padding-bottom: calc(var(--base) * 16 / 1440);
  border-bottom: 1px solid rgba(250, 250, 250, 0.15);
}

.compare-point-title {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0;
  color: #fafafa;
  margin-bottom: calc(var(--base) * 12 / 1440);
}

.compare-point-text {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  /* Right (House of ROI) column — brighter/full presence. */
  color: rgba(250, 250, 250, 0.8);
}

/* Which model a point belongs to. On the desktop the column says it, so the
   label is only for screen readers (visually hidden, still read out); on
   phones, where the columns become stacked pairs, it is shown (see Phones). */
.compare-point-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Left (Conventional) column — muted so it recedes and the right column reads
   as the advantage. Dimmed via colour, not opacity, so the reveal animation
   (which animates opacity) doesn't override it. The grid order is
   left, right, left, right… so odd children are the left column. */
.compare-grid > .compare-col-title:nth-child(odd) {
  color: rgba(250, 250, 250, 0.62);
  border-bottom-color: rgba(250, 250, 250, 0.12);
}

.compare-grid > .compare-point:nth-child(odd) .compare-point-title {
  color: rgba(250, 250, 250, 0.62);
}

.compare-grid > .compare-point:nth-child(odd) .compare-point-text {
  color: rgba(250, 250, 250, 0.5);
}

/* The accordion's "+" button — phones only (see the Phones block). */
.compare-toggle {
  display: none;
}

/* Three-pillar convergence diagram — an Euler/Venn-style trio of overlapping
   circles sitting directly on the page background (same always-light zone
   as .our-method/.method below). Outline-only, no fill, matching the thin-
   line aesthetic of .our-method-icon. Each circle swaps its label for a
   longer description on hover/focus — same title<->description crossfade
   idiom as .our-method-item, just via opacity instead of a slide. */
.pillars {
  width: 100%;
  background-color: transparent;
  padding: 0 0 calc(var(--base) * 40 / 1440);
}

.pillars-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
}

.venn {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* Diameter/position are hand-tuned so the three circles share one common
   centre (where .venn-center sits) without any pair fully swallowing the
   other — each circle's own centre stays equidistant (18% of the diagram)
   from that shared point. */
.venn-circle {
  position: absolute;
  width: 54%;
  height: 54%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  background-color: transparent;
  /* Fades back to transparent smoothly on mouse-leave. Declaring this
     only here isn't enough on its own — transition is a normal cascaded
     property, so without an explicit override below, the :hover rule
     would inherit this same duration and make the ENTER instant-vs-leave
     asymmetry backwards (confirmed: it did). The :hover rule's explicit
     0s below is what actually makes entering instant. */
  transition: background-color 0.6s ease;
}

.venn-circle--marketing {
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.venn-circle--financial {
  top: 59%;
  left: 34.4%;
  transform: translate(-50%, -50%);
}

.venn-circle--machine {
  top: 59%;
  left: 65.6%;
  transform: translate(-50%, -50%);
}

/* Hovered/focused circle rises above everything else in the diagram —
   the other two circles' outlines and the shared logo — so it reads as a
   solid opaque disc sitting on top, not a shape competing for the same
   pixels. z-index 20 clears the logo's own 10, so it's covered too when
   the hover circle's fill sweeps over the shared centre. Filled with a
   hair darker than the page's own --bg (not a dark card, not a flat
   match either): it reads as a faint grey disc blanking out whatever
   sits underneath, distinguishable from the plain page background,
   while the text below stays the same dark --fg as the rest of the page. */
.venn-circle:hover,
.venn-circle:focus-within {
  z-index: 20;
  border-color: transparent;
  background-color: color-mix(in srgb, var(--fg) 2%, var(--bg));
  transition: background-color 0s;
  outline: none;
}

/* Title (idle state) is centred on the CENTROID of the circle's unique
   region — the circle minus both of its overlaps with the other two, the
   sliver you'd get if you cut those intersections away — not the circle's
   own centre and not a simple edge anchor. Coordinates below are that
   centroid in each circle's own 0–100% box, solved numerically (grid-
   sampled the actual set-minus shape rather than eyeballed) since the
   region isn't a simple lens or wedge. */
.venn-circle-title {
  position: absolute;
  width: 60%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0;
  color: var(--fg);
}

.venn-circle--marketing .venn-circle-title {
  top: 30.1%;
  left: 50%;
}

.venn-circle--financial .venn-circle-title {
  top: 59.95%;
  left: 32.77%;
}

.venn-circle--machine .venn-circle-title {
  top: 59.95%;
  left: 67.23%;
}

/* Description (hover/focus state) is centred in the circle instead, with
   a generous inset off the rim — unlike the title, it no longer needs to
   dodge the crossing lines: by the time it's visible, the hovered circle
   has already filled solid and risen above its neighbours, so there's
   nothing underneath it left to collide with. */
.venn-circle-desc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--fg);
}

.venn-circle:hover .venn-circle-title,
.venn-circle:focus-within .venn-circle-title {
  opacity: 0;
}

/* Entrance reuses heroLineIn — the same fade-up used for the hero
   headline/subtitle/button — instead of a plain crossfade. The fill
   above is instant, so this motion is the only thing the eye tracks on
   hover-in. Leaving still just fades via the transition on the base
   rule above (animation only ever plays on the way in). */
.venn-circle:hover .venn-circle-desc,
.venn-circle:focus-within .venn-circle-desc {
  opacity: 1;
  /* Was 1s (too slow), then 0.4s (felt too clipped) — 0.6s matches the
     fade+slide duration used for the card reveals elsewhere on the page. */
  animation: heroLineIn 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Shared meeting point of all three sets — no plate, just the mark sitting
   directly on the page background. The logo file is a fixed light
   (#FAFAFA) fill (shared with the header/footer, which need it light on
   their dark backdrops), so brightness(0) forces it fully black here
   instead — same effect as var(--fg)'s text color in this always-light
   part of the page, without needing a second copy of the asset. Sits at
   z-index 10, below a hovered circle's 20, so it's simply covered along
   with everything else while that circle's fill sweeps over it. */
.venn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.venn-center img {
  display: block;
  width: calc(var(--base) * 64 / 1440);
  height: auto;
  filter: brightness(0);
}

/* The three descriptions as plain text under the diagram — phones only (see
   Phones), where a circle is too small to hold its description. Built by a
   script from the circles themselves, so the text lives in one place. */
.venn-list {
  display: none;
}

/* Our Method — big single-column statement lines, each paired with a thin-
   line icon (currentColor, so --theme-transition recolors it for free). No
   boxed container; sits directly on the page background in the same
   always-light-past-.insights zone as .compare/.method below. */
.our-method {
  width: 100%;
  background-color: transparent;
  padding: calc(var(--base) * 40 / 1440) 0 calc(var(--base) * 120 / 1440);
}

.our-method-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
}

/* Shared with the Clients heading, so the two stay identical. */
.clients-title,
.our-method-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 115%;
  letter-spacing: 0;
  color: var(--fg);
  text-align: center;
  margin-bottom: calc(var(--base) * 64 / 1440);
  transition: var(--theme-transition);
}

/* Same look, other recolouring: the Clients heading is on screen when the
   theme flips, so it keeps the dark-theme colour and a cloned overlay
   crossfades the light one in (.theme-overlay-text) — no repaint. Our
   Method is only ever seen on the light theme. */
.clients-title {
  color: #fafafa;
  transition: none;
  text-wrap: balance;
}

/* The asterisk after "Select Mandates and Experiences" — a link to the
   footnote at the foot of the page (.footer-note). Its text for screen
   readers, "(see note)", is visually hidden. */
.footnote-ref {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footnote-ref:hover {
  opacity: 0.6;
}

.footnote-ref__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.our-method-list {
  display: flex;
  flex-direction: column;
  /* Clips the alternating slide-in animation so each line emerges from
     behind the row edge instead of visibly overshooting it. */
  overflow: hidden;
}

.our-method-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 40 / 1440);
  padding: calc(var(--base) * 28 / 1440) 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  transition: border-color 1s ease;
}

.our-method-item:first-child {
  border-top: none;
}

/* Title and description are two frames of one strip ("parented to the same
   null", After-Effects-style): both keep their natural stacking order
   inside .our-method-item-track, and ONE transform on the track slides the
   whole strip — title rides down and out, description rides down into view
   from above the window. .our-method-item-text is the fixed-height window
   (overflow: hidden) that only ever shows one frame at a time; its height
   drives the fit-to-width measurement, same role the title used to play
   alone. A gentle synchronized opacity cross-fade rides along with the
   slide so nothing gets a hard clip at the window edge. */
.our-method-item-text {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* 1.3, not 1.12 (the title's line-height) — the window needs extra room
     beyond the nominal line box so descenders (g, y, p) don't get hard-
     clipped by this element's own overflow: hidden. */
  --method-row-h: calc(var(--base) * 56 / 1440 * var(--method-fit-scale, 1) * 1.3);
  /* Both frames share one grid cell, so the window is as tall as the taller
     of the two (a wrapped title or a long description, once text is sized
     in px and grows with zoom) and never shorter than one title row — the
     min-height below, which is exactly the old fixed height. */
  display: grid;
}

.our-method-item-track {
  display: grid;
}

/* Same strip motion as before (title rides down and out, description rides
   down into view from above), now per frame: each slides by the full
   window height. The title is first in the HTML, so screen readers read
   title, then description. */
.our-method-item-title,
.our-method-item-desc {
  grid-area: 1 / 1;
  min-height: var(--method-row-h);
}

.our-method-item-desc {
  transform: translateY(-100%);
}

.our-method-item:hover .our-method-item-desc,
.our-method-item:focus-within .our-method-item-desc {
  transform: translateY(0);
}

.our-method-item:hover .our-method-item-title,
.our-method-item:focus-within .our-method-item-title {
  transform: translateY(100%);
}

.our-method-item-desc {
  display: flex;
  align-items: center;
  max-width: 520px;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 17px;
  line-height: 150%;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--fg) 65%, var(--bg));
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), var(--theme-transition);
}

.our-method-item:hover .our-method-item-desc,
.our-method-item:focus-within .our-method-item-desc {
  opacity: 1;
}

/* Hand-placed line breaks in the descriptions — deliberate, not natural
   reflow — only hold on desktop (xl, ≥1280px); below that the text just
   wraps on its own against the narrower max-width. */
.desktop-break {
  display: none;
}

@media (min-width: 1280px) {
  .desktop-break {
    display: inline;
  }
}

/* The opposite: a break that only holds on phones (< 640px), e.g. "We
   treat them accordingly." starting its own line under "Media budgets are
   investment capital." */
.phone-break {
  display: none;
}

@media (max-width: 639px) {
  .phone-break {
    display: inline;
  }
}

.our-method-item:hover .our-method-item-title,
.our-method-item:focus-within .our-method-item-title {
  opacity: 0;
}

/* "Portfolio" only — at the title's -0.02em tracking, the r's arm crowds
   straight into the t's stem. Loosens just that one pair without touching
   tracking anywhere else in the word or the other four lines. */
.kern-rt {
  letter-spacing: 0.02em;
}

.our-method-icon {
  flex-shrink: 0;
  width: calc(var(--base) * 72 / 1440);
  height: calc(var(--base) * 72 / 1440);
  stroke-width: 0.75;
  /* Mixed against --bg, not "transparent" — that keeps the stroke fully
     opaque, so overlapping segments at joints don't double-darken the way
     a translucent stroke would where paths cross or meet. */
  color: color-mix(in srgb, var(--fg) 50%, var(--bg));
  transition: var(--theme-transition);
}

.our-method-item-title {
  display: block;
  /* Allowed to wrap (WCAG 2.1 1.4.12): with the fitted size every line is
     one line anyway, but a visitor's own wider letter- or word-spacing used
     to push the end of a line out of the masked row, cut off. Now it wraps
     instead — and a single word too long for the row (a long word on a
     phone) breaks rather than overflows. The window below grows with it. */
  white-space: normal;
  overflow-wrap: break-word;
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-style: normal;
  /* --method-fit-scale is computed in JS so the "Human + Machine
     Intelligence" line spans the full row — every other line shares that
     same factor so all five read at one identical size. */
  font-size: calc(var(--base) * 56 / 1440 * var(--method-fit-scale, 1));
  line-height: 112%;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: var(--theme-transition), opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Rules of the House — no boxed container; sits directly on the page
   background. .compare is tall enough that this section can still be
   reached while the light theme is on, so every color here reads off
   var(--fg)/var(--bg) instead of being hardcoded dark-theme white — it
   follows whichever theme is currently active rather than assuming one. */
.method {
  width: 100%;
  background-color: transparent;
  padding: calc(var(--base) * 40 / 1440) 0 calc(var(--base) * 160 / 1440);
}

.method-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--base) * 80 / 1440);
}

.method-content {
  max-width: 100%;
}

.method-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 115%;
  letter-spacing: 0;
  color: var(--fg);
  text-align: center;
  margin-bottom: calc(var(--base) * 96 / 1440);
  transition: var(--theme-transition);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--base) * 64 / 1440);
}

.method-item {
  display: flex;
  gap: calc(var(--base) * 24 / 1440);
  align-items: flex-start;
  padding: calc(var(--base) * 32 / 1440) 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  transition: border-color 1s ease;
}

/* First row (items 1 & 2, side by side) carries no top rule/padding. */
.method-item:nth-child(-n+2) {
  padding-top: 0;
  border-top: none;
}

@media (max-width: 767px) {
  .method-list {
    grid-template-columns: 1fr;
  }

  .method-item:nth-child(-n+2) {
    padding-top: calc(var(--base) * 32 / 1440);
    border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  }

  .method-item:first-child {
    padding-top: 0;
    border-top: none;
  }
}

.method-number {
  flex-shrink: 0;
  min-width: calc(var(--base) * 64 / 1440);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 100%;
  /* 50%, not 35%: 3.6:1 on the light page (35% was 2.3:1, below the 3:1
     WCAG AA minimum for large text) and 5.1:1 on the dark one. */
  color: color-mix(in srgb, var(--fg) 50%, transparent);
  transition: color 1s ease;
}

.method-item-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--fg);
  margin-bottom: calc(var(--base) * 10 / 1440);
  transition: var(--theme-transition);
}

.method-item-text {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--fg);
  transition: var(--theme-transition);
}

/* Contact — the last section, before the footer: the hero's CONTACT
   button again, centred, as the page's closing call to action (in the
   light zone here, so --fg / --bg make it dark on light). No load-time
   entrance: it fades up with the scroll reveals instead (data-reveal on
   its wrapper). The email and address themselves are in the footer. */
.contact {
  width: 100%;
  background-color: transparent;
  padding: 0 0 calc(var(--base) * 160 / 1440);
}

.contact-inner {
  display: flex;
  justify-content: center;
  padding: 0 calc(var(--base) * 80 / 1440);
}

.contact-btn--end {
  margin-top: 0;
  opacity: 1;
  animation: none;
}

/* Footer — its own dark zone (below the inversion area). Top row: the logo
   with the social icons under it, and the back-to-top button opposite.
   Below, two equal halves: the trademark line and (main page) the Clients
   footnote on the left; the section links and contact details side by
   side on the right, with the legal links under them. Both halves end on
   the same bottom line. */
.footer {
  width: 100%;
  background-color: #0a0a0a;
  padding: calc(var(--base) * 64 / 1440) calc(var(--base) * 80 / 1440)
    calc(var(--base) * 32 / 1440);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand top"
    "bottom bottom";
  column-gap: calc(var(--base) * 48 / 1440);
  row-gap: calc(var(--base) * 40 / 1440);
}

.footer-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: max(12px, calc(var(--base) * 20 / 1440));
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: calc(var(--base) * 40 / 1440);
  width: auto;
  display: block;
}

/* LinkedIn and X — icons in the footer links' grey, white on hover. Each is
   a 44px touch target around an 18px icon; the negative margin lines the
   first icon up with the logo's left edge. */
.footer-social {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-left: -13px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgb(150, 150, 150);
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: #fafafa;
}

.footer-social-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Back to top — a round outlined button with a thin arrow, the site's
   thin-line look (the CONTACT button, the menu icon), centred on the logo.
   Last in the markup, so it is also the last Tab stop of the page. */
.footer-to-top {
  grid-area: top;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: calc((var(--base) * 40 / 1440 - 44px) / 2);
  border: 1px solid rgba(250, 250, 250, 0.25);
  border-radius: 50%;
  color: rgb(150, 150, 150);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-to-top:hover {
  color: #fafafa;
  border-color: rgba(250, 250, 250, 0.6);
}

.footer-to-top svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

/* The two halves, bottom-aligned: neither ends lower than the other. */
.footer-bottom {
  grid-area: bottom;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--base) * 48 / 1440);
  align-items: end;
}

/* Left half: trademark line, footnote under it. */
.footer-fine {
  display: flex;
  flex-direction: column;
  gap: max(16px, calc(var(--base) * 24 / 1440));
}

/* Right half: a block as wide as its content, at the right edge — section
   links and contact details side by side, the legal links under them
   spread across the same width, so the first legal link starts where the
   section links do and the last ends at the edge. */
.footer-side {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "nav contact"
    "legal legal";
  column-gap: calc(var(--base) * 64 / 1440);
  row-gap: max(32px, calc(var(--base) * 48 / 1440));
}

.footer-nav {
  grid-area: nav;
}

.footer-nav-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 16 / 1440);
}

/* Block, so each row is exactly the link's own line (an inline link took
   its list item's taller line and sat 2px lower than the email beside it). */
.footer-link {
  display: block;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 110%;
  letter-spacing: 0.3em;
  /* Same grey as the header nav: #fafafa at its 0.6 opacity over black
     renders as rgb(150, 150, 150); set solid here, since the same opacity
     over the footer's #0a0a0a would come out slightly lighter. */
  color: rgb(150, 150, 150);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fafafa;
}

/* Contact details: the email set like the section links beside it (same
   size, line and grey, so the two columns start on one line), the postal
   address under it like the trademark line. */
.footer-contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--base) * 16 / 1440);
  font-style: normal;
}

.footer-contact-email {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 110%;
  letter-spacing: 0.1em;
  color: rgb(150, 150, 150);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-email:hover {
  color: #fafafa;
}

.footer-contact-address {
  display: block;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.5);
}

.footer-copy {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.5);
}

/* "All rights reserved." on a line of its own, as on the stub page; the
   first line balanced when it wraps (no "LLC." left alone). */
.footer-copy span {
  display: block;
  text-wrap: balance;
}

/* The Clients footnote (main page only) — the asterisk on the "Select
   Mandates and Experiences" heading links here. Smaller than the
   trademark line, same grey (5.1:1 on the footer). */
.footer-note {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 160%;
  letter-spacing: 0.02em;
  color: rgba(250, 250, 250, 0.5);
}

/* Spread across the block's width (see .footer-side). Bottom-aligned, not
   stretched: a stretched <button> centres its text, which dropped
   "Pause motion" out of line with the links. */
.footer-legal {
  grid-area: legal;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px calc(var(--base) * 32 / 1440);
}

.footer-legal-link {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #fafafa;
}

/* Below 1200px (zoomed desktops, phones on their side) the right half is
   too narrow for the two columns: section links, contact details and
   legal links stack, left-aligned in it. */
@media (max-width: 1199px) {
  .footer-side {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "contact"
      "legal";
    row-gap: max(24px, calc(var(--base) * 40 / 1440));
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

/* Legal pages (terms-of-use / privacy-policy) —
   the main page's dark header (logo + nav) on top, then a light block in the
   light-theme colours with a large serif title and the document text, then
   the standard footer. The light colours are scoped to the block, so the
   header and footer stay dark. The title is sized like the "Rules of the
   House" heading (see .legal-title). Unlike the rest of the site, the text doesn't shrink
   below a readable size (max() floors / fixed 16px, same idea as
   .hero-subtitle's fixed 18px), so the long text reads on a phone. */
.legal {
  --bg: #f4f3ef;
  --fg: #0a0a0a;
  width: 100%;
  margin-top: calc(var(--base) * 104 / 1440);
  background-color: var(--bg);
  padding: calc(var(--base) * 120 / 1440) calc(var(--base) * 80 / 1440)
    calc(var(--base) * 160 / 1440);
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Same size as the "Rules of the House" heading (.method-title) at every
   breakpoint: font-size and line-height here match it, and its Phones rule
   lists .legal-title too. */
.legal-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 115%;
  letter-spacing: 0;
  color: var(--fg);
  text-align: center;
  margin-bottom: max(32px, calc(var(--base) * 64 / 1440));
}

.legal-text p,
.legal-text li {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--fg);
}

/* Numbered section headings, in the site's serif like the method items. */
.legal-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--fg);
}

/* Vertical rhythm: 24px between blocks, more air above each section
   heading, a tighter gap below it. */
.legal-text > * + * {
  margin-top: max(16px, calc(var(--base) * 24 / 1440));
}

.legal-text > * + .legal-heading {
  margin-top: max(40px, calc(var(--base) * 56 / 1440));
}

.legal-text > .legal-heading + * {
  margin-top: max(12px, calc(var(--base) * 16 / 1440));
}

/* Subsections ("Information you provide", "Session replay"…): the text's
   own Jost, a weight up and a size up, with air above and a tight gap
   below, so they read as part of their numbered section. */
.legal-subheading {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0;
  color: var(--fg);
}

.legal-text > * + .legal-subheading {
  margin-top: max(28px, calc(var(--base) * 40 / 1440));
}

.legal-text > .legal-subheading + * {
  margin-top: 8px;
}

/* Two-column tables (cookie categories, providers, legal grounds): the
   header row as small caps labels like the Compare section's, each row's
   name in the first column, thin rules between rows. */
.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px 24px 14px 0;
  text-align: left;
  vertical-align: top;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--fg);
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}

.legal-table th:last-child,
.legal-table td:last-child {
  padding-right: 0;
}

.legal-table thead th {
  padding-top: 0;
  padding-bottom: 10px;
  border-top: none;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 60%, var(--bg));
}

.legal-table tbody th {
  width: 36%;
  font-weight: 500;
}

.legal-text ul {
  padding-left: 1.25em;
}

.legal-text li + li {
  margin-top: max(6px, calc(var(--base) * 8 / 1440));
}

/* Bold lead-ins ("Information you provide.", "Necessary:"…), as in the
   source document. Jost 500 is loaded on the legal pages only. */
.legal-text strong {
  font-weight: 500;
}

.legal-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.3s ease;
}

.legal-text a:hover {
  opacity: 0.6;
}

/* Logo in the legal pages' header links back to the main page. */
.logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* Mobile: the text column takes the full width instead of 800/1440. */
@media (max-width: 639px) {
  .legal-inner {
    max-width: none;
  }
}

/* Light-theme copy of a flip-zone text block, stacked exactly over the original
   and crossfaded via opacity (composited, frame-perfect, zero repaint). Built
   by JS as a clone of each text element. Placed last so it overrides the
   original typography classes the clone still carries (same specificity). */
.theme-overlay-text {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #0a0a0a;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

body.theme-light .theme-overlay-text {
  opacity: 1;
}

/* ==========================================================================
   Accessibility (WCAG 2.1 AA)
   ========================================================================== */

/* Skip link — the first Tab stop on every page. Parked above the screen
   until it receives focus, then slides into the top-left corner. Sized in
   px (not --base) so it grows with browser zoom. */
.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 14px 24px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background-color: var(--bg);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transform: translateY(calc(-100% - 32px));
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Sections and <main> receive focus from script only (skip link, in-page
   nav) so Tab continues from there; they are not controls, so no ring. */
[tabindex="-1"]:focus {
  outline: none;
}

/* Focus — one designed indicator for every control: a 2px ring in the
   element's own text colour, 4px clear of it. :focus-visible, so it shows
   for keyboard users and not on mouse clicks. Every text colour on the site
   passes 4.5:1, so a ring in that colour clears the 3:1 minimum. */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Elements without a text colour of their own get the ring colour set. */
.our-method-item:focus-visible,
.logo-link:focus-visible {
  outline-color: var(--fg);
}

.footer-logo:focus-visible {
  outline-color: rgb(150, 150, 150); /* same grey as the footer links */
}

/* Our Method lines sit edge to edge in .our-method-list, whose overflow:
   hidden (it masks the ±15% slide-in) would cut a ring drawn outside the
   line — so theirs is drawn just inside the line's own box. */
.our-method-item:focus-visible {
  outline-offset: -2px;
}

/* The nav links rest dimmed to 60%; focus brightens them the way hover
   does, so the ring isn't dimmed along with the text. */
.nav-link:focus-visible {
  opacity: 1;
}

/* Venn circles: the ring follows the circle (outline tracks
   border-radius). Overrides the outline: none of their hover /
   focus-within rule above. */
.venn-circle:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* Content on hover or focus (WCAG 2.1 1.4.13): an Our Method line and a
   Venn circle swap their title for a description while hovered or
   focused. Esc dismisses the description and puts the title back without
   moving the pointer or the focus; the script after the Venn diagram sets
   .is-dismissed and clears it once the pointer or focus leaves. These
   rules carry :hover / :focus-within to outrank the ones that show the
   description. From 640px up only: on phones the description is shown
   under the title all the time, there's nothing to dismiss. */
@media (min-width: 640px) {
  .our-method-item.is-dismissed:hover .our-method-item-title,
  .our-method-item.is-dismissed:focus-within .our-method-item-title {
    transform: none;
    opacity: 1;
  }

  .our-method-item.is-dismissed:hover .our-method-item-desc,
  .our-method-item.is-dismissed:focus-within .our-method-item-desc {
    transform: translateY(-100%);
    opacity: 0;
  }

  .venn-circle.is-dismissed:hover .venn-circle-title,
  .venn-circle.is-dismissed:focus-within .venn-circle-title {
    opacity: 1;
  }

  .venn-circle.is-dismissed:hover .venn-circle-desc,
  .venn-circle.is-dismissed:focus-within .venn-circle-desc {
    opacity: 0;
    animation: none;
  }
}

/* Browser zoom — text is in px, so at 200% it is twice the size; the
   layout reflows instead of shrinking. 1279px and below is a 1440 screen
   zoomed past ~112% (or a smaller laptop). */
@media (max-width: 1279px) {
  /* The hero had no side margin of its own — at ~850px (a phone on its
     side, or a 1440 screen at 170%) its first 64px line ran into the screen
     edges. Same margin as every other section. */
  .hero {
    padding: 0 calc(var(--base) * 80 / 1440);
  }

  /* Our Method lines stop fitting the row width and wrap at a fixed size —
     the ≥1280 fitted size (56px × 1.537, measured at 1440). */
  .our-method-item-title {
    font-size: 86px;
    white-space: normal;
    /* Room under the last line for descenders (g, y, p): 1.12em line +
       0.18em = the 1.3em window the desktop row has. */
    padding-bottom: 0.18em;
  }
}

/* 899px and below (zoom ~160%+): one column where columns get too narrow
   for the text, and the three pillars stack — at this width a description
   no longer fits inside its circle. */
@media (max-width: 899px) {
  .efficiency-inner,
  .insights-inner {
    grid-template-columns: 1fr;
  }

  .clients-list {
    --clients-cols: 2;
  }

  .venn {
    aspect-ratio: auto;
    max-width: 560px;
    display: flex;
    flex-direction: column;
  }

  .venn-circle {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .venn-circle + .venn-circle {
    margin-top: -18%;
  }

  .venn-circle .venn-circle-title {
    top: 50%;
    left: 50%;
  }

  .venn-center {
    display: none;
  }
}

/* Below 700px the subtitle's first line ("… and a clear mandate:") no
   longer fits its column, so the hand-placed break after it would leave
   "mandate:" alone on a line — the text wraps on its own instead, in
   balanced lines (no "efficiency." left alone at the end). */
@media (max-width: 699px) {
  .hero-subtitle {
    text-wrap: balance;
  }

  .hero-subtitle br {
    display: none;
  }
}

/* "Pause motion" (WCAG 2.2.2) — one more item of the footer's legal row,
   styled like its links. */
.motion-toggle {
  padding: 0;
  border: 0;
  background: none;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
}

.motion-toggle:hover {
  color: #fafafa;
}

.motion-paused .ticker-track {
  animation-play-state: paused;
}

/* ==========================================================================
   Phones (< 640px)
   The desktop layout scales every gap with --base (100vw / 1440), which on a
   phone shrinks them to a quarter while the px font sizes stay put — text
   too big, gaps too small. Below 640px gaps and type get their own fixed
   sizes, set per section here. Desktop and tablet rules above are untouched.
   ========================================================================== */
@media (max-width: 639px) {
  :root {
    /* Side margin of the page content: 24px on a 393 phone, 19px at 320. */
    --gutter: clamp(16px, 6vw, 24px);
  }

  /* --- Header: logo centred, menu button on the same line at the right.
     The 44px button (touch-target size) has 11px of air around its 22px
     icon, so the row's side padding is the gutter minus that air — the icon
     itself lines up with the content edge. --- */
  header.container {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    /* 36px: the logo sits lower than the 20px it had, with more air above.
       The header's 80px total (36 + the 44px row) is used by .hero below. */
    padding: 36px calc(var(--gutter) - 11px) 0;
  }

  header.container > .logo,
  header.container > .logo-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    /* Stays above the open menu, so the overlay reads as the header
       unfolding rather than a new screen. */
    position: relative;
    z-index: 60;
  }

  header .logo {
    width: 52px;
    padding-top: 0;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    position: relative;
    z-index: 60;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #fafafa;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Two 1px lines — the site's thin-line look — that cross into an X. */
  .nav-toggle__bar {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .nav-toggle__bar:first-child { top: 18px; }
  .nav-toggle__bar:last-child { top: 25px; }

  .nav-open .nav-toggle__bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-open .nav-toggle__bar:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* The four links become a full-screen black overlay. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    margin-top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
  }

  /* No page-load entrance here (the links are hidden at load); they rise in
     one after another each time the menu opens instead. Full white — the
     header's 60% dimming is a hover cue, and a phone has no hover. The left
     padding of 0.3em balances the trailing letter-spacing, so each word sits
     truly centred. */
  .nav-link {
    animation: none;
    padding: 14px 0 14px 0.3em;
    font-size: 16px;
    color: #fafafa;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .nav-open .nav-link {
    opacity: 1;
    transform: none;
  }

  .nav-open .nav-link:nth-child(2) { transition-delay: 0.06s; }
  .nav-open .nav-link:nth-child(3) { transition-delay: 0.12s; }
  .nav-open .nav-link:nth-child(4) { transition-delay: 0.18s; }

  /* The page behind the open menu doesn't scroll. */
  html.nav-open {
    overflow: hidden;
  }

  /* --- Hero: the whole first screen under the header. The CONTACT button
     sits at its foot, 48px above the screen's bottom edge — where the thumb
     is — and the title and subtitle centre in the space above it (the two
     auto margins share the extra height). The ticker starts just below the
     screen and rises into view with the first scroll; the Clients heading
     is further down still. On a phone too short for all this, the subtitle's
     44px bottom margin keeps the button clear of it and the hero simply
     grows. --hero-above: see the .hero rule at the top. --- */
  .hero {
    margin-top: 0;
    padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
    min-height: calc(100vh - var(--hero-above, 100vh));
    min-height: calc(100svh - var(--hero-above, 100svh));
    justify-content: flex-start;
  }

  .hero-title {
    margin-top: auto;
  }

  /* 35px on a 393 phone: five lines instead of six-to-eight at 64px. */
  .hero-title {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 118%;
  }

  .hero-subtitle {
    margin-top: 32px;
    margin-bottom: 44px;
    font-size: 16px;
  }

  /* 46px tall — a comfortable touch target (it was 30px). The auto margin
     pushes it to the foot of the hero. */
  .contact-btn {
    margin-top: auto;
    padding: 16px 32px;
  }

  .ticker {
    margin-top: 56px;
    padding: 16px 0;
  }

  /* --- Clients: 2 columns (set from 899px down); the names bottom out at
     20px (see the clamp on .client-name). --- */
  .clients {
    padding-top: 48px;
  }

  .clients-inner {
    padding: 0 var(--gutter);
  }

  /* --- Efficiency ("Engineered for Capital Efficiency."): the label sits
     above the statement (one column from 899px down already). The
     statement steps down from 48px in proportion to the hero title —
     ~31px on a 393 phone against the hero's ~35px — so it reads as the
     next level, not a second headline. --- */
  .efficiency {
    padding: 72px 0 24px;
  }

  .efficiency-inner {
    padding: 0 var(--gutter);
    gap: 16px;
  }

  .efficiency-label {
    margin-top: 0;
    font-size: 16px;
  }

  .efficiency-title {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 120%;
  }

  /* --- Insights: three cards stacked. 56px between cards (it was 11px —
     a picture ran straight into the text above it); title and text a step
     smaller with a clear gap under the picture. The pictures keep their
     16:10 and redraw themselves to the new width (--ill). --- */
  .insights {
    padding: 40px 0 72px;
  }

  .insights-inner {
    padding: 0 var(--gutter);
    row-gap: 56px;
  }

  /* Balanced lines: "Private Equity Logic / for Digital Growth", not a
     lone "Growth" on the second line. */
  .insight-title {
    margin-top: 20px;
    font-size: 24px;
    text-wrap: balance;
  }

  .insight-text {
    margin-top: 12px;
  }

  /* --- Compare: the two columns become stacked pairs — each conventional
     point (muted) directly above its House of ROI answer (bright), with a
     small label naming the model, and a thin rule between pairs. The two
     column headings are dropped: the labels carry them. The black box keeps
     its 5%-each-side optical bleed past the content line, as on desktop:
     16px from the screen edge on a 393 phone. --- */
  .compare {
    padding: 0 var(--gutter) 72px;
  }

  .compare-box {
    width: calc(100% + 16px);
    margin-left: -8px;
    border-radius: 24px;
    padding: 48px clamp(20px, 6vw, 24px);
  }

  .compare-intro {
    font-size: clamp(20px, 6vw, 24px);
    margin-bottom: 40px;
  }

  .compare-grid {
    display: block;
  }

  .compare-col-title {
    display: none;
  }

  .compare-point-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    /* 0.12em keeps "The Conventional Agency Model" on one line at 320px
       (251px of the 258px there). */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.8);
  }

  /* Conventional (odd children: headings are 1-2, points start at 3) —
     each one opens a pair, below a rule; the first pair has none. */
  .compare-grid > .compare-point:nth-child(odd) {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(250, 250, 250, 0.15);
  }

  .compare-grid > .compare-point:nth-child(3) {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .compare-grid > .compare-point:nth-child(odd) .compare-point-label {
    color: rgba(250, 250, 250, 0.5);
  }

  /* House of ROI — the answer, right under its conventional counterpart.
     Positioned: the pair's "+" button sits on its label line. */
  .compare-grid > .compare-point:nth-child(even) {
    margin-top: 24px;
    position: relative;
  }

  .compare-point-title {
    margin-bottom: 8px;
  }

  /* --- Compare as an accordion (the script after the section adds
     .is-accordion and the buttons; without it every text shows). Each pair
     folds to its labels and titles — about a third of the old length — and
     a tap on the pair unfolds both texts. The fold animates the text's row
     from 0fr to 1fr (no measuring); visibility keeps a folded text out of
     the tab order and away from screen readers. --- */
  .compare-grid.is-accordion .compare-point {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .compare-grid.is-accordion .compare-point-title {
    margin-bottom: 0;
  }

  .compare-grid.is-accordion .compare-point-more {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.45s;
  }

  .compare-grid.is-accordion .compare-point.is-open .compare-point-more {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
  }

  .compare-grid.is-accordion .compare-point-text {
    min-height: 0;
    overflow: hidden;
  }

  /* The gap under the title, inside the folding text so it folds away too. */
  .compare-grid.is-accordion .compare-point-text::before {
    content: "";
    display: block;
    height: 8px;
  }

  /* "+" turning into "−": two 1px lines (the site's thin-line look, as in
     the menu button), the vertical one laid flat when the pair is open.
     44px touch target, centred on the "House of ROI Approach" label line
     (12px × 1.4 = 16.8px tall), the icon's right edge on the content edge. */
  .compare-toggle {
    display: block;
    position: absolute;
    top: calc(8.4px - 22px);
    right: -15px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(250, 250, 250, 0.8);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .compare-toggle::before,
  .compare-toggle::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 21.5px;
    width: 14px;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .compare-toggle::after {
    transform: rotate(90deg);
  }

  .compare-point.is-open .compare-toggle::after {
    transform: rotate(0deg);
  }

  /* --- Our Method and Pillars: the section margins and headings are set
     here; the lines of Our Method and the diagram are shared with phones on
     their side (see the next block). --- */
  .our-method {
    padding: 16px 0 72px;
  }

  .our-method-inner {
    padding: 0 var(--gutter);
  }

  .clients-title,
  .our-method-title {
    font-size: clamp(28px, 8.5vw, 36px);
    margin-bottom: 24px;
  }

  .pillars {
    padding: 0 0 56px;
  }

  .pillars-inner {
    padding: 0 var(--gutter);
  }

  /* --- Rules of the House: one column (from 767px down already), with
     real air — number 16px clear of its rule (was 6px), 28px between rules
     (was 9px). Title sizes match Our Method / the insight cards. --- */
  .method {
    padding: 16px 0 88px;
  }

  .method-inner {
    padding: 0 var(--gutter);
  }

  /* The legal pages' title matches "Rules of the House" (its 32px gap
     below is what it had on phones anyway). */
  .method-title,
  .legal-title {
    font-size: clamp(28px, 8.5vw, 36px);
    margin-bottom: 32px;
  }

  .method-item,
  .method-item:nth-child(-n+2) {
    gap: 16px;
    padding: 28px 0;
  }

  .method-item:first-child {
    padding-top: 0;
  }

  .method-number {
    min-width: 40px;
    font-size: 28px;
  }

  .method-item-title {
    margin-bottom: 8px;
    font-size: clamp(20px, 6vw, 24px);
    text-wrap: balance;
  }

  /* --- Contact: the button, centred, before the footer. --- */
  .contact {
    padding: 0 0 88px;
  }

  .contact-inner {
    padding: 0 var(--gutter);
  }

  /* --- Footer: one left-aligned column — logo and social icons with the
     back-to-top button level with the logo, then the section links as a
     list (44px rows, finger-sized), the contact details, the legal links,
     the trademark line and the Clients footnote. --- */
  .footer {
    padding: 56px var(--gutter) 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    row-gap: 32px;
  }

  .footer-logo img {
    height: 32px;
  }

  .footer-to-top {
    margin-top: -6px; /* centred on the 32px logo */
  }

  /* The halves become one column: links and contacts first. */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .footer-fine {
    gap: 24px;
  }

  .footer-side {
    order: -1;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "contact"
      "legal";
    row-gap: 32px;
  }

  .footer-nav-col {
    gap: 0;
  }

  /* Row height comes from the link's own padding — 14px + ~15px + 14px. */
  .footer-link {
    padding: 14px 0;
  }

  .footer-contact {
    gap: 12px;
  }

  /* A 44px tap row; the padding hangs into the gaps around it. */
  .footer-contact-email {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 4px 24px;
    margin-top: -8px;
  }

  .footer-legal-link,
  .motion-toggle {
    padding: 10px 0;
  }

  /* The light-theme copy of a text block (see .theme-overlay-text) carries
     the same classes as the original, so the margins set above would shift
     it off the original — it must stay pinned exactly on top. Kept last in
     this block for that reason. */
  .theme-overlay-text {
    margin: 0;
  }
}

/* ==========================================================================
   Our Method and Pillars on phones — upright, and on their side (a touch
   screen no taller than 500px: no tablet or desktop window matches, those
   have a mouse or are taller). Neither can hover, so what the desktop shows
   on hover is always on screen here.
   ========================================================================== */
@media (max-width: 639px), (max-height: 500px) and (hover: none) and (pointer: coarse) {
  /* --- Our Method: no hover on a phone, so each line shows its title with
     the description right under it, always — no title/description swap and
     no masking window (that window, sized for one desktop line, is what cut
     "Intelligence" and "Command" off at the screen edge). Icon at the left,
     level with the first line of the title. The slide-in from alternating
     sides on scroll stays. --- */
  .our-method-item {
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .our-method-icon {
    width: 32px;
    height: 32px;
    margin-top: 2px;
    stroke-width: 1;
  }

  .our-method-item-text {
    display: block;
    overflow: visible;
  }

  .our-method-item-track {
    display: block;
  }

  /* Overrides the hover/focus swap too (those rules carry :hover /
     :focus-within, so they are listed here to match them). */
  .our-method-item .our-method-item-title,
  .our-method-item:hover .our-method-item-title,
  .our-method-item:focus-within .our-method-item-title,
  .our-method-item .our-method-item-desc,
  .our-method-item:hover .our-method-item-desc,
  .our-method-item:focus-within .our-method-item-desc {
    min-height: 0;
    transform: none;
    opacity: 1;
  }

  /* Natural wrapping, not balanced: "Human + Machine / Intelligence" keeps
     the pair together (balance split it as "Human + / Machine …"). */
  .our-method-item-title {
    font-size: clamp(24px, 7.5vw, 30px);
    white-space: normal;
    padding-bottom: 0;
  }

  .our-method-item-desc {
    display: block;
    max-width: none;
    margin-top: 8px;
    font-size: 16px;
  }

  /* --- Pillars: the real three-circle diagram again (from 899px down the
     circles are otherwise stacked for zoomed desktops), with the shared
     logo in the middle. A ~185px circle can't hold its description,
     and a phone has no hover anyway — so the circles show only their names,
     and the three descriptions follow as text under the diagram (beside it
     on a phone on its side — see the next block). --- */
  /* The bottom circles end at 86% of the square box — the -12% pulls the
     text below up into that empty strip. */
  .venn {
    display: block;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin-bottom: -12%;
  }

  .venn-circle {
    position: absolute;
    width: 54%;
    height: 54%;
    aspect-ratio: auto;
    transform: translate(-50%, -50%);
  }

  .venn-circle + .venn-circle {
    margin-top: 0;
  }

  .venn-circle--marketing { top: 32%; left: 50%; }
  .venn-circle--financial { top: 59%; left: 34.4%; }
  .venn-circle--machine { top: 59%; left: 65.6%; }

  /* Each name on two balanced lines, narrow enough to stay inside its
     circle's own sliver (between the crossing lines): ~88px of room on a
     393 phone, ~72px at 320 — the type scales with the diagram. */
  .venn-circle-title {
    width: 52%;
    font-size: clamp(12px, 3.6vw, 15px);
    text-wrap: balance;
  }

  .venn-circle--marketing .venn-circle-title { top: 30.1%; left: 50%; }
  .venn-circle--financial .venn-circle-title { top: 59.95%; left: 32.77%; }
  .venn-circle--machine .venn-circle-title { top: 59.95%; left: 67.23%; }

  /* No fill, no swap to the description on tap. */
  .venn-circle:hover,
  .venn-circle:focus-within {
    z-index: auto;
    border-color: color-mix(in srgb, var(--fg) 30%, transparent);
    background-color: transparent;
  }

  .venn-circle:hover .venn-circle-title,
  .venn-circle:focus-within .venn-circle-title {
    opacity: 1;
  }

  .venn-circle-desc {
    display: none;
  }

  .venn-center {
    display: block;
  }

  .venn-center img {
    width: 28px;
  }

  .venn-list {
    display: block;
    margin-top: 32px;
  }

  .venn-list-item {
    border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  }

  .venn-list-item:first-child {
    border-top: none;
  }

  /* --- An accordion (the script under the Pillars section builds it):
     each row is a button — the circle's name and a "+" — and a tap unfolds
     the description under it. The fold animates the text's row from 0fr to
     1fr, as in the Compare accordion; visibility keeps a folded text away
     from screen readers. --- */
  .venn-list-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: none;
    text-align: left;
    color: var(--fg);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .venn-list-title {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: var(--fg);
  }

  /* "+" turning into "−": two 1px lines, the vertical one laid flat when
     the row is open — the Compare accordion's icon. */
  .venn-list-icon {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
    color: color-mix(in srgb, var(--fg) 65%, var(--bg));
  }

  .venn-list-icon::before,
  .venn-list-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6.5px;
    width: 14px;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .venn-list-icon::after {
    transform: rotate(90deg);
  }

  .venn-list-item.is-open .venn-list-icon::after {
    transform: rotate(0deg);
  }

  .venn-list-more {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.45s;
  }

  .venn-list-item.is-open .venn-list-more {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
  }

  .venn-list-text {
    min-height: 0;
    overflow: hidden;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: color-mix(in srgb, var(--fg) 65%, var(--bg));
  }

  /* The gap under the text, inside the folding text so it folds away too. */
  .venn-list-text::after {
    content: "";
    display: block;
    height: 20px;
  }
}

/* ==========================================================================
   Phones on their side (640px and wider, touch, no taller than 500px)
   Otherwise they get the layout made for a zoomed-in desktop — built for a
   tall window, so one insight picture or one line of Our Method filled the
   screen. Here: a smaller headline, insight cards as rows, the diagram
   beside its text, finger-sized links. Our Method and the diagram itself
   come from the shared block above.
   ========================================================================== */
@media (min-width: 640px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  /* --- Header: the links keep their look and place, but each one's tap
     area grows to 44px tall — the padding added above them is taken back
     off the gap over the row. --- */
  .nav {
    margin-top: calc(var(--base) * 56 / 1440 - 14px);
  }

  .nav-link {
    padding-top: 14px;
    padding-bottom: calc(var(--base) * 4 / 1440 + 14px);
  }

  /* --- Hero: 64px made the headline three or four lines filling the whole
     screen, the button below the fold. 44px on an 852 phone — about the
     share of the screen the desktop headline takes. (Where it breaks is
     fixed — see .hero-chunk.) --- */
  .hero-title {
    font-size: clamp(36px, 5.2vw, 48px);
  }

  /* --- Insights: each card becomes a row — picture on the left, title and
     text beside it — so a picture is about half the screen tall instead of
     taller than it. The pictures redraw themselves to the new width
     (--ill). --- */
  .insights-inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .insight {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(24px, 4vw, 40px);
  }

  .insight-image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .insight-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-top: 0;
    font-size: 24px;
    text-wrap: balance;
  }

  .insight-text {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 12px;
  }

  /* --- Our Method: the phone lines, a size up, with the description held
     to a readable line length. --- */
  .our-method-item-title {
    font-size: clamp(30px, 4.4vw, 36px);
  }

  .our-method-icon {
    margin-top: 4px;
  }

  .our-method-item-desc {
    max-width: 600px;
  }

  /* --- Pillars: the diagram on the left, the three descriptions beside
     it. The circles fill only 5%–86% of the diagram's square box; the
     negative margins trim the empty strips so the drawing itself is what
     gets centred against the text. The circle names scale with the
     diagram (cqi = 1% of its width) in the same proportion as on a
     phone. --- */
  .pillars-inner {
    display: grid;
    grid-template-columns: clamp(280px, 44%, 380px) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 56px);
    align-items: center;
  }

  .venn {
    container-type: inline-size;
    margin: -5% 0 -14%;
  }

  .venn-circle-title {
    font-size: max(12px, 4.1cqi);
  }

  .venn-list {
    margin-top: 0;
  }

  /* --- Footer: the desktop layout, with taller tap areas — 35px rows for
     the section and legal links, 44px for the email. --- */
  .footer-nav-col {
    gap: 0;
  }

  .footer-link {
    padding: 10px 0;
  }

  .footer-contact-email {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }

  .footer-legal-link,
  .motion-toggle {
    padding: 10px 0;
  }

  /* The links' 10px tap padding hangs below the bottom line, so their text
     stays level with the left half's last line. */
  .footer-legal {
    margin-bottom: -10px;
  }

  /* Keeps the light-theme copies pinned on their originals (see the same
     rule at the end of Phones) — the insight title's margin is set above. */
  .theme-overlay-text {
    margin: 0;
  }
}

/* prefers-reduced-motion — nothing slides, scrolls by itself or loops:
   entrances show their end state at once, the ticker stands still, Our
   Method and the Venn circles swap title/description by crossfade only.
   (The JS skips smooth scrolling, reveals and the card loops.) Fades of
   colour and opacity stay — they are not motion. */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .hero-chunk,
  .hero-subtitle,
  .contact-btn,
  .ticker {
    animation: none;
    opacity: 1;
  }

  .nav-link,
  .ticker-track {
    animation: none;
  }

  .our-method-item-title,
  .our-method-item-desc,
  .our-method-item:hover .our-method-item-title,
  .our-method-item:focus-within .our-method-item-title,
  .our-method-item:hover .our-method-item-desc,
  .our-method-item:focus-within .our-method-item-desc {
    transform: none;
  }

  .venn-circle:hover .venn-circle-desc,
  .venn-circle:focus-within .venn-circle-desc {
    animation: none;
  }

  .skip-link,
  .nav,
  .nav-link,
  .nav-toggle__bar {
    transition: none;
  }

  /* Compare and Venn accordions (phones): the texts unfold at once. */
  .compare-grid.is-accordion .compare-point-more,
  .compare-grid.is-accordion .compare-point.is-open .compare-point-more,
  .compare-toggle::before,
  .compare-toggle::after,
  .venn-list-more,
  .venn-list-item.is-open .venn-list-more,
  .venn-list-icon::before,
  .venn-list-icon::after {
    transition: none;
  }

  .motion-toggle {
    display: none;
  }
}

