/* ============================================================
   TOMATUHS — Brand Guidelines site (v2)
   Raw CSS. Reads tokens.css only; no brand value declared here.
   The frame is simple; the Latin is the trophy inside it.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img, svg, video { max-width: 100%; display: block; }

button, input, textarea, select { font: inherit; }

h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: var(--sp-3); left: var(--sp-3);
  z-index: 20;
  padding: var(--sp-2) var(--sp-3);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* ---------- Shell & nav ---------- */

.shell { display: flex; }

main { flex: 1; min-width: 0; margin-left: var(--nav-w); }

.nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-w);
  padding: var(--sp-5) var(--sp-4);
  border-right: var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow-y: auto;
  z-index: 10;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h4);
}

.nav__brand em { font-style: normal; color: var(--green); }

.nav__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.nav__link {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  font-size: var(--text-body-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav__link:hover { color: var(--ink); background: var(--subtle); }
.nav__link.active { color: var(--red); font-weight: 600; }
.nav__link .num { font-family: var(--font-mono); font-size: var(--text-label); }

.nav__print {
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--r-md);
  background: none;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav__print:hover { background: var(--ink); color: var(--surface); }

.nav__print--flat { margin-top: var(--sp-2); width: 100%; }

.nav__toggle { display: none; }

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

.sec { padding: var(--section-pad) var(--sp-5); }

.sec__inner { max-width: var(--max-w); margin: 0 auto; }

@media (min-width: 80rem) {
  .sec__inner { max-width: var(--max-w-wide); }
}

.sec--warm { background: var(--surface-warm); }

.sec--dark { background: var(--dark); color: var(--field); }

.gdiv { height: 3px; background: linear-gradient(90deg, var(--green), var(--field), var(--red)); }

.duo { display: grid; gap: 0 var(--sp-7); }

@media (min-width: 72rem) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .duo .trait-list, .duo .spec-table { max-width: none; }
}

.sec-head { margin-bottom: var(--sp-6); }

.sec-head .kicker {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-2);
}

.sec-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: 1.08;
  font-weight: 600;
  max-width: 20ch;
}

.sec-head .sub {
  margin-top: var(--sp-3);
  font-size: var(--text-body-lg);
  color: var(--muted);
  max-width: 56ch;
}

.sec--dark .sec-head .sub,
.sec--dark .block-label,
.sec--dark .rule-list li,
.sec--dark .spec-table th { color: color-mix(in srgb, var(--field) 72%, transparent); }

.sec--dark .spec-table th,
.sec--dark .spec-table td,
.sec--dark .rule-list li { border-color: color-mix(in srgb, var(--field) 16%, transparent); }

.proposed-badge {
  display: inline-block;
  padding: 2px var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--field);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.placeholder {
  border: 2px dashed var(--red);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  color: var(--red);
  background: color-mix(in srgb, var(--red) 4%, transparent);
}

.prov {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  padding: 1px var(--sp-2);
  border-radius: var(--r-sm);
  border: var(--border-w) solid currentColor;
  margin-left: var(--sp-2);
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0.04em;
}

.prov--answered { color: var(--green); }
.prov--context { color: var(--stone); }
.prov--invented { color: var(--red); }

.block-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}

/* ---------- Shared components ---------- */

.trait-list { max-width: var(--max-w-narrow); margin-bottom: var(--sp-6); }

.trait {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1) var(--sp-5);
  padding-block: var(--sp-3);
  border-bottom: var(--border);
}

.trait:first-child { border-top: var(--border); }

.trait dt { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 600; }

.trait dd { color: var(--muted); max-width: 52ch; }

@media (min-width: 48rem) {
  .trait { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; }
}

.rule-list { list-style: none; max-width: var(--max-w-narrow); margin-bottom: var(--sp-6); }

.rule-list li {
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
  border-bottom: var(--border);
  position: relative;
}

.rule-list li::before { content: "—"; position: absolute; left: 0; color: var(--green); }

.dd {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--sp-5);
  max-width: var(--max-w);
  margin-bottom: var(--sp-6);
}

.dd__col { list-style: none; }

.dd__col li {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-bottom: var(--border);
  position: relative;
  font-size: var(--text-body-sm);
}

.dd__col li::before { position: absolute; left: 0; font-weight: 600; }
.dd__col--do li::before { content: "✓"; color: var(--green); }
.dd__col--dont li::before { content: "✕"; color: var(--red); }

.spec-table {
  width: 100%;
  max-width: 56rem;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
  margin-bottom: var(--sp-6);
}

