/* ==========================================================================
   Resonant Marketing Solutions — design comp system (v2, per Jesse's edits)
   Brand: Playful Yellow #FFF952 | Gold #EED71E | Imaginative Purple #5B389F
          Substance Black #000000 | Clarity White #FFFFFF | Gray #79797B
   Fonts: Bebas Neue (display) + Roboto (body). Self-host both in production.
   Hard rules: NO rounded corners (circles for headshot/rings are the only
   exception). Logos always monochrome. Logo never below 64px height.
   ========================================================================== */

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

/* All fonts self-hosted per Site_Build_Brief (also keeps rendering
   identical in browsers that block third-party font hosts, e.g. Brave). */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/BebasNeue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Roboto-300i.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Roboto-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Roboto-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Roboto-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Roboto-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/RobotoCondensed-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/RobotoCondensed-600.woff2') format('woff2');
}

/* Brand flair font: Oleo Script (self-hosted per Site_Build_Brief) */
@font-face {
  font-family: 'Oleo Script';
  src: url('fonts/OleoScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Oleo Script';
  src: url('fonts/OleoScript-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --ink: #000000;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --yellow: #fff952;
  --gold: #eed71e;
  --gold-dark: #b89b16;
  --purple: #5b389f;
  --purple-bright: #8b5fd6;
  --gray: #79797b;
  --gray-light: #b9b9bd;
  --border-dark: rgba(255,255,255,0.12);
  --border-light: rgba(0,0,0,0.12);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-script: 'Oleo Script', cursive;
  --font-header-alt: 'Roboto Condensed', 'Roboto', sans-serif; /* mixed-case header font; flag for brand approval */
  --font-body: 'Roboto', -apple-system, sans-serif;
  --max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

h1.display { font-size: clamp(4.5rem, 13vw, 12rem); }
h2.display { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 1.5rem; }
h3.display { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Script accent words ("be", "don't be", "full-stack") render in Oleo. */
.oleo {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.lc {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  font-size: 0.6em;
  letter-spacing: 0;
}

/* Mixed-case header (Roboto Condensed 600) — pairs with Bebas, keeps the
   condensed voice. Used for the About h1 second line and FAQ dt headers. */
.header-alt {
  font-family: var(--font-header-alt);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

/* Legible-on-white gradient (starts at gold, not pale yellow) */
.gradient-text-dark {
  background: linear-gradient(100deg, var(--gold-dark), var(--gold) 30%, var(--purple) 85%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 7s ease infinite;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; }

.prose { max-width: 78ch; }

/* small suffix inside a display h2 ("updated for 2026") */
.h2-sub {
  display: inline-block;
  font-size: 0.34em;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--gray-light);
  margin-left: 0.5em;
  vertical-align: 0.25em;
}

/* Animated gradient text — brand-evolved accent */
.gradient-text {
  background: linear-gradient(100deg, var(--yellow), var(--gold), var(--purple-bright), var(--gold), var(--yellow));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Dark-gold brush-stroke underline: tapered curved swash (SVG), sitting in
   the bottom quarter of the line. Modeled on "brushstroke style.jpg". */
/* Dark-gold stroke for the yellow band ("the optimal solution") */
.paint-underline {
  background-image: url('brush-gold.png');
  background-size: 100% 0.42em;
  background-position: 0 94%;
  background-repeat: no-repeat;
}

/* Playful-yellow variant for dark backgrounds (About "full-stack") */
.paint-underline-yellow {
  background-image: url('brush-purple.png');
  background-size: 100% 0.42em;
  background-position: 0 94%;
  background-repeat: no-repeat;
}

/* ---------- Buttons (square, no radius) ---------- */

.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-solid { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Nav (identical on every page) ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

/* Official 2024 logo (500x155). Sized per Jesse's 7/15 edit (-30%). */
.site-nav .nav-logo img { height: 62px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.site-nav ul a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gray-light);
  transition: color 0.2s;
}

.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--yellow); }

/* Nav CTA: beat the .site-nav ul a color rule */
.site-nav ul a.btn-solid { color: var(--ink); }
.site-nav ul a.btn-solid:hover { color: var(--ink); }

.site-nav .btn { padding: 0.65rem 1.2rem; font-size: 0.72rem; }

.site-nav .cta-short { display: none; }

@media (max-width: 880px) {
  .site-nav ul li.nav-link { display: none; }
  .site-nav .nav-logo img { height: 45px; }
  .site-nav ul { gap: 1rem; }
  .site-nav .btn { white-space: nowrap; }
  .site-nav .cta-long { display: none; }
  .site-nav .cta-short { display: inline; }
}

/* Smallest screens: 64px logo is 207px wide, so everything else must fit
   in the remainder or the whole page lays out wider than the viewport. */
@media (max-width: 560px) {
  .site-nav { padding: 0.85rem 0.9rem; }
  .site-nav ul { gap: 0.5rem; }
  /* 0.58rem rendered at ~9px — illegible and a weak tap target on phones */
  .site-nav .btn { font-size: 0.66rem; padding: 0.6rem 0.75rem; letter-spacing: 0.08em; }
}

/* ---------- Mobile nav drawer (hamburger) ----------
   The li.nav-burger appears only at widths where the nav links are hidden;
   the drawer is absolutely positioned inside the fixed nav so it hangs
   directly below the bar at every logo height. */
.nav-burger { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  background: transparent;
  border: 1px solid var(--border-dark);
  cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: #0a0a0a; /* solid: backdrop blur isn't reliable on all phones */
  border-bottom: 1px solid var(--border-dark);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 1.05rem 2rem;
  border-top: 1px solid var(--border-dark);
}
.nav-drawer a:hover, .nav-drawer a[aria-current="page"] { color: var(--yellow); }

@media (max-width: 880px) {
  .nav-burger { display: block; }
  /* CTA sits 40px from the hamburger (Jesse 7/23, reversing the earlier
     equidistant centering) */
  .site-nav ul { flex: 1 1 auto; gap: 0; }
  .site-nav .nav-cta { margin-left: auto; margin-right: 40px; }
  /* page behind the open drawer blurs, matching the score modal backdrop.
     Lives on <body> because .site-nav's backdrop-filter makes the nav the
     containing block for any fixed-position descendant (a pseudo inside the
     drawer would collapse to the bar's box). z-index 90 < nav's 100, so the
     bar and drawer stay sharp above it. */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10,10,10,0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  /* while the drawer is open the bar CTA "moves" into the drawer: the bar
     button hides (visibility keeps the logo/X from shifting) and the long-
     form score link shows as the bottom option, below Contact */
  body.nav-open .site-nav .nav-cta { visibility: hidden; }
  /* the drawer CTA reads as a solid button, unlike the plain links above it.
     Hover must NOT take the shared a:hover yellow (invisible on yellow) */
  .nav-drawer .drawer-score { color: var(--ink); background: var(--yellow); font-weight: 700; }
  .nav-drawer .drawer-score:hover { color: var(--purple); }
}
/* drawer-score is part of the drawer, which only exists ≤880; no extra
   desktop rules needed — the drawer itself is hidden there */

@media (max-width: 430px) {
  /* 40px starves the logo gap on small phones; "next to the hamburger" */
  .site-nav .nav-cta { margin-right: 14px; }
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 7rem 0; }
.section-light { background: var(--white); color: var(--ink); }
.section-light .eyebrow { color: var(--purple); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-media img, .hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.45) 45%, rgba(10,10,10,0.9) 100%),
    linear-gradient(120deg, rgba(91,56,159,0.22) 0%, transparent 55%);
}

.hero-content { position: relative; z-index: 2; }

/* CTA row: button with a question to its right, small note below */
.cta-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cta-aside {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  color: var(--white);
}

.cta-note {
  margin-top: 1.4rem; /* visually equal to the 1.25rem above the button once line-box leading is counted */
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gray-light);
  max-width: 62ch;
}

/* ---------- Gradient border card (square corners) ---------- */

/* No z-index here: the card must NOT create a stacking context, so the
   negative-z ::before paints behind the card background (border effect). */
.card-gradient {
  position: relative;
  background: var(--black);
  padding: 2.5rem 2.25rem;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  background: linear-gradient(135deg, var(--yellow), var(--gold) 40%, var(--purple));
}

.section-light .card-gradient { background: var(--white); }

/* ---------- Animated gradient band ---------- */

.gradient-band {
  position: relative;
  padding: 10rem 0;
  background: linear-gradient(60deg, var(--purple), var(--gold), var(--yellow), var(--gold), var(--purple));
  background-size: 320% 320%;
  animation: gradientShift 9s ease infinite;
  color: var(--ink);
}

/* Desktop focal hierarchy (7/21/26): "Stop competing on cost." is focal #1,
   "SHOW UP" #2 — band is ~20% taller (665px -> ~795px at 1280) with the
   extra height spread as breathing room around both. !important beats the
   h2's inline margin-bottom:0. */
@media (min-width: 601px) {
  .gradient-band { padding: 13rem 0; }
  .gradient-band h2.display { margin-bottom: 3rem !important; }
}

.band-lines {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.45;
  margin-top: 2.25rem;
}

/* desktop band spread (must follow the base rule above to win the cascade) */
@media (min-width: 601px) {
  .band-lines { line-height: 1.6; }
}

/* ---------- Stats ---------- */

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--yellow);
}

