/* Robo Guild — "The Drawings"
   An engineer's notebook: paper, graphite, drafting lettering, one flat colour.
   Structure carries meaning: sheets have title blocks, figures have captions, status is a stamp. */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-wght.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Routed Gothic"; src: url("../fonts/routed-gothic.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Routed Gothic Narrow"; src: url("../fonts/routed-gothic-narrow.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F7F7F4;
  --paper-2: #EFEFEA;
  --grid: rgba(38, 38, 43, 0.075);
  --ink: #26262B;
  --graphite: #5F5F66;
  --pencil: #6B6B72;
  --rule: #C4C5BF;
  --mint: #19E0A0;
  --mint-ink: #0B7A55;
  --alert: #D9480F;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --draft: "Routed Gothic", "Courier New", monospace;
  --draft-narrow: "Routed Gothic Narrow", "Routed Gothic", monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --sheet-pad: clamp(56px, 8vw, 112px);
  --line: 1.5px;

  --on-mint: #26262B;
  --drawing-filter: none;
  --todo-bg: #FFF1A8;
  --todo-ink: #26262B;
  color-scheme: light;
}

/* Dark theme: chalk on slate. Same grid, same single mint. Follows the system unless the toggle says otherwise. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1D22; --paper-2: #24272E; --grid: rgba(232, 232, 227, 0.06);
    --ink: #E8E8E3; --graphite: #B4B5B0; --pencil: #8E9096; --rule: #3A3D45;
    --mint-ink: #4BEBB8; --alert: #FF7A45;
    --drawing-filter: invert(1) brightness(0.92);
    --todo-bg: #4A3F05; --todo-ink: #FFF1A8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1D22; --paper-2: #24272E; --grid: rgba(232, 232, 227, 0.06);
  --ink: #E8E8E3; --graphite: #B4B5B0; --pencil: #8E9096; --rule: #3A3D45;
  --mint-ink: #4BEBB8; --alert: #FF7A45;
  --drawing-filter: invert(1) brightness(0.92);
  --todo-bg: #4A3F05; --todo-ink: #FFF1A8;
  color-scheme: dark;
}

/* Mint surfaces always carry dark ink, in both themes */
.cover-panel, .page-head.is-mint, .scope .is-free {
  --ink: #26262B; --graphite: #3B3B42; --pencil: #4A4A52; --paper: #F7F7F4; --rule: rgba(38, 38, 43, 0.25); --mint-ink: #0B7A55;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); font-weight: 500; }

.anno { font-family: var(--draft); font-size: 0.9rem; line-height: 1.45; color: var(--graphite); letter-spacing: 0.01em; }
.anno-narrow { font-family: var(--draft-narrow); }
.lede { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.45; max-width: 36ch; }
.prose { max-width: 64ch; }
.prose p + p { margin-top: 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); border: var(--line) solid var(--ink); padding: 8px 14px; font-family: var(--draft); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons: drafting labels in a box ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 22px;
  border: var(--line) solid var(--ink); background: var(--paper);
  font-family: var(--draft); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-quiet { box-shadow: none; border-color: var(--graphite); color: var(--graphite); }
.btn-quiet:hover { box-shadow: none; transform: none; border-color: var(--ink); color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--paper-2); color: var(--pencil); box-shadow: none; border-style: dashed; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: var(--line) solid var(--ink); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; font-family: var(--draft); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nav a { text-decoration: none; padding: 6px 0; white-space: nowrap; }
.label-short { display: none; }
.nav a:hover { text-decoration: underline; }
.nav-cta { border: var(--line) solid var(--ink); background: var(--mint); color: var(--on-mint); padding: 8px 14px !important; }
@media (max-width: 640px) { .nav { gap: 14px; font-size: 0.85rem; } .nav-learn { display: none; } .label-full { display: none; } .label-short { display: inline; } .brand-word { font-size: 1.1rem; } .topbar-in { gap: 12px; } }

/* ---------- Sheets and title blocks ---------- */
.sheet { padding: var(--sheet-pad) 0; border-top: var(--line) solid var(--ink); }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.sheet-head .lede { margin-top: 14px; color: var(--graphite); }
.title-block {
  flex: 0 0 auto;
  display: grid; grid-template-columns: auto auto; gap: 0;
  border: var(--line) solid var(--ink); background: var(--paper);
  font-family: var(--draft-narrow); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--graphite);
}
.title-block > span { padding: 6px 12px; border-bottom: 1px solid var(--rule); }
.title-block > span:nth-child(odd) { border-right: 1px solid var(--rule); color: var(--pencil); }
.title-block > span:nth-last-child(-n+2) { border-bottom: 0; }
.title-block strong { color: var(--ink); font-weight: 400; }
@media (max-width: 760px) { .sheet-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Cover + hero ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(78vh, 760px); border-bottom: var(--line) solid var(--ink); }
.cover-panel { background: var(--mint); padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: var(--line) solid var(--ink); }
.cover-panel { container-type: inline-size; }
.cover-panel h1 { font-size: clamp(2.8rem, 1.6rem + 6vw, 6.4rem); font-size: min(clamp(2.4rem, 1.6rem + 6vw, 6.4rem), 17.8cqi); font-weight: 600; line-height: 0.95; letter-spacing: 0.005em; max-width: 9ch; }
.cover-kicker { font-family: var(--draft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; }
.cover-panel .lede { margin-top: 22px; max-width: 30ch; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cover-foot { font-family: var(--draft-narrow); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; display: flex; justify-content: space-between; gap: 16px; }
.cover-fig { position: relative; padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 48px); display: grid; align-content: center; }
@media (max-width: 860px) {
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover-panel { border-right: 0; border-bottom: var(--line) solid var(--ink); }
}

/* ---------- Figures: drawing + annotations ---------- */
.fig { margin: 0; }
.fig-stage { position: relative; }
.fig-stage img { width: 100%; filter: var(--drawing-filter); }
.fig-stage svg.dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dims text { font-family: "Routed Gothic", monospace; font-size: 24px; fill: var(--graphite); letter-spacing: 0.02em; }
.dims .dim-line { stroke: var(--graphite); stroke-width: 2; fill: none; }
.dims .dim-tick { stroke: var(--graphite); stroke-width: 2; }
.dims .lead { stroke: var(--graphite); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.dims .dot { fill: var(--graphite); }
@media (max-width: 860px) { .dims text { font-size: 52px; } .dims .long { display: none; } }
@media (min-width: 861px) { .dims .short { display: none; } }
.fig-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--draft); font-size: 0.9rem; color: var(--graphite); }
.fig-cap .fig-no { color: var(--ink); }
.fig-cap .ship { color: var(--ink); font-family: var(--draft); }
.fig-cap .ship::before { content: "“"; } .fig-cap .ship::after { content: "”"; }

