/* WillsGrowth.com: site styles.
   Pixel swamp design (Alex, 2026-11-17; vault: Portfolio/Website - WillsGrowth/Website Concepts/Pixel Swamp Handoff,
   copied to reference/concepts/pixel-swamp/): concept 01's bright daytime pixel-art bayou, with concept 05's chunky
   pixel headline. The full scene (trees, sky, water) appears only in the homepage hero. Everywhere else the page is
   the repeating pixel water and lily-pad tile, and all text and widgets sit in solid evergreen boxes with hard pixel
   frames, a moss cap and hanging pixel ivy that grows on hover or focus (end of this file). Water ripples move in
   stepped, game-like frames; reduced motion and the Pause scenery button stop them. Electric blue #007ff7 (the
   alligator; #38b8ff for text) and orange #ff7d01 CTAs with dark text. Inter for reading; Press Start 2P only for
   the main headline and major section headings. The case study components come from the Grow Your Fintech build
   (itself ported from RaiseFM), retokened to this palette. */

:root {
  /* Pixel swamp palette (handoff IMPLEMENTATION.md, section 3) */
  --swamp-ink: #062e28;       /* hard outer frame, dark text on light surfaces */
  --swamp-panel: #043c33;     /* box faces */
  --swamp-panel-deep: #02332d;/* header, career band, footer, inset tiles */
  --swamp-border: #729c42;    /* inner green pixel frame */
  --swamp-gold: #dfd781;      /* header outline, band rules */
  --swamp-leaf: #b8e92c;      /* moss highlight, active frame */
  --swamp-water: #009b9f;     /* under the water art */

  /* The older token names, mapped onto the palette so every component follows it */
  --wg-ink: #062e28;
  --wg-bg: #02332d;
  --wg-deep: #02332d;
  --wg-card: #043c33;
  --wg-card-2: #0a4a3e;
  --wg-forest: #043c33;
  --wg-white: #f5fff1;
  --wg-muted: #d6eee0;        /* 10.9:1 on the box face */
  --wg-blue: #007ff7;         /* the alligator; large display text and fills only */
  --wg-accent: #38b8ff;       /* blue for text and links on the boxes: 6.4:1 */
  --wg-accent-hover: #9adbff;
  --wg-orange: #ff7d01;       /* CTAs and the selected-button state; dark text on it */
  --wg-orange-hover: #ff9e32;
  --wg-focus: #ffffff;
  --line: #2f6a52;            /* rules inside a box */
  --line-soft: #1f5446;
  --field: #02332d;
  --error: #ff9a6b;
  --content-max: 1320px;

  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
  --font-body: "Inter", system-ui, Arial, sans-serif;
  --font-pixel: "Jersey 15", "Inter", system-ui, sans-serif;   /* every heading and the site name (Alex, 2026-11-18) */

  --pad: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 5vw, 80px);
  --radius: 0;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --radius-card: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Pixel frame: a hard ink edge (the border), then a green frame, a dark line and a faint inner hairline */
  --px-frame: inset 0 0 0 4px var(--swamp-border), inset 0 0 0 6px #172f23, inset 0 0 0 8px var(--frame-face, var(--swamp-panel)), inset 0 0 0 10px rgba(202, 216, 120, 0.27);
  --px-shadow: 4px 4px 0 #061e1b;
  --ivy-h: 120px;             /* hanging ivy depth; every ivy box reserves it plus clearance for the next moss cap */
  --water-tile: 640px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* the pixel water and lily pads behind everything below the hero, a static repeat (the moving ripples are a
     separate layer, js/main.js) */
  background: var(--swamp-water) url("../assets/images/pixel/water-lily-tile.webp") left top / var(--water-tile) var(--water-tile) repeat;
  image-rendering: pixelated;   /* nearest-neighbour for the tile; body puts photos back to normal smoothing */
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: transparent;
  color: var(--wg-white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  image-rendering: auto;
}

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

a { color: var(--wg-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--wg-accent-hover); }

p { margin: 0 0 1em; }

/* Every heading is in the pixel face (Jersey 15); paragraphs and labels stay in Inter */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--wg-focus);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