/* purple emphasis inside dark-section stat copy (69% stat per Jesse);
   --purple-bright + a heavier weight keeps it legible on near-black */
.stat-hl { color: var(--purple-bright); font-weight: 500; }

.stat-source { font-size: 0.78rem; color: var(--gray-light); }

.stat-source a { color: var(--gray-light); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.stat-source a:hover { color: var(--yellow); }

/* Citation links are the smallest touch targets on the page; give them a
   readable size and taller line on phones. */
@media (max-width: 600px) {
  .stat-source { font-size: 0.85rem; line-height: 1.7; }
}

/* ---------- Shortlist steps: one screenful each, Lifted-style numbers ---------- */

.step-screen {
  /* min() caps portrait tablets (92vh of 1366 was 1257px of padding);
     side padding keeps the accordions off the screen edge below --max */
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-light);
}

.step-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 2.4fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(9rem, 18vw, 17rem);
  line-height: 1;
  padding-top: 0.04em; /* Bebas digits clip at tight line-heights */
  background: linear-gradient(160deg, var(--yellow), var(--gold) 45%, var(--purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
  will-change: transform;
}

.step-head { margin-bottom: 1rem; }
.step-head h3 { margin-bottom: 0; }

/* The icon lives INSIDE the h3 as an inline image anchored to the text
   baseline. Baseline-relative geometry is a property of the font file, so
   this centers identically in every browser (box-centering does not:
   engines disagree about where glyphs sit inside their line box).
   Sizes are in em so the icon tracks the header size:
   1.6em icon, centered on Bebas's ~0.7em cap band -> vertical-align
   = 0.35em - 0.8em = -0.45em. Gap 0.55em ~= the previous 1.27rem. */
.step-icon {
  display: inline-block;
  width: 1.6em;
  height: 1.6em;
  object-fit: contain;
  vertical-align: -0.5em;
  margin-right: 0.55em;
}

.step-body h3 { margin-bottom: 1rem; }
.step-body ul { margin: 1rem 0 0 1.1rem; max-width: 78ch; }
.step-body li { margin-bottom: 0.5rem; }
.step-body a { color: var(--purple); text-underline-offset: 3px; }

.focal-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 1.5rem;
  color: #3d3d40;
}

