/* ------------------------------------------------------------------
   Bonyfire — site.css
   Tokens, layout system, components. Native CSS, no framework.

   Site override, 7 Oct 2026 (Giannis): page grounds are either the dark
   hero ground or pure white. Manrope for headers, Inter for body. Spark
   is the single accent. The cream / peach grounds and the Bricolage /
   Nunito pairing from the brand book are not used on the site.
   ------------------------------------------------------------------ */

/* 1. Tokens ------------------------------------------------------- */
:root {
  --dark: #35131d;          /* the hero ground */
  --dark-raise: #45202c;    /* a surface lifted off the dark ground */
  --plum: #4a1d2b;          /* ink on white */
  --spark: #ff6a3d;         /* the one accent */
  --spark-deep: #c2401c;    /* Spark as text on white (AA) */
  --spark-hover: #ff8259;
  --white: #ffffff;
  --tint: #f6f2f3;          /* small component fills only, never a page ground */
  --peach: #ffe9d6;         /* mascot + embers only */

  --ink: var(--plum);
  --ink-mute: #6c525c;
  --ink-on-dark: #ffffff;
  --ink-on-dark-mute: #e2ced2;

  --line: #e9e2e4;
  --line-dark: rgba(255, 255, 255, 0.16);

  --font-display: "Manrope", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --gutter: 16px;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --nav-h: 72px;

  --step: clamp(56px, 8vw, 104px);
  --shadow-soft: 0 1px 0 rgba(53, 19, 29, 0.04), 0 18px 40px -26px rgba(53, 19, 29, 0.45);
  --shadow-float: 0 24px 60px -30px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);

  /* legacy aliases, so the unlinked pages (product, pricing, waitlist) keep rendering */
  --plum-deep: var(--dark);
  --plum-soft: #6b3546;
  --peach-deep: var(--line);
  --cream: var(--white);
  --marigold: var(--spark);
  --sage: #8a7078;
  --sage-soft: var(--tint);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* 2. Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0; }

::selection { background: var(--spark); color: var(--dark); }

:focus-visible {
  outline: 3px solid var(--spark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--white);
  color: var(--dark);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* 3. Type scale --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
.h2 { font-size: clamp(23px, 3vw, 34px); }
.title { font-size: clamp(19px, 2vw, 22px); line-height: 1.25; letter-spacing: -0.015em; }

/* Sub headers: Manrope Regular */
.subhead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.75vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }
.label { font-size: 14px; font-weight: 600; }
.caption { font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }
.mute { color: var(--ink-mute); }
.measure { max-width: 58ch; }
.measure-tight { max-width: 44ch; }

/* Section label. Sentence case, regular weight, no rule, never all caps. */
.kicker, .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--spark-deep);
  margin-bottom: 12px;
}
.on-dark .kicker, .sec-dark .kicker, .sec-plum .kicker,
.on-dark .eyebrow, .sec-dark .eyebrow, .sec-plum .eyebrow { color: var(--spark); }

.link {
  color: var(--spark-deep);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}
.link:hover { text-decoration: underline; }
.sec-dark .link, .on-dark .link, .sec-plum .link { color: var(--spark); }
.link .arrow, .btn-quiet .arrow { display: inline-block; transition: transform 0.18s var(--ease); }
.link:hover .arrow, .btn-quiet:hover .arrow { transform: translateX(4px); }

/* 4. Layout ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--maxw-narrow); }

.sec { padding-block: var(--step); background: var(--white); }
.sec-tight { padding-block: clamp(40px, 6vw, 68px); }

.sec-dark, .sec-plum {
  background: var(--dark);
  color: var(--ink-on-dark);
}
.sec-dark .mute, .sec-dark .caption,
.sec-plum .mute, .sec-plum .caption { color: var(--ink-on-dark-mute); }
.sec-peach { background: var(--white); border-top: 1px solid var(--line); }
.sec-line { border-top: 1px solid var(--line); }
.sec + .sec:not(.sec-dark):not(.sec-plum):not(.sec-peach) { border-top: 0; }

.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.sec-head p { margin-top: 14px; }

.grid { display: grid; gap: 20px; }
.g2, .g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
}
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split-top { align-items: start; }
  .split-wide-left { grid-template-columns: 1.25fr 0.75fr; }
  .split-narrow-left { grid-template-columns: 0.8fr 1.2fr; }
  .split-flip > :first-child { order: 2; }
  .sticky-col { position: sticky; top: calc(var(--nav-h) + 32px); }
}

.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }

/* 5. Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  padding: 15px 26px;
  min-height: 50px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Dark ink on Spark: 5.8:1. White on Spark fails AA. */