.stamp {
  display: inline-block; padding: 4px 10px; border: 2px solid currentColor; border-radius: 3px;
  font-family: var(--draft); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  transform: rotate(-4deg); transform-origin: center;
  color: var(--mint-ink); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 2.4'/></filter><rect width='80' height='40' fill='black' filter='url(%23n)'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 2.4'/></filter><rect width='80' height='40' fill='black' filter='url(%23n)'/></svg>");
}
.stamp-next { color: var(--graphite); border-style: dashed; }
.stamp-vote { color: var(--pencil); border-style: dotted; }
.stamp-abs { position: absolute; z-index: 2; }

/* spec tables under figures */
.spec { width: 100%; border-collapse: collapse; font-family: var(--draft); font-size: 0.88rem; color: var(--graphite); margin-top: 12px; }
.spec th, .spec td { text-align: left; padding: 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { font-weight: 400; color: var(--pencil); width: 34%; padding-right: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- Layout helpers ---------- */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); align-items: start; }
@media (max-width: 980px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cols-2, .cols-4 { grid-template-columns: 1fr; } }

/* numbered notes: a list where the numbers are the information (sequence or count) */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.notes li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; }
.notes .no { font-family: var(--draft); color: var(--pencil); font-size: 0.9rem; padding-top: 6px; letter-spacing: 0.05em; }
.notes h3 { margin-bottom: 6px; }
.notes p { color: var(--graphite); }