.focal-line .andmore { font-style: italic; }
.focal-line .andmore .gradient-text-dark { padding-right: 0.18em; }

@media (max-width: 820px) {
  /* keep the .container side gutters — a bare "3.5rem 0" zeroes them and the
     step/FAQ text runs edge-to-edge */
  .step-screen { min-height: 0; padding: 3.5rem 2rem; }
  .step-grid { grid-template-columns: 1fr; gap: 1rem; }
  .step-num { font-size: clamp(6rem, 22vw, 9rem); }
}

/* ---------- Definitions (DefinedTerm content) ---------- */

.term-list { display: grid; gap: 0; border-top: 1px solid var(--border-light); }

.term-item { padding: 1.6rem 0; border-bottom: 1px solid var(--border-light); }

details.term-item summary {
  font-family: var(--font-header-alt);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: none;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.term-item summary::-webkit-details-marker { display: none; }

details.term-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 0.25s;
}

details.term-item[open] summary::after { transform: rotate(225deg); }

details.term-item p { color: #3d3d40; max-width: 78ch; margin-top: 0.5rem; }

/* Tap target (touch layouts only — desktop is locked): the summary row, not
   the whole details box, is the clickable element — carry the vertical
   padding on it so the touch area is ~86px tall. The negative margin on p
   keeps the open-state spacing pixel-identical. */
@media (max-width: 820px) {
  details.term-item { padding: 0; }
  details.term-item summary { padding: 1.6rem 0; }
  details.term-item p { margin-top: -1.1rem; padding-bottom: 1.6rem; }
}

/* ---------- Logo ticker (monochrome, mandatory) ---------- */

.ticker-group { margin-bottom: 1.9rem; }

.ticker-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.ticker-track {
  overflow: hidden;
  padding: 0.35rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.ticker-inner.reverse { animation-direction: reverse; }
.ticker-track:hover .ticker-inner { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-inner img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.8;
  transition: opacity 0.25s;
}

/* certification badges scroll like the logo garden */
.ticker-badges img { height: 64px; max-width: none; }

/* awards row: every logo matches the E+E Leader height */
.ticker-awards img { height: 54px; max-width: none; }

/* focal-point logos render larger and darker */
.ticker-inner img.logo-lg { height: 54px; max-width: 220px; opacity: 0.92; }

.ticker-inner img:hover { opacity: 1; }

/* ---------- Results: draggable snap carousel ---------- */

.snap-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* full-bleed; the padding puts card 1 on the container grid and the
     matching scroll-padding makes the SNAP respect it (snap aligns to the
     scrollport inset, not the padding — this was the eternal left cut-off) */
  padding: 0.5rem 2rem 1.5rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  scroll-padding-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.snap-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.snap-carousel.dragging * { pointer-events: none; }

.snap-carousel::-webkit-scrollbar { display: none; }

.snap-card {
  flex-shrink: 0;
  width: min(400px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* kicker + stat get fixed vertical slots so every card's title block aligns */
.snap-card .snap-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  flex: 0 0 auto; /* .snap-card p flex-grow must never stretch the kicker */
  height: 2.4em;
  margin-bottom: 0.5rem;
}

.snap-card .snap-stat {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 0.95;
  flex: 0 0 auto;
  height: 2em;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.56rem;
  color: var(--yellow);
}

.snap-card p { font-size: 0.92rem; color: var(--gray-light); flex-grow: 1; }

.snap-card .snap-client {
  flex: 0 0 auto; /* .snap-card p flex-grow must never stretch the label row */
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
}

/* ---------- Flowing wave divider ---------- */
/* The color boundary itself is the wave: a tall-amplitude filled path that
   drifts horizontally, echoing the live-site section transitions. */

.wave-line {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: var(--wave-from, var(--black));
}

.wave-line svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  /* +2px: Safari (and subpixel zoom in Blink) rounds the svg short of the
     container's bottom edge, exposing the black backing as a hairline */
  height: calc(100% + 2px);
  animation: waveFlow 21s linear infinite;
  will-change: transform;
}

.wave-line.reverse svg { animation-direction: reverse; }

.wave-line path { fill: var(--wave-to, var(--white)); }

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

/* Wave caps: flowing boundary drawn INSIDE a section whose background
   (animated gradient) can't be matched by a divider fill. */
.wave-cap {
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  overflow: hidden;
  pointer-events: none;
}

.wave-cap.top { top: 0; }
.wave-cap.bottom { bottom: 0; }

.wave-cap svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveFlow 21s linear infinite;
}

.wave-cap.bottom svg { animation-direction: reverse; }

/* ---------- Fold marquee (tagline as the footer divider) ---------- */

.fold-marquee {
  overflow: hidden;
  background: var(--black);
  padding: 4rem 0 3rem;
}

.fold-line {
  opacity: 0.7;
  white-space: nowrap;
  font-family: var(--font-display);
  /* 33% below the original clamp(1.8rem, 4.5vw, 4.25rem) per Jesse 7/21 */
  font-size: clamp(1.2rem, 3vw, 2.85rem);
  line-height: 1.05;
  text-transform: uppercase;
  will-change: transform;
}

.fold-solid {
  /* Bebas block font (was Oleo script), solid white fill — not stroked like
     the MORE RESONANCE line; inherits Bebas + uppercase from .fold-line */
  color: var(--white);
  opacity: 0.25; /* Jesse 7/21 (2nd pass): "Less Noise" at 75% transparency */
}

.fold-outline {
  color: transparent;
  -webkit-text-stroke: 1.65px var(--gold);
}

/* ---------- About section rhythm (7/23: Jesse dropped the one-viewport-
   per-block rule, so spacing is set for reading flow instead) ---------- */

/* Collaborator Network: less air above (was 11rem inline) and below */
.collab-block { margin-top: 5rem; }
.bio-section { padding-bottom: 3.5rem; }

/* Portfolio (logo garden): mobile ~+22% height, desktop/tablet +35% —
   spacing gives the eye relief from the ticker busyness */
.portfolio-section { padding-top: 6rem; padding-bottom: 7.5rem; }
.portfolio-section .ticker-group { margin-bottom: 2.75rem; }
.portfolio-section .ticker-track { margin-top: 1.25rem; }
@media (min-width: 601px) {
  .portfolio-section { padding-top: 7rem; padding-bottom: 6rem; }
  /* space moved from below each ribbon (-20%) to above it */
  .portfolio-section .ticker-group { margin-bottom: 4.16rem; }
  .portfolio-section .ticker-track { margin-top: 1.6rem; }
  .portfolio-section .ticker-label { font-size: 1.1rem; }
}


/* ---------- Maps row (About) ---------- */

.maps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 820px) { .maps-row { grid-template-columns: 1fr; } }