.btn-primary { background: var(--spark); color: var(--dark); }
.btn-primary:hover { background: var(--spark-hover); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-ghost:hover { background: var(--plum); color: var(--white); }

.on-dark .btn-ghost, .sec-dark .btn-ghost, .sec-plum .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.on-dark .btn-ghost:hover, .sec-dark .btn-ghost:hover, .sec-plum .btn-ghost:hover {
  background: var(--white); color: var(--dark); border-color: var(--white);
}

.btn-quiet {
  background: transparent;
  padding: 15px 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.btn-sm { padding: 10px 20px; font-size: 15px; min-height: 42px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.btn .ext { width: 14px; height: 14px; flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* 6. Nav ---------------------------------------------------------- */
/* One list of links for every width. From 960px it is a bar with dropdown
   panels; below that the same list is the drawer and each group is an
   accordion. site.js adds hover intent, keyboard support and Escape. */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-h);
  padding: 12px clamp(16px, 3vw, 40px);
  width: 100%;
}
/* The nav floats over the dark top band of every page with the light logo,
   and turns white (Plum logo) once that band has scrolled away. */
.brand-light { display: none; }
.nav--over { position: fixed; left: 0; right: 0; top: 0; }
.nav.is-dark {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav.is-dark .brand-dark { display: none; }
.nav.is-dark .brand-light { display: inline; }
.nav.is-dark .nav-toggle { border-color: rgba(255, 255, 255, 0.4); }
.nav.is-dark .nav-toggle span { background: var(--white); }
.nav.is-dark.is-stuck:not(.is-open) {
  background: rgba(53, 19, 29, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* drawer open on a dark band: flip the bar to its light state */
.nav.is-open {
  background: var(--white);
  border-bottom-color: var(--line);
}
.nav.is-open .brand-dark { display: inline; }
.nav.is-open .brand-light { display: none; }
.nav.is-open .nav-toggle { border-color: var(--line); }
.nav.is-open .nav-toggle span { background: var(--plum); }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand:hover img { opacity: 0.88; }

.nav-toggle {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--plum); border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list, .nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-family: var(--font-body);
  color: var(--plum);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.nav-link .chev {
  width: 12px; height: 12px; flex: none;
  transition: transform 0.2s var(--ease);
}
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* panel content, shared by the dropdown and the drawer */
.nav-col-head {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 6px;
  padding-inline: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mute);
}
.nav-row {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--plum);
  transition: background-color 0.16s var(--ease);
}
.nav-row:hover { background: var(--tint); }
.nav-row b { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.nav-row > span, .nav-row-text > span { font-size: 14px; line-height: 1.4; color: var(--ink-mute); }
.nav-row > .nav-row-text { color: var(--plum); }
.nav-row[aria-current="page"] b { box-shadow: inset 0 -2px 0 var(--spark); justify-self: start; }
.nav-row--thumb { grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.nav-row--thumb img {
  width: 44px; height: 55px;
  object-fit: cover; object-position: top;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--white);
}
.nav-row-text { display: grid; gap: 2px; }
.nav-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--spark-deep);
  text-decoration: none;
}
.nav-all .arrow { transition: transform 0.18s var(--ease); }
.nav-all:hover .arrow { transform: translateX(4px); }

/* --- drawer (below 960px) --- */
@media (max-width: 959px) {
  .nav-main {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    color: var(--plum);
    border-top: 1px solid var(--line);
    padding: 4px var(--gutter) 24px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 30px 40px -30px rgba(53, 19, 29, 0.5);
  }
  .nav.is-open .nav-main { display: block; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 14px 4px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.015em;
    text-align: left;
  }
  .nav-link[aria-current="page"], .nav-trigger.is-current { font-weight: 700; }
  .nav-link .chev { width: 16px; height: 16px; }
  .nav-panel { display: none; padding: 0 0 14px; }
  .nav-trigger[aria-expanded="true"] + .nav-panel { display: block; }
  .nav-panel-in { display: grid; gap: 14px; }
  .nav-col-head { padding-inline: 4px; }
  .nav-row { padding: 10px 4px; min-height: 44px; }
  .nav-all { padding-inline: 4px; }
  .nav-cta { display: none; }
  .nav-cta-mobile { margin-top: 20px; }
}

/* --- bar with dropdowns (960px and up) --- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-main { display: flex; align-items: center; margin-left: auto; }
  .nav-list { position: relative; display: flex; align-items: center; gap: 2px; }
  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 15.5px;
    line-height: 1.4;
    transition: background-color 0.16s var(--ease);
  }
  .nav-link:hover, .nav-trigger[aria-expanded="true"] { background: var(--tint); }
  .nav-link[aria-current="page"], .nav-trigger.is-current {
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--spark);
    border-radius: 0;
  }
  .nav.is-dark .nav-link { color: var(--white); }
  .nav.is-dark .nav-link:hover, .nav.is-dark .nav-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }

  /* Panels hang from the right edge of the list, so they never leave the
     viewport. The transparent padding keeps the pointer inside on its way down. */
  .nav-panel {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0s linear 0.16s;
  }
  .nav-trigger[aria-expanded="true"] + .nav-panel,
  html:not(.js) .has-menu:hover > .nav-panel,
  html:not(.js) .has-menu:focus-within > .nav-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .nav-panel-in {
    width: 340px;
    background: var(--white);
    color: var(--plum);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(53, 19, 29, 0.06), 0 34px 60px -34px rgba(53, 19, 29, 0.6);
  }
  .nav-panel--wide .nav-panel-in {
    width: 640px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 8px;
  }
  .nav-panel--mid .nav-panel-in { width: 420px; }
  .nav-col--quiet { background: var(--tint); border-radius: var(--r-md); padding: 8px 4px; margin: -4px -4px -4px 0; }
  .nav-col--quiet .nav-row:hover { background: var(--white); }
  .nav-cta { margin-left: 12px; }
  .nav-cta-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-link .chev, .nav-toggle span { transition: none !important; }
}

/* 7. Hero (home) and page top bands -------------------------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas-holder { position: absolute; inset: 0; z-index: 0; }
#hero-canvas { width: 100%; height: 100%; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(53,19,29,0.95) 0%, rgba(53,19,29,0.92) 46%, rgba(53,19,29,0.72) 66%, rgba(53,19,29,0.12) 88%);
}
@media (min-width: 900px) {
  .hero-veil {
    background:
      linear-gradient(100deg, rgba(53,19,29,0.95) 0%, rgba(53,19,29,0.88) 34%, rgba(53,19,29,0.35) 58%, rgba(53,19,29,0) 76%);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(44px, 7vw, 92px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (min-width: 900px) { .hero-inner { justify-content: center; } }
.hero-col { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero .hero-sub {
  margin-top: 20px;
  color: var(--ink-on-dark-mute);
  max-width: 36ch;
}
.hero .actions { margin-top: 30px; }

/* Bony speech bubble (canvas-anchored) */
.bony-bubble {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  background: var(--white);
  color: var(--plum);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.bony-bubble.is-on { opacity: 1; transform: translate(-50%, 0); }
.bony-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 50%;
  width: 14px; height: 14px;
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* Top band for every inner page. Same ground as the hero. */
.page-hero {
  position: relative;
  background: var(--dark);
  color: var(--ink-on-dark);
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 84px));
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .mute, .page-hero .caption { color: var(--ink-on-dark-mute); }
.page-hero .subhead { color: var(--ink-on-dark-mute); margin-top: 20px; }
.page-hero .actions { margin-top: 30px; }
.page-hero-slim { padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero > .wrap { position: relative; z-index: 1; }

/* Pixel embers. The same 16-bit language as the hero scene, standing still
   or drifting slowly. Decorative. */
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.embers i {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--spark);
  opacity: 0.55;
  animation: ember 14s linear infinite;
}
.embers i:nth-child(3n) { background: var(--peach); opacity: 0.3; width: 4px; height: 4px; }
.embers i:nth-child(4n) { width: 8px; height: 8px; opacity: 0.35; }
.embers i:nth-child(1) { left: 62%; top: 78%; animation-delay: -1s; }
.embers i:nth-child(2) { left: 71%; top: 64%; animation-delay: -6s; }
.embers i:nth-child(3) { left: 78%; top: 86%; animation-delay: -3s; }
.embers i:nth-child(4) { left: 84%; top: 52%; animation-delay: -9s; }
.embers i:nth-child(5) { left: 90%; top: 72%; animation-delay: -12s; }
.embers i:nth-child(6) { left: 95%; top: 38%; animation-delay: -4s; }
.embers i:nth-child(7) { left: 67%; top: 30%; animation-delay: -8s; }
.embers i:nth-child(8) { left: 55%; top: 90%; animation-delay: -11s; }
.embers i:nth-child(9) { left: 87%; top: 20%; animation-delay: -2s; }
.embers i:nth-child(10) { left: 74%; top: 44%; animation-delay: -13s; }
@keyframes ember {
  0% { transform: translateY(24px); opacity: 0; }
  15% { opacity: 0.55; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-90px); opacity: 0; }
}
@media (max-width: 899px) { .embers i { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .embers i { animation: none; }
}

/* 8. Cards -------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
}
.card-peach { background: var(--white); border-color: var(--line); }
.card-plum, .card-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--ink-on-dark);
}
.card-plum .mute, .card-plum .caption,
.card-dark .mute, .card-dark .caption { color: var(--ink-on-dark-mute); }
.card-dark .link { color: var(--spark); }
.sec-dark .card, .sec-plum .card { background: var(--dark-raise); border-color: var(--line-dark); color: var(--ink-on-dark); }
.sec-dark .card .mute, .sec-plum .card .mute { color: var(--ink-on-dark-mute); }
.card h3 { margin-bottom: 10px; }
.card-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--spark-deep);
  display: block;
  margin-bottom: 14px;
}

.card-link {
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card-link:hover { transform: translateY(-3px); border-color: var(--spark); box-shadow: var(--shadow-soft); }

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--plum);
}
.tag-spark { background: var(--spark); color: var(--dark); }
.tag-gold { background: var(--tint); color: var(--plum); }
.tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-mute); }
.sec-dark .tag-outline, .card-dark .tag-outline { box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--ink-on-dark-mute); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Blog category label. Always the same shape so it reads as a label. */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
}
.label-pill::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--spark);
  flex: none;
}
.page-hero .label-pill, .sec-dark .label-pill { background: var(--white); color: var(--dark); }