/* plain definition list for "what you get" */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 12px 0; border-top: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 1px solid var(--rule); }
.plain li strong { font-family: var(--draft); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; display: block; margin-bottom: 2px; }
.plain li span { color: var(--graphite); }

/* ---------- Value drawing: founding seat vs fleet ---------- */
.bars { font-family: var(--draft); font-size: 0.9rem; color: var(--graphite); display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bar-label b { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--ink); letter-spacing: 0.01em; }
.bar { height: 34px; border: var(--line) solid var(--ink); background: var(--paper); position: relative; display: flex; }
.bar i { display: block; height: 100%; border-right: 1px solid var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--graphite) 5px 6px); }
.bar i:last-child { border-right: 0; }
.bar i.solid { background: var(--mint); }
.bar-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8rem; color: var(--pencil); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Seats ---------- */
.seats { display: inline-flex; gap: 7px; vertical-align: middle; }
.seat { width: 16px; height: 16px; border: var(--line) solid var(--ink); background: var(--mint); border-radius: 50%; }
.seat.taken { background: var(--ink); }

/* ---------- Price block ---------- */
.price-block { border: var(--line) solid var(--ink); padding: clamp(20px, 3vw, 32px); background: var(--paper); }
.price-block .big { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.01em; }
.price-block .big small { font-family: var(--draft); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--graphite); margin-left: 8px; }
.price-block .btn { margin-top: 20px; width: 100%; }
.price-meta { margin-top: 12px; }

/* ---------- Learning resources ---------- */
.syl-list { list-style: none; margin: 0; padding: 0; border-top: var(--line) solid var(--ink); }
.syl-item a { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.syl-item a:hover .syl-title { text-decoration: underline; text-decoration-color: var(--mint-ink); }
.syl-no { font-family: var(--draft); color: var(--pencil); letter-spacing: 0.08em; }
.syl-title { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.01em; }
.syl-sum { grid-column: 2; color: var(--graphite); font-size: 1rem; }
.syl-time { grid-column: 3; grid-row: 1; font-family: var(--draft-narrow); font-size: 0.8rem; color: var(--pencil); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
@media (max-width: 640px) { .syl-item a { grid-template-columns: 48px 1fr; } .syl-time { grid-column: 2; grid-row: auto; } }

.syl-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.syl-side { position: sticky; top: 84px; }
.syl-side ol { list-style: none; margin: 0; padding: 0; font-family: var(--draft-narrow); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.syl-side li a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--graphite); border-bottom: 1px solid var(--rule); }
.syl-side a[aria-current="page"] { color: var(--ink); }
.syl-side a[aria-current="page"] .syl-no { color: var(--mint-ink); }
@media (max-width: 860px) { .syl-page { grid-template-columns: 1fr; } .syl-side { position: static; } }

.module h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
.module .anno { margin-top: 10px; }
.module-body { margin-top: 36px; max-width: 68ch; }
.module-body h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.module-body h3 { font-size: 1.15rem; margin: 26px 0 6px; }
.module-body p { margin: 0 0 1em; }
.module-body ul, .module-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.module-body li { margin: 0 0 0.6em; }
.module-body li::marker { color: var(--pencil); font-family: var(--draft); }
.module-body a { text-decoration-color: var(--mint-ink); }
.module-body blockquote { margin: 0 0 1em; padding: 12px 18px; border-left: 3px solid var(--mint); background: var(--paper-2); font-family: var(--draft); font-size: 0.95rem; color: var(--graphite); }
.module-body blockquote p { margin: 0; }
.module-body code { font-family: var(--draft); font-size: 0.95em; background: var(--paper-2); padding: 1px 5px; }
.module-body hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.module-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: var(--line) solid var(--ink); font-family: var(--draft); font-size: 0.95rem; }
.module-nav a { text-decoration: none; }
.module-nav a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--draft); color: var(--pencil); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--graphite); max-width: 64ch; }

