/* sethgoldstein.com — visual system v1 (feat/visual-v1)
   Swiss / editorial. One grid, one accent, one face. Graphics are inline SVG drawn in currentColor
   and var(--accent), so they follow the theme. Section rhythm: hero · open · band · open · band · close.

   Layout: a 1200px column; section heads sit on a 1fr/2fr grid (label left, title right) above 900px.
   Color:  paper + ink neutrals with a faint warm bias; one ink-blue accent; a soft accent tint for figures.
   Type:   Helvetica Neue (display and body) with a mono for dates and data. One modular scale, --step--1 to --step-4. */

:root {
  color-scheme: light dark;

  /* color */
  --bg: #f8f7f3;
  --surface: #eeede7;
  --surface-2: #e4e3dc;
  --text: #141413;
  --text-2: #45443f;
  --muted: #6f6e67;
  --rule: #d6d5cd;
  --rule-strong: #141413;
  --accent: #1d3fc8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(29, 63, 200, 0.08);
  --poster-a: #e7e6df;
  --poster-b: #dddcd4;
  --verify-bg: #fff1b8; /* prototype-only marker for unverified claims */

  /* type */
  --font: "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);

  /* space */
  --gutter: 16px;
  --max: 1200px;
  --s-1: 8px;
  --s0: 12px;
  --s1: 16px;
  --s2: 24px;
  --s3: 32px;
  --s4: 48px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0e;
    --surface: #171716;
    --surface-2: #1f1f1d;
    --text: #f1f0eb;
    --text-2: #c4c3bc;
    --muted: #9a9992;
    --rule: #2b2b29;
    --rule-strong: #f1f0eb;
    --accent: #8aa4ff;
    --accent-ink: #0f0f0e;
    --accent-soft: rgba(138, 164, 255, 0.12);
    --poster-a: #181817;
    --poster-b: #202020;
    --verify-bg: #3d3412;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0e;
  --surface: #171716;
  --surface-2: #1f1f1d;
  --text: #f1f0eb;
  --text-2: #c4c3bc;
  --muted: #9a9992;
  --rule: #2b2b29;
  --rule-strong: #f1f0eb;
  --accent: #8aa4ff;
  --accent-ink: #0f0f0e;
  --accent-soft: rgba(138, 164, 255, 0.12);
  --poster-a: #181817;
  --poster-b: #202020;
  --verify-bg: #3d3412;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: baseline; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.wordmark { font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: var(--step--1); }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-3); max-width: 22ch; }
.hero.home h1 { font-size: var(--step-4); max-width: 18ch; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: var(--step-1); color: var(--text-2); max-width: 56ch; line-height: 1.45; }
.label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px;
}
.small { font-size: var(--step--1); color: var(--muted); }
.small a { color: inherit; }

/* ---------- hero ---------- */
.hero { padding: var(--s5) 0 var(--s4); }
@media (min-width: 720px) { .hero { padding: var(--s5) 0 var(--s5); } }
.hero .label { color: var(--accent); }
.hero h1 { margin-bottom: var(--s2); }
.hero .lede { margin-bottom: var(--s2); }
.hero .lede + .lede { margin-top: calc(-1 * var(--s0)); }
.hero .actions { margin-top: var(--s3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 20px; border: 1px solid var(--rule-strong);
  font-weight: 600; font-size: var(--step--1); text-decoration: none;
  color: var(--text); background: transparent;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); color: var(--accent-ink); }