/* 9. Services: now / in preparation (home, about) ------------------- */
.services { display: grid; gap: 18px; }
@media (min-width: 900px) { .services { grid-template-columns: 1.3fr 1fr 1fr; align-items: stretch; } }
.service {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
}
.service h3 { margin-top: 18px; }
.service p { margin-top: 10px; color: var(--ink-mute); }
.service .service-foot { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.service.is-now { background: var(--dark); border-color: var(--dark); color: var(--white); }
.service.is-now p { color: var(--ink-on-dark-mute); }
.service.is-now .link { color: var(--spark); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-now { background: var(--spark); color: var(--dark); }
.status-now::before { background: var(--dark); }
.status-prep { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-mute); }
.status-prep::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-mute); }
.sec-dark .service { background: var(--dark-raise); border-color: var(--line-dark); color: var(--white); }
.sec-dark .service p { color: var(--ink-on-dark-mute); }
.sec-dark .service.is-now { background: var(--white); border-color: var(--white); color: var(--plum); }
.sec-dark .service.is-now p { color: var(--ink-mute); }
.sec-dark .service.is-now .link { color: var(--spark-deep); }
.sec-dark .status-prep { box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--ink-on-dark-mute); }
.sec-dark .status-prep::before { box-shadow: inset 0 0 0 1.5px var(--ink-on-dark-mute); }

/* 10. Conversation mock (chatting with Bony) ----------------------- */
.dm-figure { margin: 0; max-width: 460px; width: 100%; }
@media (min-width: 900px) { .dm-figure { margin-left: auto; } }
.dm {
  background: var(--white);
  color: var(--plum);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.sec .dm { box-shadow: var(--shadow-soft); }
.sec-dark .dm { box-shadow: var(--shadow-float); }
.dm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--dark);
  display: grid; place-items: center;
}
.avatar img { width: 26px; height: auto; image-rendering: pixelated; }
.avatar.is-on::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--spark);
  border: 2px solid var(--white);
}
.avatar-sm { width: 30px; height: 30px; }
.avatar-sm img { width: 18px; }
.dm-name { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.dm-role { font-size: 13px; color: var(--ink-mute); line-height: 1.3; }
.dm-body { padding: 18px; display: grid; gap: 10px; }
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
}
.msg-bony { background: var(--tint); border-bottom-left-radius: 4px; justify-self: start; }
.msg-you { background: var(--dark); color: var(--white); border-bottom-right-radius: 4px; justify-self: end; }
.msg-who { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.msg-who.is-you { justify-self: end; }

.intro-card, .cal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--white);
  font-size: 14.5px;
  line-height: 1.45;
  justify-self: stretch;
}
.intro-top { display: flex; align-items: center; gap: 12px; }
.pair { display: flex; flex: none; }
.pair span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid var(--white);
}
.pair span:first-child { background: var(--dark); color: var(--white); }
.pair span:last-child { background: var(--spark); color: var(--dark); margin-left: -10px; }
.intro-title { font-weight: 600; }
.intro-why { color: var(--ink-mute); font-size: 13.5px; }
.yes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yes {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--tint);
}
.yes::before {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--spark-deep);
  border-bottom: 2px solid var(--spark-deep);
  transform: rotate(-45deg) translateY(-1px);
}

.cal-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; border-left: 4px solid var(--spark); }
.cal-date {
  width: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1;
}
.cal-date b { display: block; font-size: 11px; font-weight: 600; padding: 4px 0; background: var(--dark); color: var(--white); }
.cal-date span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; padding: 7px 0 8px; }
.cal-title { font-weight: 600; }
.cal-meta { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; color: var(--ink-mute); font-size: 13.5px; }
.cal-foot { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-mute); }

.dm-input {
  margin: 0 18px 18px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-mute);
}
.dm-figure figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-on-dark-mute); }
.sec:not(.sec-dark) .dm-figure figcaption { color: var(--ink-mute); }