.spec-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.spec-table th, .spec-table td {
  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
  border-bottom: var(--border);
}

.spec-table .pass { color: var(--green); }
.spec-table .fail { color: var(--red); font-weight: 600; }

.alt-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.alt-pair__option {
  border: var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  background: var(--surface);
  box-shadow: var(--sh-rest);
}

.alt-pair__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-3);
}

.alt-pair__option > p { font-size: var(--text-caption); color: var(--muted); margin-top: var(--sp-3); }

.alt-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.alt-toggle__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: var(--sp-2);
}

.alt-toggle .btn.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.invite { display: none; }

@media (min-width: 92rem) {
  .sec__inner--aside {
    max-width: var(--max-w-wide);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13rem;
    column-gap: var(--sp-7);
  }

  .invite {
    display: grid;
    place-content: center;
    position: sticky;
    top: var(--sp-6);
    align-self: start;
    min-height: 20rem;
    border: var(--border-w) dashed color-mix(in srgb, var(--muted) 55%, transparent);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
    opacity: 0;
    animation: invite-in var(--dur-grow) var(--ease-out) 2200ms forwards;
  }
}

@keyframes invite-in { to { opacity: 1; } }

/* ---------- Cover ---------- */

.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cover__stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--green), var(--field), var(--red));
}

.cover .meta {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--muted);
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.cover h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cover .doc-title {
  margin-top: var(--sp-3);
  font-size: var(--text-h3);
  color: var(--muted);
  font-weight: 400;
}

.cover .toc {
  margin-top: var(--sp-6);
  columns: 2;
  gap: var(--sp-6);
  max-width: var(--max-w-narrow);
  list-style: none;
}

.cover .toc a {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  padding: var(--sp-1) 0;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-body-sm);
  border-bottom: var(--border);
  transition: color var(--dur-fast) var(--ease-out);
}

.cover .toc a:hover { color: var(--red); }
.cover .toc .num { font-family: var(--font-mono); font-size: var(--text-label); color: var(--green); }

/* ---------- 01 · Overview ---------- */

.statement {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.5;
  max-width: var(--max-w-narrow);
  border-left: 3px solid var(--red);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.prin-ladder {
  list-style: none;
  counter-reset: prin;
  background: var(--dark);
  color: var(--field);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  max-width: 56rem;
}

.prin-ladder li {
  counter-increment: prin;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-areas: "num title" "num desc";
  align-items: baseline;
  column-gap: var(--sp-3);
  padding-block: var(--sp-4);
}

.prin-ladder li + li { border-top: var(--border-w) solid color-mix(in srgb, var(--field) 14%, transparent); }

.prin-ladder li::before {
  content: counter(prin, decimal-leading-zero);
  grid-area: num;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  opacity: 0.5;
}

.prin-ladder h3 { grid-area: title; font-family: var(--font-display); font-size: var(--text-h4); margin-bottom: var(--sp-1); }
.prin-ladder p { grid-area: desc; font-size: var(--text-body-sm); opacity: 0.72; max-width: 54ch; }

/* ---------- 02 · Logo ---------- */

.mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.mark-tile { border: var(--border); border-radius: var(--r-md); overflow: hidden; }

.mark-tile__stage { display: grid; place-content: center; min-height: 9rem; background: var(--surface); }

.mark-tile--dark .mark-tile__stage { background: var(--dark); }
.mark-tile--warm .mark-tile__stage { background: var(--surface-warm); }

.mark-tile figcaption {
  padding: var(--sp-2) var(--sp-3);
  border-top: var(--border);
  font-size: var(--text-caption);
  color: var(--muted);
}

.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h2); letter-spacing: -0.01em; }
.wordmark--field { color: var(--field); }
.wordmark--accent .toma { color: var(--ink); }
.wordmark--accent .tuhs { color: var(--green); }

.avatar-mark {
  display: grid;
  place-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-pill);
  background: var(--green);
  color: var(--field);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
}

/* ---------- 03 · Color ---------- */

.swatch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.swatch-row--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }

.swatch__chip { height: 6.5rem; border-radius: var(--r-md); }
.swatch-row--small .swatch__chip { height: 3.5rem; }
.swatch__chip--bordered { border: var(--border); }

.swatch figcaption { padding-top: var(--sp-2); font-size: var(--text-caption); color: var(--muted); display: grid; gap: 2px; }
.swatch figcaption strong { color: var(--ink); font-size: var(--text-body-sm); }
.swatch figcaption span:nth-of-type(1) { font-family: var(--font-mono); }

