/*
 * visuals.css -- GlowPilots coded-visual component library
 * Pairs with template-parts/visuals/*.php (one partial per visual).
 * Design-System Contract section 6. Brand: GlowPilots (Plasma / Cobalt / Ink).
 * Token law: only --gp-* custom properties. No raw hex outside tokens.css.
 * Load order: tokens -> base -> typography -> components -> sections -> visuals -> motion.
 * Animation-ready: classes/attrs are inert here; motion.css + main.js draw them in
 * on [data-reveal]. Reduced-motion is honored via the zeroed --gp-transition-* tokens
 * plus explicit guards in motion.css. Mobile-first; breakpoints 640/768/1024/1280.
 */

/* === VISUAL PRIMITIVE: SHARED FRAME === */

.gp-visual {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  color: var(--gp-ink);
  font-family: var(--gp-font-body);
}

.gp-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The figure wrapper used by partials that pair an SVG/UI with a caption. */
.gp-visual__figure {
  margin: 0;
}

.gp-visual__caption {
  margin-top: var(--gp-space-3);
  color: var(--gp-slate-700);
  font-size: var(--gp-text-caption);
  line-height: var(--gp-leading-caption);
}

/* A framed card surface several visuals share (faux-UI panels). */
.gp-visual__panel {
  background: var(--gp-visual-surface);
  border: 1px solid var(--gp-visual-border);
  border-radius: var(--gp-visual-radius-lg);
  box-shadow: var(--gp-visual-shadow);
  overflow: hidden;
}

.gp-visual__panel--ink {
  background: var(--gp-visual-ink);
  border-color: var(--gp-visual-ondark-border);
  color: var(--gp-visual-ondark-text);
}

/* Faux window chrome bar (matches hero-identity-resolution.svg traffic lights). */
.gp-visual__chrome {
  display: flex;
  align-items: center;
  gap: var(--gp-space-3);
  padding: var(--gp-space-3) var(--gp-space-4);
  background: var(--gp-visual-ink);
  color: var(--gp-visual-ondark-text);
}

.gp-visual__dots {
  display: inline-flex;
  gap: var(--gp-space-2);
}

.gp-visual__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--gp-radius-full);
}

.gp-visual__dot--glow { background: var(--gp-visual-glow); }
.gp-visual__dot--plasma { background: var(--gp-visual-plasma); }
.gp-visual__dot--cobalt { background: var(--gp-visual-cobalt); }

.gp-visual__chrome-title {
  font-size: var(--gp-text-body-sm);
  font-weight: var(--gp-weight-semibold);
  letter-spacing: 0.01em;
}

/* Animation-ready: SVG draw-in paths. motion.css supplies the keyframes/transition.
   Inert baseline here so the visual is fully legible without JS or motion. */
.gp-visual [data-draw] {
  stroke-dasharray: var(--gp-visual-dash);
}

/* === SHARED LEGEND === */

.gp-visual__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gp-space-2) var(--gp-space-4);
  margin-top: var(--gp-space-4);
  padding: 0;
  list-style: none;
}

.gp-visual__legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-size: var(--gp-text-caption);
  color: var(--gp-slate-700);
}

.gp-visual__swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--gp-radius-sm);
  flex: 0 0 auto;
}

.gp-visual__swatch--plasma { background: var(--gp-visual-plasma); }
.gp-visual__swatch--cobalt { background: var(--gp-visual-cobalt); }
.gp-visual__swatch--glow { background: var(--gp-visual-glow); }
.gp-visual__swatch--ink { background: var(--gp-visual-ink); }

/* === 1. VISITOR ID RESOLUTION === */

.gp-visitor-id {
  /* node colors exposed for the SVG via currentColor swaps in markup */
}

.gp-visitor-id__node--anon { color: var(--gp-slate-700); }
.gp-visitor-id__node--signal { color: var(--gp-visual-cobalt); }
.gp-visitor-id__node--ident { color: var(--gp-visual-plasma); }

