/* DavidAgents guides: long-form pages for the people who run the business.
   Drop-in for every guide page: the existing class names keep working; new hub/bar/footer classes are additive.
   One accent (house green) on ink/paper. Space Grotesk for display, self-hosted: the homepage's own face, so the
   guides still make no third-party requests. The system UI face for reading. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/guides/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbfaf7;
  --wash: #f2f5f1;
  --ink: #152027;
  --muted: #56616a;
  --line: #d7ded8;
  --line-strong: #b9c6bf;
  --panel: #eef3ef;
  --accent: #1f6b55;
  --accent-dark: #124433;
  --accent-tint: #dcebe3;
  /* dark bands (hero, product card) stay dark in both schemes, like the homepage hero */
  --night: #132027;
  --night-2: #1a2a32;
  --night-line: #2b3d46;
  --night-ink: #eef3f0;
  --night-muted: #a4b4ad;
  --night-accent: #6fd6b0;
  --measure: 66ch;
  --wide: 1180px;
  --gutter: 20px;
  --radius: 16px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgb(19 32 39 / 0.05), 0 12px 32px -18px rgb(19 32 39 / 0.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1619;
    --wash: #131c20;
    --ink: #e7ede9;
    --muted: #a0ada7;
    --line: #243129;
    --line-strong: #35463e;
    --panel: #151f1c;
    --accent: #5cc4a2;
    --accent-dark: #8fdcc2;
    --accent-tint: #173129;
    --night: #0b1215;
    --night-2: #121c21;
    --night-line: #22323a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 30; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar__in { max-width: var(--wide); margin: 0 auto; padding: 10px var(--gutter); min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar__brand { display: inline-flex; align-items: center; flex: none; }
.bar__brand img { height: 30px; width: auto; display: block; }
/* pages still on the single colour logo: lift it for dark mode without a white chip */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar__brand > img { filter: invert(1) hue-rotate(180deg) brightness(1.15); } }
.bar__nav { display: flex; align-items: center; gap: 6px 22px; font: 500 0.95rem/1 var(--display); }
.bar__nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.bar__nav a:hover { color: var(--ink); }
.bar__nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.bar__nav .bar__cta { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: none; }
.bar__nav .bar__cta:hover { background: var(--accent-dark); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar__nav .bar__cta { background: var(--accent); color: #07140f; } :root:not([data-theme="light"]) .bar__nav .bar__cta:hover { background: var(--accent-dark); } }
.bar__long { display: none; }
@media (min-width: 720px) { .bar__long { display: inline; } .bar__short { display: none; } }
@media (max-width: 560px) { .bar__nav { gap: 14px; } .bar__nav .bar__wide { display: none; } }

/* ---------- shared bits ---------- */
main { padding: 0 var(--gutter); }
main.main--flush { padding: 0; }
.eyebrow { font: 600 0.78rem/1.25 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.note { font-size: 0.95rem; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.6em; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font: 600 1rem/1.2 var(--display); text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--night-accent); color: #07140f; }
.btn--accent:hover { background: #8fe3c3; color: #07140f; }
.btn--ghost { border: 1px solid currentColor; color: inherit; }
.btn--ghost:hover { color: inherit; background: rgb(255 255 255 / 0.08); }
.arrow::after { content: "\2192"; display: inline-block; transition: transform 0.18s ease; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }

/* ---------- article ---------- */
.article { max-width: var(--measure); margin: 0 auto; padding: 60px 0 28px; }
.article > .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.article > .eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.article h1 { font-size: clamp(2.2rem, 1.25rem + 3.6vw, 3.45rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.dek { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.32rem); line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 58ch; text-wrap: pretty; }
.meta { font: 500 0.88rem/1.4 var(--display); letter-spacing: 0.01em; color: var(--muted); margin: 0 0 40px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 2.4em 0 0.65em; text-wrap: balance; }
.article h2::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 16px; }
.article h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; margin: 1.8em 0 0.5em; }
.article p { margin: 0 0 1.15em; text-wrap: pretty; }
.article strong { font-weight: 700; }
.article ul { margin: 0 0 1.3em; padding-left: 1.25em; }
.article li { margin: 0.4em 0; padding-left: 0.2em; }
.article ul > li::marker { color: var(--accent); }
/* numbered lists: numerals in a gutter, hairlines between items */
.article ol:not([class]) { list-style: none; counter-reset: n; margin: 1.3em 0 1.6em; padding: 0; border-top: 1px solid var(--line); }
.article ol:not([class]) > li { counter-increment: n; position: relative; margin: 0; padding: 14px 0 14px 3.1em; border-bottom: 1px solid var(--line); }
.article ol:not([class]) > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 600 1rem/1.7 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.article blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); background: none; font: 500 clamp(1.2rem, 1.1rem + 0.45vw, 1.42rem)/1.45 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.article blockquote p { margin: 0; }
.article figure { margin: 2em 0; }
.article figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.article figcaption { font-size: 0.92rem; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* disclosure blocks: mechanics, transcripts, "how this was made" */
.article details, .film-transcript { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 1.6em 0; }
.article details > summary, .film-transcript > summary { list-style: none; cursor: pointer; padding: 14px 18px; font: 600 1rem/1.4 var(--display); color: var(--ink); display: flex; align-items: center; gap: 12px; border-radius: 12px; }
.article details > summary::-webkit-details-marker, .film-transcript > summary::-webkit-details-marker { display: none; }
.article details > summary::before, .film-transcript > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform 0.2s ease; }
.article details[open] > summary::before, .film-transcript[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.article details > :not(summary), .film-transcript > :not(summary) { padding: 0 18px 16px; }
.article details p:last-child { margin-bottom: 0; }

/* tables and code (engineering notes) */
.table-wrap { overflow-x: auto; margin: 1.3em 0 1.7em; border: 1px solid var(--line); border-radius: 12px; }
.article table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.92rem; line-height: 1.45; }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.article th { background: var(--panel); font: 600 0.88rem/1.35 var(--display); }
.article tr:last-child td { border-bottom: 0; }
.table-hint { display: none; font-size: 0.9rem; color: var(--muted); margin: -0.8em 0 1.4em; }
@media (max-width: 760px) { .table-hint { display: block; } }
.article pre { max-width: 100%; overflow: auto; background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line); border-radius: 12px; padding: 20px; font-size: 0.86rem; line-height: 1.6; tab-size: 4; }
.article code { font-family: var(--mono); }
.article p code, .article li code { font-size: 0.88em; padding: 2px 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; }

/* workflow at a glance */
.article .flow { list-style: none; margin: 1.6em 0 2em; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; border: 0; }
.article .flow li { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 1rem; line-height: 1.35; }
.article .flow li::before, .article .flow li::marker { content: none; }
.flow__n { flex: none; width: 1.9em; height: 1.9em; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--paper); font: 600 0.9rem/1 var(--display); }
.flow__t { font: 600 0.98rem/1.3 var(--display); }
@media (min-width: 760px) {
  .article .flow { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
  .article .flow li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; font-size: 0.92rem; }
}

