/*
  Eldoggo Software — house-trained, warm, legible.

  Tokens first; components only ever read tokens, so neither theme can end up
  with one theme's text on the other's ground. Visual direction and the reasons
  for it: docs/adr/0002-house-trained-identity-and-honest-claims.md.

  No inline styles anywhere in the markup — the page's CSP forbids them
  (docs/adr/0001-static-page-no-framework.md), and a test enforces it.
*/

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --paper: #F5F7FB;        /* ground: cool white, biased toward the ink */
  --band: #EAEEF6;         /* alternate section ground */
  --card: #FFFFFF;
  --ink: #121A33;          /* collar navy */
  --ink-soft: #2B3553;
  --muted: #56607C;
  --line: #D8DEEA;
  --line-strong: #B6BFD4;
  --ball: #D4EE3F;         /* tennis ball — the one bold colour */
  --on-ball: #121A33;      /* text on the ball, in both themes */
  --on-ball-soft: #34405F;
  --btn-bg: #121A33;
  --btn-fg: #FFFFFF;
  --btn-hover: #27325C;
  --focus: #2F5BEA;
  --good: #16804F;         /* semantic colours never share the accent's hue */
  --wait: #A86400;
  --stop: #C0392B;
  --kennel-paper: #FFFEFA;
  --kennel-rule: #CFDAEE;  /* the blue lines on an index card */
  --kennel-top: #E08579;   /* …and the red one at the top */
  --shadow: 0 1px 2px rgb(18 26 51 / .06), 0 18px 40px -18px rgb(18 26 51 / .28);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius-lg: 18px;
  --radius: 12px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1328;
    --band: #111A34;
    --card: #161F3B;
    --ink: #EEF1F8;
    --ink-soft: #CDD3E4;
    --muted: #A3ACC6;
    --line: #27314F;
    --line-strong: #3C4873;
    --ball: #CFE84A;
    --btn-bg: #EEF1F8;
    --btn-fg: #0D1328;
    --btn-hover: #D3D9EA;
    --focus: #8FB1FF;
    --good: #4CC38A;
    --wait: #E6A54A;
    --stop: #F0806E;
    --kennel-paper: #1A2343;
    --kennel-rule: #2C3862;
    --kennel-top: #B45A52;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 22px 48px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0D1328;
  --band: #111A34;
  --card: #161F3B;
  --ink: #EEF1F8;
  --ink-soft: #CDD3E4;
  --muted: #A3ACC6;
  --line: #27314F;
  --line-strong: #3C4873;
  --ball: #CFE84A;
  --btn-bg: #EEF1F8;
  --btn-fg: #0D1328;
  --btn-hover: #D3D9EA;
  --focus: #8FB1FF;
  --good: #4CC38A;
  --wait: #E6A54A;
  --stop: #F0806E;
  --kennel-paper: #1A2343;
  --kennel-rule: #2C3862;
  --kennel-top: #B45A52;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 22px 48px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }

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

svg { display: block; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* Shared type roles */

.eyebrow,
.product-kicker,
.kennel-kicker,
.spec dt,
.kennel-facts dt,
.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Controls: conventional on purpose (botjoon ADR-0009) ───────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn-sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }

.link-arrow {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .15s ease;
}
/* inline-block keeps the underline from running under the arrow */
.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: .4em;
  transition: transform .15s ease;
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Status: state is carried by form as well as colour —
   filled = running, ring = running privately, half = being built, hollow = not yet. */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.status--live::before { background: var(--good); }
