/*
 * scaleset-pdf.com
 *
 * The site is drawn as a drawing sheet: a hairline border with zone marks
 * round the page, sheet numbers on the sections, a title block for a footer.
 * Ink and white are the brand's only colours; the one red is the redline a
 * markup is drawn in, and it is kept for markups.
 */

@font-face { font-family: 'Outfit'; src: url('/fonts/outfit.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrainsmono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #475569;
  --quiet: #64748b;
  --faint: #94a3b8;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;
  --mist: #f8fafc;
  --paper: #ffffff;
  --red: #e0362c;
  --red-soft: rgba(224, 54, 44, 0.08);
  --ok: #15803d;
  --display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --frame: clamp(8px, 1.4vw, 18px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ----------------------------------------------------------- the sheet -- */

/* The page's border: a hairline inset from the window, as on a drawing. */
.sheet-frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--rule-2);
  pointer-events: none;
  z-index: 60;
}
.sheet-frame::before, .sheet-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--ink);
  border-style: solid;
}
.sheet-frame::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.sheet-frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

/* Zone letters along the top edge, as a drawing's border carries them. */
.zones {
  position: fixed;
  left: var(--frame); right: var(--frame); top: 0;
  height: var(--frame);
  display: flex;
  pointer-events: none;
  z-index: 61;
}
.zones span {
  flex: 1;
  font: 500 9px/1 var(--mono);
  color: var(--faint);
  display: grid;
  place-items: center;
  border-left: 1px solid var(--rule);
  letter-spacing: 0.1em;
}
.zones span:first-child { border-left: 0; }
@media (max-width: 720px) { .zones { display: none; } }

/* Scroll progress, as the graduations of a scale rule down the right edge. */
.rule-progress {
  position: fixed;
  right: calc(var(--frame) - 1px);
  top: var(--frame);
  bottom: var(--frame);
  width: 10px;
  pointer-events: none;
  z-index: 61;
  background:
    repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 24px) right / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 120px) right / 10px 100% no-repeat;
}
.rule-progress i {
  position: absolute; right: 0; top: 0;
  width: 2px; height: calc(var(--p, 0) * 100%);
  background: var(--ink);
}
@media (max-width: 720px) { .rule-progress { display: none; } }

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

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--frame);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 19px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 520px) { .nav-cta .btn-ghost { display: none; } .nav .wrap { gap: 12px; } .brand img { height: 17px; } }

/* -------------------------------------------------------------- buttons -- */