.map-card {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color 0.25s;
}

/* Links stay in the HTML for crawlers; humans can't click (per Jesse). */
.map-card { pointer-events: none; cursor: default; }

.map-card img { width: 100%; height: 210px; object-fit: cover; display: block; }

.map-card .map-meta { padding: 1.1rem 1.25rem; background: var(--white); }

.map-card .map-city { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; color: var(--ink); }

.map-card .map-sub { font-size: 0.8rem; color: var(--gray); }

/* ---------- Footer (compressed, with zoomable HQ map) ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border-dark);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 3rem;
  align-items: start;
}

/* Green Web Foundation hosting badge: top-right on desktop/tablet (top edge
   aligned with the logo and the Locations / Let's Connect headings), centered
   on mobile where the whole footer centers */
.footer-badge { align-self: start; justify-self: end; line-height: 0; }
.footer-badge img { width: 200px; height: 95px; filter: grayscale(1); opacity: 0.8; transition: opacity 0.2s; }
.footer-badge:hover img { opacity: 1; }

@media (max-width: 820px) {
  /* logo + link columns stack in col 1; badge holds the top-right corner */
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-badge { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

@media (max-width: 600px) {
  /* fully centered footer: logo, side-by-side link columns, badge, © line */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-badge { grid-column: auto; grid-row: auto; justify-self: center; margin-top: 0.5rem; }
  .site-footer .footer-logo img { margin-inline: auto; }
  .footer-locs { justify-content: center; text-align: center; }
}

.site-footer .footer-logo img { height: 67px; width: auto; margin-bottom: 1.75rem; }

.footer-locs {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-locs h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.footer-locs p { font-size: 0.9rem; color: var(--gray-light); line-height: 1.8; }

.footer-locs a { color: var(--gray-light); text-decoration: none; transition: color 0.2s; }
.footer-locs a:hover { color: var(--yellow); }








.footer-line {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
}

.footer-line a { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.footer-line a:hover, .footer-line a[aria-current="page"] { color: var(--yellow); }

/* ---------- Shared responsive grids ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col, .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-grid .headshot-frame { max-width: 240px; }
}

/* ---------- Bio / headshot ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
}

/* Desktop: smaller headshot column + the paragraphs sit at their natural
   2rem gap instead of being stretch-pinned to the (now shorter) headshot
   block — this is what actually closes the space between them. Must follow
   the base rules to win the cascade. */
@media (min-width: 861px) {
  /* 240px: narrow enough to keep the paragraphs close, wide enough that
     "Jesse Prier" never stacks and the role line holds to two lines */
  .bio-grid { grid-template-columns: 240px 1fr; }
  .bio-grid .bio-name { white-space: nowrap; }
  /* .bio-grid prefix outranks the base .bio-right rule further down */
  .bio-grid .bio-right { justify-content: flex-start; }
}

/* top of headshot meets paragraph one; name/role bottom meets paragraph two */
.bio-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.bio-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  /* single-column bio: without a width the aspect-ratio headshot frame
     stretches to the full column (huge at tablet widths) */
  .bio-left { align-items: center; text-align: center; }
  .bio-left .headshot-frame { width: 200px; margin-left: auto; margin-right: auto; }
  .bio-name, .bio-role { justify-content: center; }
}

/* Circular headshot (explicit exception to the square-corners rule).
   Source photo is landscape 4913x3456: NEVER put it in a fixed square box
   without object-fit, that squeezes the face. Cover-crop it instead. */
.headshot-frame {
  position: relative;
  aspect-ratio: 1;
}

.headshot-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--gold) 45%, var(--purple));
  z-index: 0;
}