[id] { scroll-margin-top: 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--wg-white);
  color: var(--wg-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Open item to resolve before launch. Visible in review on purpose; tools/check_site.py lists them and
   tools/make_dist.py refuses to build while any remain. */
.todo {
  background: rgba(255, 125, 1, 0.16);
  color: #ffd9b8;
  border: 1px dashed var(--wg-orange);
  border-radius: 4px;
  padding: 0 0.3em;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Buttons and links ----------
   Pixel game buttons: square, a hard 3px border and a 4px offset shadow. Hover lifts 2px, pressing pushes 2px into
   the shadow. No hanging ivy on buttons (the ivy is for boxes; handoff section 8). */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.7em 1.3em;
  border: 3px solid #ffbc58;
  border-radius: 0;
  background: var(--wg-orange);
  color: #06251f;
  box-shadow: var(--px-shadow);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms steps(2, end), background-color 120ms steps(2, end);
}
.btn:hover,
.btn:focus-visible { background: var(--wg-orange-hover); border-color: #fff4cc; color: #06251f; transform: translateY(-2px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #061e1b; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-ghost,
.btn-outline {
  background: var(--swamp-panel);
  border-color: #d4eee0;
  color: var(--wg-white);
}
.btn-ghost:hover, .btn-ghost:focus-visible,
.btn-outline:hover, .btn-outline:focus-visible { background: #145e45; border-color: #fff4cc; color: var(--wg-white); }
@media (hover: none) { .btn:hover { transform: none; } }

/* ---------- Header ----------
   A slim evergreen bar: gold frame, hard ink outer edge, green inner line. On the homepage it sits inside the scene;
   on other pages it floats on the water. Every menu label (and the Let's connect button) gets the same selected
   game-button look on hover and keyboard focus: orange fill, pale orange border, dark text and a hard 4px shadow.
   Labels always carry their 2px border (transparent at rest), so nothing moves when the selection appears. */

.site-header { position: relative; z-index: 20; padding-top: 16px; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 8px 12px 8px 16px;
  background: var(--swamp-panel-deep);
  border: 4px solid var(--swamp-gold);
  box-shadow: 0 0 0 4px var(--swamp-ink), inset 0 0 0 3px var(--swamp-border), 4px 12px 0 0 rgba(4, 60, 51, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-height: 48px;
  color: var(--wg-white);
  text-decoration: none;
}
.brand:hover { color: var(--wg-white); }
.brand-mark { width: auto; height: 32px; }
.brand-divider { width: 2px; height: 28px; background: #a2bca4; }
.brand-name { font-family: var(--font-pixel); font-weight: 400; font-size: 1.75rem; letter-spacing: 0.01em; line-height: 1; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--swamp-gold);
  border-radius: 0;
  background: var(--swamp-panel);
  color: var(--wg-white);
  box-shadow: 3px 3px 0 #061e1b;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible, .nav-toggle[aria-expanded="true"] { background: var(--wg-orange); border-color: #ffce75; color: #082b22; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open { display: block; }

.nav-list { list-style: none; }
.nav-list a,
.nav-connect {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid transparent;
  color: var(--wg-white);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.nav-connect { border-color: var(--wg-orange); }
.nav-connect svg { width: 1em; height: 1em; flex: none; }
/* the page you are on: a leaf-green bar under the label */
.nav-list a[aria-current] { box-shadow: inset 0 -4px 0 var(--swamp-leaf); }
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-connect:hover,
.nav-connect:focus-visible {
  color: #082b22;
  background: var(--wg-orange);
  border-color: #ffce75;
  box-shadow: 4px 4px 0 #061e1b;
  outline-offset: 4px;
}
.nav-list a:active, .nav-connect:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #061e1b; }

@media (max-width: 1023.98px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: -4px;
    right: -4px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: 12px;
    background: var(--swamp-panel-deep);
    border: 4px solid var(--swamp-gold);
    box-shadow: 0 0 0 4px var(--swamp-ink), inset 0 0 0 3px var(--swamp-border), 6px 6px 0 4px rgba(6, 30, 27, 0.6);
  }
  .nav-list { display: grid; gap: 6px; }
  .nav-list > li > a { min-height: 52px; font-size: 1.125rem; }
  .nav-cta { padding-top: 12px; }
  .nav-connect { min-height: 52px; justify-content: center; font-size: 1.125rem; }
}

@media (max-width: 419.98px) {
  .header-inner { padding-left: 12px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { height: 26px; }
  .brand-divider { height: 22px; }
  .brand-name { font-size: 1.0625rem; }
}

@media (min-width: 1024px) {
  .site-header { padding-top: 22px; }
  .nav-toggle { display: none; }
  .header-inner { min-height: 72px; padding: 10px 14px 10px 22px; }
  .brand { gap: 18px; }
  .brand-mark { height: 38px; }
  .brand-divider { height: 30px; }
  .brand-name { font-size: clamp(1.4rem, 1.9vw, 1.7rem); }
  .site-nav { display: flex !important; align-items: center; gap: 14px; }
  .nav-list { display: flex; align-items: center; gap: 14px; }
  .nav-list > li > a, .nav-connect { font-size: 1.0625rem; }
}

/* ---------- Homepage hero ----------
   The clean pixel bayou (assets/images/pixel/hero-swamp.webp, no text, logo or alligator in it) fills the hero like
   background-size: cover. It is drawn in .hero-scene, a box with the art's own 1672:941 shape sized with container
   units, so the water mask below lines up with the art at every width. --sx and --sy pick which part stays in view
   when the art is cropped (like object-position). Only the water moves: two layers of stepped ripple highlights
   (assets/images/pixel/water-ripples.svg), clipped to the water so the trees, roots, reeds, text and buttons stay
   still. The text sits in the shared evergreen box (.hero-copy, see Pixel boxes); the alligator is the separate PNG
   to its right, never part of the scene. */

.home .site-header { position: absolute; top: 0; left: 0; right: 0; }

.hero { position: relative; isolation: isolate; }
.hero-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--swamp-water);
}

.hero-backdrop { position: absolute; inset: 0; z-index: -1; container-type: size; overflow: hidden; pointer-events: none; }
.hero-scene {
  --sx: 50%;
  --sy: 58%;
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: max(100cqw, 177.684cqh);   /* 1672 / 941 */
  aspect-ratio: 1672 / 941;
  transform: translate(calc(-1 * var(--sx)), calc(-1 * var(--sy)));
}
.hero-scene-art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }

/* The water, in percentages of the art: from the waterline down, leaving out the reeds on the left of the waterline,
   the big cypress and its roots on the right and the reeds along the bottom corners */
.hero-water {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(8% 55.6%, 89% 55.6%, 88% 62%, 85% 66%, 85% 72%, 100% 72%, 100% 80%, 83% 83%, 73% 100%, 21% 100%, 15% 84%, 0 81%, 0 58.6%, 8% 58.6%);
}
.water-ripples {
  position: absolute;
  inset: -24px;
  background: url("../assets/images/pixel/water-ripples.svg") 0 0 / 256px 256px repeat;
  image-rendering: pixelated;
  opacity: 0.38;
  animation: ripple-step 2.4s steps(6, end) infinite;
  will-change: transform;
}
.water-ripples-back { animation: ripple-step-back 3.2s steps(8, end) infinite; }
@keyframes ripple-step {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(12px); }
}
@keyframes ripple-step-back {
  0%, 100% { transform: translate(24px, 36px); opacity: 0.13; }
  50%      { transform: translate(8px, 36px); opacity: 0.22; }
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding-top: calc(22px + 80px + 56px);
  padding-bottom: 24px;
}

.hero-eyebrow {
  margin: 0 0 24px;
  color: var(--wg-orange);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.hero-eyebrow .name { color: var(--wg-white); }

.hero-title {
  margin: 0 0 23px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: initial;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title .blue { color: var(--wg-accent); }

.hero-lede { max-width: 30em; margin: 0 0 26px; color: var(--wg-white); font-size: 1.25rem; line-height: 1.55; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.hero-gator { position: relative; align-self: center; min-width: 0; margin-bottom: var(--ivy-h); pointer-events: none; }
.hero-gator img { width: 100%; height: auto; filter: drop-shadow(0 5px 0 #024b5b); }
.hero-gator::after { /* a stepped pixel shadow on the water under the alligator */
  content: "";
  position: absolute;
  left: 22%;
  right: 14%;
  bottom: -18px;
  height: 12px;
  background: rgba(0, 75, 105, 0.33);
  clip-path: polygon(6% 0, 94% 0, 94% 33%, 100% 33%, 100% 66%, 88% 66%, 88% 100%, 12% 100%, 12% 66%, 0 66%, 0 33%, 6% 33%);
}

/* Career experience: the one solid band between the scene and the water below. Employers, not clients. */
.hero-strip {
  position: relative;
  z-index: 2;
  padding: 22px 0;
  background: var(--swamp-panel-deep);
  border-top: 4px solid var(--swamp-gold);
  border-bottom: 4px solid var(--swamp-border);
  box-shadow: inset 0 2px 0 var(--swamp-ink), inset 0 -2px 0 var(--swamp-ink);
}
.strip { display: flex; align-items: center; gap: 12px 30px; }
.strip-label { flex: none; min-width: 185px; margin: 0; color: var(--wg-white); font-weight: 700; line-height: 1.5; }
.strip-label small { display: block; color: var(--wg-muted); font-size: 0.8125rem; font-weight: 400; }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.strip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid transparent;
  color: var(--wg-white);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.strip-list a:hover,
.strip-list a:focus-visible { color: #082b22; background: var(--wg-orange); border-color: #ffce75; box-shadow: 4px 4px 0 #061e1b; }

@media (min-width: 801px) {
  .hero-main { min-height: clamp(700px, 56vw, 880px); }
}
@media (max-width: 1100px) {
  .hero-content { gap: 24px; }
  .hero-title { font-size: clamp(2.5rem, 4.4vw, 3.4rem); }
  .hero-lede { font-size: 1.125rem; }
}
/* Phones and tablets: the box first, then the alligator in the water below it */
@media (max-width: 800px) {
  .hero-scene { --sx: 68%; --sy: 50%; }
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: calc(16px + 76px + 48px); padding-bottom: 28px; }
  .hero-copy { width: 100%; max-width: 650px; margin-inline: auto; }
  .hero-title { font-size: clamp(2.6rem, 8vw, 4rem); }
  .hero-gator { width: min(470px, 80%); justify-self: end; margin-bottom: 24px; }
  .strip { display: block; }
  .strip-label { margin-bottom: 12px; }
  .strip-list { gap: 6px 10px; }
}
@media (max-width: 520px) {
  .hero-eyebrow { font-size: 0.75rem; margin-bottom: 20px; }
  .hero-title { font-size: clamp(1.7rem, 8.4vw, 2.5rem); }
  .hero-lede { font-size: 1.0625rem; }
  .hero-actions .btn { font-size: 0.9375rem; padding-inline: 14px; }
  .strip-list a { font-size: 1rem; padding-inline: 10px; }
}

/* ---------- Page header (inner pages) ----------
   The title sits in a shared evergreen box (.page-panel, see Pixel boxes) on the water. */

.page-hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 0; }
.page-panel { max-width: 62rem; }
.page-title {
  max-width: 22em;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
}
.page-lede {
  max-width: 44em;
  margin: 1.1em 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--wg-muted);
}

/* ---------- Sections ---------- */

/* The ivy reserved under each row of boxes already spaces the sections, so the sections add little of their own */
.section { position: relative; padding-block: clamp(28px, 3vw, 44px) 0; }
.section + .section { padding-top: 0; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--wg-orange);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::after { /* a short pixel bar */
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 4px;
  margin-left: 14px;
  background: var(--wg-accent);
}

.section-head { position: relative; max-width: 56em; }
/* Major headings, in the pixel face like every heading */
.section-title {
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.1;
}
.section-title .blue { color: var(--wg-accent); }
.section-title .orange { color: var(--wg-orange); }
.section-lede { margin: 18px 0 0; max-width: 44em; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--wg-muted); }
.section-foot { margin-top: -8px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* ---------- About (homepage) ----------
   Faces, frames, moss and ivy for the boxes below come from Pixel boxes at the end of this file. */

.about-grid { display: grid; gap: 34px; align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.about-copy > p { color: var(--wg-muted); font-size: 1.125rem; max-width: 40em; }
.about-copy > p:last-child { margin-bottom: 0; }
.about-copy > p.strong { color: var(--wg-white); font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.5; }
.about-copy .section-title + p { margin-top: 22px; }

.portrait { position: relative; margin: 0; width: 100%; max-width: 24rem; justify-self: center; }
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 4px solid var(--swamp-ink);
  background: linear-gradient(180deg, #38b8ff 0%, #2f9fd8 55%, #1d7a6a 100%);
}
.portrait-frame img { position: absolute; left: 50%; bottom: 0; width: 112%; max-width: none; transform: translateX(-50%); }
.portrait figcaption { margin-top: 14px; color: var(--wg-muted); font-size: 0.95rem; text-align: center; }
.portrait figcaption strong { display: block; color: var(--wg-white); font-size: 1.25rem; }

/* Five focus areas, each with its proof line and employer */
.focus-list { list-style: none; display: grid; gap: 0 22px; margin-top: 0; }
@media (min-width: 720px) { .focus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .focus-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.focus-list li { display: flex; flex-direction: column; }
.focus-list h3 { font-size: 1.2rem; line-height: 1.2; }
.focus-list h3::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; background: var(--wg-orange); }
.focus-list p { margin: 10px 0 0; color: var(--wg-muted); font-size: 0.975rem; line-height: 1.55; }
.focus-list .where { margin-top: auto; padding-top: 14px; color: var(--wg-accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Experience in numbers ---------- */

.stats { list-style: none; display: grid; gap: 0 22px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--wg-white);
}
.stat-figure::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; background: var(--wg-accent); }
.stat-desc { margin: 14px 0 0; color: var(--wg-white); font-size: 1.0625rem; line-height: 1.45; }
.stat-def { margin: 10px 0 0; color: var(--wg-muted); font-size: 0.9rem; line-height: 1.55; }
.stat-where { display: block; margin-top: 12px; color: var(--wg-accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Quotes ---------- */

.quotes { display: grid; gap: 0 22px; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quotes > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .quotes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quotes > *, .quotes > :last-child:nth-child(odd) { grid-column: span 2; }
  .quotes > :nth-child(4):nth-last-child(2), .quotes > :nth-child(5):last-child { grid-column: span 3; }
}
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--wg-white); }
.quote blockquote p { margin: 0 0 0.9em; }
.quote blockquote::before { content: "\201C"; display: block; height: 0.55em; margin-bottom: 14px; font-family: var(--font-pixel); font-size: 4rem; line-height: 1; color: var(--wg-orange); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; color: var(--wg-muted); font-size: 0.9375rem; line-height: 1.4; }
.quote figcaption img { flex: none; width: 52px; height: 52px; object-fit: cover; border: 3px solid var(--wg-accent); box-shadow: 3px 3px 0 #061e1b; }
.quote figcaption strong { display: block; color: var(--wg-white); }
.quote-context { margin: 0 0 12px; color: var(--wg-accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Ventures ---------- */

.ventures { list-style: none; display: grid; gap: 0 22px; }
@media (min-width: 860px) { .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.venture h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.venture p { margin: 12px 0 0; color: var(--wg-muted); }
.venture-status {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 12px;
  border: 2px solid var(--swamp-border);
  background: var(--swamp-panel-deep);
  color: var(--wg-white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.venture-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--wg-orange); vertical-align: 1px; }
.venture-logo { margin: 0 0 6px; }
/* the agency name, for screen readers and the copy export; the logo shows it on screen */
.venture-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.venture-logo img { width: auto; height: clamp(38px, 4vw, 48px); max-width: 100%; }
.venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  margin-top: 14px;
  color: var(--wg-white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wg-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.venture-link svg { width: 1em; height: 1em; color: var(--wg-orange); }
.venture-link:hover, .venture-link:focus-visible { color: var(--wg-orange-hover); }
.ventures-note { margin: 0 0 44px; color: var(--wg-muted); font-size: 0.95rem; max-width: 52em; }

/* ---------- Contact ---------- */

.contact-panel { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) { .contact-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; } }
.contact-title { font-family: var(--font-pixel); font-weight: 600; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.08; }
.contact-title .blue { color: var(--wg-accent); }
.contact-copy p { margin: 18px 0 0; color: var(--wg-muted); font-size: 1.125rem; max-width: 34em; }
.contact-copy .btn { margin-top: 26px; }
.contact-copy p.eyebrow { color: var(--wg-orange); }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list a, .contact-list .contact-static {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  border: 2px solid var(--swamp-border);
  background: var(--swamp-panel-deep);
  color: var(--wg-white);
  text-decoration: none;
}
.contact-list a:hover, .contact-list a:focus-visible { border-color: #ffce75; box-shadow: 4px 4px 0 #061e1b; color: var(--wg-white); }
.contact-list a:hover .c-go, .contact-list a:focus-visible .c-go { color: var(--wg-orange-hover); }
.contact-list svg { width: 22px; height: 22px; justify-self: center; color: var(--wg-accent); }
.contact-list .c-label { display: block; color: var(--wg-muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list .c-value { display: block; font-weight: 700; overflow-wrap: anywhere; }
.contact-list .c-go { color: var(--wg-orange); font-weight: 700; }

/* Compact closing band on inner pages */
.closing { padding-block: 0; }
.closing .contact-panel { grid-template-columns: 1fr; }
@media (min-width: 960px) { .closing .contact-panel { grid-template-columns: minmax(0, 1fr) auto; } }
.closing .contact-copy p { margin-top: 12px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0 calc(40px + 56px);   /* room for the Pause scenery button at the very end */
  background: var(--swamp-panel-deep);
  border-top: 4px solid var(--swamp-gold);
  box-shadow: inset 0 2px 0 var(--swamp-ink);
}
.footer-top { display: grid; gap: 28px 48px; padding-bottom: 32px; border-bottom: 2px solid var(--line); }
@media (min-width: 900px) { .footer-top { grid-template-columns: auto 1fr; align-items: start; } }
.footer-brand p { margin: 16px 0 0; max-width: 28em; color: var(--wg-muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px; border: 2px solid transparent; color: var(--wg-white); font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #082b22; background: var(--wg-orange); border-color: #ffce75; box-shadow: 4px 4px 0 #061e1b; }
.footer-legal { padding-top: 26px; display: grid; gap: 10px; color: #bcd6c9; font-size: 0.875rem; line-height: 1.6; }
.footer-legal p { margin: 0; max-width: 76em; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(56px, 9vw, 120px) 0; }
.not-found .btn { margin-top: 28px; }

/* ---------- Lists and small pieces (from the Grow Your Fintech build) ---------- */
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 30px; color: var(--wg-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--wg-accent);
  border-radius: 0;
  transform: rotate(45deg);
}
.check-list strong { color: var(--wg-white); }

.proof-line {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--wg-orange);
  background: rgba(10, 20, 34, 0.7);
  border-radius: 0;
  color: var(--wg-white) !important;
  font-size: 1rem !important;
}

.card-title-sm { margin-bottom: 18px; font-size: 0.8125rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wg-white); }

/* ---------- Brands ---------- */

.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--wg-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
  flex-direction: column;
  gap: 6px;
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }

/* Logo version (StartEngine case study's "Issuers Worked With"): the logos are drawn for light backgrounds, so their
   tiles are light; --h on each img evens out how big the marks look */
.brand-logos { font-size: 1.1rem; }
.brand-logos li { min-height: 6.5rem; padding: 1rem 0.75rem; background: #fefefa; border-color: transparent; transition: border-color 200ms, transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.brand-logos li:hover { border-color: var(--wg-accent); box-shadow: var(--px-shadow); }
.brand-logos img { display: block; height: var(--h, 2em); width: auto; max-width: min(100%, 9em); object-fit: contain; }
.brands-more { margin-top: var(--space-4); }
.brands-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--wg-white);
  font-weight: 600;
  transition: border-color 200ms;
}
.brands-more summary:hover { border-color: var(--wg-accent); }
.brands-more summary::-webkit-details-marker { display: none; }
.brands-more summary::after { content: "+"; font-weight: 700; color: var(--wg-orange); }
.brands-more[open] summary::after { content: "\2212"; }
.brands-more[open] summary { margin-bottom: var(--space-3); }
.brand-grid-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.brand-grid-more li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--wg-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 1024px) { .brand-grid-more { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) {
  .brand-logos li { min-height: 4.75rem; padding: 0.6rem 0.4rem; }
  .brand-grid-more { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--wg-accent);
  border-bottom: 2.5px solid var(--wg-accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--wg-accent); }
.faq .answer { padding: 0 4px 22px; color: var(--wg-muted); max-width: 46em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Case studies ---------- */

/* The case study layout (Alex, 2026-11-10: a photo-led case study style):
   photo hero, figures band, the story in one column with a sticky "On this page" list, then related
   pages. Drawn on the dark surface. */

.list-title-on-dark { color: var(--wg-muted) !important; }
.list-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-muted);
  margin: 0 0 var(--space-2);
}
.capability-list {
  margin: 0;
  background: var(--wg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wg-card);
  border-radius: 0;
  box-shadow: 0 18px 40px -30px rgba(5, 10, 17, 0.45);
}
.capability-list div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: var(--space-3);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.capability-list div:last-child { border-bottom: 0; }
.capability-list dt { font-weight: 700; }
.capability-list dd { margin: 0; color: var(--wg-muted); }
.capability-list { overflow: hidden; }
.capability-list div { transition: background-color 200ms, border-color 200ms; }
.capability-list dt, .capability-list dd { transition: color 200ms; }
.capability-list div:hover { background: var(--wg-card); border-bottom-color: var(--line); }
.capability-list div:hover dt,
.capability-list div:hover dd { color: #fff; }
.cs-messaging { margin-block: var(--space-3); }
.cs-messaging div { grid-template-columns: 10rem 1fr; }
.cs-messaging dd strong { display: block; margin-bottom: 0.2rem; }
.cs-video { margin-top: var(--space-3); }
.crumbs {
  font-size: 0.9rem;
  color: var(--wg-muted);
  margin-bottom: var(--space-3);
}
.crumbs a { color: var(--wg-accent); }
.related-section { border-top: 1px solid var(--line); }
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 1101px) {
  .related-list:has(> li:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .related-list:has(> li:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 861px) {
  .related-list.cs-records { grid-template-columns: repeat(2, 1fr); }
}
.cs-records { margin-top: var(--space-3); }
.related-list a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: var(--space-3);
  color: #fff;
  text-decoration: none;
}
.related-kind {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-muted);
}
.related-list strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--wg-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.related-list strong::after { content: "\2192"; font-size: 1rem; transition: transform 200ms var(--ease); }
.related-list span:last-child { color: var(--wg-muted); }
.related-list a:hover strong::after, .related-list a:focus-visible strong::after { transform: translateX(4px); }
.reg-box {
  border: 1.5px dashed #2a3d55;
  border-radius: 0;
  padding: var(--space-4);
  background: var(--wg-card);
  max-width: 56rem;
}
.reg-box h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-orange);
  margin: 0 0 var(--space-2);
}
.reg-box p { margin: 0 0 var(--space-2); }
.reg-box .reg-sources { margin: 0; font-size: 0.9rem; color: var(--wg-muted); }
/* Case study header: one framed evergreen panel on the water (see Pixel boxes), the text on the left and the
   page's image or logo in its own hard frame on the right; on phones the image comes first. */
.cs-hero { position: relative; padding: clamp(28px, 4vw, 52px) 0 0; color: var(--wg-white); }
.cs-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}
.cs-hero-art { min-width: 0; }
.cs-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  border: 4px solid var(--swamp-ink);
  box-shadow: 0 0 0 2px var(--swamp-border), var(--px-shadow);
  background: var(--swamp-panel-deep);
}
.cs-hero-art .cs-hero-logo { max-width: 300px; margin-inline: auto; }
.cs-hero .crumbs { color: var(--wg-muted); margin-bottom: var(--space-1); }
.cs-hero .crumbs a { color: var(--wg-white); }
@media (max-width: 860px) {
  .cs-hero-panel { grid-template-columns: minmax(0, 1fr); }
  .cs-hero-art { order: -1; }
  .cs-hero-art img { max-height: 320px; }
  .cs-hero-art .cs-hero-logo { max-width: 180px; margin-inline: 0; }
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.cs-back::before { content: "\2190"; color: var(--wg-orange); transition: transform 200ms var(--ease); }
.cs-back:hover::before, .cs-back:focus-visible::before { transform: translateX(-3px); }
.cs-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
}
.cs-tags li {
  padding: 0.35rem 0.8rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-tags .cs-tag-path { background: var(--wg-accent); color: var(--wg-deep); }
.cs-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 1.6rem + 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-2);
}
.cs-lede {
  max-width: 34rem;
  margin: 0 0 var(--space-3);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.3;
  color: #dfe6ef;
  text-wrap: balance;
}
.cs-role {
  max-width: 36rem;
  margin: 0;
  padding-left: var(--space-2);
  border-left: 3px solid var(--wg-orange);
  font-size: 0.92rem;
  color: var(--wg-muted);
}
.cs-stats-band { color: var(--wg-white); padding: 0; }
.cs-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.cs-stat-value {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cs-stats .cs-stat-value { color: var(--wg-orange); }
.cs-stats:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.cs-stat-label {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-stat-note { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--wg-muted); }
.cs-stats .cs-stat-note { color: var(--wg-muted); }
.cs-stats-def {
  max-width: 52rem;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--wg-muted);
}
.cs-body { padding: var(--space-4) 0 var(--space-6); }
.cs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: var(--space-6);
  align-items: start;
}
.cs-content { max-width: 48rem; }
.cs-block { padding: var(--space-5) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.cs-block:first-child { border-top: 0; }
.cs-block > p { margin: 0 0 var(--space-3); max-width: 44rem; }
.cs-intro { font-size: 1.3rem; line-height: 1.5; }
.cs-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.cs-note { color: var(--wg-muted); }
.cs-figure { margin: var(--space-4) 0 0; }
.cs-figure img { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #FEFEFA; transition: border-color 200ms; }
.cs-figure img.is-zoomable { cursor: zoom-in; }
.cs-figure img.is-zoomable:hover { border-color: var(--wg-accent); }
.cs-figure img.is-zoomable:focus-visible { outline: 3px solid var(--wg-accent); outline-offset: 3px; }
.cs-figure figcaption { margin-top: var(--space-1); font-size: 0.88rem; color: var(--wg-muted); }
.cs-chart {
  display: block;
  width: 100%;
  height: auto;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--wg-card);
  font-family: var(--font-body);
}
.cs-chart-grid { stroke: var(--line); stroke-width: 1; }
.cs-chart-axis { fill: var(--wg-muted); font-size: 20px; }
.cs-chart-value { fill: var(--wg-white); font-size: 22px; font-weight: 600; text-anchor: middle; }
.cs-chart-bar { fill: var(--wg-accent); }
.cs-chart-bar.is-peak { fill: var(--wg-orange); }
.cs-chart-col:hover .cs-chart-bar { filter: brightness(0.88); }
.cs-chart-track { fill: var(--line-soft); }
.cs-chart-label { fill: var(--wg-white); font-size: 20px; font-weight: 600; }
.cs-chart-sub { fill: var(--wg-muted); font-size: 15px; }
.cs-chart-num { fill: var(--wg-white); font-size: 21px; font-weight: 700; }
.cs-logos { margin-top: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-logos-label {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-muted);
}
.cs-logos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.cs-steps .cs-logos-list li { display: block; padding: 0; border: 0; }
.cs-logos-list img { display: block; height: var(--h, 2.2rem); width: auto; max-width: 100%; }
.cs-scope { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.cs-list-gap { margin-top: var(--space-4); }
.cs-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.cs-pills li {
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  background: var(--line-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.cs-pills-quiet li { background: transparent; border: 1.5px solid var(--line); font-weight: 500; }
.cs-steps { list-style: none; margin: 0; padding: 0; }
.cs-steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.cs-steps li:first-child { border-top: 0; padding-top: var(--space-1); }
.cs-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--wg-accent);
}
.cs-steps h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; margin: 0.2rem 0 0.5rem; }
.cs-steps p { margin: 0; color: var(--wg-muted); }
.cs-steps p + p { margin-top: var(--space-2); }
.cs-steps .cs-figure, .cs-steps .cs-figure-pair { margin-top: var(--space-3); }
.cs-figure-pair { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); }
.cs-figure-pair .cs-figure { flex: var(--ar, 1) 1 0; min-width: 0; margin: 0; }
.cs-figure-narrow { max-width: 20rem; }
.cs-figure-mid { max-width: 30.5rem; }
.cs-tags .keep-case { text-transform: none; }
.cs-moves {
  list-style: none;
  counter-reset: move;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.cs-moves li {
  counter-increment: move;
  display: flex;
  gap: 0.9rem;
  padding: var(--space-3);
  background: var(--wg-card);
  border: 1px solid var(--line);
  border-radius: 0;
}
.cs-moves li::before { content: counter(move) "."; font-family: var(--font-body); font-weight: 600; color: var(--wg-orange); }
.cs-results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
}
.cs-results li {
  padding: var(--space-3);
  background: var(--wg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wg-accent);
  border-radius: 0;
}
.cs-results li:nth-child(n+4) { border-top-color: var(--wg-orange); }
.cs-results > li:nth-child(3):last-child { grid-column: 1 / -1; }
.cs-results .cs-stat-value { color: var(--wg-accent); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); }
.cs-timeline { list-style: none; position: relative; margin: 0; padding: 0 0 0 1.9rem; }
.cs-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px;
  background: var(--line);
}
.cs-timeline li { position: relative; padding: 0 0 var(--space-3); }
.cs-timeline li:last-child { padding-bottom: 0; }
.cs-timeline li::before {
  content: "";
  position: absolute;
  left: -1.9rem; top: 0.15rem;
  width: 1rem; height: 1rem;
  border-radius: 0;
  background: var(--wg-bg);
  border: 3px solid var(--wg-orange);
}
.cs-timeline p { margin: 0; }
.cs-timeline .cs-when {
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-orange);
}
.cs-learnings { list-style: none; counter-reset: learn; display: grid; gap: var(--space-2); margin: 0; padding: 0; }
.cs-learnings li {
  counter-increment: learn;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--wg-card);
  border: 1px solid var(--line);
  border-radius: 0;
}
.cs-learnings li::before {
  content: counter(learn);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--wg-accent);
}
.cs-quote {
  margin: 0;
  padding: var(--space-4);
  background: var(--wg-deep);
  color: #fff;
  border-left: 4px solid var(--wg-orange);
  border-radius: 0;
}
.cs-quote blockquote { margin: 0 0 var(--space-3); }
.cs-quote blockquote p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.45; }
.cs-quote blockquote p + p { margin-top: var(--space-2); }
.cs-quote figcaption { display: flex; align-items: center; gap: 0.9rem; font-size: 0.95rem; color: var(--wg-muted); }
.cs-quote figcaption strong { display: block; color: #fff; }
.cs-quote-photo { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 0; object-fit: cover; border: 2px solid var(--wg-orange); background: var(--line-soft); }
.cs-quotes { display: grid; gap: var(--space-3); }
.cs-quotes .cs-quote blockquote p { font-size: 1.12rem; }
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(3.5rem, 6vw, 4.5rem) clamp(0.75rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 10, 17, 0.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 100%; max-height: 100%; }
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(100%, 1600px);
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: 0;
  background: #FEFEFA;
}
.lightbox figcaption { max-width: 60ch; text-align: center; font-size: 0.92rem; color: #dfe6ef; }
.lightbox-close {
  position: fixed;
  top: 0.9rem; right: 0.9rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: rgba(5, 10, 17, 0.6);
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover { background: #fff; color: var(--wg-deep); }
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cs-toc { display: block; position: sticky; top: 24px; }
.cs-toc-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-muted);
}
.cs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.cs-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid transparent;
  color: var(--wg-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms, border-color 160ms;
}
.cs-toc a:hover { color: var(--wg-accent); }
.cs-toc a[aria-current] { color: var(--wg-white); font-weight: 600; border-left-color: var(--wg-orange); }
.cs-index { padding-top: var(--space-5); }
.cs-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cs-card-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--wg-deep);
}
.cs-card-media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 50%);
  transition: transform 600ms var(--ease);
}
.cs-card:hover .cs-card-media img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.cs-card-media .cs-card-logo { object-fit: contain; background: #45C2C6; }
.cs-card-media .cs-card-logo[src$="gtma-logo.webp"] { background: #fff; } /* GTMA's tile has a white ground */
.cs-card-body .cs-tags { margin: 0 0 var(--space-2); }
.cs-card-body .cs-tags li { background: var(--line-soft); color: var(--wg-white); }
.cs-card-body .cs-tags .cs-tag-path { background: var(--wg-accent); color: var(--wg-deep); }
.cs-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
}
.cs-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.5rem + 1.1vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-1);
}
.cs-card-lede { min-height: 4.2em; margin: 0 0 var(--space-3); font-size: 1.1rem; line-height: 1.4; text-wrap: balance; }
.cs-card-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
}
.cs-card-stats .cs-stat-value { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); color: var(--wg-accent); }
.cs-card-role { margin: 0 0 var(--space-3); font-size: 0.9rem; color: var(--wg-muted); }
.cs-card-link { margin-top: auto; align-self: flex-start; }
.cs-card-link::after { content: ""; position: absolute; inset: 0; }
.cs-index-note { margin-top: var(--space-5); }
.cs-cards.cs-cards-feature { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-4); }
.cs-cards-feature .cs-card { flex-direction: row; }
.cs-cards-feature .cs-card-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 20rem; }
.cs-cards-feature .cs-card-body { padding: var(--space-4); }
.cs-cards-feature .cs-card-lede { min-height: 0; }
@media (max-width: 1100px) {
  .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: 1fr; }
  }