.fest-row { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); max-width: 56rem; }

.fest {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  border: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.fest__strip { display: flex; height: 100%; min-height: 4.5rem; }
.fest__strip i { flex: 1; }

.fest__body { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; }
.fest__body strong { display: block; }
.fest__body span { font-size: var(--text-caption); color: var(--muted); }

/* ---------- 04 · Typography ---------- */

.type-duel { margin-bottom: var(--sp-6); }

.type-duel .demo { display: block; font-size: var(--text-h2); line-height: 1.1; margin-bottom: var(--sp-2); }

.type-scale { margin-bottom: var(--sp-6); }

.type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-6);
  padding-block: var(--sp-4);
  border-bottom: var(--border);
}

@media (min-width: 60rem) {
  .type-row { grid-template-columns: minmax(0, 1fr) 17rem; align-items: baseline; }
}

.type-row__spec { display: grid; gap: 2px; font-family: var(--font-mono); font-size: var(--text-caption); color: var(--muted); }
.type-row__spec strong { font-family: var(--font-body); color: var(--ink); }

.t-hero { font: 600 var(--text-hero)/0.98 var(--font-display); letter-spacing: -0.01em; }
.t-h1 { font: 600 var(--text-h1)/1.08 var(--font-display); }
.t-h2 { font: 600 var(--text-h2)/1.15 var(--font-display); }
.t-h3 { font: 600 var(--text-h3)/1.3 var(--font-display); }
.t-body-lg { font: 400 var(--text-body-lg)/1.55 var(--font-body); max-width: 65ch; }
.t-body { font: 400 var(--text-body)/1.6 var(--font-body); max-width: 65ch; }
.t-body-sm { font: 400 var(--text-body-sm)/1.55 var(--font-body); max-width: 65ch; }
.t-caption { font: 400 var(--text-caption)/1.5 var(--font-body); color: var(--muted); }
.t-label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- 05 · Icons ---------- */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr));
  gap: var(--sp-3);
  max-width: var(--max-w-narrow);
  margin-bottom: var(--sp-6);
}

.icon-tile {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r-md);
}

.icon-tile svg { width: 24px; height: 24px; }
.icon-tile figcaption { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }

/* ---------- 07 · Mascots A/B ---------- */

.mascot-stage {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: var(--sp-3);
  align-items: end;
  min-height: 6rem;
  margin-bottom: var(--sp-3);
}

.stage-dot {
  display: grid;
  place-content: end center;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--muted);
  gap: var(--sp-1);
  text-align: center;
}

.stage-dot i {
  display: block;
  width: 1rem;
  background: var(--green);
  border-radius: var(--r-pill);
  margin: 0 auto var(--sp-1);
}

/* ---------- 08 · Components ---------- */

.demo-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: var(--sp-4);
  border: var(--border-w) solid transparent;
  border-radius: var(--r-md);
  font-size: var(--text-body-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn--primary { background: var(--red); color: var(--field); }
.btn--primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn--secondary { background: none; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.kit-card {
  max-width: 20rem;
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-rest);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.kit-card:hover { transform: translateY(-3px); box-shadow: var(--sh-raised); }

.kit-card__media { display: grid; place-content: center; min-height: 9rem; background: var(--surface-warm); }
.kit-card__body { padding: var(--sp-4); display: grid; gap: var(--sp-2); }
.kit-card__body p { font-size: var(--text-body-sm); color: var(--muted); }
.kit-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.kit-card__price { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 600; }

.tag {
  display: inline-block;
  width: fit-content;
  padding: 2px var(--sp-3);
  border: var(--border-w) solid var(--green);
  border-radius: var(--r-pill);
  color: var(--green);
  font-size: var(--text-caption);
  font-weight: 600;
}

.tag--red { border-color: var(--red); color: var(--red); }

.field-demo { display: grid; gap: var(--sp-2); max-width: 26rem; margin-bottom: var(--sp-5); }
.field-demo label { font-weight: 600; font-size: var(--text-body-sm); }
.field-demo__row { display: flex; gap: var(--sp-2); }

.field-demo input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding-inline: var(--sp-3);
  border: var(--border-w) solid var(--muted);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}

.field-demo__hint { font-size: var(--text-caption); color: var(--muted); }

/* ---------- 09 · Shadows & Borders ---------- */

.shadow-row { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-bottom: var(--sp-5); }

.shadow-tile {
  width: 11rem;
  min-height: 7rem;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r-lg);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.shadow-tile span { font-size: var(--text-caption); color: var(--muted); }

.radius-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.radius-tile {
  width: 6.5rem;
  height: 5rem;
  background: var(--surface);
  border: var(--border-w) solid var(--green);
  display: grid;
  place-content: center;
}

.radius-tile span { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }

/* ---------- 10 · Motion ---------- */

.motion-row { display: grid; gap: var(--sp-4); }

.motion-tile {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  grid-template-areas: "demo title" "demo desc";
  column-gap: var(--sp-4);
  align-items: center;
  align-content: center;
}

.motion-tile strong { grid-area: title; align-self: end; }
.motion-tile span { grid-area: desc; align-self: start; font-size: var(--text-caption); opacity: 0.7; }

.motion-demo {
  grid-area: demo;
  width: 6rem;
  height: 6rem;
  border: var(--border-w) solid color-mix(in srgb, var(--field) 25%, transparent);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.motion-demo--growin::after {
  content: "";
  position: absolute;
  inset: auto 30% 0;
  height: 70%;
  background: var(--green);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transform-origin: bottom;
  animation: growin 4.5s var(--ease-grow) infinite;
}

@keyframes growin {
  0% { transform: scaleY(0); }
  30%, 85% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

.motion-demo--rustle::after {
  content: "";
  position: absolute;
  inset: 25% 35% 15%;
  background: var(--field);
  border-radius: var(--r-pill) var(--r-pill) var(--r-sm) var(--r-sm);
  transform-origin: bottom;
  animation: rustle 3.6s ease-in-out infinite;
}

@keyframes rustle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(2.5deg); }
  60% { transform: rotate(-2deg); }
}

.motion-demo--ripen::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: var(--r-pill);
  background: var(--red);
  animation: ripen 4.5s var(--ease-out) infinite;
}