.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 999px;
  font: 600 14px/1 var(--body);
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px -10px rgba(15,23,42,0.55); }
.btn-ink:hover { background: #000; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 14px 30px -12px rgba(15,23,42,0.7); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); height: 36px; padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--mist); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e2e8f0; }
.btn-onink { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-onink:hover { border-color: #fff; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 15px; }
.btn-danger { background: var(--paper); color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { border-color: #b91c1c; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- type -- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--ink); font-weight: 600; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
}
.h2 { font: 800 clamp(36px, 4.9vw, 68px)/0.98 var(--display); letter-spacing: -0.04em; margin: 0; }
.h3 { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 40ch; margin: 0; }
.mono { font-family: var(--mono); }
.red { color: var(--red); }

/* ------------------------------------------------------------- reveals -- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------------------------------------------------------------- hero -- */

.hero { position: relative; padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(52px, 6.6vw, 104px); }
@media (max-width: 980px) { .hero h1 { font-size: clamp(52px, 13vw, 104px); } }
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero h1 .redline { position: relative; display: inline-block; }
.hero h1 .redline svg { position: absolute; left: -4%; bottom: -0.08em; width: 108%; height: 0.3em; overflow: visible; }
.hero h1 .redline path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1s var(--ease) 1.25s forwards; vector-effect: non-scaling-stroke; }
@keyframes rise { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font: 500 12px/1.4 var(--mono); color: var(--quiet); letter-spacing: 0.02em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero .lede { max-width: 52ch; } }

/* The drawing in the hero: a sheet with a title block, markups drawn on it. */
.plan-card {
  position: relative;
  aspect-ratio: 1.414 / 1;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px rgba(15, 23, 42, 0.35), 0 12px 24px -16px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  isolation: isolate;
}
.plan-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 22px 22px;
}
.plan-card svg.plan { width: 100%; height: 100%; }
.plan-wrap { position: relative; padding-top: 22px; }
.plan-chrome {
  position: absolute; right: 22px; top: 0; z-index: 3;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--rule); border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -12px rgba(15,23,42,0.35);
}
.plan-chrome span {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  color: var(--quiet);
  transition: background 0.3s, color 0.3s;
}
.plan-chrome span.on { background: var(--ink); color: #fff; }
.plan-chrome svg { width: 16px; height: 16px; }
.plan-readout {
  position: absolute; left: 12px; bottom: 12px;
  font: 500 11px/1 var(--mono); color: var(--muted);
  background: rgba(255,255,255,0.92); border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 10px; display: flex; gap: 14px;
}
.plan-readout b { color: var(--ink); font-weight: 600; }
.plan-cursor { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.plan-card:hover .plan-cursor { opacity: 1; }
.plan-cursor::before, .plan-cursor::after { content: ''; position: absolute; background: var(--ink); opacity: 0.55; }
.plan-cursor::before { width: 1px; height: 26px; left: 0; top: -13px; }
.plan-cursor::after { height: 1px; width: 26px; top: 0; left: -13px; }

/* Plan strokes. */
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.plan .thin { fill: none; stroke: var(--ink-3); stroke-width: 0.8; }
.plan .hair { fill: none; stroke: var(--faint); stroke-width: 0.6; }
.plan .door { fill: none; stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 2 2; }
.plan .lbl { font: 600 7.5px var(--mono); fill: var(--muted); letter-spacing: 0.06em; }
.plan .lbl-s { font: 500 6px var(--mono); fill: var(--quiet); letter-spacing: 0.04em; }
.plan .tb { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.plan .tb-t { font: 700 8px var(--display); fill: var(--ink); letter-spacing: -0.01em; }
.plan .tb-s { font: 500 5px var(--mono); fill: var(--quiet); letter-spacing: 0.08em; }
.plan .mk { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plan .mk-fill { fill: var(--red-soft); stroke: none; }
.plan .mk-t { font: 600 7.5px var(--mono); fill: var(--red); letter-spacing: 0.02em; }
.plan .mk-tb { fill: #fff; stroke: var(--red); stroke-width: 1.1; }
.plan .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.plan .draw.go { transition: stroke-dashoffset var(--t, 1.2s) var(--ease); stroke-dashoffset: 0; }
.plan .fade { opacity: 0; transition: opacity 0.6s var(--ease); }
.plan .fade.go { opacity: 1; }

/* ------------------------------------------------------------ sections -- */

section { position: relative; }
section > .wrap { position: relative; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lede { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head .lede { justify-self: start; } }
.sheet-no {
  position: absolute; top: clamp(-52px, -4vw, -36px); right: 0;
  font: 500 11px/1 var(--mono); color: var(--quiet); letter-spacing: 0.12em;
  display: flex; gap: 10px; align-items: center;
}
.sheet-no b { color: var(--ink); border: 1px solid var(--ink); padding: 5px 7px; border-radius: 4px; font-weight: 600; }

/* A hairline across the page with a marker, between sections. */
.cut { position: relative; height: 1px; background: var(--rule); }
.cut::after { content: ''; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border: 1px solid var(--rule-2); background: var(--paper); transform: translateX(-50%) rotate(45deg); }

/* -------------------------------------------------------------- marquee -- */

.strip { border-block: 1px solid var(--rule); overflow: hidden; background: var(--paper); }
.strip-track { display: flex; gap: 56px; width: max-content; padding: 18px 0; animation: slide 48s linear infinite; }
.strip span { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.strip span::after { content: '+'; color: var(--faint); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- performance -- */

.ink-band { background: var(--ink); color: #fff; overflow: hidden; }
.ink-band .eyebrow { color: #94a3b8; }
.ink-band .eyebrow b { color: #fff; }
.ink-band .lede { color: #cbd5e1; }
.ink-band .sheet-no { color: #94a3b8; }
.ink-band .sheet-no b { color: #fff; border-color: #fff; }
.ink-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.14); }
.stat { padding: 36px 28px 8px 0; border-right: 1px solid rgba(255,255,255,0.14); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat .num { font: 800 clamp(52px, 6.4vw, 92px)/0.9 var(--display); letter-spacing: -0.05em; display: flex; align-items: baseline; gap: 6px; }
.stat .num small { font: 600 clamp(16px, 1.6vw, 22px)/1 var(--display); letter-spacing: -0.01em; color: #94a3b8; }
.stat p { margin: 18px 0 0; color: #cbd5e1; font-size: 15px; max-width: 26ch; }
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,0.14); }
}
.terminal {
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); font: 500 12px var(--mono); color: #94a3b8; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 20px 20px 24px; font: 400 13px/1.85 var(--mono); color: #e2e8f0; overflow-x: auto; min-height: 15em; }
.terminal pre .k { color: #94a3b8; }
.terminal pre .v { color: #fff; font-weight: 600; }
.terminal pre .c { display: inline-block; width: 8px; height: 1.1em; background: #fff; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.footnote { margin-top: 16px; font: 400 12px/1.6 var(--mono); color: #94a3b8; }

/* ------------------------------------------------------------- features -- */

.sheets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative;
  grid-column: span 4;
  display: flex; flex-direction: column;
  min-height: 380px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.card:hover { border-color: var(--rule-2); box-shadow: 0 30px 60px -36px rgba(15,23,42,0.35); transform: translateY(-3px); }
.card.wide { grid-column: span 8; }
.card.half { grid-column: span 6; }
.card .art { position: relative; flex: 1; min-height: 200px; background: var(--mist); border-bottom: 1px solid var(--rule); overflow: hidden; }
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .body { padding: 22px 24px 24px; display: grid; gap: 8px; }
.card .body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--ink); background: #fff; border: 1px solid var(--rule-2); padding: 6px 8px; border-radius: 6px; }
@media (max-width: 980px) { .card, .card.half { grid-column: span 6; } .card.wide { grid-column: span 12; } }
@media (max-width: 640px) { .card, .card.half, .card.wide { grid-column: span 12; } }

/* Card illustrations: still until hovered or scrolled in, then they play. */
.art .s { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.art .h { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.art .r { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .rf { fill: var(--red-soft); }
.art .t { font: 600 11px var(--mono); fill: var(--ink); }
.art .tq { font: 500 10px var(--mono); fill: var(--quiet); }
.art .tr { font: 600 11px var(--mono); fill: var(--red); }
.art .p { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0s); }
.card.play .art .p { stroke-dashoffset: 0; }
.art .o { opacity: 0; transition: opacity 0.6s var(--ease) var(--d, 0s); }
.card.play .art .o { opacity: 1; }

/* ---------------------------------------------------------------- compatibility -- */

.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.statement .h2 em { font-style: normal; color: var(--red); }
.statement ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.statement li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.statement li code { font: 600 12.5px/1.6 var(--mono); color: var(--ink); }
.pdf-anatomy { white-space: pre; font: 400 12.5px/1.9 var(--mono); background: var(--mist); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 24px; color: var(--ink-3); overflow-x: auto; }
.pdf-anatomy .dim { color: var(--faint); }
.pdf-anatomy .hl { color: var(--red); font-weight: 600; }
@media (max-width: 980px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- teams -- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--rule); border-radius: 18px; padding: 26px; background: var(--paper); position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); font: 600 12px var(--mono); color: var(--quiet); letter-spacing: 0.1em; }
.step h3 { margin: 40px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.takeover { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--rule); border-radius: 22px; background: var(--mist); }
.pc { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: grid; gap: 10px; transition: opacity 0.6s, filter 0.6s; }
.pc-top { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--mono); letter-spacing: 0.06em; }
.pc-screen { height: 92px; border-radius: 8px; border: 1px solid var(--rule); background: linear-gradient(var(--mist) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, var(--mist) 1px, transparent 1px) 0 0 / 12px 12px, #fff; position: relative; overflow: hidden; }
.pc-screen .bar { position: absolute; inset: auto 8px 8px 8px; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 500 10.5px/1.35 var(--body); transform: translateY(140%); transition: transform 0.6s var(--ease); }
.pc.moved .pc-screen .bar { transform: none; }
.pc .who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--muted); background: #fff; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill.live { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.pill.live::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(21,128,61,0.15); }
.pill.off::before { background: var(--faint); }
.pill.warn { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.pill.warn::before { background: #d97706; }
.pill.bad { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.pill.bad::before { background: #dc2626; }
.hand { font: 600 12px var(--mono); color: var(--quiet); display: grid; justify-items: center; gap: 6px; text-align: center; }
.hand svg { width: 46px; height: 14px; }
@media (max-width: 760px) { .takeover { grid-template-columns: minmax(0, 1fr); } .hand svg { transform: rotate(90deg); margin: 16px 0; } }

.privacy { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.privacy > div { border: 1px solid var(--rule); border-radius: 18px; padding: 26px; }
.privacy h3 { margin-bottom: 14px; }
.privacy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.privacy li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.privacy li::before { content: '✓'; font: 700 13px var(--mono); color: var(--ink); }
.privacy .never li::before { content: '✕'; color: var(--red); }
@media (max-width: 760px) { .privacy { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ cta -- */

.cta { text-align: left; }
.cta .display { font-size: clamp(56px, 10vw, 156px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ------------------------------------------------- footer: title block -- */

.titleblock { margin: 0 auto calc(var(--frame) + 24px); }
.tb-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
}
.tb-grid > div { padding: 14px 16px; border-left: 1px solid var(--ink); display: grid; gap: 6px; align-content: start; min-width: 0; }
.tb-grid > div:first-child { border-left: 0; }
.tb-grid .k { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); }
.tb-grid .v { font-weight: 600; }
.tb-grid a { color: var(--ink); text-decoration: none; }
.tb-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb-grid .links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tb-grid .brandcell img { height: 17px; width: auto; }
@media (max-width: 860px) {
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .tb-grid > div { border-left: 0; border-top: 1px solid var(--ink); }
  .tb-grid > div:nth-child(even) { border-left: 1px solid var(--ink); }
  .tb-grid > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .tb-grid > div:nth-child(2) { border-left: 0; }
  .tb-grid > div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--ink); }
}

/* ============================================================ app pages == */

.app-body { background: var(--mist); min-height: 100vh; display: flex; flex-direction: column; }
.app-body .nav { background: color-mix(in srgb, var(--mist) 85%, transparent); }
.app-main { flex: 1; padding: clamp(28px, 5vw, 56px) 0 64px; }
.app-title { font: 800 clamp(34px, 4.6vw, 54px)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 0; }
.app-sub { color: var(--muted); margin: 12px 0 0; max-width: 60ch; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.panel-head h2 { font: 700 18px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.panel-head .k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); margin-bottom: 6px; }
.panel-body { padding: 24px; }
.stack { display: grid; gap: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 12px 16px; margin: 0; font-size: 14.5px; }
.kv dt { font: 500 11px/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.field { display: grid; gap: 7px; }
.field label { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input, .select {
  height: 46px; width: 100%;
  padding: 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  background: #fff;
  font: 500 15px var(--body);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:hover, .select:hover { border-color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,23,42,0.08); }
.inline-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .inline-form { grid-template-columns: minmax(0, 1fr); } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }

.table-wrap { overflow-x: auto; }
table.people { width: 100%; border-collapse: collapse; font-size: 14px; }
.people th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--quiet); padding: 12px 24px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.people td { padding: 14px 24px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.people tr:last-child td { border-bottom: 0; }
.people .person { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px var(--display); flex: none; }
.avatar.ghost { background: #fff; color: var(--quiet); border: 1px dashed var(--faint); }
.people .name { font-weight: 600; }
.people .mail { color: var(--quiet); font-size: 13px; }
.people .pc-cell { font: 500 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.people .pc-cell small { display: block; color: var(--quiet); font-size: 11.5px; margin-top: 3px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.meter { height: 8px; border-radius: 999px; background: var(--rule); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width 0.6s var(--ease); }
.seat-count { font: 800 34px/1 var(--display); letter-spacing: -0.03em; }
.seat-count small { font: 500 14px var(--body); color: var(--quiet); letter-spacing: 0; }

.notice { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-3); background: #fff; display: flex; gap: 12px; align-items: flex-start; }
.notice.err { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.notice.ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.notice.info { background: var(--mist); }
.hidden { display: none !important; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 90; transition: opacity 0.3s, transform 0.4s var(--ease); box-shadow: 0 20px 40px -20px rgba(15,23,42,0.6); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #991b1b; }

/* Sign-in card. */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; background: var(--ink); color: #fff; padding: calc(var(--frame) + 40px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 70%, #000, transparent 75%); }
.auth-side > * { position: relative; }
.auth-side .display { font-size: clamp(44px, 5vw, 76px); }
.auth-side p { color: #cbd5e1; max-width: 36ch; }
.auth-side .eyebrow { color: #94a3b8; }
.auth-side .eyebrow b { color: #fff; }
.auth-main { display: grid; place-items: center; padding: calc(var(--frame) + 32px) var(--gutter); background: var(--paper); }
.auth-card { width: min(420px, 100%); display: grid; gap: 22px; }
.auth-card h1 { font: 800 38px/1 var(--display); letter-spacing: -0.035em; margin: 0; }
.auth-card .sub { color: var(--muted); margin: -8px 0 0; }
.btn-google { width: 100%; --h: 52px; background: #fff; color: var(--ink); border-color: var(--rule-2); font-size: 15px; }
.btn-google:hover { border-color: var(--ink); }
.btn-google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 14px; font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--quiet); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.auth-card .btn-ink { width: 100%; --h: 52px; font-size: 15px; }
.auth-card .fine { font-size: 13px; color: var(--quiet); }
.app-handoff { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rule); background: var(--mist); font-size: 13.5px; color: var(--ink-3); }
.app-handoff img { width: 34px; height: 34px; border-radius: 8px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.done-mark svg { width: 28px; height: 28px; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.7s var(--ease) 0.2s forwards; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* Prose pages (privacy). */
.prose { max-width: 70ch; font-size: 16.5px; }
.prose h2 { font: 700 24px/1.25 var(--display); letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-3); }
.prose a { text-underline-offset: 3px; }

/* ============================================================ multi-page == */

/* --- nav menus ----------------------------------------------------------- */
.nav-links { align-items: center; }
.nav-links > a, .dd > button {
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: color .2s;
}
.nav-links > a:hover, .dd > button:hover, .dd.open > button, .dd:focus-within > button { color: var(--ink); }
.nav-links > a[aria-current], .dd > button[aria-current] { color: var(--ink); }
.dd > button svg { transition: transform .3s var(--ease); }
.dd:hover > button svg, .dd.open > button svg { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s;
  background: #fff; border: 1px solid var(--rule); border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(15,23,42,.35), 0 10px 20px -12px rgba(15,23,42,.15);
  padding: 10px; z-index: 70;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega { width: min(880px, calc(100vw - 48px)); left: 180%; }
.mega.narrow { width: 400px; left: 50%; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.mega-grid.one { grid-template-columns: minmax(0, 1fr); }
.mega-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mega-grid.one .mega-item { grid-template-columns: 1fr auto; }
.mega-item:hover { background: var(--mist); }
.mega-item b { display: block; font: 600 14px/1.3 var(--body); }
.mega-item small { display: block; color: var(--quiet); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.mega-item i { font-style: normal; font-size: 10px; color: var(--faint); letter-spacing: .08em; padding-top: 2px; }
.mega-ico { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--ink); background: #fff; transition: background .2s, color .2s; }
.mega-item:hover .mega-ico { background: var(--ink); color: #fff; border-color: var(--ink); }
.mega-foot { display: flex; justify-content: space-between; margin-top: 6px; padding: 14px; border-top: 1px solid var(--rule); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 0 0 12px 12px; }
.mega-foot:hover { background: var(--mist); }
@media (max-width: 1100px) { .mega { left: 120%; } }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rule-2); background: #fff; cursor: pointer; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
body.menu-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: calc(var(--frame) + 84px) var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu-inner { max-width: 560px; margin: 0 auto; display: grid; }
.menu-k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); margin: 26px 0 6px; }
.menu a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.menu a i { font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
.menu-cta { display: grid; gap: 10px; margin-top: 30px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav-cta .btn-ink { display: none; }
}

/* --- page hero ------------------------------------------------------------ */
.page-hero h1 { font-size: clamp(42px, 4.9vw, 78px); }
@media (max-width: 980px) { .page-hero h1 { font-size: clamp(46px, 12vw, 96px); } }
.page-hero.stacked .hero-grid { grid-template-columns: minmax(0, 1fr); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; letter-spacing: .06em; color: var(--quiet); margin-bottom: 26px; }
.crumbs a { color: var(--quiet); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* --- art panels ------------------------------------------------------------- */
.art-panel {
  position: relative; margin: 0; width: 100%;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 16px;
  box-shadow: 0 40px 80px -44px rgba(15,23,42,.35), 0 12px 24px -18px rgba(15,23,42,.2);
  overflow: hidden; isolation: isolate;
}
.art-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px); background-size: 22px 22px; }
.art-panel > svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6% 4% 9%; }
.art-panel .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink); background: #fff; border: 1px solid var(--rule-2); padding: 6px 8px; border-radius: 6px; }
.art-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 11px; color: var(--quiet); letter-spacing: .02em; }
.art-panel.dark { background: var(--ink); border-color: var(--ink); }
.art-panel.dark::before { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.art-panel.dark .art-cap { color: #94a3b8; }
.art-panel.dark .tag { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.art-panel .s { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.art-panel .h { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.art-panel .r { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-panel .rf { fill: var(--red-soft); }
.art-panel .t { font: 600 11px var(--mono); fill: var(--ink); }
.art-panel .tq { font: 500 10px var(--mono); fill: var(--quiet); }
.art-panel .tr { font: 600 11px var(--mono); fill: var(--red); }
.art-panel .p { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0s); }
.art-panel.play .p { stroke-dashoffset: 0; }
.art-panel .o, .notes-card .o { opacity: 0; transition: opacity .6s var(--ease) var(--d, 0s); }
.art-panel.play .o, .notes-card.play .o { opacity: 1; }

/* --- rows ------------------------------------------------------------------- */
.rows { display: grid; gap: clamp(64px, 9vw, 128px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .row-text { order: 2; }
.row-n { font-size: 11.5px; letter-spacing: .12em; color: var(--quiet); text-transform: uppercase; }
.h3.big { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.03em; margin: 16px 0; font-weight: 800; }
.row-text > p { color: var(--muted); font-size: 16.5px; margin: 0; }
.points { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.points li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--muted); }
.points code { font: 600 12px/1.7 var(--mono); color: var(--ink); }
@media (max-width: 900px) { .row, .row.flip { grid-template-columns: minmax(0, 1fr); } .row.flip .row-text { order: 0; } }
.ink-band .row-text > p, .ink-band .points li { color: #cbd5e1; }
.ink-band .points, .ink-band .points li { border-color: rgba(255,255,255,.14); }
.ink-band .points code, .ink-band .h3 { color: #fff; }

/* --- notes card --------------------------------------------------------------- */
.notes-card { position: relative; margin: 0; background: #fff; border: 1px solid var(--rule-2); border-radius: 16px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 40px 80px -44px rgba(15,23,42,.3); }
.notes-card .tag { position: absolute; top: 14px; right: 14px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; border: 1px solid var(--rule-2); padding: 6px 8px; border-radius: 6px; }
.notes-title { font-size: 11.5px; letter-spacing: .14em; color: var(--ink); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.notes-card ol { list-style: none; margin: 0; padding: 0; }
.notes-card ol li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-3); }
.notes-card ol li:last-child { border-bottom: 0; }
.notes-card ol li .mono { font-size: 11.5px; color: var(--red); padding-top: 2px; }
.notes-card.dark { background: var(--ink); border-color: var(--ink); }
.notes-card.dark .notes-title { color: #fff; border-color: #fff; }
.notes-card.dark ol li { color: #e2e8f0; border-color: rgba(255,255,255,.12); }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.keys li:last-child { border-bottom: 0; }
.keys li > span:first-child { display: inline-flex; gap: 4px; align-items: center; flex: none; }
.keys li > span:last-child { text-align: right; }
.keys i { font-style: normal; color: var(--faint); font-size: 11px; }
kbd { font: 600 11.5px/1 var(--mono); min-width: 26px; padding: 6px 7px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink); text-align: center; }

/* --- schedule ------------------------------------------------------------------ */
.schedule { border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; }
.schedule-title { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--ink); color: #fff; font-size: 14px; }
.schedule-title .mono { font-size: 11px; letter-spacing: .14em; color: #94a3b8; }
.schedule table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.schedule th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); padding: 14px 18px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.schedule td { padding: 15px 18px; border-bottom: 1px solid var(--rule); color: var(--muted); vertical-align: top; }
.schedule td.first { color: var(--ink); font-weight: 600; white-space: nowrap; }
.schedule tr:last-child td { border-bottom: 0; }
.schedule tr:hover td { background: var(--mist); }

/* --- tiles, personas, related -------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--rule); border-radius: 18px; padding: 26px; background: #fff; }
.tile h3 { margin-bottom: 10px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.ink-band .tile { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.14); }
.ink-band .tile p { color: #cbd5e1; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.persona, .rel {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  padding: 24px; border: 1px solid var(--rule); border-radius: 18px; background: #fff;
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.persona::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--rule); transition: transform .6s var(--ease); }
.persona:hover, .rel:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(15,23,42,.4); }
.persona:hover::after { transform: scale(1.5); }
.persona i, .rel i { font: 600 11px var(--mono); font-style: normal; color: var(--quiet); letter-spacing: .1em; }
.persona b { font: 800 26px/1.05 var(--display); letter-spacing: -.03em; margin-top: auto; }
.persona small, .rel small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.rel-go { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-top: 6px; display: inline-flex; gap: 6px; }
.rel-go span { transition: transform .3s var(--ease); }
.persona:hover .rel-go span, .rel:hover .rel-go span, .linkcard:hover .rel-go span { transform: translateX(4px); }
@media (max-width: 1000px) { .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .personas { grid-template-columns: minmax(0, 1fr); } }

.section.tight { padding: clamp(48px, 7vw, 96px) 0; }
.related-head { margin-bottom: 22px; }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rel { min-height: 190px; }
.rel-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.rel b { font: 700 20px/1.15 var(--display); letter-spacing: -.02em; }
@media (max-width: 1000px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .related { grid-template-columns: minmax(0, 1fr); } }

.linkcard { text-decoration: none; color: inherit; }
.linkcard .rel-go { margin-top: 4px; }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* --- faq --------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 700 clamp(18px, 1.8vw, 22px)/1.3 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; flex: none; border: 1px solid var(--rule-2); border-radius: 50%; transition: background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 26px; max-width: 72ch; color: var(--muted); font-size: 16px; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--ink); text-underline-offset: 3px; }

/* --- footer, the wide title block --------------------------------------------- */
.titleblock { margin-top: 24px; display: grid; }
.tb-wide { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr 1fr; border-radius: 4px 4px 0 0; }
.tb-strip { grid-template-columns: 2fr 1fr .7fr .6fr 1.3fr 1.3fr 1fr; border-top: 0; border-radius: 0 0 4px 4px; }
.tb-grid .links.col { flex-direction: column; gap: 7px; }
.tb-grid .links.col a { font-size: 13px; color: var(--ink-3); }
.tb-note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.tb-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .tb-wide, .tb-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-wide > div, .tb-strip > div { border-left: 0 !important; border-top: 1px solid var(--ink) !important; }
  .tb-wide > div:nth-child(odd):not(:first-child), .tb-strip > div:nth-child(even) { border-left: 1px solid var(--ink) !important; }
  .tb-wide > div:first-child { grid-column: 1 / -1; border-top: 0 !important; }
  .tb-strip > div:nth-child(-n+2) { border-top: 0 !important; }
}

.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps.four { grid-template-columns: minmax(0, 1fr); } }
.inline-link { font-weight: 600; color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.lede a, .prose a { color: var(--ink); text-underline-offset: 3px; }

.tm { margin: 14px 0 0; font-size: 11px; color: var(--quiet); letter-spacing: .02em; line-height: 1.6; }
.mega-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-ico.letter { font: 800 15px/1 var(--display); color: var(--ink); }
.mega-item:hover .mega-ico.letter { color: #fff; }

/* The discipline the hero plan is being marked up for. */
.disc-chips { position: absolute; left: 12px; top: 12px; display: flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.92); border: 1px solid var(--rule); border-radius: 10px; backdrop-filter: blur(8px); }
.disc-chips span { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--quiet); padding: 6px 7px; border-radius: 6px; transition: background .3s, color .3s; }
.disc-chips span.on { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .disc-chips span { padding: 5px; font-size: 8.5px; } }

/* Discipline index on the home page: one row per trade, its drawing prefix large. */
.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.discipline { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 26px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); overflow: hidden; transition: background .35s var(--ease); }
.discipline::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0; }
.discipline > * { position: relative; z-index: 1; transition: color .35s; }
.discipline:hover::before { transform: none; }
.discipline:hover, .discipline:hover small, .discipline:hover i { color: #fff; }
.disc-letter { width: 64px; height: 64px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 4px; font: 800 34px/1 var(--display); letter-spacing: -.04em; }
.disc-body { display: grid; gap: 4px; }
.disc-body i { font: 600 10.5px var(--mono); font-style: normal; letter-spacing: .1em; color: var(--quiet); }
.disc-body b { font: 800 21px/1.1 var(--display); letter-spacing: -.02em; }
.disc-body small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.disc-go { font-size: 20px; transition: transform .4s var(--ease); }
.discipline:hover .disc-go { transform: translateX(4px); }
@media (max-width: 1000px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .disciplines { grid-template-columns: minmax(0, 1fr); } .disc-letter { width: 52px; height: 52px; font-size: 28px; } }

.dl-meta { margin: 18px 0 0; font-size: 12px; color: var(--quiet); letter-spacing: .02em; }