.status--private::before { border: 2px solid var(--good); }
.status--dev::before {
  border: 2px solid var(--wait);
  background: linear-gradient(90deg, var(--wait) 50%, transparent 50%);
}
.status--soon::before { border: 2px solid var(--wait); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header { padding-block: 18px; }

.header-row { display: flex; align-items: center; gap: 28px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.mark { width: 34px; height: 34px; flex: none; }
.mark-sm { width: 24px; height: 24px; }
.mark-body { fill: var(--ink); }
.mark-ear { fill: var(--ball); }

.brand-text { display: inline-flex; align-items: baseline; gap: 8px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-kind {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: none; gap: 28px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 940px) { .nav { display: flex; } }
@media (max-width: 420px) { .brand-kind { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(24px, 5vw, 64px) var(--section-y);
  overflow-x: clip; /* the kennel card's swing must never scroll the page sideways */
}

.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
}

.hero-copy { display: grid; gap: 24px; justify-items: start; }

.display {
  font-weight: 800;
  font-stretch: 86%;
  font-size: clamp(2.6rem, 1.1rem + 6.4vw, 5.9rem);
  letter-spacing: -0.035em;
  line-height: .95;
}

/* A highlighter stroke. Text on it is navy in both themes. The band stops
   short of the line box so it reads as a marker, not a label. */
.swipe {
  white-space: nowrap;
  color: var(--on-ball);
  background: linear-gradient(transparent 12%, var(--ball) 12%, var(--ball) 94%, transparent 94%);
  padding: 0 .08em;
  margin-inline: -.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* The kennel card hangs from a nail. It swings once when the page arrives and
   rests straight; people who asked for less motion get the resting state. */

.hero-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding-top: 40px;
}

.hero-card::before { /* the nail */
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18);
}

.kennel {
  position: relative;
  padding: 36px 28px 26px;
  background: var(--kennel-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform-origin: 50% -28px;
  animation: settle 1.5s cubic-bezier(.25, .8, .35, 1) .2s both;
}

.kennel::before { /* the cord, nail to hole */
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 47px;
  margin-left: -1px;
  background: var(--line-strong);
}

.kennel-hole {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .3);
}

@keyframes settle {
  0%   { transform: rotate(6deg); }
  30%  { transform: rotate(-3.5deg); }
  55%  { transform: rotate(1.8deg); }
  75%  { transform: rotate(-.8deg); }
  90%  { transform: rotate(.3deg); }
  100% { transform: rotate(0); }
}

.kennel-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--kennel-top);
}
.kennel-kicker span:last-child { letter-spacing: .04em; text-transform: none; }

.kennel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
}

.kennel-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: 2.6rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stamp {
  display: inline-block;
  padding: 5px 10px 4px;
  border: 2.5px solid currentColor;
  border-radius: 8px;
  color: var(--good);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: .9;
}

.kennel-facts { margin: 12px 0 0; }

.kennel-facts > div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--kennel-rule);
}