@keyframes ripen {
  0% { opacity: 0.15; }
  40%, 85% { opacity: 1; }
  100% { opacity: 0.15; }
}

/* ---------- 11 · Layout ---------- */

.space-ruler { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }

.space-bar { height: 1.3rem; background: var(--green); border-radius: var(--r-sm); position: relative; }

.space-bar span {
  position: absolute;
  left: calc(100% + var(--sp-2));
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 12 · Voice ---------- */

.copy-sample {
  border-left: 3px solid var(--green);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-4);
}

.copy-sample p { font-family: var(--font-display); font-size: var(--text-h4); }
.copy-sample footer { font-size: var(--text-caption); color: var(--muted); margin-top: var(--sp-1); }

/* ---------- 13 · Sub-brands ---------- */

.line-row { display: grid; gap: var(--sp-3); max-width: 56rem; margin-bottom: var(--sp-5); }

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  background: var(--surface);
}

.line-card strong { font-family: var(--font-display); font-size: var(--text-h4); display: block; }
.line-card span { font-size: var(--text-caption); color: var(--muted); }

/* ---------- Reveal ---------- */

/* Fail-visible: reveals only activate once JS announces itself (.js on <html>).
   Without JS the document is complete and readable. */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-grow) var(--ease-out), transform var(--dur-grow) var(--ease-out); }
.js .rv.vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 80ms; } .rv-d2 { transition-delay: 160ms; }
.rv-d3 { transition-delay: 240ms; } .rv-d4 { transition-delay: 320ms; }
.rv-d5 { transition-delay: 400ms; } .rv-d6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .invite { animation: none; opacity: 1; }
  .motion-demo--growin::after, .motion-demo--rustle::after, .motion-demo--ripen::after { animation: none; transform: none; opacity: 1; }
}

/* ---------- Mobile fallback ---------- */

@media (max-width: 860px) {
  main { margin-left: 0; }
  .nav { transform: translateX(-100%); transition: transform var(--dur-normal) var(--ease-out); }
  .nav.open { transform: none; box-shadow: var(--sh-raised); }
  .nav__toggle {
    display: block;
    position: fixed;
    top: var(--sp-3); left: var(--sp-3);
    z-index: 11;
    padding: var(--sp-2) var(--sp-3);
    border: var(--border-w) solid var(--ink);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    cursor: pointer;
  }
  .cover .toc { columns: 1; }
}

/* ---------- Print ---------- */

@media print {
  .nav, .nav__toggle, .gdiv, .invite, .proposed-badge, .skip-link { display: none; }
  main { margin-left: 0; }
  .sec { break-before: page; padding: 1.5cm 0; }
  .cover { min-height: auto; }
  .rv { opacity: 1 !important; transform: none !important; }
  .sec--dark, .prin-ladder { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
