/* Smokestack Partners site. Built from the Smokestack identity: IBM Plex Sans and Mono only, the ten text styles, copper used sparingly.
   Layout: editorial, left-aligned, wide measure for sections, narrow for reading. Charcoal and copper: warm white ground, charcoal ink, copper accent, muted teal for small details. */
:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --sunk: #EEEAE4;
  --ink: #1E2226;
  --muted: #5E6266;
  --line: #DDD8D1;
  --accent: #A65009;
  --accent-fill: #B85C14;
  --accent-ink: #FFFFFF;
  --accent-soft: #FAEADC;
  --second: #2E6F73;
  --gray: #8C8F93;
    --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --w: 1160px;
  --read: 68ch;
  --r: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141618; --surface: #1D2023; --sunk: #181A1D; --ink: #EEEAE4; --muted: #A9A49C; --line: #2E3236;
    --accent: #F5913F; --accent-fill: #F5913F; --accent-ink: #000000; --accent-soft: #3D2513; --second: #7FB7B5; --gray: #6D7176;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141618; --surface: #1D2023; --sunk: #181A1D; --ink: #EEEAE4; --muted: #A9A49C; --line: #2E3236;
    --accent: #F5913F; --accent-fill: #F5913F; --accent-ink: #000000; --accent-soft: #3D2513; --second: #7FB7B5; --gray: #6D7176;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-sans); font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: 30px; line-height: 36px; }
h3, .as-h3 { font-size: 21px; line-height: 28px; letter-spacing: -0.005em; }
.as-h4 { font-size: 17px; line-height: 26px; letter-spacing: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.lede { font-size: 20px; line-height: 30px; color: var(--muted); max-width: 60ch; }

.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--w); margin: 0 auto; }
.read { max-width: var(--read); }

/* skip link: off screen until a keyboard reaches it */
.skip { position: absolute; left: 8px; top: -60px; z-index: 70; padding: 8px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; font-weight: 600; }
.skip:focus { top: 8px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; flex: none; }
.logo { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.site-header .logo { width: auto; max-width: none; height: 60px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: var(--r); color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.nav .btn { margin-left: 8px; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: -16px; flex: none; background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.menu-btn { display: none; margin-left: auto; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r); padding: 8px 14px; cursor: pointer; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}
/* phones: a smaller logo and bar, and the logo gives way so the Menu button always fits */
@media (max-width: 480px) {
  .site-header .wrap { min-height: 68px; }
  .site-header .brand { flex: 0 1 167px; min-width: 0; }
  .site-header .logo { width: 100%; height: auto; }
}

/* without JavaScript: the menu stays open in the header, and controls that need a script are hidden */
html:not(.js) .menu-btn, html:not(.js) .theme-btn, html:not(.js) .wc-step { display: none; }
@media (max-width: 1100px) {
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0 0 12px; background: none; border: 0; }
  html:not(.js) .nav a { padding: 6px 8px; font-size: 15px; border-bottom: 0; }
  html:not(.js) .nav .btn { margin: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; padding: 12px 20px; border-radius: var(--r); border: 1.5px solid var(--accent-fill); background: var(--accent-fill); color: var(--accent-ink); cursor: pointer; white-space: nowrap; }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); background: var(--accent-fill); padding: 9px 16px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
/* the hero's main button: a dark button with a copper comet circling its edge, a soft glow trailing it */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn.glow { position: relative; isolation: isolate; background: transparent; border-color: transparent; color: var(--ink); }
.btn.glow::before, .btn.glow::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; animation: glow-turn 2.6s linear infinite; }
.btn.glow::after { inset: -1.5px; z-index: -1; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--glow-a), var(--line) 0 55%, color-mix(in srgb, var(--accent-fill) 60%, black) 72%, var(--accent-fill) 90%, #FFF3E6 96%, var(--line) 100%) border-box; }
.btn.glow::before { inset: -6px; z-index: -2; filter: blur(12px);
  background: conic-gradient(from var(--glow-a), transparent 0 72%, var(--accent-fill) 94%, transparent 100%); }