/* messages arrive one after another, once the mock is on screen */
.js .dm-seq .dm-body > * { opacity: 0; transform: translateY(8px); }
.js .dm-seq.is-in .dm-body > * { animation: msg-in 0.5s var(--ease) forwards; }
.js .dm-seq.is-in .dm-body > *:nth-child(1) { animation-delay: 0.15s; }
.js .dm-seq.is-in .dm-body > *:nth-child(2) { animation-delay: 0.75s; }
.js .dm-seq.is-in .dm-body > *:nth-child(3) { animation-delay: 1.35s; }
.js .dm-seq.is-in .dm-body > *:nth-child(4) { animation-delay: 1.95s; }
.js .dm-seq.is-in .dm-body > *:nth-child(5) { animation-delay: 2.55s; }
.js .dm-seq.is-in .dm-body > *:nth-child(6) { animation-delay: 3.15s; }
.js .dm-seq.is-in .dm-body > *:nth-child(7) { animation-delay: 3.75s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .dm-seq .dm-body > * { opacity: 1; transform: none; animation: none !important; }
}

/* Bony speaking in first person (small line above a button) */
.says { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; max-width: 46ch; }
.says p {
  background: var(--dark-raise);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}
.says .avatar { background: var(--dark-raise); }

/* Email alert mock (Bony page) */
.mail {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 480px;
}
.mail-bar { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); }
.mail-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mail-row:last-child { border-bottom: 0; }
.mail-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.mail-row .dot.is-read { background: var(--line); }
.mail-row b { font-weight: 600; display: block; }
.mail-row span.sub { color: var(--ink-mute); font-size: 13.5px; display: block; }
.mail-row time { font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; }

/* 11. Feature list and steps --------------------------------------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.features li { padding: 22px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features h3 { font-size: clamp(19px, 2vw, 22px); }
.features p { margin-top: 8px; color: var(--ink-mute); max-width: 52ch; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 34px 68px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -4px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--dark);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 21px; top: 46px; bottom: 2px;
  width: 2px;
  background: var(--line-dark);
}
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--spark); color: var(--dark); box-shadow: none; }
.steps h3 { font-size: clamp(19px, 2vw, 23px); }
.steps p { margin-top: 8px; color: var(--ink-on-dark-mute); max-width: 50ch; }
.sec:not(.sec-dark) .steps li::before { background: var(--white); color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--line); }
.sec:not(.sec-dark) .steps li::after { background: var(--line); }
.sec:not(.sec-dark) .steps p { color: var(--ink-mute); }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 28px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { position: relative; padding-left: 26px; }
.rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  background: var(--spark);
}
.rules b { display: block; font-weight: 600; }
.rules span { color: var(--ink-mute); }

/* 12. Playbooks ---------------------------------------------------- */
/* Poster: a branded CSS cover. site.js lays the real infographic over it
   once (and only if) the file loads, so there is never a broken image. */
.poster {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--dark);
  color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 6%, 30px);
  isolation: isolate;
}
.poster-logo { height: 24px; width: auto; align-self: flex-start; }
.poster-by { margin-top: auto; font-size: 14px; color: var(--spark); font-weight: 600; }
.poster-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 6px;
  max-width: 11em;
}
.poster-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; counter-reset: ps; font-size: 13.5px; line-height: 1.35; color: var(--ink-on-dark-mute); max-width: 78%; }
.poster-steps li { counter-increment: ps; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.poster-steps li::before {
  content: counter(ps);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  border-radius: 50%;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.poster-steps li:last-child::before { background: var(--spark); color: var(--dark); box-shadow: none; }
.poster-mascot { position: absolute; right: 6%; bottom: 6%; width: 22%; max-width: 92px; image-rendering: pixelated; z-index: -1; }
.poster-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--dark);
  z-index: 2;
}
.poster-play {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6);
}
.poster-play::before {
  content: "";
  border-left: 9px solid var(--spark-deep);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.pb-list { display: grid; gap: clamp(24px, 4vw, 40px); }
.pb {
  display: grid;
  gap: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(16px, 2.6vw, 28px);
  background: var(--white);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.pb > * { min-width: 0; }
@media (min-width: 860px) {
  .pb { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: start; }
  .pb:nth-child(even) .pb-media { order: 2; }
  .pb:nth-child(even) { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); }
}
.pb:target { border-color: var(--spark); }
.pb-body { padding: clamp(0px, 1vw, 12px) clamp(0px, 1vw, 8px); }
.pb-body h2 { margin-top: 14px; }
.pb-body .pb-sum { margin-top: 12px; color: var(--ink-mute); max-width: 54ch; }
.pb-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: pbs; display: grid; gap: 0; }
.pb-steps li {
  counter-increment: pbs;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}
.pb-steps li::before {
  content: counter(pbs);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--spark-deep);
}
.pb-tools { margin-top: 18px; }
.pb-gate {
  margin-top: 24px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 16px;
  background: var(--dark);
  color: var(--white);
}
.pb-gate .field > label { color: var(--white); }
.pb-gate .caption, .pb-gate .check { color: var(--ink-on-dark-mute); }
.pb-gate .caption a { color: var(--white); }
.pb-gate .err, .pb-gate .form-status[data-state="error"] { color: #ffb59c; }
.pb-gate .check input { border-color: rgba(255,255,255,0.6); background: transparent; }
.pb-gate .check input::after { border-color: var(--dark); }
.pb-form { display: grid; gap: 12px; }
.pb-form .row { display: grid; gap: 10px; }
@media (min-width: 520px) { .pb-form .row { grid-template-columns: 1fr auto; align-items: start; } }
.pb-done { display: grid; gap: 12px; justify-items: start; }
.pb-done:focus { outline: none; }
.pb-done .title { color: var(--white); }

/* Related strip: playbooks + blog, on every page */
.related-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .related-grid { grid-template-columns: repeat(4, 1fr); } .related-grid.is-3 { grid-template-columns: repeat(3, 1fr); } }
.mini {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--plum);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mini:hover { transform: translateY(-3px); border-color: var(--spark); box-shadow: var(--shadow-soft); }
.mini-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
}
.mini-art .nodes { width: 100%; height: auto; max-height: 34px; }
.mini-art .mini-kind { font-size: 13px; font-weight: 600; color: var(--ink-on-dark-mute); }
.mini-art .mini-count { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mini-art img.mini-mascot { position: absolute; right: 14px; top: 12px; width: 34px; image-rendering: pixelated; }
.mini-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mini-body h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
.mini-body p { font-size: 15px; color: var(--ink-mute); line-height: 1.5; }
.mini-body .link { margin-top: auto; padding-top: 8px; font-size: 15px; }
.mini-plain .mini-art { background: var(--white); color: var(--plum); border-bottom: 1px solid var(--line); }
.mini-plain .mini-art .mini-kind { color: var(--ink-mute); }
.sec-dark .mini { border-color: var(--line-dark); }

/* 13. CTA band: Talk to Bony --------------------------------------- */
.cta-band { background: var(--dark); color: var(--white); padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: auto 1fr auto; gap: 36px; } }
.cta-mascot { width: 104px; height: auto; image-rendering: pixelated; }
.cta-bubble {
  position: relative;
  background: var(--white);
  color: var(--plum);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  max-width: 620px;
}
.cta-bubble::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 3px;
  transform: rotate(45deg);
  left: 40px; top: -8px;
}
@media (min-width: 860px) { .cta-bubble::before { left: -8px; top: 50%; margin-top: -9px; } }
.cta-bubble h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-bubble p { margin-top: 10px; color: var(--ink-mute); }
.cta-side { display: grid; gap: 10px; justify-items: start; }
.cta-side .caption { color: var(--ink-on-dark-mute); max-width: 26ch; }
.cta-band + .footer { border-top: 1px solid var(--line-dark); }