/* Pulsing signal ring is animation-ready; static by default. */
.gp-visitor-id__pulse {
  transform-box: fill-box;
  transform-origin: center;
}

/* === 2. AESTHETIC PRACTICE FUNNEL (STEPPER) === */

.gp-funnel {
  display: block;
}

.gp-funnel__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gp-space-4);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: gp-funnel;
}

.gp-funnel__step {
  position: relative;
  display: flex;
  gap: var(--gp-space-4);
  align-items: flex-start;
  padding: var(--gp-space-5);
  background: var(--gp-visual-surface);
  border: 1px solid var(--gp-visual-border);
  border-radius: var(--gp-visual-radius);
  box-shadow: var(--gp-shadow-sm);
}

.gp-funnel__marker {
  counter-increment: gp-funnel;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--gp-radius-full);
  background: var(--gp-visual-plasma-soft);
  color: var(--gp-visual-plasma);
  font-family: var(--gp-font-display);
  font-weight: var(--gp-weight-bold);
  font-size: var(--gp-text-h5);
}

.gp-funnel__step:nth-child(2) .gp-funnel__marker {
  background: var(--gp-visual-cobalt-soft);
  color: var(--gp-visual-cobalt);
}

.gp-funnel__step:nth-child(3) .gp-funnel__marker {
  background: var(--gp-visual-plasma-soft);
  color: var(--gp-visual-plasma);
}

.gp-funnel__step:nth-child(4) .gp-funnel__marker {
  background: var(--gp-visual-ink);
  color: var(--gp-visual-glow);
}

.gp-funnel__marker::before {
  content: counter(gp-funnel);
}

.gp-funnel__content {
  min-width: 0;
}

.gp-funnel__title {
  margin: 0 0 var(--gp-space-1);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h5);
  font-weight: var(--gp-weight-semibold);
  color: var(--gp-ink);
}

.gp-funnel__body {
  margin: 0;
  font-size: var(--gp-text-body-sm);
  line-height: var(--gp-leading-body-sm);
  color: var(--gp-slate-700);
}

/* Animated connector between steps (vertical on mobile). */
.gp-funnel__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--gp-space-5) + 21px);
  top: 100%;
  width: 2px;
  height: var(--gp-space-4);
  background: linear-gradient(var(--gp-visual-cobalt), var(--gp-visual-plasma));
  opacity: 0.5;
}

@media (min-width: 768px) {
  .gp-funnel__track {
    grid-template-columns: repeat(4, 1fr);
  }

  .gp-funnel__step {
    flex-direction: column;
  }

  .gp-funnel__step:not(:last-child)::after {
    left: 100%;
    top: calc(var(--gp-space-5) + 21px);
    width: var(--gp-space-4);
    height: 2px;
    background: linear-gradient(to right, var(--gp-visual-cobalt), var(--gp-visual-plasma));
  }
}

/* === 3. ATTRIBUTION DASHBOARD (FAUX UI) === */

.gp-attribution {
  display: block;
}

.gp-attribution__body {
  padding: var(--gp-visual-pad);
}

.gp-attribution__rows {
  display: grid;
  gap: var(--gp-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-attribution__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gp-space-2);
}

.gp-attribution__channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gp-space-3);
  font-size: var(--gp-text-body-sm);
  font-weight: var(--gp-weight-medium);
  color: var(--gp-ink);
}

.gp-attribution__metric {
  font-family: var(--gp-font-display);
  font-weight: var(--gp-weight-semibold);
  color: var(--gp-slate-700);
}

.gp-attribution__bar {
  position: relative;
  height: 10px;
  border-radius: var(--gp-radius-full);
  background: var(--gp-visual-line);
  overflow: hidden;
}