/* the product card closing each article: the one dark block, like the homepage's platform card */
.product { position: relative; max-width: var(--measure); margin: 28px auto 56px; padding: 30px 30px 28px; border-radius: 20px; background: var(--night); color: var(--night-muted); border: 1px solid var(--night-line); overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(120deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000); }
.product > * { position: relative; }
.product p { margin: 0 0 12px; font-size: 1rem; line-height: 1.6; }
.product > p:first-child { font: 500 1.1rem/1.5 var(--display); letter-spacing: -0.01em; color: var(--night-ink); max-width: 44ch; }
.product strong { color: var(--night-ink); font-weight: 700; }
.product a { color: var(--night-accent); font-weight: 600; }
.product a:hover { color: #9aeacb; }
.product > p:last-child:not(.band__actions) { margin: 20px 0 0; }
.product > p:last-child:not(.band__actions) a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--night-accent); color: #07140f; text-decoration: none; font: 600 1rem/1.2 var(--display); }
.product > p:last-child:not(.band__actions) a::after { content: "\2192"; transition: transform 0.18s ease; }
.product > p:last-child:not(.band__actions) a:hover { background: #8fe3c3; }
.product > p:last-child:not(.band__actions) a:hover::after { transform: translateX(3px); }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product { background: var(--night-2); border-color: var(--night-line); } }