/* ---------- sections ---------- */
.section { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section.band { background: var(--surface); border-top: 0; }
.section.band + .section { border-top: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: var(--s4); }
.section-head .label { border-top: 2px solid var(--rule-strong); padding-top: 12px; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
  .section-head > div { border-top: 2px solid var(--rule-strong); padding-top: 12px; }
}
.section-head p { color: var(--text-2); margin: 12px 0 0; }
.section-head h2 + p { max-width: 60ch; }

/* ---------- figures (the graphics) ----------
   Inline SVGs drawn at a 480-unit width. Capped at 600px so their 11-14 unit labels stay 14-18px on desktop;
   at phone width they keep a 440px minimum and scroll inside the figure instead of shrinking to illegibility. */
.fig { margin: 0; min-width: 0; }
.fig svg { width: 100%; max-width: 600px; height: auto; color: var(--text); }
.fig figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--s1); max-width: 56ch; }
.fig.boxed { background: var(--accent-soft); padding: var(--s2) var(--s1); }
@media (min-width: 720px) { .fig.boxed { padding: var(--s3) var(--s4); } }
@media (min-width: 900px) {
  .fig.boxed { display: grid; grid-template-columns: minmax(0, 600px) minmax(16rem, 1fr); gap: var(--s5); align-items: end; }
  .fig.boxed figcaption { margin: 0 0 4px; }
}
.fig.narrow { max-width: 600px; }
@media (max-width: 560px) {
  .fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig svg { min-width: 440px; }
  .fig figcaption { position: sticky; left: 0; }
}
.pattern-grid { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .pattern-grid { grid-template-columns: 1fr 2fr; gap: var(--s5); } }
.pattern-grid .lede { margin: 0; }
.pattern-grid .fig { min-width: 0; }

/* ---------- product cards ---------- */
.products { display: grid; gap: 48px; }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card { display: flex; flex-direction: column; border-top: 2px solid var(--rule-strong); padding-top: 20px; }
.card h3 { margin-bottom: 4px; }
.card .credit { font-size: var(--step--1); color: var(--muted); margin: 0 0 16px; }
.card ul { margin: 16px 0 20px; padding: 0; list-style: none; }
.card li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.card li b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.card .more { margin-top: auto; font-weight: 600; font-size: var(--step--1); }

.poster {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: repeating-linear-gradient(135deg, var(--poster-a) 0 14px, var(--poster-b) 14px 28px);
  border: 1px solid var(--rule);
  display: grid; place-items: center; margin: 16px 0 0;
}
.poster span {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--text); padding: 8px 14px;
  font-size: var(--step--1); font-weight: 600; border: 1px solid var(--rule);
}
.poster span::before {
  content: ""; width: 0; height: 0;
  border-left: 9px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- how I work ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; } }
.diagram { border: 1px solid var(--rule); background: var(--surface); padding: 16px; }
.diagram svg { width: 100%; height: auto; color: var(--text); }
.diagram figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 12px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 24px; }
.stat { border-top: 1px solid var(--rule); padding: 16px 12px 16px 0; display: flex; flex-direction: column-reverse; }
.stat dt { font-size: var(--step--1); color: var(--muted); }
.stat dd { margin: 0 0 4px; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- agents / tools ---------- */
.grid-3 { display: grid; gap: 32px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.item { border-top: 1px solid var(--rule-strong); padding-top: 16px; min-width: 0; }
.item h3 { margin-bottom: 4px; }
.item .principal { font-size: var(--step--1); color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.item p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); }
thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-top: 2px solid var(--rule-strong); }
td.years { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; padding-top: 16px; }
tbody th { font-weight: 700; }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tbody tr { border-top: 1px solid var(--rule); padding: 12px 0; }
  tbody th, tbody td { border: 0; padding: 2px 0; }
  td.years { padding-top: 2px; }
}

/* ---------- prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { border-top: 1px solid var(--rule-strong); padding: 20px 0 12px; margin: 0; min-width: 0; }
.rule-list .date { font-family: var(--mono); font-size: var(--step--1); color: var(--accent); display: block; margin-bottom: 8px; }
.rule-list h3 { margin-bottom: 8px; }
.rule-list p { color: var(--text-2); }

.offer { border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); background: var(--surface); padding: 24px; }
.section.band .offer { background: var(--bg); }
.offer h3 { margin-bottom: 8px; }
.offer p { color: var(--text-2); margin-bottom: 0; }
.grid-2 > .offer { border-left-width: 1px; border-left-color: var(--rule-strong); background: transparent; }

/* ---------- footer ---------- */
.site-foot { padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--rule); }
.site-foot .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 2fr 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--text); }
.site-foot .where { color: var(--muted); font-size: var(--step--1); margin: 0; }

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

/* ---------- case studies ---------- */
.cases dl { margin: 0 0 12px; }
.cases dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 12px; }
.cases dd { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; max-width: 60ch; }

/* ---------- verify marker (prototype only: remove every .verify before publishing) ---------- */
.verify { background: var(--verify-bg); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }

/* ---------- lens tiles ---------- */
.lens-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .lens-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lens-row { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; min-width: 0;
  border-top: 2px solid var(--rule-strong); background: var(--surface);
  padding: 20px 20px 16px; color: var(--text); text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 0.95rem; margin: 0 0 16px; }
.tile .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: var(--step--1); }
.tile .go::after { content: " \2192"; }
.tile:hover { border-top-color: var(--accent); background: var(--surface-2); }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 0.18em; }
.tile[aria-current="page"] { border-top-color: var(--accent); }

/* ---------- status badges ---------- */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; padding: 4px 8px; border: 1px solid currentColor; margin: 0; }
.badge.live { color: var(--accent); }
.badge.partial { color: var(--text-2); }
.badge.demo, .badge.concept { color: var(--muted); border-style: dashed; }

/* ---------- filters ---------- */
.filters { display: grid; gap: 12px; margin: 0 0 40px; }
.filters[hidden] { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-row .label { margin: 0 8px 0 0; min-width: 6.5em; }
.chip { min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule); background: transparent; color: var(--text-2); font: inherit; font-size: var(--step--1); cursor: pointer; }
.chip:hover { border-color: var(--rule-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.count { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- work gallery ---------- */
.wgrid { display: grid; gap: 48px 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wgrid { grid-template-columns: repeat(3, 1fr); } }
.wcard { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); padding-top: 16px; scroll-margin-top: 24px; min-width: 0; }
.wcard[hidden] { display: none; }
.wcard h3 { margin-bottom: 6px; }
.wcard .one { color: var(--text-2); font-size: 0.95rem; margin: 0 0 12px; }
.wcard-body { display: flex; flex-direction: column; flex: 1; }
.wcard dl { margin: 12px 0 16px; }
.wcard dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 10px; }
.wcard dd { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; }
.wcard .links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 600; font-size: var(--step--1); }
.wcard .links .none { color: var(--muted); font-weight: 400; }
.wcard.flag { border-top-width: 2px; padding-top: 20px; }
.wcard.flag h3 { font-size: var(--step-2); }
.wcard.flag .one { font-size: var(--step-1); line-height: 1.4; max-width: 44ch; }
@media (min-width: 720px) {
  .wcard.flag { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 3fr; gap: 0 48px; }
  .wcard.flag dl { margin-top: 0; }
  .wcard.flag dt:first-child { margin-top: 0; }
}

/* ---------- story timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.era { position: relative; padding: 0 0 48px 28px; border-left: 2px solid var(--rule-strong); max-width: 72ch; }
.era:last-child { padding-bottom: 8px; }
.era::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.era .span { display: block; font-family: var(--mono); font-size: var(--step--1); color: var(--accent); margin-bottom: 4px; }
.era h2 { font-size: var(--step-1); }
.entries { list-style: none; margin: 16px 0; padding: 0; }
.entries li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.entries .yr { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 2px; }
.entries p { margin: 0; }
@media (max-width: 520px) { .entries li { grid-template-columns: 1fr; gap: 2px; } }
.pattern { font-size: var(--step--1); color: var(--text-2); margin: 0; }
.pattern b { color: var(--text); }

/* ---------- ideas ---------- */
.idea .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.idea .meta .small { margin: 0; }
.roles { columns: 2 16rem; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.roles li { break-inside: avoid; border-top: 1px solid var(--rule); padding: 10px 0; }

video.demo { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; margin: 0; border: 1px solid var(--rule); }

/* work page: jump links and the "also" list */
.jump { margin-top: 16px; font-weight: 600; }
.also { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 48rem; }
.also li { color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.also a { font-weight: 600; }

/* ---------- audience pages (v1) ---------- */
.stack-gap { margin-top: var(--s4); }
.carry { margin-top: 16px; }
.carry li b { color: var(--text); }
.lead-item { max-width: 64ch; }
.practices { display: grid; gap: 0 40px; }
@media (min-width: 900px) { .practices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { caption { display: block; } }
.how-fig { margin-bottom: var(--s4); }

/* labs: Claude Code proof */
.facts { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.facts li { border-top: 1px solid var(--rule-strong); padding-top: 12px; min-width: 0; }
.facts b { display: block; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.facts span { color: var(--text-2); font-size: var(--step--1); }
.cc-chart { margin: 0 0 24px; }
.cc-chart ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; height: 220px; border-bottom: 1px solid var(--rule-strong); }
.cc-chart li { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.cc-chart .bar { display: flex; flex-direction: column; justify-content: flex-end; background: var(--rule); min-height: 2px; }
.cc-chart .cl { display: block; background: var(--accent); }
.cc-chart .m { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 0.65rem; color: var(--muted); padding-top: 6px; white-space: nowrap; font-family: var(--mono); }
.cc-chart figcaption { margin-top: 32px; font-size: var(--step--1); color: var(--text-2); }
.cc-chart .key { display: inline-block; width: 10px; height: 10px; vertical-align: baseline; margin: 0 4px 0 12px; }
.cc-chart .key-cl { background: var(--accent); margin-left: 0; }
.cc-chart .key-all { background: var(--rule); }
@media (max-width: 600px) { .cc-chart .m { font-size: 0; } .cc-chart li:nth-child(6n+1) .m { font-size: 0.6rem; } }

/* a section whose head is the whole section */
.section-head.only { margin-bottom: 0; }

/* ---------- lead sections (v2: Bright Moments, SOLIENNE, fleet, timeline) ---------- */
.lead-body { max-width: 64ch; }
.lead-body p { color: var(--text-2); }
.lead-body p:last-child { margin-bottom: 0; }
.more-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; font-size: var(--step--1); margin: var(--s2) 0 0; }

/* responsive 16:9 video embed */
.embed { margin: var(--s3) 0 0; max-width: 960px; }
.embed .frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--rule); }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--s1); max-width: 64ch; }