.gp-attribution__fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: var(--gp-radius-full);
  /* Width comes inline from the partial (--gp-bar-width). Animation-ready. */
  width: var(--gp-bar-width, 60%);
  background: linear-gradient(to right, var(--gp-visual-cobalt), var(--gp-visual-plasma));
  transition: width var(--gp-transition-slow);
}

.gp-attribution__fill--cobalt { background: var(--gp-visual-cobalt); }
.gp-attribution__fill--plasma { background: var(--gp-visual-plasma); }

.gp-attribution__result {
  margin-top: var(--gp-space-5);
  padding: var(--gp-space-4);
  border-radius: var(--gp-visual-radius);
  background: var(--gp-visual-ink);
  color: var(--gp-visual-ondark-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gp-space-3);
}

.gp-attribution__result-label {
  font-size: var(--gp-text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gp-visual-glow);
  font-weight: var(--gp-weight-bold);
}

.gp-attribution__result-value {
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h4);
  font-weight: var(--gp-weight-bold);
}

@media (min-width: 640px) {
  .gp-attribution__row {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }

  .gp-attribution__channel {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gp-space-1);
  }
}

/* === 4. GLP-1 CASCADE === */

.gp-cascade {
  display: block;
}

.gp-cascade__flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gp-space-4);
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: stretch;
}

.gp-cascade__stage {
  position: relative;
  padding: var(--gp-space-5);
  border-radius: var(--gp-visual-radius);
  border: 1px solid var(--gp-visual-border);
  background: var(--gp-visual-surface);
}

.gp-cascade__stage--entry { border-left: 4px solid var(--gp-visual-cobalt); }
.gp-cascade__stage--mid { border-left: 4px solid var(--gp-visual-plasma); }
.gp-cascade__stage--peak {
  background: var(--gp-visual-ink);
  color: var(--gp-visual-ondark-text);
  border-color: var(--gp-visual-ondark-border);
  border-left: 4px solid var(--gp-visual-glow);
}

.gp-cascade__stage-label {
  font-size: var(--gp-text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--gp-weight-bold);
  color: var(--gp-visual-cobalt);
}

.gp-cascade__stage--mid .gp-cascade__stage-label { color: var(--gp-visual-plasma); }
.gp-cascade__stage--peak .gp-cascade__stage-label { color: var(--gp-visual-glow); }

.gp-cascade__stage-title {
  margin: var(--gp-space-1) 0 var(--gp-space-2);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h5);
  font-weight: var(--gp-weight-semibold);
}

.gp-cascade__stage-body {
  margin: 0;
  font-size: var(--gp-text-body-sm);
  line-height: var(--gp-leading-body-sm);
  color: var(--gp-slate-700);
}

.gp-cascade__stage--peak .gp-cascade__stage-body { color: var(--gp-visual-ondark-text); }

.gp-cascade__connector {
  display: grid;
  place-items: center;
  color: var(--gp-visual-plasma);
}

.gp-cascade__connector svg { width: 28px; height: 28px; }

@media (min-width: 768px) {
  .gp-cascade__flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }

  .gp-cascade__connector svg {
    transform: rotate(-90deg);
  }
}

/* === 5. AUTOMATION TIMELINE === */

.gp-timeline-wrap {
  display: block;
}

.gp-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-timeline__content {
  min-width: 0;
  padding-top: var(--gp-space-1);
}

.gp-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: linear-gradient(var(--gp-visual-cobalt), var(--gp-visual-plasma));
  opacity: 0.4;
}

.gp-timeline__event {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--gp-space-4);
  padding-bottom: var(--gp-space-5);
}

.gp-timeline__event:last-child {
  padding-bottom: 0;
}

.gp-timeline__node {
  position: relative;
  z-index: var(--gp-z-raised);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--gp-radius-full);
  background: var(--gp-visual-surface);
  border: 2px solid var(--gp-visual-cobalt);
  color: var(--gp-visual-cobalt);
}

.gp-timeline__event:last-child .gp-timeline__node {
  background: var(--gp-visual-ink);
  border-color: var(--gp-visual-ink);
  color: var(--gp-visual-glow);
}