/* 14. Blog ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--plum);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.filter:hover { border-color: var(--plum); }
.filter[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--white); font-weight: 600; }

.post-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--spark); box-shadow: var(--shadow-soft); }
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  overflow: hidden;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .embers i { animation: none; }
.post-cover .cover-mark { position: absolute; left: 18px; bottom: 16px; height: 22px; width: auto; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--ink-mute); }
.post-body h3 { font-size: 20px; line-height: 1.28; letter-spacing: -0.015em; }
.post-body h3 a { text-decoration: none; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body p { color: var(--ink-mute); font-size: 15.5px; }
.post-body .link { margin-top: auto; padding-top: 6px; font-size: 15px; }
.post-empty { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 28px; color: var(--ink-mute); }
.sample-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px dashed var(--spark-deep);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--plum);
}
.sample-flag {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  font-size: 12.5px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--white); color: var(--dark);
}

/* Post layout */
.crumbs { font-size: 14px; color: var(--ink-on-dark-mute); margin-bottom: 18px; }
.crumbs a { color: var(--white); text-underline-offset: 3px; }
.post-head h1 { max-width: 20em; margin-top: 16px; }
.post-head .post-meta { color: var(--ink-on-dark-mute); margin-top: 22px; }
.post-layout { display: grid; gap: clamp(36px, 5vw, 64px); }
.post-layout > * { min-width: 0; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.post-figure { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--r-lg); overflow: hidden; background: var(--dark); aspect-ratio: 16 / 9; }
.post-figure img { width: 100%; height: 100%; object-fit: cover; }

.article { font-size: 18px; line-height: 1.7; max-width: 70ch; }
.article > * + * { margin-top: 1.15em; }
.article h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 1.9em; }
.article h3 { font-size: clamp(20px, 2.2vw, 23px); margin-top: 1.6em; }
.article h2 + *, .article h3 + * { margin-top: 0.7em; }
.article a { color: var(--spark-deep); text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 0.45em; }
.article img { border-radius: var(--r-md); height: auto; }
.article blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--spark); font-family: var(--font-display); font-weight: 400; font-size: 1.08em; }
.article code { font-size: 0.9em; background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.article pre { background: var(--tint); padding: 16px; border-radius: var(--r-md); overflow-x: auto; font-size: 15px; line-height: 1.55; }
.article pre code { background: none; padding: 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* CTA blocks for posts. .article-cta sits inside the text, .side-cta in the rail. */
.article-cta, .side-cta {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
}
.article-cta { display: grid; gap: 18px; margin-block: 2em; align-items: center; }
@media (min-width: 620px) { .article-cta { grid-template-columns: auto 1fr; } }
.article-cta img { width: 72px; image-rendering: pixelated; border-radius: 0; }
.article-cta h2, .article-cta h3, .side-cta h2 { font-size: 21px; line-height: 1.25; margin: 0; color: var(--white); }
.article-cta p, .side-cta p { margin-top: 8px; color: var(--ink-on-dark-mute); font-size: 16px; line-height: 1.55; }
.article-cta .btn, .side-cta .btn { margin-top: 16px; }
.article-cta a.btn { color: var(--dark); }
.side-cta img { width: 64px; image-rendering: pixelated; margin-bottom: 14px; }
.rail { display: grid; gap: 22px; }
@media (min-width: 1000px) { .rail { position: sticky; top: calc(var(--nav-h) + 24px); } }
.rail-list { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.rail-list h2 { font-size: 17px; }
.rail-list ul { list-style: none; margin: 12px 0 0; padding: 0; }
.rail-list li { border-top: 1px solid var(--line); }
.rail-list li a { display: block; padding: 12px 0; text-decoration: none; font-size: 15.5px; font-weight: 500; }
.rail-list li a:hover { color: var(--spark-deep); }

/* 15. About --------------------------------------------------------- */
.pair-cols { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .pair-cols { grid-template-columns: 1fr 1fr; } }
.pair-cols > div { padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .pair-cols > div:first-child { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line); }
  .pair-cols > div:last-child { padding-left: clamp(24px, 4vw, 56px); }
}
.pair-cols .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--spark-deep); }
.pair-cols p { margin-top: 14px; color: var(--ink-mute); max-width: 42ch; }

.art-plate {
  background: var(--dark-raise);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.sec:not(.sec-dark) .art-plate { background: var(--dark); }
.bony-hero-art { width: min(260px, 60vw); height: auto; image-rendering: pixelated; position: relative; z-index: 1; }
.quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  border-left: 3px solid var(--spark);
  padding-left: 20px;
  margin: 22px 0 0;
}