@keyframes glow-turn { to { --glow-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn.glow::before, .btn.glow::after { animation: none; } }
a:focus-visible, button:focus-visible, input:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--second); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.sunk { background: var(--sunk); border-block: 1px solid var(--line); }
.sec-intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.page-hero { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; max-width: 20ch; }

/* home hero */
.hero { padding-block: clamp(56px, 7vw, 100px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the work-order demo card in the hero */
.workcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px -28px rgba(30, 34, 38, .35); overflow: hidden; min-width: 0; display: grid; }
.workcard .scene { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.workcard .scene > .row:nth-child(3) { flex: 1; }
.workcard .scene:not(.on) { visibility: hidden; }
.workcard .wave { display: flex; align-items: center; gap: 2px; height: 30px; margin: 2px 0; }
.workcard .wave i { flex: 1 1 0; min-width: 1px; border-radius: 1px; background: var(--line); transition: background-color .15s ease; }
.workcard .wave i.on { background: var(--accent-fill); }
.workcard .shot { display: flex; align-items: center; gap: 14px; }
.workcard .photo { position: relative; display: block; flex: none; width: 108px; height: 72px; border-radius: 4px; overflow: hidden; }
.workcard .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.workcard .ph-mark { position: absolute; left: 33%; top: 18%; width: 39%; height: 45%; border: 2px dashed var(--second); border-radius: 2px; }
.work-demo { position: relative; min-width: 0; }
.wc-step { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .45); cursor: pointer; }
.wc-step:hover { border-color: var(--ink); }
.wc-step:focus:not(:focus-visible) { outline: none; }
.wc-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* beside the card where the page has room for them, under it where it doesn't */
.work-demo { padding-bottom: 56px; }
.wc-step { bottom: 0; }
.wc-step.next { right: 0; }
@media (min-width: 1300px) {
  .work-demo { padding-bottom: 0; }
  .wc-step { top: 50%; bottom: auto; transform: translateY(-50%); }
  .wc-step.next { right: -64px; }
}
.workcard .row { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.workcard .row:last-child { border-bottom: 0; }
.workcard .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.workcard .msg { font-size: 15px; font-style: italic; color: var(--ink); }
.workcard .arrow { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.workcard .arrow svg { flex: none; }
.workcard table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.workcard td { padding: 5px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.workcard td:first-child { color: var(--muted); width: 42%; padding-right: 12px; }
.workcard tr:last-child td { border-bottom: 0; }
.workcard .flagline { font-size: 15px; color: var(--second); display: flex; gap: 8px; }
.workcard .approve { display: flex; gap: 8px; flex-wrap: wrap; }
.workcard .approve span { font-size: 15px; font-weight: 650; padding: 6px 12px; border-radius: 4px; border: 1.5px solid var(--line); }
.workcard .approve span.go { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }

/* proof strip */
.proof { border-block: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof .item { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.proof .item + .item { padding-left: 24px; border-left: 1px solid var(--line); }
.proof .big { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.proof .small { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof .item:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof .item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .proof .wrap { grid-template-columns: 1fr; }
  .proof .item, .proof .item + .item { padding-left: 0; border-left: 0; }
  .proof .item + .item { border-top: 1px solid var(--line); }
}

/* grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card p { color: var(--muted); font-size: 15px; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 650; font-size: 15px; color: var(--accent); }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--second); letter-spacing: 0.08em; }
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.plain-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--accent-fill); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.card .plain-list li { font-size: 15px; color: var(--ink); padding-block: 9px; }
.card .plain-list li::before { top: 19px; }

/* steps (sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.steps .step { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); position: relative; }
.steps .step:last-child { border-right: 0; }
.steps .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); font-size: 15px; }
.steps .free { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 800px) { .steps .step { border-right: 0; border-bottom: 1px solid var(--line); } .steps .step:last-child { border-bottom: 0; } }

/* phase timeline */
.phases { display: flex; flex-direction: column; border-left: 2px solid var(--accent-fill); margin-left: 8px; }
.phase { position: relative; padding: 0 0 48px 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px 40px; }
.phase:last-child { padding-bottom: 0; }
.phase::before { content: ""; position: absolute; left: -10px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent-fill); }
.phase .main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.phase .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.phase .facts { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; font-size: 15px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.phase .facts div { display: flex; flex-direction: column; gap: 1px; }
.phase .facts b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.phase.optional::before { border-style: dashed; }
@media (max-width: 820px) { .phase { grid-template-columns: 1fr; } }

/* definition rows */
.spec { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec > * { padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; padding-right: 24px; }
.spec dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--sunk); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 650; }

/* split blocks */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 32px 40px; }
.principle { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 18px; }
.principle p { color: var(--muted); font-size: 15px; }

/* departments chips */
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 40px; }
.dept { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; }
.dept b { font-weight: 700; }
.dept span { color: var(--muted); font-size: 15px; }

/* quote */
.note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 860px; }
.note blockquote { margin: 0; font-family: var(--font-sans); font-size: 21px; line-height: 32px; font-style: italic; font-weight: 400; max-width: 62ch; }
.note cite { font-style: normal; font-size: 15px; color: var(--muted); }

/* CTA band */
.cta { background: var(--accent-fill); color: var(--accent-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 6vw, 80px); }
.cta h2 { max-width: 20ch; }
.cta p { opacity: .85; margin-top: 10px; max-width: 52ch; }
/* the band's button. Light theme: a white outline with a white comet circling it. Dark theme: smoked glass with a turning pale and teal rim. */
.cta .btn { position: relative; isolation: isolate; background: transparent; border-color: transparent; color: #FFFFFF; }
.cta .btn::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none; border: 2px solid transparent; animation: glow-turn 2.6s linear infinite;
  background: conic-gradient(from var(--glow-a), rgba(255, 255, 255, 0.3) 0 55%, rgba(255, 255, 255, 0.6) 75%, #FFFFFF 92%, rgba(255, 255, 255, 0.3) 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta .btn { background: rgba(0, 0, 0, 0.3); color: #FFF3E6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  :root:not([data-theme="light"]) .cta .btn::after { border-width: 1.5px; animation-duration: 4s; background: conic-gradient(from var(--glow-a), #FFF3E6, transparent 30%, var(--second) 50%, transparent 70%, #FFF3E6) border-box; }
}
:root[data-theme="dark"] .cta .btn { background: rgba(0, 0, 0, 0.3); color: #FFF3E6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:root[data-theme="dark"] .cta .btn::after { border-width: 1.5px; animation-duration: 4s; background: conic-gradient(from var(--glow-a), #FFF3E6, transparent 30%, var(--second) 50%, transparent 70%, #FFF3E6) border-box; }
@media (prefers-reduced-motion: reduce) { .cta .btn::after { animation: none !important; } }

/* use cases */
.uc { gap: 10px; }
.uc .time { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--second); }
.uc dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.uc dt { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.uc dd { margin: 2px 0 0; }
.card.closing { padding: 40px; gap: 16px; border-color: var(--accent-fill); }
.card.closing p { font-size: 17px; line-height: 26px; max-width: 62ch; }

/* sample document */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 70px -40px rgba(30, 34, 38, .4); padding: clamp(28px, 5vw, 64px); max-width: 880px; display: flex; flex-direction: column; gap: 28px; }
.doc header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.doc h2 { font-size: 30px; line-height: 36px; }
.doc h3 { font-size: 20px; }
.doc .stamp { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--second); border: 1.5px solid var(--second); padding: 4px 10px; align-self: flex-start; }
.doc .opps { display: flex; flex-direction: column; }
.doc .opp { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 170px); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc .opp:first-child { border-top: 1px solid var(--line); }
.doc .opp .n { font-family: var(--font-mono); color: var(--accent); }
.doc .opp .size { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 600px) { .doc .opp { grid-template-columns: 24px minmax(0, 1fr); } .doc .opp .size { grid-column: 2; text-align: left; } }

/* readiness check */
.check { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.check .q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.check .opts { display: flex; gap: 6px; }
.check .opts button { font: inherit; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.check .opts button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.check .result { padding: 22px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 8px; }
.check .result b { font-size: 21px; line-height: 28px; font-weight: 600; }
@media (max-width: 600px) { .check .q { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-sans); font-size: 21px; line-height: 28px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--font-sans); font-size: 21px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 24px; color: var(--muted); max-width: var(--read); display: flex; flex-direction: column; gap: 12px; }
.faq .a ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq-groups { display: flex; flex-direction: column; }
.faq-group { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: 40px; }
.faq-group:first-child { padding-top: 0; }
.faq-group h2 { padding-top: 18px; }
.faq-group h2 { font-size: 24px; line-height: 30px; position: sticky; top: 96px; align-self: start; scroll-margin-top: 96px; }
@media (max-width: 860px) { .faq-group { grid-template-columns: 1fr; gap: 20px; padding-block: 40px; } .faq-group h2 { position: static; } }
.doc-layout { display: grid; grid-template-columns: minmax(0, 880px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-notes { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.doc-notes .spec { grid-template-columns: 1fr; }
.doc-notes .spec dt { padding-bottom: 0; border-bottom: 0; }
.doc-notes .spec dd { padding-top: 4px; }
@media (max-width: 1040px) { .doc-layout { grid-template-columns: 1fr; } .doc-notes { position: static; max-width: var(--read); } }

/* demo blocks */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 40px; border-bottom: 1px solid var(--line); }
.demo:first-child { border-top: 1px solid var(--line); }
.demo .status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--second); }
.demo .screen { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; min-width: 0; }
.bubble { padding: 10px 14px; border-radius: 8px; max-width: 88%; }
.bubble.them { background: var(--sunk); align-self: flex-start; border-bottom-left-radius: 2px; }
.bubble.us { background: var(--accent-fill); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 2px;  font-weight: 500; }
.phone-num { font-size: 21px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

/* people */
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--sunk) 0 10px, var(--surface) 10px 20px); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.portrait img { display: block; width: 100%; height: auto; border-radius: 7px; }
.person .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 560px) { .person { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; } }

/* prose (privacy etc.) */
.prose { max-width: var(--read); display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 30px; line-height: 36px; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; }
.site-footer .logo { width: 100%; max-width: 267px; height: auto; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; line-height: 26px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } a.card:hover { transform: none; } }

/* service rows on the services overview */
.svc-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; }
@media (max-width: 700px) { .svc-row { grid-template-columns: minmax(0, 1fr) auto; } .svc-row .num { grid-column: 1 / -1; } }

/* animated backgrounds (drawn by site.js): canvas at the back, a fade on the left so text stays readable */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
canvas.bg-anim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; display: block; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 45%, transparent 65%); }

/* spacing helpers, on the identity's steps only */
.after { margin-top: 32px; }
.stack.tight { gap: 8px; }
.grid.roomy { gap: 48px; }
.small { font-size: 15px; line-height: 22px; }

/* work card animation (site.js): typed email, then the order fills in */
.workcard .step { transition: opacity .25s ease, transform .25s ease; }
.workcard .step.pending { opacity: 0; transform: translateY(4px); }
.workcard tr.step.pending { transform: none; }
.workcard .untyped { color: transparent; }
.workcard .caret { display: inline-block; width: 1.5px; height: 1.05em; margin: 0 1px; background: var(--accent-fill); vertical-align: -0.15em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .workcard .step { transition: none; } .workcard .caret { animation: none; } }
.workcard .src { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.site-footer .contact { color: var(--ink); user-select: all; }
.site-footer .legal a { color: var(--muted); }