@media (max-width: 860px) {
  .cs-cards { grid-template-columns: 1fr; }
  .cs-card-lede { min-height: 0; }
  .cs-cards-feature .cs-card { flex-direction: column; }
  .cs-cards-feature .cs-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .cs-cards-feature .cs-card-body { padding: var(--space-3); }
  .cs-stats { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .cs-stats:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
  .cs-stats > li:nth-child(3):last-child { grid-column: 1 / -1; }
  .cs-scope { grid-template-columns: 1fr; gap: var(--space-4); }
  .cs-moves { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cs-card-body { padding: var(--space-3); }
  .cs-stats-def { text-align: left; }
  .cs-block { padding: var(--space-4) 0; }
  .cs-intro { font-size: 1.15rem; }
  .cs-steps li { grid-template-columns: 1fr; gap: 0.25rem; }
  .cs-step-num { font-size: 1.6rem; }
  .cs-results { grid-template-columns: 1fr; }
  .cs-moves li, .cs-learnings li, .cs-results li { padding: var(--space-2) var(--space-3); }
  .cs-figure-pair { flex-direction: column; }
  .cs-figure-pair .cs-figure { flex: none; width: 100%; }
  .cs-figure-pair .cs-figure-tall { max-width: 18rem; }
  .cs-quote { padding: var(--space-3); }
  .cs-quote blockquote p { font-size: 1.12rem; }
}
@media (max-width: 560px) {
}
.se-video { margin: 0; }
.se-video.cs-video + .se-video.cs-video { margin-top: var(--space-4); }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: var(--wg-card);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(55% 75% at 0% 100%, rgba(255, 125, 1, 0.22), transparent 70%),
    var(--wg-card);
}
.video-poster::before,
.video-poster::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 0;
  border: 1px solid rgba(0, 127, 247, 0.22);
  pointer-events: none;
}
.video-poster::before { top: -55%; right: -18%; width: 70%; }
.video-poster::after { top: -30%; right: -6%; width: 44%; border-color: rgba(0, 127, 247, 0.14); }
.video-poster-photo { background: var(--wg-card); }
.video-poster-photo::before, .video-poster-photo::after { display: none; }
.video-poster-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video-poster-photo::after {
  display: block;
  inset: 0; top: auto; right: auto; width: 100%; height: 55%;
  aspect-ratio: auto; border: 0; border-radius: 0;
  background: linear-gradient(to top, rgba(5, 10, 17, 0.92), rgba(5, 10, 17, 0));
}
.video-play {
  position: absolute;
  top: 44%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 8vw, 78px);
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--wg-orange);
  transform: translate(-50%, -50%);
  transition: transform 250ms var(--ease);
}
.video-play::before {
  content: "";
  width: 32%;
  height: 38%;
  margin-left: 8%;
  background: var(--wg-deep);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-poster:hover .video-play,
.video-poster:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.07); }
.video-poster:focus-visible { outline-offset: -4px; }
.video-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-orange);
}
.video-title {
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem);
  line-height: 1.2;
}
.se-video figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--wg-muted); }
@media (min-width: 861px) {
}
@media (max-width: 560px) {
  .video-play { top: 34%; }
}