/* 16. Legacy components (unlinked pages keep working) -------------- */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .modules { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.module { border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 16px 14px; background: rgba(255,255,255,0.05); }
.module:hover { border-color: var(--spark); }
.module .label { display: block; }
.module .caption { margin-top: 6px; }

.brief { background: var(--white); color: var(--plum); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); max-width: 520px; }
.brief .caption { color: var(--ink-mute); }
.brief-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.brief-avatar { position: relative; width: 34px; height: 34px; flex: none; background: var(--white); border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.brief-avatar img { width: 20px; height: 20px; }
.brief-top .label { line-height: 1.2; }
.brief-body { padding: 20px; }
.brief-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.brief-line:last-of-type { border-bottom: 0; }
.brief-line .dotmark { margin-top: 9px; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.brief-line.is-warm .dotmark, .brief-line.is-action .dotmark { background: var(--spark); }
.brief-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--plum); }
.chip-approve { background: var(--spark); color: var(--dark); border-color: var(--spark); }
.cite { font-size: 12px; font-weight: 600; color: var(--ink-mute); background: var(--tint); border-radius: var(--r-sm); padding: 2px 7px; white-space: nowrap; }

.chat { display: grid; gap: 12px; max-width: 520px; }
.bubble { border-radius: var(--r-lg); padding: 14px 18px; font-size: 16px; line-height: 1.5; max-width: 88%; }
.bubble-them { background: var(--tint); color: var(--plum); border-bottom-left-radius: var(--r-sm); }
.bubble-you { background: var(--dark); color: var(--white); margin-left: auto; border-bottom-right-radius: var(--r-sm); }
.sec-plum .bubble-them, .sec-dark .bubble-them { background: var(--white); }
.sec-plum .bubble-you, .sec-dark .bubble-you { background: var(--dark-raise); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--spark-deep); border-bottom: 2px solid var(--spark-deep); transform: rotate(-45deg); }
.ticks.no li::before { width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--ink-mute); transform: none; top: 13px; }
.sec-dark .ticks li::before, .sec-plum .ticks li::before, .card-plum .ticks li::before { border-color: var(--spark); }

.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--spark); }

.deflist { display: grid; gap: 0; }
.deflist > div { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .deflist > div { grid-template-columns: 230px 1fr; } }
.sec-plum .deflist > div, .sec-dark .deflist > div { border-top-color: var(--line-dark); }

.tiers { display: grid; gap: 18px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; background: var(--white); }
.tier.is-featured { border-color: var(--plum); border-width: 2px; }
.tier h3 { font-size: 24px; }
.tier .price { font-family: var(--font-display); font-weight: 400; font-size: 18px; margin-top: 12px; color: var(--spark-deep); }
.tier .for { margin-top: 8px; font-size: 15px; color: var(--ink-mute); min-height: 3em; }
.tier ul { margin-top: 20px; }
.tier .tier-foot { margin-top: auto; padding-top: 24px; }
.tier .ticks li { font-size: 15px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.gates { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
table.gates th, table.gates td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.gates thead th { font-family: var(--font-display); font-weight: 700; font-size: 16px; border-bottom: 2px solid var(--plum); }
table.gates tbody th { font-weight: 600; width: 230px; }
table.gates tr:hover td { background: var(--tint); }

.with-mascot { display: flex; gap: 16px; align-items: flex-start; }
.mascot-inline { width: 56px; height: auto; image-rendering: pixelated; flex: none; }
.note { border-left: 3px solid var(--spark); padding-left: 18px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sec-plum .hr, .sec-dark .hr { border-top-color: var(--line-dark); }

/* 17. Forms --------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 14.5px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-mute); }
.input, .select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  min-height: 50px;
  transition: border-color 0.16s var(--ease);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A1D2B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.input::placeholder { color: #8d7780; }
.input:hover, .select:hover { border-color: #cdbfc3; }
.input:focus, .select:focus { border-color: var(--spark); outline: 3px solid rgba(255, 106, 61, 0.35); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #c2401c; }
.err { font-size: 13.5px; font-weight: 600; color: #b3391a; min-height: 0; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--ink-mute);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  display: grid; place-content: center;
}
.check input::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--dark);
  border-bottom: 2.5px solid var(--dark);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.14s var(--ease);
}
.check input:checked, .pb-gate .check input:checked { background: var(--spark); border-color: var(--spark); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #b3391a; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 36px); }
.sec-plum .panel, .sec-dark .panel { color: var(--plum); border-color: transparent; }
.sec-plum .panel .caption, .sec-dark .panel .caption, .sec-plum .panel .mute, .sec-dark .panel .mute { color: var(--ink-mute); }
.success:focus { outline: none; }
.success { display: grid; gap: 16px; justify-items: start; text-align: left; }
.success img { width: 108px; height: auto; }
.mini-form { display: grid; gap: 14px; max-width: 460px; }
@media (min-width: 560px) {
  .mini-form .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
}

/* 18. Footer -------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--ink-on-dark);
  padding-block: clamp(48px, 6vw, 76px) 28px;
}
.footer .mute { color: var(--ink-on-dark-mute); }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--spark); }
.footer-top { display: grid; gap: 36px 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-brand .btn { margin-top: 20px; }
.footer-brand .btn:hover { text-decoration: none; }
.footer a.btn-ghost { border-color: rgba(255, 255, 255, 0.5); }
.footer a.btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
@media (min-width: 720px) { .footer-top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) {
  .footer-top { grid-template-columns: 1.35fr 1fr 1.15fr 0.85fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
}
.footer img.mark { height: 32px; width: auto; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-on-dark-mute);
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.footer .soon {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  color: var(--ink-on-dark-mute);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  white-space: nowrap;
  vertical-align: 1px;
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-on-dark-mute);
}
.footer-bottom .sep { margin-left: auto; }
@media (max-width: 719px) { .footer-bottom .sep { margin-left: 0; } }

/* 19. Prose (privacy) ----------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; margin-bottom: 12px; font-size: clamp(22px, 2.8vw, 28px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-top: 8px; }
.prose a:not(.btn) { color: var(--spark-deep); text-underline-offset: 3px; }
.needs { background: var(--tint); border: 1px dashed var(--spark-deep); border-radius: 6px; padding: 1px 6px; font-size: 0.94em; }

/* 20. Reveal -------------------------------------------------------- */
/* Only elements that start below the fold are hidden, and only once site.js
   has run, so the page is complete without JavaScript. */
.js .reveal.pre {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.pre.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.pre { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card-link:hover, .mini:hover, .post-card:hover { transform: none; }
}

/* 21. Dark-band contexts -------------------------------------------- */
.page-hero .kicker, .cta-band .kicker { color: var(--spark); }
.page-hero .link { color: var(--spark); }
.page-hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.page-hero .btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
input, select, textarea { font: inherit; }
.mini-plain .mini-art { aspect-ratio: auto; min-height: 72px; }
.poster.has-media { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.poster.has-media .poster-media { background: var(--white); border-radius: inherit; }
.poster.has-media > :not(.poster-media):not(.poster-play) { visibility: hidden; }
p.title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
@media (max-width: 899px) { .page-hero > .embers { display: none; } }

/* ==================================================================
   v2, 7 Oct 2026: photography, interactive pieces, richer cross-links.
   Still two grounds and one accent. Photos are stock images of events
   (see assets/photos/CREDITS.md) and never stand in for Bonyfire events.
   ================================================================== */

/* 22. Photographs --------------------------------------------------- */
/* One frame for every photo: 20px radius, a light plum grade so warm and
   cool sources sit together, cover-cropped by the aspect class. */
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark-raise);
  isolation: isolate;
}
.photo picture { display: block; width: 100%; height: 100%; }
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 0.9s var(--ease);
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(53, 19, 29, 0.05), rgba(53, 19, 29, 0.24));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-3x2 { aspect-ratio: 3 / 2; }
.photo-4x3 { aspect-ratio: 4 / 3; }
.photo-16x9 { aspect-ratio: 16 / 9; }
.photo-zoom:hover img, a:hover > .photo img, a:focus-visible > .photo img { transform: scale(1.035); }
.pos-top img { object-position: center 20%; }
.pos-left img { object-position: 25% center; }
.pos-right img { object-position: 75% center; }

/* Three photos in a row: one wide, two narrower. */
.ribbon { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.ribbon .photo { aspect-ratio: 1 / 1; }
.ribbon .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 860px) {
  .ribbon { grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
  .ribbon .photo, .ribbon .photo:first-child { grid-column: auto; aspect-ratio: auto; height: clamp(280px, 30vw, 400px); }
}

/* One tall photo and two stacked beside it. */
.mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mosaic .photo { aspect-ratio: 4 / 3; }
.mosaic .photo:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 860px) {
  .mosaic { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: clamp(380px, 40vw, 520px); }
  .mosaic .photo { aspect-ratio: auto; min-height: 0; }
  .mosaic .photo:first-child { grid-column: auto; grid-row: 1 / 3; aspect-ratio: auto; }
}

/* A photo with a mock card resting on its lower edge (Bony page). */
.stack-visual { position: relative; }
.stack-visual .photo { aspect-ratio: 4 / 3; }
.stack-visual .mail { position: relative; z-index: 2; margin: -56px 12px 0; }
@media (min-width: 900px) { .stack-visual .mail { margin: -96px -8px 0 auto; max-width: 430px; } }

/* Photo on a page's top band. Below 960px it is a framed photo under the
   text; from 960px it fills the right of the band under a plum gradient. */
.hero-photo {
  position: relative;
  margin: 32px var(--gutter) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--dark-raise);
}
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(53, 19, 29, 0.05), rgba(53, 19, 29, 0.3));
  pointer-events: none;
}
@media (min-width: 960px) {
  .page-hero.has-photo { min-height: min(640px, 82vh); display: flex; align-items: center; }
  .page-hero.has-photo > .wrap { flex: 1; }
  .page-hero.has-photo .hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 60%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    z-index: 0;
  }
  .page-hero.has-photo .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(53, 19, 29, 0.88) 0, rgba(53, 19, 29, 0) 170px),
      linear-gradient(90deg, #35131d 0%, rgba(53, 19, 29, 0.86) 28%, rgba(53, 19, 29, 0.42) 100%);
  }
  .page-hero.has-photo > .embers { display: none; }
}