.headshot-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.bio-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.bio-role .pronouns { font-weight: 400; text-transform: none; letter-spacing: 0.02em; color: var(--gray); }

.bio-role a { display: inline-flex; color: var(--purple); transition: color 0.2s; }
.bio-role a:hover { color: var(--gold); }

/* ---------- Sonar ripple (click feedback) ---------- */

.sonar-ring {
  position: fixed;
  border: 1.5px solid var(--gold);
  border-radius: 50%; /* rings are circles by nature; not a card */
  pointer-events: none;
  z-index: 9999;
  transform: scale(0);
  opacity: 0.8;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }

/* Full-page capture aid: no real viewport is 3000px+ tall. Keeps vh-sized
   heroes sane in headless full-page screenshots. */
@media (min-height: 3000px) {
  .hero { min-height: 820px !important; }
  .step-screen { min-height: 0 !important; }
}


/* ---------- Hero swap (invisible -> discovered wipe) ---------- */

.hero-swap {
  display: grid;
  --mx: 50%;
  --my: 50%;
  /* 0.6px floor, never 0: WebKit (all iPad browsers) renders a zero-radius
     radial-gradient mask as EMPTY, vanishing both layers after ease-back */
  --mr: 0.6px;
}

.hero-swap .swap-layer { grid-area: 1 / 1; white-space: nowrap; }