.kennel-facts dt { padding-top: .22em; }
.kennel-facts dd { margin: 0; font-size: .98rem; line-height: 1.4; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li { position: relative; padding-left: 23px; }
.checks li::before { /* the box */
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.checks li::after { /* the tick */
  content: "";
  position: absolute;
  left: 5.5px;
  top: calc(.2em + 2px);
  width: 5px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.kennel-foot { margin-top: 18px; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section--band { background: var(--band); }

.section-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  font-stretch: 88%;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-lede {
  max-width: 38em;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.subhead {
  font-stretch: 90%;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

/* ── The pack ───────────────────────────────────────────────────────────── */

.pack { display: grid; gap: 20px; }

@media (min-width: 720px) {
  .pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .pack { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .product,
  .product:last-child { grid-column: span 2; }
  .product--wide { grid-column: span 3; }
}

.product {
  container-type: inline-size; /* the spec panel lays itself out by the card's width, not the window's */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease;
}
.product:hover { border-color: var(--line-strong); }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-title { display: grid; gap: 6px; }

.product-name {
  font-stretch: 88%;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.product-line { font-weight: 700; font-size: 1.125rem; line-height: 1.35; }

.product-body { color: var(--ink-soft); }

.product-foot { margin-top: auto; padding-top: 4px; }
.product-note { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* A spec panel: the same object for Cardjoon's card and Botjoon's job. */
.spec {
  margin: 0;
  padding: 4px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spec > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { padding-top: .2em; }
.spec dd { margin: 0; font-size: .98rem; line-height: 1.45; }
.spec-script { font-size: 1.15rem; text-align: right; }

@container (max-width: 480px) {
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .spec-script { text-align: start; }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--band);
  color: var(--ink-soft);
  font-size: .9rem;
}
.facts strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── The backbone ───────────────────────────────────────────────────────── */

.backbone-grid { display: grid; gap: 8px; }

@media (min-width: 1040px) {
  .backbone-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
  }
  .backbone-head { position: sticky; top: 32px; margin-bottom: 0; }
}

.stack-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.stack-tabs li {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: .85rem;
  text-align: center;
}

.stack-tabs .stack-tab--yours { background: var(--ball); border-color: var(--ball); }
.stack-tab--yours a { color: var(--on-ball); text-decoration: none; }
.stack-tab--yours a:hover { text-decoration: underline; }

/* From here up the tabs sit on the stack like folder tabs. */
@media (min-width: 560px) {
  .stack-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 0 -1px;
    padding: 0 14px;
  }
  .stack-tabs li {
    padding: 10px 4px 9px;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    overflow-wrap: anywhere;
  }
}

.stack-layers {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.layer {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.layer:first-child { border-top: 0; }

.layer h3 {
  font-stretch: 90%;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.layer p { color: var(--ink-soft); line-height: 1.5; }
.layer .status { grid-column: 2; justify-self: start; }

@media (max-width: 520px) {
  .layer { grid-template-columns: 1fr; gap: 4px; }
  .layer .status { grid-column: 1; margin-top: 6px; }
}

/* ── House rules ────────────────────────────────────────────────────────── */

.jobsheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.jobsheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.jobsheet-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.125rem;
}

.jobsheet-meta { color: var(--muted); font-size: .95rem; }

.jobsheet-cols { display: grid; }

@media (min-width: 860px) {
  .jobsheet-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jobsheet--two .jobsheet-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobsheet-col + .jobsheet-col { border-left: 1px solid var(--line); }
}

/* The same sheet, reused to say plainly what agents can and can't run. */
.teams-fit { margin-top: clamp(40px, 5vw, 56px); }

.jobsheet-col { padding: 24px; }
.jobsheet-col + .jobsheet-col { border-top: 1px solid var(--line); }
@media (min-width: 860px) { .jobsheet-col + .jobsheet-col { border-top: 0; } }

.jobsheet-col--good { --tone: var(--good); }
.jobsheet-col--wait { --tone: var(--wait); }
.jobsheet-col--stop { --tone: var(--stop); }

.jobsheet-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-stretch: 90%;
  font-size: 1.25rem;
}

.jobsheet-aside {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: 0;
  color: var(--muted);
}

.tone-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--card);
}
.tone-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jobsheet-col ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.jobsheet-col li { position: relative; padding-left: 18px; line-height: 1.45; }
.jobsheet-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tone);
}

#rules .subhead { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 8px; }

.rules {
  display: grid;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rule {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-strong);
}

.rule-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.rule p:not(.rule-name):not(.rule-src) { color: var(--ink-soft); }

.rule-src { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ── Agent teams ────────────────────────────────────────────────────────── */

.roster-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.roster-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.roster-boss { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-soft); }

/* The ball marks the visitor wherever they appear: here, the "Yours" tab, the contact band. */
.boss {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ball);
  color: var(--on-ball);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
}

.roster { display: grid; gap: 16px; }
@media (min-width: 640px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Staff badges: same object as the kennel card, slot instead of a hole. */
.agent {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 32px 22px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.agent::before { /* the lanyard slot */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 36px;
  height: 6px;
  margin-left: -18px;
  border-radius: 3px;
  background: var(--band);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .18);
}

.agent-head { display: flex; align-items: center; gap: 14px; }

/* An agent's face is the mark, with eyes. */
.face { width: 48px; height: 48px; flex: none; }
.face--flip { transform: scaleX(-1); }
.face-body { fill: var(--ink); }
.face-ear { fill: var(--ball); }
.face-eye { fill: var(--paper); }
.face-smile { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }

.agent-name { display: grid; gap: 2px; }
.agent-name h3 { font-stretch: 88%; font-size: 1.35rem; letter-spacing: -0.02em; }
.agent-name p { color: var(--muted); font-size: .92rem; }

.duties {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.duty {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 10px;
  font-size: .95rem;
  line-height: 1.45;
}

.duty-label {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 7px;
  padding-top: .18em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.duty-label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tone);
}
.duty--does { --tone: var(--good); }
.duty--asks { --tone: var(--wait); }
.duty--never { --tone: var(--stop); }

/* The section opens on the investor's document: a term sheet. */
.teams-top { display: grid; gap: 40px; margin-bottom: clamp(48px, 6vw, 72px); }
@media (min-width: 1040px) {
  .teams-top { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
  .teams-top .section-head { margin-bottom: 0; }
}

.termsheet {
  padding: 26px 28px 24px;
  background: var(--kennel-paper);
  border: 1px solid var(--line);
  border-radius: 6px; /* a document, not a card */
  box-shadow: var(--shadow);
}

.termsheet-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px double var(--line-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.termsheet-kicker span:last-child { color: var(--muted); font-weight: 700; letter-spacing: .12em; }

.termsheet-terms { margin: 4px 0 0; }
.termsheet-terms > div {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kennel-rule);
}
.termsheet-terms dt {
  padding-top: .25em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.termsheet-terms dd { margin: 0; line-height: 1.45; }

.termsheet-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fine { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }

/* A permission not granted: an empty box, and quieter text. */
.checks .check--no { color: var(--muted); }
.checks .check--no::after { content: none; }

.signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.signatures p { display: grid; gap: 4px; }
.sig-line {
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.05rem;
}
.sig-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.teams-subhead { margin: clamp(48px, 6vw, 72px) 0 8px; }

.includes {
  display: grid;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .includes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.includes li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line-strong);
}

.include-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.includes li p:not(.include-name) { color: var(--ink-soft); }

.dogfood {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 960px) {
  .dogfood { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
}

.dogfood-copy { display: grid; gap: 12px; }

.dogfood-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 86%;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dogfood-copy p:not(.dogfood-title) { max-width: 40em; color: var(--ink-soft); }
.dogfood-copy strong { color: var(--ink); }

.dogfood-action { display: grid; gap: 12px; justify-items: start; }
.dogfood-note { color: var(--muted); font-size: .95rem; }

/* Decisions: the investor's whole job. Clear like a game — routes, prices,
   the resource bar previewing the spend — with none of a game's compulsion. */

.decide { display: grid; gap: 40px; margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 1040px) {
  .decide { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
}

.decide-copy { display: grid; gap: 16px; align-content: start; }
.decide-copy > p { max-width: 36em; color: var(--ink-soft); font-size: 1.0625rem; }

.decide-title {
  font-stretch: 86%;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.decide-steps { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.decide-steps li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; color: var(--ink-soft); }
.decide-steps strong { color: var(--ink); }

.decide-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
}

.decision {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.decision-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.decision-from {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status--waiting::before { background: var(--wait); }

.decision-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.decision-context { color: var(--ink-soft); font-size: .98rem; }

.routes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.route--pick { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.route-key {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--band);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}

.route-text { display: grid; gap: 1px; }
.route-name { font-weight: 700; }
.route-expect { color: var(--muted); font-size: .9rem; line-height: 1.35; }

.route-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.route-cost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.meter { display: grid; gap: 7px; }
.meter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--muted);
  font-size: .88rem;
}
.meter-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Widths are this example's numbers ($31 used, $25 proposed, of $75), set here
   because the CSP forbids inline styles. */
.meter-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--band);
}
.meter-used { position: absolute; inset: 0 auto 0 0; width: 41.33%; background: var(--ink); }
.meter-next {
  position: absolute;
  inset: 0 auto 0 41.33%;
  width: 33.33%;
  background: repeating-linear-gradient(135deg, var(--wait) 0 5px, transparent 5px 9px);
}

.decision-note { color: var(--muted); font-size: .9rem; }

.decision-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.decision-actions .btn { cursor: default; }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* ── Work with us ───────────────────────────────────────────────────────── */

.offers { display: grid; gap: 20px; }
@media (min-width: 720px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offer {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  background: var(--band);
  color: var(--ink);
}
.offer-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer h3 {
  font-stretch: 88%;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.offer p { color: var(--ink-soft); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .85rem;
}

.process { margin-top: clamp(56px, 7vw, 88px); }
.process .subhead { margin-bottom: 20px; }

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

.step {
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.step-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.step-name { font-weight: 700; font-size: 1.0625rem; }
.step p:not(.step-name) { color: var(--ink-soft); }

/* ── Contact: the ball, in both themes ──────────────────────────────────── */

.contact {
  padding-block: clamp(64px, 8vw, 108px);
  background: var(--ball);
  color: var(--on-ball);
}

.contact :focus-visible { outline-color: var(--on-ball); }

.contact-grid { display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
}

.contact-copy { display: grid; gap: 18px; }

.contact-title {
  color: var(--on-ball);
  font-stretch: 86%;
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: .95;
}

.contact-lede { max-width: 30em; font-size: 1.1875rem; line-height: 1.55; color: var(--on-ball-soft); }

.contact-reach { display: grid; gap: 10px; justify-items: start; min-width: 0; }

.contact .contact-label { color: var(--on-ball-soft); }

.contact-email {
  max-width: 100%;
  color: var(--on-ball);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(1.35rem, .85rem + 2.3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-on-ball { background: var(--on-ball); color: #FFFFFF; }
.btn-on-ball:hover { background: #27325C; }

.btn-ghost-on-ball { background: transparent; color: var(--on-ball); border-color: var(--on-ball); }
.btn-ghost-on-ball:hover { background: rgb(18 26 51 / .08); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { padding-block: 40px 48px; }

.footer-row { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .footer-note { grid-column: 1 / -1; }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--ink-soft); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }

.footer-note { color: var(--muted); font-size: .9rem; }

/* ── Motion preferences ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kennel { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