/* 23. Segmented control and panels (Home services) ------------------- */
/* Without JavaScript the buttons are hidden and the panels stack. */
html:not(.js) [data-tablist] { display: none; }
.seg-nav { display: grid; gap: 8px; margin-bottom: 16px; }
.seg-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg-tab:hover { border-color: var(--plum); }
.seg-tab .status { align-self: center; flex: none; }
.seg-tab[aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: var(--white); }
.seg-tab[aria-selected="true"] .status-prep { color: var(--ink-on-dark-mute); box-shadow: inset 0 0 0 1px var(--line-dark); }
.seg-tab[aria-selected="true"] .status-prep::before { box-shadow: inset 0 0 0 1.5px var(--ink-on-dark-mute); }
@media (min-width: 860px) {
  .seg-nav { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
  .seg-tab { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 18px 20px; font-size: 19px; }
  .seg-tab .status { align-self: flex-start; order: -1; }
}
.seg-panel {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.seg-panel + .seg-panel { margin-top: 18px; }
.seg-panel > * { min-width: 0; }
.seg-panel .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.seg-body { padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.seg-body h3 { margin-top: 16px; }
.seg-body > p { margin-top: 12px; color: var(--ink-mute); max-width: 48ch; }
.seg-body .ticks { margin-top: 18px; font-size: 16px; }
.seg-foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (min-width: 860px) {
  .seg-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 400px; }
  .seg-panel .photo { aspect-ratio: auto; height: 100%; }
}
.js [data-panel]:not([hidden]) { animation: panel-in 0.4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 24. Walkthrough: how a match happens (Bony) ----------------------- */
.walk { display: grid; gap: 22px; }
.walk > * { min-width: 0; }
.walk-nav { display: flex; gap: 0; counter-reset: walk; justify-content: space-between; position: relative; }
.walk-nav::before {
  content: "";
  position: absolute; left: 22px; right: 22px; top: 21px;
  height: 2px; background: var(--line-dark);
}
.walk-tab {
  position: relative;
  counter-increment: walk;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-on-dark-mute);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.walk-tab::before {
  content: counter(walk);
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 17px;
  background: var(--dark);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.walk-tab:hover::before { box-shadow: inset 0 0 0 1.5px var(--white); }
.walk-tab[aria-selected="true"] { color: var(--white); }
.walk-tab[aria-selected="true"]::before { background: var(--spark); color: var(--dark); box-shadow: none; }
.walk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 900px) {
  .walk { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .walk-nav { flex-direction: column; gap: 6px; justify-content: flex-start; }
  .walk-nav::before { display: none; }
  .walk-tab {
    grid-template-columns: 44px 1fr;
    justify-items: start;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .walk-tab:hover { color: var(--white); }
  .walk-tab[aria-selected="true"] { background: var(--dark-raise); border-color: var(--line-dark); }
  .walk-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
}
.walk-panel {
  background: var(--dark-raise);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(18px, 2.6vw, 30px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.walk-panel + .walk-panel { margin-top: 18px; }
.walk-count { font-size: 14px; font-weight: 600; color: var(--spark); }
.walk-panel h3 { margin-top: 8px; font-size: clamp(21px, 2.4vw, 27px); }
.walk-panel > p:not(.walk-count) { margin-top: 10px; color: var(--ink-on-dark-mute); max-width: 54ch; }
.walk-visual { margin: 22px 0 0; }
.walk-visual .photo { aspect-ratio: 16 / 9; }
.walk-visual figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-on-dark-mute); }
.walk-card {
  background: var(--white);
  color: var(--plum);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.walk-card .msg { max-width: 92%; }
.walk-next { margin-top: 22px; }
html:not(.js) .walk-next { display: none; }

/* example attendee profile (walkthrough step 2) */
.profile { display: grid; gap: 14px; font-size: 15px; line-height: 1.45; }
.profile-top { display: flex; align-items: center; gap: 12px; }
.profile-top .pair span { margin: 0; }
.profile-name { font-weight: 600; font-size: 16px; }
.profile-role { color: var(--ink-mute); font-size: 14px; }
.profile dl { margin: 0; display: grid; gap: 0; }
.profile dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.profile dt { color: var(--ink-mute); font-size: 14px; }
.profile dd { margin: 0; }

/* 25. Questions (accordion) ------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.3; letter-spacing: -0.015em; }
.faq-item summary:hover h3 { color: var(--spark-deep); }
.faq-icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--plum);
  border-radius: 2px;
}
.faq-icon::after { transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-icon { background: var(--spark); box-shadow: none; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 52px 24px 0; color: var(--ink-mute); max-width: 64ch; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--spark-deep); font-weight: 600; text-underline-offset: 3px; }

/* 26. Playbook previews in cards ------------------------------------- */
/* The card art is the top of the real infographic. On hover or keyboard
   focus site.js plays the animated version over it, muted. */
.mini-art.is-poster { padding: 0; aspect-ratio: 16 / 10; background: var(--white); border-bottom: 1px solid var(--line); }
.mini-art.is-poster picture { display: block; position: absolute; inset: 0; }
.mini-art.is-poster img, .mini-art.is-poster video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mini-art.is-poster video { z-index: 1; background: var(--white); }
.mini-art.is-poster .mini-kind {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--white);
  font-size: 12.5px;
  line-height: 1.2;
}
.mini-art.is-photo { padding: 0; aspect-ratio: 16 / 10; }
.mini-art.is-photo picture { display: block; position: absolute; inset: 0; }
.mini-art.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); transition: transform 0.9s var(--ease); }
.mini:hover .mini-art.is-photo img { transform: scale(1.035); }
.related-grid.is-2 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .related-grid.is-2 { grid-template-columns: 1fr 1fr; } }
/* The slot the blog generator fills adds a fourth card when a post exists. */
@media (min-width: 1040px) { .related-grid.is-3:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }

/* Three photo tiles that jump to a playbook (Resources top band). */
.jump { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 720px) { .jump { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.jump-tile {
  position: relative;
  display: block;
  aspect-ratio: 5 / 2;
  border-radius: 18px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  background: var(--dark-raise);
  isolation: isolate;
}
@media (min-width: 720px) { .jump-tile { aspect-ratio: 16 / 10; } }
.jump-tile picture { display: block; position: absolute; inset: 0; }
.jump-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); transition: transform 0.9s var(--ease); }
.jump-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(53, 19, 29, 0.1) 0%, rgba(53, 19, 29, 0.55) 45%, rgba(53, 19, 29, 0.94) 100%);
  transition: opacity 0.3s var(--ease);
}
.jump-tile:hover img, .jump-tile:focus-visible img { transform: scale(1.04); }
.jump-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: grid; gap: 2px; }
.jump-text b { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.015em; }
.jump-text span { font-size: 14px; color: var(--ink-on-dark-mute); }
.jump-text .arrow { display: inline-block; transition: transform 0.18s var(--ease); }
.jump-tile:hover .arrow { transform: translateY(3px); }