.hero-swap .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.2);
}

/* radial reveal: works from any swipe direction; soft 90px edge */
.hero-swap .swap-discovered {
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--mr) - 90px), transparent var(--mr));
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--mr) - 90px), transparent var(--mr));
}

.hero-swap .swap-invisible {
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) - 90px), #000 var(--mr));
  mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) - 90px), #000 var(--mr));
}

/* Touch devices: a viewport-fixed "peel strip" (between --bt and --bb in
   element coords, set by JS on scroll) reveals DISCOVERED as the text
   scrolls through it — same soft edge as the ripple, but a horizontal line.
   Composited WITH the radial tap/swipe mask: discovered = radial OR strip,
   invisible = NOT radial AND NOT strip. Defaults park the strip far above
   so it contributes nothing until JS drives it. */
.hero-swap { --bt: -9999px; --bb: -9999px; }

.hero-swap.scroll-peel .swap-discovered {
  -webkit-mask-image:
    radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--mr) - 90px), transparent var(--mr)),
    linear-gradient(to bottom, transparent calc(var(--bt) - 40px), #000 var(--bt), #000 var(--bb), transparent calc(var(--bb) + 40px));
  mask-image:
    radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--mr) - 90px), transparent var(--mr)),
    linear-gradient(to bottom, transparent calc(var(--bt) - 40px), #000 var(--bt), #000 var(--bb), transparent calc(var(--bb) + 40px));
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.hero-swap.scroll-peel .swap-invisible {
  -webkit-mask-image:
    radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) - 90px), #000 var(--mr)),
    linear-gradient(to bottom, #000 calc(var(--bt) - 40px), transparent var(--bt), transparent var(--bb), #000 calc(var(--bb) + 40px));
  mask-image:
    radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) - 90px), #000 var(--mr)),
    linear-gradient(to bottom, #000 calc(var(--bt) - 40px), transparent var(--bt), transparent var(--bb), #000 calc(var(--bb) + 40px));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* touch + reduced-motion: settle on the discovered state */
.hero-swap.swap-static .swap-discovered { -webkit-mask-image: none; mask-image: none; }
.hero-swap.swap-static .swap-invisible { display: none; }

@media (max-width: 700px) {
  .hero-swap .swap-layer { white-space: normal; }
}

/* ---------- Collaborators (About) ---------- */

/* Desktop: the About hero fills the viewport so its background runs past
   the fold and the wave divider never peeks above it (!important beats the
   inline min-height:72vh, which mobile keeps). */
@media (min-width: 601px) {
  .about-hero { min-height: 100vh !important; }
}

/* was an inline style on the h2; classed so mobile can enlarge it.
   h2.collab-head outranks h2.display (same specificity, later in file). */
h2.collab-head { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }

.collab-carousel { display: block; }

.collab-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 0.5rem 0;
}

.collab-item {
  flex-shrink: 0;
  width: 132px;
  text-align: center;
}

/* deemphasized vs. Jesse's bright headshot: muted hues, soft opacity */
.collab-item svg { width: 108px; height: 108px; margin: 0 auto 0.6rem; opacity: 0.75; }

.collab-item .collab-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
}

/* ---------- Bio name row ---------- */

.bio-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-transform: uppercase;
  line-height: 1;
}

.bio-name a { display: inline-flex; color: var(--purple); transition: color 0.2s; }
.bio-name a:hover { color: var(--gold); }

.bio-name .pronouns {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  color: var(--gray);
}

/* ---------- Certification badge row (grayscale, not linked) ---------- */

.badge-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.75rem;
}

.badge-row img {
  height: 76px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .badge-row { flex-wrap: wrap; }
}

/* ---------- Out in Climate row ---------- */

/* Out in Climate + certifications read as their own screenful below the maps */
.oic-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 11rem;
}

/* flex-shrink squeezes the anchor at some widths and the fixed-height image
   distorts horizontally (seen in Brave); pin the item and the aspect */
.oic-row .oic-logo { flex: 0 0 auto; display: block; }
.oic-row .oic-logo img { height: 88px; width: auto; max-width: none; }

@media (max-width: 600px) {
  .oic-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Discoverability score modal ---------- */

.score-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.score-modal[hidden] { display: none; }

.score-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(4px);
}

.score-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--black);
  border: 2px solid var(--gold);
  padding: 0.5rem;
}