/* dated list: SOLIENNE's shows and talks */
.creds { list-style: none; margin: var(--s3) 0 0; padding: 0; max-width: 72ch; }
.creds li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.creds li:last-child { border-bottom: 1px solid var(--rule); }
.creds .when { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 2px; }
.creds b { color: var(--text); }
.creds .what { color: var(--text-2); }
@media (max-width: 520px) { .creds li { grid-template-columns: 1fr; gap: 2px; } }

/* fleet table: stage column */
.fleet td.stage { white-space: nowrap; }
.fleet td.stage .note { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 4px; white-space: normal; }
.fleet td.go a { font-weight: 600; font-size: var(--step--1); }
.fleet td.go .none { color: var(--muted); font-size: var(--step--1); }
.badge.paused, .badge.private { color: var(--muted); }
@media (max-width: 640px) { .fleet td.stage { padding-top: 6px; } }

/* multiplayer-AI timeline: my items marked, others muted */
.mtl-key { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--step--1); color: var(--muted); margin: 0 0 var(--s2); }
.mtl-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; border: 2px solid var(--muted); box-sizing: border-box; }
.mtl-key .k-mine::before { background: var(--accent); border-color: var(--accent); }
.mtl { list-style: none; margin: 0 0 0 6px; padding: 0; max-width: 72ch; border-left: 2px solid var(--rule); }
.mtl li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 0 0 22px 24px; }
.mtl li:last-child { padding-bottom: 4px; }
.mtl li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); box-sizing: border-box; }
.section.band .mtl li::before { background: var(--surface); }
.mtl .when { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 1px; }
.mtl .what { color: var(--text-2); margin: 0; }
.mtl .what a { font-size: var(--step--1); white-space: nowrap; }
.mtl li.mine::before { background: var(--accent); border-color: var(--accent); }
.mtl li.mine .when { color: var(--accent); }
.mtl li.mine .what { color: var(--text); }
.mtl li.mine .what b { font-weight: 700; }
@media (max-width: 520px) { .mtl li { grid-template-columns: 1fr; gap: 2px; } }

/* one-line credential strip under a hero */
.hero .credits { font-size: var(--step--1); color: var(--muted); max-width: 64ch; margin: 0 0 var(--s2); }

/* ---------- v3: Short / Full story toggle ----------
   <html data-view="short|full"> is set before paint by an inline script in <head> (?view=full|short, then localStorage).
   .x = extended, hidden in Short. .s = short-only summary lines, hidden in Full. With no JS, data-view is never set,
   so everything shows and the toggle itself is hidden. */
html[data-view="short"] .x { display: none !important; }
html[data-view="full"] .s, html[data-view="full"] .to-full { display: none !important; }
html:not([data-view]) .view-toggle { display: none; }