/* 27. Closing band with a photograph --------------------------------- */
.cta-photo { position: absolute; inset: 0; z-index: 0; }
.cta-photo picture { display: block; width: 100%; height: 100%; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(0.9); }
.cta-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(53, 19, 29, 0.95) 0%, rgba(53, 19, 29, 0.9) 50%, rgba(53, 19, 29, 0.82) 100%);
}
.cta-band.has-photo { padding-block: clamp(56px, 8vw, 104px); }

/* 28. Small layout helpers ------------------------------------------- */
.sec-head-row { display: grid; gap: 16px 40px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .sec-head-row { grid-template-columns: 1fr auto; } }
.inline-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 16px;
}
.inline-ref .tag { flex: none; }
.inline-ref .link { margin-left: auto; }
.sec-dark .inline-ref { border-color: var(--line-dark); }
.sec-dark .inline-ref .tag { background: var(--dark-raise); color: var(--white); }
@media (max-width: 619px) { .inline-ref .link { margin-left: 0; } }
.sec-join { padding-bottom: clamp(20px, 3vw, 40px); }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 28px; }
.hero-h-wide { max-width: 14em; }
.hero-h-narrow { max-width: 13em; }
.hero-sub-narrow { max-width: 44ch; }
.caption-narrow { max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
  .photo img, .jump-tile img, .mini-art.is-photo img, .faq-icon, .faq-icon::after, .seg-tab, .walk-tab, .walk-tab::before { transition: none; }
  .photo-zoom:hover img, a:hover > .photo img, a:focus-visible > .photo img, .jump-tile:hover img, .jump-tile:focus-visible img, .mini:hover .mini-art.is-photo img { transform: none; }
  .js [data-panel]:not([hidden]) { animation: none; }
  .nav-all:hover .arrow, .jump-tile:hover .arrow { transform: none; }
}