/* Height hugs the Dialed form's natural content with no in-form scroll.
   Content measured 7/21/26 after the descriptive intro was added in Dialed:
   474px at desktop iframe width, 538px at phone width (wraps taller when
   narrow). Re-measure if the form's copy or fields change again. */
.score-modal-panel iframe { display: block; height: 510px; }
@media (max-width: 600px) {
  .score-modal-panel iframe { height: 580px; }
}

.score-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.score-modal-close:hover { background: var(--gold); }

@media (max-width: 600px) {
  .score-modal { padding: 0.5rem; }
  .score-modal-panel { max-height: 96vh; }
}

/* Dialed form embed frame */
.form-embed { padding: 0.75rem; }
.form-embed iframe { display: block; }

/* Contact hero (was an inline style; classed so mobile can soften it) */
.contact-hero { padding-top: 12rem; min-height: 88vh; }
@media (max-width: 600px) {
  /* the Dialed captcha pushes Submit below the fold, so everything above
     the form compresses: the whole form + Submit must fit one screenful.
     !important beats the h1/lead inline styles (mobile-only; desktop keeps
     the inline values untouched). */
  /* 5.5rem left ~15px visible below the 73px fixed nav; Jesse wants 3x that */
  .contact-hero { padding-top: 7.5rem; padding-bottom: 3rem; min-height: 0; }
  .contact-hero h1 { font-size: 1.7rem !important; }
  .contact-hero h1 > span { margin-top: 0.4rem !important; }
  .contact-hero .lead { margin: 0.6rem 0 0 !important; font-size: 1rem; }
  .contact-hero .two-col { gap: 1.1rem; }
}

/* ---------- Mobile pass v19 (Jesse's phone feedback, 7/21/26) ---------- */
@media (max-width: 600px) {
  /* hero type: the question always fits ONE line (vw-scaled, nowrap; the
     -1rem right margin is rounding slack so "rank?" never trails); eyebrow
     and score note at +50% of their previous mobile sizes */
  .cta-aside { font-size: 6.5vw; white-space: nowrap; margin-right: -1rem; }
  .hero .eyebrow { font-size: 1.25rem; line-height: 1.55; }
  .cta-note { font-size: 1.2rem; line-height: 1.65; }

  /* "don't be INVISIBLE" breathes: a full INVISIBLE letter-height (1em of
     the h1 font) of clear space above and below */
  .hero-swap { margin-top: 1em; margin-bottom: 1em; }

  /* marquee: original mobile size (the -33% desktop cut was illegible here) */
  .fold-line { font-size: 1.8rem; }

  /* stats screenful: tighter gap to the hero, everything centered */
  .hero + .section { padding-top: 3.5rem; text-align: center; }

  /* the yellow band reads as its own screenful (caps are absolute, so the
     flex centering only moves the .container) */
  .gradient-band {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92vh;
    min-height: 92svh;
  }
  .band-lines { line-height: 1.75; margin-top: 1.25rem; }

  /* steps: numbers hidden on phones; icon + 2x header share one line,
     vertically centered on each other (flex keeps the icon centered against
     the text even when a long phrase wraps beside it) */
  .step-num { display: none; }
  .step-head { text-align: left; }
  .step-head h3 { font-size: 3.2rem; display: flex; align-items: center; justify-content: flex-start; gap: 0.35em; }
  .step-icon { display: block; width: 1.6em; height: 1.6em; margin: 0; }

  /* headshot CTA screenful: center every element */
  .cta-grid { text-align: center; justify-items: center; }
  .cta-grid .lead { margin-left: auto; margin-right: auto; }
  .cta-grid div[style*="display: flex"] { justify-content: center; }
}