.site-head .wrap { align-items: center; }
.head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.view-toggle { display: inline-flex; border: 1px solid var(--rule-strong); }
.view-toggle button {
  font: inherit; font-size: var(--step--1); font-weight: 600; line-height: 1;
  min-height: 40px; padding: 8px 14px; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.view-toggle button + button { border-left: 1px solid var(--rule-strong); }
.view-toggle button:hover { color: var(--text); background: var(--surface); }
.view-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.view-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; position: relative; }

.to-full { font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.to-full::after { content: " \2192"; }

/* ---------- v3: project cards with site thumbnails ---------- */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard .shot {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--rule); background: var(--surface-2); margin: 0 0 16px;
  transition: border-color .15s ease;
}
.pcard .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pcard .shot:hover { border-color: var(--accent); }
.pcard h3 { margin: 0 0 8px; }
.pcard .pname { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 6px; line-height: 1.3; }
.pcard .ptag { display: block; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; }
.pgrid.four .ptag { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.pcard p { color: var(--text-2); font-size: 0.95rem; margin: 0 0 12px; }
.pcard .site { margin: auto 0 0; font-weight: 600; font-size: var(--step--1); }
/* a grid cell that heads the next group of cards (home: "Two more agents.") */
.pgroup { border-top: 2px solid var(--rule-strong); padding-top: 12px; min-width: 0; }
.pgroup h3 { font-size: var(--step-2); margin: 0 0 8px; }
.pgroup p { color: var(--text-2); margin: 0 0 12px; max-width: 36ch; }
@media (min-width: 640px) { .pgroup { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .pgrid.four .pgroup { grid-column: span 2; } }

/* one-line summaries under the card grid (Short only) */
.short-lines { margin: var(--s4) 0 0; display: grid; gap: 12px; max-width: 72ch; }
.short-lines p { margin: 0; color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.short-lines b { color: var(--text); }
.grid-end { margin: var(--s3) 0 0; }

/* funds: three plain points in the hero (Short only) */
.points { list-style: none; margin: 0 0 var(--s2); padding: 0; max-width: 64ch; }
.points li { border-top: 1px solid var(--rule); padding: 12px 0; color: var(--text-2); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b { color: var(--text); }
.short-lines .to-full { white-space: normal; }

/* Agents in development (short + full) */
.wip { margin: 56px 0 8px; }
.wip h3 { margin: 0 0 6px; font-size: var(--step-2); letter-spacing: -0.02em; }
.wip > p { color: var(--text-2); max-width: 60ch; margin: 0 0 20px; }
.wip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .wip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wip-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wip-list li { border-top: 1px solid var(--rule); min-width: 0; }
.wip-list li > a, .wip-list li > .role { display: block; }
.wip-list a { display: block; padding: 14px 0 18px; color: inherit; text-decoration: none; }
.wip-list li:not(:has(a)) { padding: 14px 0 18px; }
.wip-list a:hover .role, .wip-list a:focus-visible .role { color: var(--accent); }
.wip-list .role { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 6px; }
.wip-list .nm { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.wip-list .st { display: block; font-size: var(--step--1); color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }
.wip-more { margin: 16px 0 0; }

/* v5: mini cards (tools, agents in development), before block */
.mini { margin: 56px 0 8px; }
.mini > h3, .before-block > h3 { margin: 0 0 16px; font-size: var(--step-2); letter-spacing: -0.02em; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .mini-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mini-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mini-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.mini-list li { min-width: 0; }
.mini-list a, .mini-list li > div { display: block; color: inherit; text-decoration: none; }
.mini-list .mshot { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin: 0 0 10px; background: var(--surface, transparent); }
.mini-list .mshot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mini-list .mshot.blank { display: flex; align-items: center; justify-content: center; }
.mini-list .mshot.blank span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.mini-list a:hover .mshot, .mini-list a:focus-visible .mshot { border-color: var(--accent); }
.mini-list a:hover .role, .mini-list a:focus-visible .role { color: var(--accent); }
.mini-list .role { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.mini-list .nm { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 4px; }
.mini-list .st { display: block; font-size: var(--step--1); color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.mini-list.three .role { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.before-block { margin: 64px 0 8px; padding-top: 28px; border-top: 1px solid var(--rule); }
.before-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .before-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.before-grid h4 { margin: 0 0 8px; }
.cos-h { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.cos ul { list-style: none; margin: 0 0 14px; padding: 0; }
.cos li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cos li span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- v6: offers ("How I can help" on /, "What I'd do for you" on audience pages) ----------
   Each tile answers three questions in order: who it is for, what I would do, what proves it. */
.hero.lead-in { padding-bottom: var(--s4); }
@media (min-width: 720px) { .hero.lead-in { padding-top: var(--s4); padding-bottom: var(--s4); } }
/* wide screens: headline left, proof and buttons right, so the offers below start inside the first screen */
@media (min-width: 1000px) {
  .hero.lead-in .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--s5); align-items: end; }
  .hero.lead-in .wrap > * { grid-column: 2; }
  .hero.lead-in .wrap > .label { grid-column: 1 / -1; }
  .hero.lead-in .wrap > h1 { grid-column: 1; grid-row: 2 / span 4; align-self: end; margin-bottom: 0; max-width: none; }
  .hero.lead-in .lede, .hero.lead-in .credits, .hero.lead-in .points { max-width: none; }
  .hero.lead-in .actions { margin-top: var(--s1); }
  .hero.lead-in .wrap > :last-child { margin-bottom: 0; }
}
.hero.home.lead-in h1 { font-size: var(--step-3); max-width: 20ch; }
.section.help { padding-top: var(--s4); }
.section.help .section-head { margin-bottom: var(--s3); }
.help-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .help-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .help-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-grid > li {
  display: flex; flex-direction: column; min-width: 0;
  border-top: 2px solid var(--accent); background: var(--surface);
  padding: 20px 20px 16px;
}
.section.band .help-grid > li { background: var(--bg); }
.help-grid .who { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.help-grid .do { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); margin: 0 0 12px; }
.help-grid .proof { font-size: var(--step--1); color: var(--muted); margin: 0 0 16px; }
.help-grid .proof a { color: inherit; }
.help-grid .go { margin-top: auto; font-weight: 600; font-size: var(--step--1); }
.help-grid .go::after { content: " \2192"; }
.roles-line { margin: var(--s3) 0 0; color: var(--text-2); max-width: 72ch; }
.roles-line b { color: var(--text); }

/* labs: "Further out", a plain list */
.idea-list { list-style: none; margin: 0; padding: 0; max-width: 72ch; }
.idea-list li { border-top: 1px solid var(--rule); padding: 12px 0; color: var(--text-2); }
.idea-list li:last-child { border-bottom: 1px solid var(--rule); }
.idea-list b { color: var(--text); }
.pcard video.demo { aspect-ratio: 16 / 10; object-fit: cover; margin: 0 0 16px; }
@media (min-width: 800px) { .help-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hero.home.lead-in .wrap { align-items: center; } .hero.home.lead-in .wrap > h1 { grid-row: 1 / span 2; align-self: center; } }
/* phones: tools as rows (thumbnail left, words right) instead of a 2+1 grid */
@media (max-width: 639px) {
  .mini-list.three { grid-template-columns: 1fr; gap: 16px; }
  .mini-list.three a { display: grid; grid-template-columns: 42% 1fr; column-gap: 14px; align-items: start; }
  .mini-list.three .mshot { grid-row: 1 / span 3; margin: 0; }
}

/* ---------- phones: the Agents row swipes sideways (Seth, Nov 2026) ----------
   (Tools keep their stacked rows on phones; they read better as a list.)
   Grids on wider screens, so everything is visible at a glance. On phones each
   row scrolls sideways and snaps card to card; the next card peeks in at the edge. */
@media (max-width: 639px) {
  .mini-list:not(.three) {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px;
    scroll-padding-left: var(--gutter); scrollbar-width: none;
  }
  .mini-list:not(.three)::-webkit-scrollbar { display: none; }
  .mini-list:not(.three) li { flex: 0 0 62%; scroll-snap-align: start; }
}

/* Added by scripts/build-home.py: the one quiet link from the professional
   site to the studio (writing, dialogues, the personal and cultural side). */
.site-foot .to-studio { margin: var(--s2) 0 0; font-size: var(--step--1); }
.site-foot .to-studio a { color: var(--accent); text-decoration: none; }
.site-foot .to-studio a:hover { text-decoration: underline; }