.gp-timeline__node svg { width: 20px; height: 20px; }

.gp-timeline__when {
  display: block;
  font-size: var(--gp-text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--gp-weight-bold);
  color: var(--gp-visual-plasma);
}

.gp-timeline__title {
  margin: var(--gp-space-1) 0 var(--gp-space-1);
  font-family: var(--gp-font-display);
  font-size: var(--gp-text-h5);
  font-weight: var(--gp-weight-semibold);
  color: var(--gp-ink);
}

.gp-timeline__body {
  margin: 0;
  font-size: var(--gp-text-body-sm);
  line-height: var(--gp-leading-body-sm);
  color: var(--gp-slate-700);
}

/* === 6. GRADIENT MESH (HERO BACKDROP) === */

.gp-mesh {
  position: absolute;
  inset: 0;
  z-index: var(--gp-z-base);
  overflow: hidden;
  background: var(--gp-mesh-base);
  border-radius: inherit;
  pointer-events: none;
}

.gp-mesh__blob {
  position: absolute;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: var(--gp-radius-full);
  filter: blur(64px);
  opacity: 0.85;
  will-change: transform;
}

.gp-mesh__blob--1 {
  top: -15%;
  left: -10%;
  background: radial-gradient(circle at center, var(--gp-mesh-blob-1), transparent 70%);
}

.gp-mesh__blob--2 {
  bottom: -20%;
  /* Right edge pinned to 0 (not negative) so the blob box never exceeds the
     viewport on mobile; blur(64px) + the radial gradient keep the soft bleed. */
  right: 0;
  background: radial-gradient(circle at center, var(--gp-mesh-blob-2), transparent 70%);
}

.gp-mesh__blob--3 {
  top: 30%;
  right: 24%;
  width: 38%;
  background: radial-gradient(circle at center, var(--gp-mesh-blob-3), transparent 70%);
}

/* Subtle grain/grid veil so the mesh reads as a deliberate tech surface. */
.gp-mesh__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gp-visual-ondark-veil) 1px, transparent 1px),
    linear-gradient(90deg, var(--gp-visual-ondark-veil) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, var(--gp-static-ink) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, var(--gp-static-ink) 30%, transparent 80%);
}

/* Drift is animation-ready; motion.css supplies the keyframes and disables
   them under reduced-motion. Static (no drift) by default. */
.gp-mesh--drift .gp-mesh__blob {
  /* motion.css attaches the float keyframes to this modifier */
}

/* === 7. COMPLIANCE SHIELD (PHI BOUNDARY) === */

.gp-shield {
  display: block;
}

.gp-shield__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gp-space-5);
  align-items: center;
}

.gp-shield__art {
  max-width: 280px;
  margin-inline: auto;
}

.gp-shield__zones {
  display: grid;
  gap: var(--gp-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-shield__zone {
  padding: var(--gp-space-4);
  border-radius: var(--gp-visual-radius);
  border: 1px solid var(--gp-visual-border);
  background: var(--gp-visual-surface-alt);
}

.gp-shield__zone--protected {
  border-color: var(--gp-visual-plasma);
  background: var(--gp-visual-plasma-soft);
}

.gp-shield__zone--boundary {
  border-style: dashed;
  border-color: var(--gp-visual-cobalt);
}

.gp-shield__zone--open {
  background: var(--gp-visual-surface);
}

.gp-shield__zone-label {
  display: flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-size: var(--gp-text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--gp-weight-bold);
  color: var(--gp-visual-plasma);
}

.gp-shield__zone--boundary .gp-shield__zone-label { color: var(--gp-visual-cobalt); }

.gp-shield__zone-body {
  margin: var(--gp-space-2) 0 0;
  font-size: var(--gp-text-body-sm);
  line-height: var(--gp-leading-body-sm);
  color: var(--gp-slate-700);
}

@media (min-width: 768px) {
  .gp-shield__layout {
    grid-template-columns: 280px 1fr;
    gap: var(--gp-space-7);
  }
}

/* === 8. SEARCH CITATION (ENTITY -> AI ANSWER) === */

.gp-citation {
  display: block;
}

.gp-citation__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gp-space-5);
}