/* ---------- Page heads for inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); border-bottom: var(--line) solid var(--ink); }
.page-head h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.4rem); font-weight: 600; max-width: 14ch; }
.page-head .lede { margin-top: 18px; color: var(--graphite); }
.page-head.is-mint { background: var(--mint); }
.page-head.is-mint .lede { color: var(--ink); }

/* ---------- Footer ---------- */
.foot { border-top: var(--line) solid var(--ink); background: var(--paper); padding: 40px 0 56px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; margin-bottom: 8px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--draft); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.foot-links a { text-decoration: none; } .foot-links a:hover { text-decoration: underline; }
.foot-note { grid-column: 1 / -1; margin-top: 16px; max-width: 80ch; font-size: 0.8rem; color: var(--pencil); }
@media (max-width: 680px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- Legal / doc pages ---------- */
.doc { padding: clamp(32px, 5vw, 64px) 0 var(--sheet-pad); }
.doc .wrap > * { max-width: 72ch; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.doc p + p { margin-top: 10px; }
.doc address { font-style: normal; line-height: 1.7; }
.doc ul { padding-left: 1.2em; }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 5px; font-family: var(--draft); font-size: 0.95em; }
.todo-note { border: var(--line) dashed var(--alert); padding: 12px 16px; margin-bottom: 28px; font-family: var(--draft); font-size: 0.95rem; }

/* fleet row on the home page: equal stages so captions align */
.fleet-row .fig-stage { height: 300px; display: flex; align-items: flex-end; justify-content: center; }
.fleet-row .fig-stage img { max-height: 100%; width: auto; max-width: 100%; margin: 0; }
@media (max-width: 980px) { .fleet-row .fig-stage { height: 260px; } }
@media (max-width: 680px) {
  .cols-4.fleet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .fleet-row .fig-stage { height: 150px; }
  .fleet-row .fig-cap { font-size: 0.75rem; gap: 4px 8px; }
  .fleet-row .fig-cap .stamp { font-size: 0.7rem; }
}
/* fleet figures on the Berlin page */
.fleet-3 .fig-stage { height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.fleet-3 .fig-stage img { max-height: 100%; width: auto; max-width: 100%; margin: 0; }

/* ---------- Value grid: the Guild's rituals and assets ---------- */
.value-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: var(--line) solid var(--ink); }
.value-grid li { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.value-grid h3 { margin-bottom: 6px; }
.value-grid h3 { font-size: 1.15rem; }
.value-grid p { color: var(--graphite); font-size: 1rem; line-height: 1.5; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Scope band: makes worldwide vs local unmissable ---------- */
.scope { display: grid; grid-template-columns: 1fr 1fr; border: var(--line) solid var(--ink); margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.scope > li { display: flex; }
.scope > li > a { flex: 1; }
.scope .scope-title { font-family: var(--display); text-transform: uppercase; line-height: 1; margin: 6px 0 8px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.scope a { display: block; padding: clamp(18px, 3vw, 28px); color: inherit; text-decoration: none; }
.scope > li + li { border-left: var(--line) solid var(--ink); }
.scope a:hover .scope-title { text-decoration: underline; text-decoration-color: var(--mint-ink); }
.scope .scope-tag { font-family: var(--draft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--graphite); }
.scope h3 { margin: 6px 0 8px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.scope p { color: var(--graphite); }
.scope .is-free { background: var(--mint); }
.scope li:first-child { background: var(--mint); }
.scope .is-free .scope-tag, .scope .is-free p { color: var(--ink); }
@media (max-width: 680px) { .scope { grid-template-columns: 1fr; } .scope > li + li { border-left: 0; border-top: var(--line) solid var(--ink); } }

/* ---------- Nodes ---------- */
.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.node-card { border: var(--line) solid var(--ink); background: var(--paper); padding: 20px; display: grid; gap: 10px; align-content: start; position: relative; text-decoration: none; }
.node-card h3 { font-size: 1.8rem; }
.node-card .anno { font-size: 0.85rem; }
.node-card .stamp { justify-self: start; }
.node-card.is-empty { border-style: dashed; background: transparent; }
a.node-card:hover h3 { text-decoration: underline; text-decoration-color: var(--mint-ink); }
@media (max-width: 860px) { .nodes { grid-template-columns: 1fr; } }

/* ---------- Founding chart ---------- */
.chart { font-family: var(--draft); color: var(--graphite); }
.chart-row + .chart-row { margin-top: 26px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 0.9rem; }
.chart-head b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; color: var(--ink); }
.chart-bar { display: flex; height: 46px; border: var(--line) solid var(--ink); background: var(--paper); }
.chart-bar .seg { position: relative; height: 100%; border-right: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.8rem; color: var(--ink); }
.chart-bar .seg span { background: var(--paper); padding: 1px 4px; line-height: 1.2; }
.seg-bought { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); }
.seg-next.seg-h0 { background: repeating-linear-gradient(45deg, var(--graphite) 0 1px, transparent 1px 7px); }
.seg-next.seg-h1 { background: repeating-linear-gradient(135deg, var(--graphite) 0 1px, transparent 1px 7px); }
.seg-next.seg-h2 { background: repeating-linear-gradient(90deg, var(--graphite) 0 1px, transparent 1px 7px); }
.chart-bar .seg-future { border-right: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, var(--rule) 8px 9px); outline: 1px dashed var(--graphite); outline-offset: -5px; font-size: 1.1rem; color: var(--graphite); }
.chart-labels { display: flex; margin-top: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pencil); }
.chart-labels span { padding-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-seat { position: relative; height: 46px; }
.chart-seat .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mint); border: var(--line) solid var(--ink); }
.chart-seat .reach { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--ink); }
.chart-seat .reach::after { content: ""; position: absolute; right: -2px; top: -7px; border: 6px solid transparent; border-left: 10px solid var(--ink); }
.chart-cap { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.chart-cap strong { color: var(--ink); font-weight: 400; }
@media (max-width: 520px) { .chart-bar .seg span { display: none; } .chart-labels span { font-size: 0.65rem; } }

/* ---------- Offer layout ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.after { margin-top: 18px; border: var(--line) dashed var(--graphite); padding: 16px 18px; }
.after h3 { font-size: 1.1rem; margin-bottom: 6px; }
.after p { color: var(--graphite); font-size: 1rem; }
.after .tiers { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-family: var(--draft); font-size: 0.9rem; color: var(--ink); }

/* node strip on the home page */
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding-bottom: 12px; border-bottom: var(--line) solid var(--ink); }
.strip-head h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.strip-head .stamp { margin-left: auto; align-self: center; }