.text-link {
  color: var(--wg-white);
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 0;
  background-image: linear-gradient(var(--wg-orange), var(--wg-orange));
  background-size: 100% 2px;
  background-position: 0 calc(100% - 0.35rem);
  background-repeat: no-repeat;
  transition: background-size 250ms var(--ease);
}
.text-link:hover { color: var(--wg-white); background-size: 40% 2px; }
.text-link::after { content: "\2192"; display: inline-block; margin-left: 0.5rem; color: var(--wg-orange); transition: transform 200ms var(--ease); }
.text-link:hover::after { transform: translateX(3px); }
/* The card link covers the whole card, so its arrow moves to a ::before and its ::after is the cover */
.text-link.cs-card-link::after { content: ""; position: absolute; inset: 0; margin: 0; transform: none; }
.text-link.cs-card-link { display: inline-flex; gap: 0.5rem; }
.text-link.cs-card-link::before { content: "\2192"; order: 1; color: var(--wg-orange); transition: transform 200ms var(--ease); }
.text-link.cs-card-link:hover::before { transform: translateX(3px); }

/* Additions for the dark surface */
.cs-hero .cs-tags li { color: var(--wg-white); }
.cs-hero .cs-tags .cs-tag-path, .cs-card-body .cs-tags .cs-tag-path { color: var(--wg-deep); }
.cs-block { border-top-color: var(--line-soft); }
.cs-block > p, .cs-scope li, .cs-moves li, .cs-learnings li, .cs-timeline p:not(.cs-when) { color: var(--wg-muted); }
.cs-block > p strong { color: var(--wg-white); }
.cs-intro { color: var(--wg-white) !important; }
.cs-steps h3, .cs-results .cs-stat-label, .cs-card-title, .cs-card-lede { color: var(--wg-white); }
.cs-content .eyebrow { margin-bottom: 14px; }
.cs-content .faq { border-top: 0; }
.cs-content .check-list li { color: var(--wg-muted); }
.cs-figure img { background: #fefefa; }
.related-section { border-top: 0; }
.cs-toc ol { padding: 0; }

/* StartEngine case study: issuer cards two across inside the story column, the quote below them, the closing buttons,
   and the landing page and ad examples (three columns, the landing page across two of them beside the first ad;
   each opens larger in the lightbox) */
.cs-content .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.cs-cards + .cs-quote { margin-top: var(--space-5); }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: var(--space-3); }
.se-examples { margin-top: var(--space-5); }
.se-subtitle { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.15; color: var(--wg-white); }
.se-examples-grid { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
.se-example-wide { grid-column: span 2; }
.se-example .cs-figure { margin: 0; }
.se-example:not(.se-example-wide) img { aspect-ratio: 1 / 1; object-fit: cover; }
.se-examples-note { margin: var(--space-3) 0 0; font-size: 0.88rem; color: var(--wg-muted); max-width: 70ch; }
@media (max-width: 860px) {
  .se-examples-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
}
@media (max-width: 600px) {
  .cs-content .cs-cards { grid-template-columns: 1fr; }
}


/* Homepage work slider: every case study card in one sideways row, arrows in the heading, swipe or scroll on touch.
   The track keeps room above the cards for their moss caps and below them for the ivy, so neither is cut off by the
   track's scroll box. */
.cs-slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); max-width: none; }
.cs-slider-head .section-title { margin-bottom: 0; }
.cs-slider-nav { display: flex; gap: 0.75rem; flex: none; }
.cs-slider-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 3px solid #d4eee0; border-radius: 0; background: var(--swamp-panel-deep); color: var(--wg-white);
  box-shadow: var(--px-shadow); cursor: pointer;
}
.cs-slider-btn svg { width: 22px; height: 22px; }
.cs-slider-btn:hover:not(:disabled), .cs-slider-btn:focus-visible { background: var(--wg-orange); border-color: #ffce75; color: #082b22; }
.cs-slider-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #061e1b; }
.cs-slider-btn:focus-visible { outline: 3px solid var(--wg-focus); outline-offset: 3px; }
.cs-slider-btn:disabled { opacity: 0.4; cursor: default; }
.cs-cards.cs-slider-track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 24px 6px 8px; margin: -24px -6px 0; scroll-padding-inline: 6px; scrollbar-width: thin; scrollbar-color: var(--swamp-border) var(--swamp-panel-deep);
}
.cs-slider-track:focus-visible { outline: 3px solid var(--wg-focus); outline-offset: 4px; }
.cs-slider-track > .cs-card { flex: 0 0 calc((100% - 2 * 26px) / 3); scroll-snap-align: start; }
@media (max-width: 1100px) { .cs-slider-track > .cs-card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 860px) { .cs-slider-track > .cs-card { flex-basis: 86%; } }
@media (max-width: 480px) { .cs-slider-btn { width: 44px; height: 44px; } }