.gp-citation__entities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gp-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-citation__entity {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  padding: var(--gp-space-2) var(--gp-space-3);
  border-radius: var(--gp-radius-full);
  background: var(--gp-visual-cobalt-soft);
  color: var(--gp-visual-cobalt);
  font-size: var(--gp-text-caption);
  font-weight: var(--gp-weight-semibold);
}

.gp-citation__answer {
  padding: var(--gp-visual-pad);
  border-radius: var(--gp-visual-radius);
  background: var(--gp-visual-surface);
  border: 1px solid var(--gp-visual-border);
  box-shadow: var(--gp-shadow-sm);
}

.gp-citation__answer-head {
  display: flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-size: var(--gp-text-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--gp-weight-bold);
  color: var(--gp-visual-plasma);
  margin-bottom: var(--gp-space-3);
}

.gp-citation__answer-body {
  margin: 0 0 var(--gp-space-3);
  font-size: var(--gp-text-body-sm);
  line-height: var(--gp-leading-body);
  color: var(--gp-ink);
}

.gp-citation__cite {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  padding: var(--gp-space-2) var(--gp-space-3);
  border-radius: var(--gp-radius-sm);
  background: var(--gp-visual-plasma-soft);
  color: var(--gp-visual-plasma);
  font-size: var(--gp-text-caption);
  font-weight: var(--gp-weight-semibold);
}

.gp-citation__cite-mark {
  font-family: var(--gp-font-display);
  font-weight: var(--gp-weight-bold);
}

/* Connector arrow from entity rail to answer. */
.gp-citation__link {
  display: grid;
  place-items: center;
  color: var(--gp-visual-cobalt);
}

.gp-citation__link svg { width: 28px; height: 28px; }

@media (min-width: 768px) {
  .gp-citation__layout {
    grid-template-columns: 1fr auto 1.4fr;
    align-items: center;
  }

  .gp-citation__link svg { transform: rotate(-90deg); }
}

/* === 9. COMPARISON MATRIX (STYLED TABLE SHELL) === */

.gp-matrix-wrap {
  display: block;
}

.gp-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--gp-text-body-sm);
  background: var(--gp-visual-surface);
  border: 1px solid var(--gp-visual-border);
  border-radius: var(--gp-visual-radius);
  overflow: hidden;
}

.gp-matrix__wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gp-matrix caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 var(--gp-space-3);
  font-size: var(--gp-text-caption);
  color: var(--gp-slate-700);
}

.gp-matrix th,
.gp-matrix td {
  padding: var(--gp-space-3) var(--gp-space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gp-visual-line);
}

.gp-matrix thead th {
  background: var(--gp-visual-ink);
  color: var(--gp-visual-ondark-text);
  font-family: var(--gp-font-display);
  font-weight: var(--gp-weight-semibold);
  font-size: var(--gp-text-body-sm);
  border-bottom: none;
}

.gp-matrix thead th.gp-matrix__col--highlight {
  background: var(--gp-visual-plasma);
}

.gp-matrix tbody th[scope="row"] {
  font-weight: var(--gp-weight-semibold);
  color: var(--gp-ink);
  background: var(--gp-visual-surface-alt);
}

.gp-matrix tbody tr:last-child th,
.gp-matrix tbody tr:last-child td {
  border-bottom: none;
}

.gp-matrix__col--highlight {
  /* body cells under the highlighted column get a soft plasma wash */
}

.gp-matrix td.gp-matrix__col--highlight {
  background: var(--gp-visual-plasma-soft);
}