/* related reading */
.more { max-width: 980px; margin: 0 auto 72px; }
.more h2 { font: 600 0.78rem/1.25 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .more ul { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.more li { margin: 0; }
.more a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font: 600 1.05rem/1.3 var(--display); letter-spacing: -0.01em; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.more a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.more a span { font: 400 0.92rem/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }

/* ---------- hub ---------- */
.hero { position: relative; background-color: var(--night); color: var(--night-ink); overflow: hidden; border-bottom: 1px solid var(--night-line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 85%); }
.hero__in { position: relative; max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter) 56px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero__in { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: center; padding: 84px var(--gutter) 80px; } }
.hero .eyebrow { color: var(--night-accent); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 22px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--night-accent); }
.hero__dek { font-size: 1.15rem; line-height: 1.6; color: var(--night-muted); max-width: 44ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .btn--ghost { color: var(--night-ink); border-color: var(--night-line); }
.hero .btn--ghost:hover { border-color: var(--night-muted); }

/* featured film (hero on the hub; plain block elsewhere) */
.featured-film { margin: 36px 0 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.featured-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b1215; }
.featured-film__intro { padding: 22px 24px 8px; max-width: 76ch; }
.featured-film h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.featured-film__intro > p:last-child { margin: 0 0 18px; color: var(--muted); font-size: 1rem; }
.featured-film__context { margin: 0; padding: 14px 24px; font-size: 0.88rem; color: var(--muted); }
.featured-film .film-transcript { margin: 0 24px 22px; }
.film-transcript > div { max-width: var(--measure); font-size: 1rem; }
.film-transcript p { margin: 12px 0 0; }
.hero .featured-film { margin: 0; background: var(--night-2); border-color: var(--night-line); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6); }
.featured-film__body { padding: 20px 22px 22px; }
.hero .featured-film .eyebrow { margin-bottom: 8px; }
.hero .featured-film h2 { color: var(--night-ink); }
.featured-film__body > p:not(.eyebrow):not(.featured-film__context) { margin: 0 0 12px; color: var(--night-muted); font-size: 1rem; line-height: 1.6; }
.hero .featured-film__context { padding: 12px 0 0; margin: 0 0 14px; border-top: 1px solid var(--night-line); color: var(--night-muted); }
.hero .featured-film__context a { color: var(--night-accent); }
.hero .film-transcript { margin: 0; background: transparent; border-color: var(--night-line); }
.hero .film-transcript > summary { color: var(--night-ink); }
.hero .film-transcript > summary::before { border-color: var(--night-accent); }
.hero .film-transcript > div { color: var(--night-muted); }
.hero .film-transcript strong { color: var(--night-ink); }

/* hub sections */
.section { max-width: var(--wide); margin: 0 auto; padding: 72px var(--gutter) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.section__head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.section__head p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 46ch; }