/* ---------- About mobile (v20 — Jesse's phone feedback, 7/21/26) ---------- */
@media (max-width: 600px) {
  /* hero Reach Out centered */
  .about-hero-cta { text-align: center; }

  /* bio: headshot ~55% smaller and centered, with name/title/years */
  .bio-left { align-items: center; text-align: center; }
  .bio-left .headshot-frame { width: 186px; margin-left: auto; margin-right: auto; }
  .bio-name { justify-content: center; }
  .bio-role { justify-content: center; }

  /* section headers that render too small on phones */
  h2.collab-head { font-size: 2.4rem; }

  /* about hero: everything above the fold centered */
  .about-hero .hero-content { text-align: center; }
  .about-hero .hero-content h1,
  .about-hero .hero-content p { margin-left: auto; margin-right: auto; }

  /* "marketing micro-agency" on ONE line on every phone, ~6-8% larger than
     the old wrapped size: vw-scaled font + a slight full-bleed so the line
     has the width it needs. Coefficient tuned against measured glyph width. */
  .micro-line {
    display: block;
    white-space: nowrap;
    /* 10.7vw renders the phrase ~90vw wide: >=5% clear on each side */
    font-size: 10.7vw;
    margin-left: -2rem;
    margin-right: -2rem;
  }
  /* +50% gap between "A full-stack" and "Marketing" (inline 0.22em) */
  .about-hero .stack-line { margin-bottom: 0.33em !important; }
  /* 2x gap between "...-Agency" and "for clean..." (inline 0.45em) */
  .about-hero .header-alt { margin-top: 0.9em !important; }
  /* Reach Out 30% larger (base .btn is 0.78rem / 1.05rem 2.2rem padding) */
  .about-hero-cta .btn { font-size: 1.01rem; padding: 1.35rem 2.85rem; }

  /* OiC logo rides a little higher into the white space above the paragraph */
  .oic-row .oic-logo { margin-top: -2rem; }

  /* Portfolio ribbons choreography: Amazon focal in the 1st second, then
     Rivian trails it, then ABB, then Goldman + Stanford. The Amazon ribbon
     runs FORWARD on phones (reverse would lead with Rivian); the negative
     delays jump each ribbon so its focal logo crosses center on cue.
     Values computed from measured logo positions at 375px. */
  /* Ribbon directions alternate (rows 1/3 right-to-left, rows 2/4 left-to-
     right — row 2 keeps its native reverse per Jesse 7/21). Delays measured
     at 375px (W: 1004/964/795, 18s cycles); they hold at other widths
     because logo positions and travel both scale with W. Amazon opens at
     center ~0.8s (Rivian beside it), then ABB ~7.5s, Goldman ~10.5s,
     Stanford ~13.8s. rms.js restarts the clocks when the Portfolio section
     first scrolls into view. */
  .ticker-group:nth-of-type(1) .ticker-inner { animation-delay: -9.1s; }   /* ABB */
  .ticker-group:nth-of-type(2) .ticker-inner { animation-delay: -1.85s; }  /* Amazon (reverse) */
  .ticker-group:nth-of-type(3) .ticker-inner { animation-delay: -4s; }     /* Goldman, Stanford */

  /* collaborator avatars: one horizontal strip, native drag scroll,
     full-bleed to the screen edges (negative margins cancel the container
     gutters; padding puts the resting position back on the grid) */
  .collab-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem 0.5rem;
    scrollbar-width: none;
  }
  .collab-inner::-webkit-scrollbar { display: none; }
  .collab-item { flex: 0 0 auto; }

  /* portfolio tickers: logos 50%, 2x speed (badge/award sizes re-asserted
     so only the logo gardens shrink; badges already run 18s below) */
  .ticker-inner { animation-duration: 18s; }
  .ticker-inner img { height: 25px; }
  .ticker-inner img.logo-lg { height: 31px; }
  .ticker-badges img { height: 64px; }
  .ticker-awards img { height: 54px; }

  /* maps: horizontal drag strip like the avatars, cards at 67% size,
     fonts untouched */
  .maps-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem 0.5rem;
    scrollbar-width: none;
  }
  .maps-row::-webkit-scrollbar { display: none; }
  .map-card { flex: 0 0 auto; width: 208px; }
  .map-card img { height: 140px; }

  /* Out in Climate logo centered */
  .oic-row { align-items: center; }

  /* certification badges travel at 2x speed */
  .ticker-badges { animation-duration: 18s; }

  /* "pain points" never orphans the word "points" */
  .keep-together { white-space: nowrap; }

}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; flex-wrap: wrap; width: auto; }
  .gradient-band, .gradient-text, .step-num, .wave-line svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- CookieYes consent banner: brand overrides ----------
   CookieYes (loaded via GTM) renders in the page DOM and applies its
   dashboard colors as inline styles; these !important rules outrank them.
   Cosmetic only: if a CookieYes update renames classes, the banner reverts
   to their default look and consent behavior is unaffected. The
   "Powered by CookieYes" credit stays visible (free-tier terms). */

.cky-consent-bar, .cky-preference-center {
  background: var(--black) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.cky-consent-container, .cky-modal { font-family: var(--font-body) !important; }
.cky-title, .cky-preference-title { color: var(--white) !important; }
.cky-notice-des, .cky-notice-des p, .cky-accordion-header-des { color: var(--gray-light) !important; }
.cky-btn {
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  transition: border-color 0.2s, color 0.2s !important;
}
.cky-btn:hover {
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
  background: transparent !important;
}
.cky-btn-revisit-wrapper {
  background: var(--black) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