.gp-matrix__yes,
.gp-matrix__no {
  display: inline-flex;
  align-items: center;
  gap: var(--gp-space-2);
  font-weight: var(--gp-weight-medium);
}

.gp-matrix__yes { color: var(--gp-success); }
.gp-matrix__no { color: var(--gp-slate-700); }

.gp-matrix__yes svg,
.gp-matrix__no svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* === IMAGE SLOT (real-photo placeholder, zero layout shift) === */

.gp-image-slot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--gp-visual-radius);
  overflow: hidden;
  background: var(--gp-visual-ink);
}

.gp-image-slot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder state: intentional branded panel, never a broken frame. */
.gp-image-slot__placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  /* aspect ratio is set inline per slot via --gp-slot-ratio. */
  aspect-ratio: var(--gp-slot-ratio, 16 / 10);
  padding: var(--gp-visual-pad);
  text-align: center;
  color: var(--gp-visual-ondark-text);
  background: var(--gp-mesh-base);
}

.gp-image-slot__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, var(--gp-mesh-blob-1), transparent 60%),
    radial-gradient(circle at 82% 84%, var(--gp-mesh-blob-2), transparent 60%);
  opacity: 0.9;
}

.gp-image-slot__note {
  position: relative;
  z-index: var(--gp-z-raised);
  font-size: var(--gp-text-caption);
  letter-spacing: 0.04em;
  color: var(--gp-visual-ondark-text);
  max-width: 32ch;
}

/* ============================================================
   BRANDSCAPE -- client mountain/ski line-art as recurring brand
   background (client handoff 2026-07-02). Decorative only:
   pointer-events none, masked fade so it never sits under body
   copy at full strength, aria-hidden not needed (pure CSS bg).
   ============================================================ */
.cgh-cta-band { position: relative; overflow: hidden; }
.cgh-cta-band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(380px, 70%);
  background: url(../brand/tree-lines-royal.webp) bottom center / 1050px auto repeat-x;
  opacity: 0.10;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
}
/* Dark bands: white-line inversion. Opacity lifted 0.12 -> 0.20 so the
   Colorado ski/mountain skyline actually reads on navy (Brian 2026-07-09). */
.cgh-cta-band--ink::before,
.el-stats::before {
  background-image: url(../brand/tree-lines-white.webp);
  opacity: 0.20;
}
.el-stats { position: relative; overflow: hidden; }
.el-stats::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(380px, 70%);
  background: url(../brand/tree-lines-white.webp) bottom center / 1050px auto repeat-x;
  opacity: 0.20;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
}
/* Keep band content above the artwork. */
.cgh-cta-band > *, .el-stats > * { position: relative; z-index: 1; }

/* ============================================================
   BRAND HORIZON (Brian 2026-07-09) -- the one place the full royal-blue
   Ski.eps mountain line-art reads at strength: an ivory band at the top of
   every footer, so "the blue hue" is actually seen. Self-contained -- the
   footer gains matching top padding so content never collides with the band.
   ============================================================ */
.cgh-footer { position: relative; overflow: hidden; }
.cgh-footer { padding-top: calc(var(--gp-space-9) + clamp(88px, 10vw, 150px)); }
.cgh-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(88px, 10vw, 150px);
  /* Full-width royal-blue ridgeline: `cover` + a vertical position through the
     mountain range makes the scene span edge-to-edge as a continuous frieze
     instead of a small centered island. Gold hairline ties it to the footer. */
  background: var(--gp-bone) url(../brand/tree-lines-royal.webp) center 34% / cover no-repeat;
  border-bottom: 2px solid var(--gp-accent);
  pointer-events: none;
}

/* ============================================================
   PANCAKE MOTION (2026-07-03) -- calm mascot loops (Brian-approved).
   Video frame is 720x406; poster webp matches the first frame exactly,
   so there is no aspect jump between poster and playback.
   ============================================================ */
.cgh-pancake-loop__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-md);
}