/* the newest guide, given room */
.feature { margin: 0; }
.feature > a { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.feature > a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
@media (min-width: 760px) { .feature > a { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.feature__media { position: relative; margin: 0; background: var(--night); min-height: 260px; }
.feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; }
.feature__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgb(11 18 21 / 0.75)); pointer-events: none; }
@media (min-width: 760px) { .feature__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 42%; } }
.feature__play { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; width: fit-content; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 14px 9px 12px; border-radius: 999px; background: rgb(11 18 21 / 0.82); color: #fff; font: 600 0.9rem/1 var(--display); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.feature__play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--night-accent); }
.feature__disclosure { font: 500 0.8rem/1.2 var(--display); color: #c9d6d0; }
.feature__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature__body .eyebrow { margin: 0; }
.feature__t { margin: 0; font: 600 clamp(1.8rem, 1.2rem + 2.1vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.feature__d { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 50ch; }
.feature__m { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; font: 500 0.92rem/1.3 var(--display); color: var(--muted); }
.feature__go { color: var(--accent); font-weight: 600; }

/* the guide library, arranged by when an owner needs it */
.stages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.stage__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.stage__n { font: 600 0.85rem/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stage__head h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
.stage__list { list-style: none; margin: 0; padding: 0; }
.stage__list li { border-bottom: 1px solid var(--line); }
.stage__list a { display: grid; gap: 6px; padding: 18px 4px 20px; color: var(--ink); text-decoration: none; border-radius: 10px; transition: background-color 0.18s ease; }
.stage__list a:hover { background: var(--wash); color: var(--ink); }
.stage__t { font: 600 1.2rem/1.25 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.stage__list a:hover .stage__t { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.stage__d { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.stage__m { font: 500 0.82rem/1.3 var(--display); color: var(--muted); letter-spacing: 0.02em; }
.stage__m b { color: var(--accent); font-weight: 600; }

/* behind the product: notes with their real figures */
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notes a { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: var(--paper); transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.notes a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.notes img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); border-bottom: 1px solid var(--line); }
.notes__body { display: grid; align-content: start; gap: 8px; padding: 20px 22px 24px; }
.notes__k { font: 600 0.75rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.notes__t { font: 600 1.25rem/1.25 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.notes__d { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

.hub-note { max-width: var(--wide); margin: 0 auto; padding: 40px var(--gutter) 0; }
.hub-note p { margin: 0; max-width: 72ch; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

/* closing band on the hub */
.cta-band { max-width: var(--wide); margin: 48px auto 80px; padding: 0 var(--gutter); }
.product--band { max-width: none; margin: 0; padding: clamp(28px, 4vw, 52px); display: grid; gap: 28px; align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .product--band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.product--band .eyebrow { color: var(--night-accent); margin: 0 0 14px; }
.product--band .band__t { font: 600 clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem)/1.12 var(--display); letter-spacing: -0.03em; color: var(--night-ink); margin: 0 0 12px; max-width: 24ch; text-wrap: balance; }
.product--band .band__t strong { font-weight: 600; }
.product--band .band__copy > p:last-child { margin: 0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (min-width: 900px) { .band__actions { justify-content: flex-end; } }
.product--band .btn--accent { color: #07140f; }
.product--band .btn--ghost { color: var(--night-ink); border-color: var(--night-line); }
.product--band .btn--ghost:hover { border-color: var(--night-muted); color: var(--night-ink); }

/* legacy hub markup (kept working until the new index ships) */
.hub { max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter) 32px; }
.hub .product { margin: 28px 0 0; max-width: 70ch; }
.hub h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 18ch; }
.hub .dek { max-width: 60ch; }
.hub .note { max-width: 70ch; }
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.card a { display: flex; flex-direction: column; height: 100%; padding: 22px 24px; text-decoration: none; color: var(--ink); border-radius: 14px; }
.card a:hover { background: var(--wash); }
.card__n { font: 600 0.76rem/1.2 var(--display); letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.card__t { font: 600 1.3rem/1.25 var(--display); margin: 10px 0; letter-spacing: -0.015em; }
.card__d { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.card__m { font: 500 0.86rem/1.3 var(--display); color: var(--muted); }


/* ---------- vertical video beside its caption (authority guide) ---------- */
.authority-film { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 32px 0 36px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--wash); align-items: start; }
@media (min-width: 640px) { .authority-film { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px; padding: 22px; } }
.authority-film__player { width: 100%; max-width: 300px; margin-inline: auto; }
.authority-film video { width: 100%; aspect-ratio: 9 / 16; height: auto; display: block; border-radius: 14px; background: #0b1215; box-shadow: var(--shadow); }
.authority-film video[hidden], .authority-film button[hidden] { display: none; }
.authority-play { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #0b1215; color: #fff; cursor: pointer; box-shadow: var(--shadow); }
.authority-play img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.authority-play:hover img { transform: scale(1.02); }
.authority-play span { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: rgb(11 18 21 / 0.86); color: #fff; font: 600 0.92rem/1.2 var(--display); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.authority-play:hover span { background: var(--accent-dark); }
.authority-film .disclosure { display: flex; gap: 8px; align-items: baseline; margin: 12px 0 0; color: var(--muted); font: 500 0.84rem/1.45 var(--display); }
.authority-film .disclosure::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); transform: translateY(-1px); }
.authority-film .disclosure[hidden] { display: none; }
.authority-film figcaption { margin: 0; font-size: 1rem; color: var(--ink); }
.authority-film figcaption h2 { margin-top: 0; }
.authority-film figcaption > p { color: var(--muted); }
.authority-film details { margin: 18px 0 0; background: var(--paper); }

/* ---------- how context travels with delegated work (illustration, not a product screen) ---------- */
.trail { margin: 2.4em 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--wash); }
@media (min-width: 1000px) { .article .trail { margin-left: calc(50% - min(470px, 50vw - 24px)); margin-right: calc(50% - min(470px, 50vw - 24px)); padding: 28px; } }
.trail__k { font: 600 0.78rem/1.25 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.trail__title { font: 600 1.3rem/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 20px; }
.trail__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: t; }
.trail__steps li { counter-increment: t; position: relative; display: grid; gap: 4px; margin: 0; padding: 14px 16px 14px 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.trail__steps li::before { content: counter(t); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 0.85rem/26px var(--display); text-align: center; }
.trail__steps li:not(:last-child)::after { content: ""; position: absolute; left: 26px; bottom: -15px; width: 2px; height: 14px; background: var(--accent); }
.trail__steps b { font: 600 1.02rem/1.3 var(--display); }
.trail__steps span { font-size: 0.93rem; line-height: 1.45; color: var(--muted); }
.trail .trail__rail { position: relative; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-tint); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trail__rail-k { flex-basis: 100%; font: 600 0.8rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 2px; }
.trail__rail span { padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 500 0.86rem/1.3 var(--display); color: var(--ink); }
.trail figcaption { margin-top: 14px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
@media (min-width: 1000px) {
  .trail__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .trail__steps li { padding: 50px 14px 16px; align-content: start; }
  .trail__steps li::before { top: 14px; left: 14px; }
  .trail__steps li:not(:last-child)::after { left: auto; right: -17px; top: 26px; bottom: auto; width: 18px; height: 2px; }
  .trail .trail__rail { margin-top: 16px; }
  .trail__rail-k { flex-basis: auto; margin: 0 6px 0 0; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--wash); }
.foot { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 40px; font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__brand { display: grid; gap: 8px; }
.foot__brand img { height: 26px; width: auto; display: block; }
.foot__brand p { margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 0.92rem/1.4 var(--display); }
.foot__copy { flex-basis: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; }

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