/* ---------- WillsGrowth additions to the case study layout ---------- */

.cs-kicker {
  margin: 0 0 var(--space-1);
  color: var(--wg-orange);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-kicker a { color: inherit; text-decoration-color: rgba(255, 125, 1, 0.6); }
.cs-kicker a:hover { color: var(--wg-orange-hover); }
.cs-kicker .sep { color: var(--wg-muted); padding-inline: 0.3em; }
.cs-title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); }
.cs-role { border-left: 4px solid var(--wg-orange); color: var(--wg-muted); }
.cs-role strong { color: var(--wg-white); }
.cs-stats .cs-stat-value { color: var(--wg-orange); }
.cs-results .cs-stat-value, .cs-card-stats .cs-stat-value { color: var(--wg-accent); }
.cs-results li { border-top: 4px solid var(--wg-accent); }
.cs-results li:nth-child(n+4) { border-top-color: var(--wg-orange); }
.cs-step-num, .cs-learnings li::before { color: var(--wg-accent); }
.cs-tags li { background: var(--swamp-panel-deep); border: 2px solid var(--swamp-border); color: var(--wg-white); }
/* blue tags for the regulation paths: white on #0066cc is 5.6:1 */
.cs-tags .cs-tag-path, .cs-card-body .cs-tags .cs-tag-path, .cs-hero .cs-tags .cs-tag-path { background: #0066cc; border-color: #38b8ff; color: #fff; }
.cs-card-kicker { margin: 0 0 6px; color: var(--wg-orange); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cs-card-media { background: var(--swamp-panel-deep); border: 4px solid var(--swamp-ink); }
.cs-card-title { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); }
.cs-quote { border-left: 6px solid var(--wg-orange); }
.cs-quote-context { margin: 0 0 var(--space-2); color: var(--wg-accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cs-quote cite { font-style: normal; }
.cs-quote-photo { border: 3px solid var(--wg-accent); }
.cs-figure img, .lightbox img { background: #f4f6f8; border: 4px solid var(--swamp-ink); box-shadow: 0 0 0 2px var(--swamp-border); }
.cs-figure img.is-zoomable:hover { box-shadow: 0 0 0 2px var(--swamp-leaf), var(--px-shadow); }
.lightbox::backdrop { background: rgba(2, 30, 26, 0.94); }
.video-play::before { background: var(--swamp-ink); }
.video-poster-photo::after { background: linear-gradient(to top, rgba(2, 40, 34, 0.92), rgba(2, 40, 34, 0)); }
.related-list strong { color: var(--wg-white); }
.related-list strong::after { color: var(--wg-orange); }
.related-kind { color: var(--wg-orange); }
.related-list span:last-child { color: var(--wg-muted); }
.cs-group + .cs-group { margin-top: 0; padding-top: 8px; }
.cs-group-head { max-width: 56em; }
.cs-group-head h2 { font-family: var(--font-pixel); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; }
.cs-group-head p { margin: 14px 0 0; color: var(--wg-muted); max-width: 46em; }
.check-list li::before { border-color: var(--wg-accent); }
.text-link::after, .text-link.cs-card-link::before { color: var(--wg-orange); }

/* Case study body: the story in one large framed panel, "On this page" in a small one beside it */
.cs-body { padding: 0; }
.cs-grid { gap: 34px; }
@media (min-width: 1025px) { .cs-grid { grid-template-columns: minmax(0, 1fr) 15rem; } }
.cs-content { max-width: none; }
.cs-content > .cs-block:first-child { padding-top: var(--space-2); }
.cs-content > .cs-block:last-child { padding-bottom: 0; }
.cs-toc ol { border-left: 2px solid var(--line); }
.cs-toc a { margin-left: -2px; border-left-width: 4px; }

/* "More case studies": the heading on its own small plate */
.related-section .section-title {
  display: inline-block;
  margin-bottom: 30px;
  padding: 14px 22px;
  background: var(--swamp-panel);
  border: 4px solid var(--swamp-ink);
  box-shadow: inset 0 0 0 3px var(--swamp-border), var(--px-shadow);
}
.related-list { gap: 0 22px; }

/* Independent consulting group on work.html (2026-11-13) */
.cs-group-quote { margin-top: 0; }
.cs-group-quote .quote { max-width: 60rem; }
.cs-cards-feature .cs-card-body > p:not([class]) { margin: 0 0 var(--space-2); color: var(--wg-muted); }
.cs-index-note { max-width: 62rem; }

/* Headings that set their own face in the ported case study styles: pixel face too (Alex, 2026-11-17: every H1 to
   H6). Small uppercase heading labels keep their tracking. */
.cs-title, .cs-heading, .cs-card-title, .cs-steps h3, .se-subtitle, .list-title, .reg-box h2, .card-title-sm, .focus-list h3, .venture h3 {
  font-family: var(--font-pixel);
}
.cs-title, .cs-heading, .cs-card-title, .cs-steps h3, .se-subtitle { font-weight: 600; letter-spacing: 0.01em; }
.list-title, .reg-box h2 { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; }
.focus-list h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
.venture h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
@media (max-width: 420px) { .cs-title { font-size: 2.2rem; overflow-wrap: anywhere; } }

/* ---------- Pixel boxes ----------
   Every block of text or widget on the water sits in one of these (handoff section 8): an opaque evergreen face, a
   hard 4px ink edge (the border) and, inside it, a green pixel frame, a dark line and a faint hairline (inset
   shadows, so nothing is cropped). Boxes inside a box (lists of moves, results, quotes, figures in a case study) are
   simpler inset tiles. Text never sits straight on the water. */
.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .cs-content, .cs-toc, .section-head, .about-copy, .portrait,
.focus-list li, .stat, .quote, .venture, .ventures-note, .contact-panel, .cs-card, .related-list a, .cs-group-head,
.cs-index-note {
  --frame-face: var(--swamp-panel);
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--frame-face);
  border: 4px solid var(--swamp-ink);
  box-shadow:
    inset 0 0 0 4px var(--frame-line, var(--swamp-border)),
    inset 0 0 0 6px #172f23,
    inset 0 0 0 8px var(--frame-face),
    inset 0 0 0 10px rgba(202, 216, 120, 0.27);
}
.focus-list li, .stat, .quote, .venture, .related-list a { padding: clamp(22px, 2.4vw, 28px); }
.cs-card { padding: 14px; }
.cs-card-body { padding: 18px 10px 10px; }
.portrait { padding: 16px 16px 14px; }
.cs-toc { position: sticky; padding: 18px 18px 14px; }
.ventures-note { padding: 18px 22px; }
.cs-stats-panel .cs-stats { padding-top: 0; border-top: 0; }
.cs-stats-panel .cs-stats-def { margin-top: var(--space-3); }

/* the frame lights up while a box is hovered or holds focus */
:is(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .section-head, .about-copy, .portrait, .focus-list li, .stat,
.quote, .venture, .contact-panel, .cs-card, .related-list a, .cs-group-head, .cs-index-note):is(:hover, :focus-within) { --frame-line: var(--swamp-leaf); }

/* Section header boxes: no ivy, a small gap (room for the moss caps of the cards below) */
.section-head, .cs-group-head { margin-bottom: 30px; }

/* Inset tiles inside a framed panel */
.cs-moves li, .cs-results li, .cs-learnings li, .cs-quote, .capability-list, .cs-content .reg-box, .cs-content .cs-card,
.cs-chart, .contact-list a, .contact-list .contact-static, .video-embed, .faq details {
  background: var(--swamp-panel-deep);
  border: 2px solid var(--swamp-border);
  box-shadow: none;
}
.cs-moves li, .cs-results li, .cs-learnings li, .cs-quote { box-shadow: 3px 3px 0 #061e1b; }
.cs-results li { border-top-width: 4px; }
.cs-quote { border-left-width: 6px; border-left-color: var(--wg-orange); }
.cs-content .cs-card { padding: 10px; }
.faq { border-top: 0; display: grid; gap: 10px; }
.faq summary { padding-inline: 16px 48px; }
.faq .answer { padding-inline: 16px; }

/* Moss cap along the top edge of each box: the top of the ivy strip, over the frame only (never over text) */
:where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .cs-content, .section-head, .about-copy, .portrait,
.focus-list li, .stat, .quote, .venture, .contact-panel, .cs-slider-track > .cs-card, .cs-index .cs-card,
.related-list a, .cs-group-head, .cs-index-note)::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -7px;
  right: -7px;
  top: -18px;
  height: 32px;
  background: url("../assets/images/pixel/pixel-ivy-strip.webp") left -6px / auto var(--ivy-h) repeat-x;
  image-rendering: pixelated;
  pointer-events: none;
}

/* ---------- Hanging pixel ivy ----------
   Below each box hangs the full ivy strip at a fixed 120px depth (never stretched with the box), repeated across its
   width. The depth is reserved before any interaction (the box's margin-bottom; for the related links, their list
   item's), so growth never moves the page, covers the next box's text or adds sideways scrolling; the longest tips
   may reach the moss cap of the box below. Section header boxes (the box above a row of cards) have no ivy and sit
   just above their cards (Alex, 2026-11-17). At rest only the moss
   ledge and leaf tips show (the top third; the homepage box starts more grown, as in the concept). Hover, or focus on
   anything inside the box, reveals the rest downward in 12 discrete steps over 900ms, and it steps back on leave: a
   stepped reveal of the PNG, not drawn growth. Touch screens, reduced motion and paused scenery show it fully grown
   with no first tap needed. It takes no pointer events, so click areas do not change. Replaces the realistic ivy
   (buttons and Full Drape cards) of 2026-11-13, which is retired. */
.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait, .focus-list li, .stat,
.quote, .venture, .contact-panel, .cs-slider-track > .cs-card, .cs-index .cs-card, .cs-index-note {
  margin-bottom: calc(var(--ivy-h) - 8px);
}
.related-list li { margin-bottom: calc(var(--ivy-h) - 8px); }
:where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait, .focus-list li, .stat,
.quote, .venture, .contact-panel, .cs-slider-track > .cs-card, .cs-index .cs-card, .related-list a,
.cs-index-note)::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -6px;
  right: -6px;
  top: calc(100% - 4px);
  height: var(--ivy-h);
  background: url("../assets/images/pixel/pixel-ivy-strip.webp") left top / auto var(--ivy-h) repeat-x;
  image-rendering: pixelated;
  pointer-events: none;
  clip-path: inset(0 0 66% 0);
  transition: clip-path 900ms steps(12, end);
}
.hero-copy::after { clip-path: inset(0 0 28% 0); }   /* the homepage box starts more grown */
:where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait, .focus-list li, .stat,
.quote, .venture, .contact-panel, .cs-slider-track > .cs-card, .cs-index .cs-card, .related-list a,
.cs-index-note):is(:hover, :focus-within)::after { clip-path: inset(0); }
/* the card link's cover keeps the whole case study card clickable; the ivy stays under it, outside the card */
.cs-card-link::after { z-index: 3; }
@media (hover: none) {
  :where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait, .focus-list li, .stat,
  .quote, .venture, .contact-panel, .cs-card, .related-list a, .cs-index-note)::after { clip-path: inset(0) !important; transition: none; }
}
html[data-motion="paused"] :where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait,
.focus-list li, .stat, .quote, .venture, .contact-panel, .cs-card, .related-list a, .cs-index-note)::after { clip-path: inset(0) !important; transition: none; }