/* ---------- Theme toggle ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: var(--line) solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { background: var(--paper-2); }

.chart-share { margin-top: 8px; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--mint-ink); }

/* ---------- Protected email ---------- */
.eml-x { display: none !important; }
.eml { white-space: nowrap; }
.contact-box { border: var(--line) solid var(--ink); padding: clamp(20px, 3vw, 32px); max-width: 640px; background: var(--paper); }
.contact-box .eml { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); letter-spacing: 0.01em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Forms (withdrawal, cancellation) ---------- */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-family: var(--draft); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; color: var(--ink); padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=date], .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: var(--line) solid var(--ink); border-radius: 0; padding: 10px 12px; width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.field .choice { display: flex; align-items: baseline; gap: 10px; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1rem; }
.field .choice > span { flex: 1; min-width: 0; }
.field .date-after { width: auto; margin-left: 26px; justify-self: start; }
.hint { font-family: var(--draft); font-size: 0.85rem; color: var(--graphite); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
@media print { .topbar, .foot, .btn { display: none !important; } body { background: #fff; } }

.spec.receipt { max-width: 640px; table-layout: fixed; }
.spec td, .doc p { overflow-wrap: anywhere; }
.foot-links .legal-btn { display: inline-block; border: var(--line) solid var(--ink); padding: 6px 10px; text-decoration: none; }
.foot-links .legal-btn:hover { background: var(--paper-2); }