/* ---------- Water below the hero ----------
   The water tile is the page background (html, top of this file). js/main.js lays one ripple layer behind main's
   content, the same stepped highlights as the hero at lower opacity; it pauses while off screen. */
main { position: relative; isolation: isolate; }
.water-motion { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0.3; }
html[data-motion="paused"] .water-ripples,
[data-water][data-in-view="false"] .water-ripples { animation-play-state: paused; }

/* Pause scenery / Play scenery (js/main.js shows it; hidden with reduced motion, where nothing moves) */
.motion-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--swamp-gold);
  background: var(--swamp-panel-deep);
  color: var(--wg-white);
  box-shadow: 0 0 0 2px var(--swamp-ink), var(--px-shadow);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.motion-toggle:hover, .motion-toggle:focus-visible { background: var(--wg-orange); border-color: #ffce75; color: #082b22; }
@media (max-width: 520px) { .motion-toggle { right: 8px; bottom: 8px; padding-inline: 10px; font-size: 0.75rem; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  :where(.hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .about-copy, .portrait, .focus-list li, .stat,
  .quote, .venture, .contact-panel, .cs-card, .related-list a, .cs-index-note)::after { clip-path: inset(0) !important; }
  .btn:hover, .btn:focus-visible { transform: none; }
  .motion-toggle { display: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .hero-backdrop, .nav-toggle, .cs-toc, .motion-toggle, .water-motion { display: none !important; }
  body, html { background: #fff; color: #000; }
  *::before, *::after { background-image: none !important; }
}

/* ---------- Phone fixes for the ported case study pieces ---------- */
@media (max-width: 860px) {
  .related-list, .related-list.cs-records { grid-template-columns: minmax(0, 1fr); }
  .cs-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .capability-list div, .cs-messaging div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .cs-card-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2); }
}
.cs-content, .cs-block, .cs-steps li > div { min-width: 0; }
.cs-content { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .cs-stats, .cs-stats:has(> li:nth-child(3):last-child), .cs-card-stats { grid-template-columns: minmax(0, 1fr); }
  .cs-stats > li:nth-child(3):last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .cs-slider-head { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
@media (max-width: 560px) {
  .hero-copy, .page-panel, .cs-hero-panel, .cs-stats-panel, .cs-content, .section-head, .about-copy, .contact-panel,
  .cs-group-head, .cs-index-note { padding: 28px 20px 24px; }
}
