/* ==========================================================================
   Knowlton Industries — main stylesheet
   Dark, neutral, industrial. System fonts only. No external requests.
   ========================================================================== */

:root {
	--ink:        #0e1113;
	--surface:    #15181b;
	--surface-2:  #1b1f23;
	--paper:      #f2f0ec;
	--paper-ink:  #1c1e20;
	--line:       rgba(255, 255, 255, 0.09);
	--line-soft:  rgba(255, 255, 255, 0.05);
	--text:       #e8eaec;
	--muted:      #9aa3ab;
	--accent:     #d9682f;
	--accent-hi:  #e88f4e;
	--proven:     #58b98b;
	--active:     #d9b44a;
	--planned:    #7f8a92;
	--exper:      #9b8ecf;
	--oper:       #5aa7c7;
	--font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--maxw:       1120px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	/* Long tokens (emails, paths, hashes) break rather than scroll the page. */
	overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, pre { font-family: var(--font-mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--accent); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 17, 19, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none !important; }
.brand-logo { height: 42px; width: auto; display: block; mix-blend-mode: screen; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	color: var(--text); font-size: 14.5px; letter-spacing: 0.02em;
}
.nav-list a:hover { color: var(--accent-hi); text-decoration: none; }
.nav-toggle { display: none; }

/* Projects dropdown. Opens on hover and on focus for pointer users, and as a
   real disclosure widget (aria-expanded) for keyboard and touch. */
.nav-list .has-sub { position: relative; }
.nav-sub-toggle {
	background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
	font: inherit; font-size: 14.5px; letter-spacing: 0.02em; color: var(--text);
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}
.nav-sub-toggle:hover, .nav-sub-toggle[aria-expanded="true"] { color: var(--accent-hi); }
.nav-caret {
	width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 5px solid currentColor; transition: transform 0.15s ease;
}
.nav-sub-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-sub {
	display: none; position: absolute; top: 100%; left: -14px; z-index: 40;
	min-width: 232px; list-style: none; margin: 0; padding: 8px 0;
	background: var(--ink); border: 1px solid var(--line); border-radius: 4px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.nav-sub li { margin: 0; }
.nav-sub a {
	display: block; padding: 11px 18px; font-size: 15px; color: var(--text);
	white-space: nowrap; min-height: 44px; line-height: 22px;
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--accent-hi); }
.nav-list .has-sub:hover .nav-sub,
.nav-list .has-sub:focus-within .nav-sub,
.nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-block; padding: 11px 22px; border: 1px solid var(--line);
	color: var(--text); font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em;
	border-radius: 3px; text-decoration: none !important; transition: background 0.15s, border-color 0.15s;
	background: transparent; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #c25a26; color: #fff; }
.nav-cta { padding: 8px 16px; font-size: 13.5px; }

/* Breadcrumbs ------------------------------------------------------------- */
.breadcrumbs { border-bottom: 1px solid var(--line-soft); background: var(--ink); }
.breadcrumbs ol {
	list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
	margin: 0; padding: 10px 0; font-family: var(--font-mono); font-size: 12px;
	letter-spacing: 0.06em;
}
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "\2192"; margin-right: 6px; color: var(--planned); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-hi); }
.breadcrumbs li[aria-current] { color: var(--text); }

/* Sections --------------------------------------------------------------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: 56px 0; }
.section--flush { border-bottom: 0; }
.kicker {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--accent-hi); margin: 0 0 14px;
	display: flex; align-items: center; gap: 12px;
}
.kicker::after { content: ""; flex: 0 0 42px; height: 1px; background: var(--line); }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; }
.section h3 { font-size: 20px; margin-top: 1.6em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46em; }
.measure { max-width: 46em; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 120px 0 96px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-title {
	font-size: clamp(40px, 7vw, 76px); font-weight: 820; letter-spacing: 0.005em;
	margin: 0 0 6px;
}
.hero-logo { margin: 0 0 18px; }
.hero-logo img { width: min(720px, 92%); height: auto; display: block; margin-left: -8px; mix-blend-mode: screen; }
.hero-tag {
	font-family: var(--font-mono); letter-spacing: 0.42em; text-transform: uppercase;
	color: var(--accent-hi); font-size: clamp(12px, 1.6vw, 15px); margin: 0 0 34px;
}
.hero-lede { font-size: clamp(19px, 2.4vw, 24px); max-width: 34em; color: var(--text); }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Badges ------------------------------------------------------------------ */
.badge {
	display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
	letter-spacing: 0.14em; padding: 3px 9px; border-radius: 2px;
	border: 1px solid; vertical-align: middle; white-space: nowrap;
	max-width: 100%;
}
.badge--commercial   { color: var(--accent-hi); border-color: var(--accent); }
.badge--proven       { color: var(--proven);    border-color: var(--proven); }
.badge--operational  { color: var(--oper);      border-color: var(--oper); }
.badge--active       { color: var(--active);    border-color: var(--active); }
.badge--experimental { color: var(--exper);     border-color: var(--exper); }
.badge--planned      { color: var(--planned);   border-color: var(--planned); }

/* Card grids -------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: 4px; padding: 26px 26px 22px; position: relative;
	/* Grid items default to min-width:auto; a long token would widen the track
	   and give the whole page a horizontal scrollbar on narrow viewports. */
	min-width: 0; overflow-wrap: anywhere;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0.8em; }
.card .badge { position: static; margin-bottom: 14px; }
.card-role {
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.card a.card-link { font-size: 14px; }
a.card-wrap { display: block; color: inherit; text-decoration: none !important; }
a.card-wrap:hover .card, a.card-wrap:focus-visible .card { border-color: var(--accent); }
a.card-wrap:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 5px; }
a.card-wrap .card { height: 100%; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card-wrap:hover .card { transform: translateY(-2px); }
.card-go { display: block; margin-top: 14px; font-size: 14px; color: var(--accent-hi); }
@media (prefers-reduced-motion: reduce) { a.card-wrap .card { transition: border-color 0.15s ease; } a.card-wrap:hover .card { transform: none; } }

/* Pipeline diagram -------------------------------------------------------- */
.pipeline {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
	list-style: none; padding: 0; margin: 2rem 0;
}
.pipeline li {
	font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
	border: 1px solid var(--line); background: var(--surface);
	padding: 10px 16px; border-radius: 3px; color: var(--text);
}
.pipeline li.pipeline-end { border-color: var(--accent); color: var(--accent-hi); }
.pipeline li + li { position: relative; margin-left: 18px; }
.pipeline li + li::before {
	content: "\2192"; position: absolute; left: -21px; top: 50%;
	transform: translateY(-50%); color: var(--muted); font-size: 14px;
}

/* Fact rows / stat strip --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 2.2rem 0; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat-n { font-size: clamp(22px, 3vw, 30px); font-weight: 780; font-variant-numeric: tabular-nums; }
.stat-l { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Hash comparison table ------------------------------------------------------ */
.dtable.hashes td { font-size: 13px; vertical-align: middle; }
.dtable.hashes td.h { font-size: 11px; letter-spacing: -0.01em; word-break: break-all; color: var(--muted); max-width: 300px; }
.dtable.hashes td.match { color: var(--proven); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.dtable.hashes td.differ { color: var(--active); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.dtable.hashes td:first-child { white-space: normal; font-size: 14px; }

/* Definition tables -------------------------------------------------------- */
.dtable { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 15.5px; }
.dtable th, .dtable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dtable td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.dtable td.match { color: var(--proven); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; }

/* Verbatim source quotations ----------------------------------------------- */
blockquote {
	margin: 1.6rem 0; padding: 0 0 0 20px;
	border-left: 2px solid var(--accent);
	color: var(--text); font-size: 16px; line-height: 1.6;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
	display: block; margin-top: 0.6em;
	font-family: var(--font-mono); font-size: 11.5px; font-style: normal;
	letter-spacing: 0.05em; color: var(--muted);
	overflow-wrap: anywhere;
}
blockquote cite::before { content: "— "; }
.report blockquote { border-left-color: #9a938a; color: var(--paper-ink); }
.report blockquote cite { color: #6b655c; }

/* Two-column claim panels -------------------------------------------------- */
.claims { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 2rem 0; }
.claims-panel { border: 1px solid var(--line); border-radius: 4px; padding: 26px; background: var(--surface); }
.claims-panel h3 { margin-top: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.claims-panel ul { margin-bottom: 0; }
.claims-panel li { margin-bottom: 0.55em; color: var(--muted); font-size: 15.5px; }
.claims-panel--yes h3 { color: var(--proven); }
.claims-panel--no h3 { color: var(--planned); }

/* Document / report excerpt ------------------------------------------------ */
.report {
	background: var(--paper); color: var(--paper-ink);
	border-radius: 4px; padding: 34px 38px; margin: 2.2rem 0;
	font-size: 15px; line-height: 1.6;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.report h3 { color: var(--paper-ink); font-size: 17px; margin: 1.4em 0 0.5em; }
.report h3:first-child { margin-top: 0; }
.report .rtag {
	font-family: var(--font-mono); font-size: 11px; padding: 1px 6px;
	border: 1px solid #9a938a; border-radius: 2px; color: #5d5850; margin-right: 6px;
}
.report ul { margin-bottom: 0.4em; }
.report li { margin-bottom: 0.5em; }
.report-caption { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: -1rem; margin-bottom: 2rem; }

/* Pricing ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2.2rem 0; }
.pricing--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pricing--4 .price-card { padding: 26px 22px; }
.pricing--4 .price-n { font-size: 28px; }
.price-card { border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px; background: var(--surface); display: flex; flex-direction: column; }
.price-card--featured { border-color: var(--accent); background: var(--surface-2); }
.price-tier { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.price-n { font-size: 34px; font-weight: 800; }
.price-n small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.price-card li { padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--muted); }
.price-card li:first-child { border-top: 0; }
.price-note { font-size: 13px; color: var(--muted); }

/* Screenshots / figures ---------------------------------------------------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 2.2rem 0; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 4px; width: 100%; }
.shot figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 2.2rem 0; }
.covers .shot img { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.eyes-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 2rem 0; }
.eyes-strip img { background: #000; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }

/* Development-history timeline ---------------------------------------------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 22px; }
.timeline li::before {
	content: ""; position: absolute; left: -31px; top: 7px; width: 9px; height: 9px;
	border-radius: 50%; background: var(--surface); border: 1px solid var(--planned);
}
.timeline li.is-key::before { background: var(--accent); border-color: var(--accent); }
.timeline .t-date {
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
	color: var(--accent-hi); display: block; margin-bottom: 4px;
}
.timeline .t-body { color: var(--muted); font-size: 15.5px; }
.timeline .t-body strong { color: var(--text); font-weight: 600; }

/* Spec list (architecture key/value) ----------------------------------------- */
.spec { list-style: none; margin: 1.6rem 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec .v { color: var(--text); }
.spec .v .muted { color: var(--muted); }

/* Section navigation (on-page contents) -------------------------------------- */
.section-nav { border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; margin: 0 0 2.4rem; background: var(--surface); }
.section-nav h2 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.section-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 6px 22px; counter-reset: sn; }
.section-nav li { counter-increment: sn; font-size: 14.5px; }
.section-nav li::before { content: counter(sn, decimal-leading-zero) " "; font-family: var(--font-mono); font-size: 11px; color: var(--planned); }
.section-nav a { color: var(--text); }
.section-nav a:hover { color: var(--accent-hi); }

/* Mono diagram block ------------------------------------------------------- */
pre.diagram {
	background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
	padding: 24px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: var(--text);
	margin: 2rem 0;
}
pre.diagram .dim { color: var(--muted); }

/* Notices ------------------------------------------------------------------ */
.notice-block {
	border: 1px solid var(--active); border-radius: 4px; padding: 18px 22px;
	margin: 2rem 0; font-size: 15px; background: rgba(217, 180, 74, 0.06);
}
.notice-block--warn { border-color: var(--accent); background: rgba(217, 104, 47, 0.07); }
/* Only the block's own leading <strong> is the label; inline emphasis stays inline. */
.notice-block > strong:first-child { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* Forms -------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 2rem 0; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
	background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
	color: var(--text); padding: 12px 14px; font-size: 15.5px; font-family: var(--font-sans);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer ------------------------------------------------------------------- */
.site-footer { padding: 64px 0 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: min(300px, 100%); height: auto; display: block; margin-left: -8px; mix-blend-mode: screen; }
.footer-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hi); margin-top: 12px; }
.footer-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-hi); text-decoration: none; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }
.footer-note { max-width: 34em; }

/* 404 ---------------------------------------------------------------------- */
.error-404 { padding: 140px 0; text-align: center; }
.error-404 .kicker { justify-content: center; }
.error-404 .kicker::after { display: none; }

/* Utility ------------------------------------------------------------------ */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.status-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
	.pricing--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.grid--3, .pricing { grid-template-columns: 1fr; }
	.spec li { grid-template-columns: 1fr; gap: 4px; }
	.section-nav ol { grid-template-columns: 1fr; }
	.pricing--4 { grid-template-columns: 1fr; }
	.grid--2, .claims, .shots { grid-template-columns: 1fr; }
	.covers { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.eyes-strip { grid-template-columns: repeat(3, 1fr); }
	.form-grid { grid-template-columns: 1fr; }
	.section { padding: 60px 0; }
	.hero { padding: 84px 0 64px; }
}
@media (max-width: 700px) {
	/* The longest status label is wider than a phone column; let it wrap
	   rather than push the whole page sideways. */
	.badge { white-space: normal; }
	.form-field { min-width: 0; }
	.brand-logo { height: 34px; }
}
/* The nav collapses at 900px, not 700px: with the Projects dropdown the
   desktop row no longer fits a tablet-width header and pushed the page
   sideways at 768px. */
@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; background: none; border: 1px solid var(--line);
		border-radius: 3px; cursor: pointer;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative;
	}
	.nav-toggle-bar::before { position: absolute; top: -6px; }
	.nav-toggle-bar::after { position: absolute; top: 6px; }
	.site-nav {
		display: none; position: absolute; top: 66px; left: 0; right: 0;
		background: var(--ink); border-bottom: 1px solid var(--line);
		padding: 18px 24px 26px; flex-direction: column; align-items: flex-start; gap: 18px;
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 14px; align-items: stretch; width: 100%; }
	.nav-list a { font-size: 17px; }
	.nav-list > li > a, .nav-sub-toggle { display: flex; align-items: center; min-height: 46px; width: 100%; }
	.nav-sub-toggle { justify-content: space-between; font-size: 17px; color: var(--text); }
	/* Accordion on touch: in flow, full width, generous tap targets. */
	.nav-sub {
		position: static; min-width: 0; width: 100%; box-shadow: none;
		background: rgba(255, 255, 255, 0.03); margin: 4px 0 6px; padding: 4px 0;
	}
	.nav-sub a { padding: 13px 18px; font-size: 16px; white-space: normal; }
	.nav-list .has-sub:hover .nav-sub, .nav-list .has-sub:focus-within .nav-sub { display: none; }
	.nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }
}

/* --- Proof gates: the "what we need to prove next" list ------------------ */
.proof-gates { margin-top: 2.4rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-gate { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 28px; background: var(--bg); align-items: start; }
.proof-gate__n { font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--accent); opacity: .85; padding-top: 2px; }
.proof-gate h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.proof-gate p { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 620px) {
	.proof-gate { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
	.proof-gate__n { font-size: 22px; }
}

/* Compact variant used on the front page. */
.proof-gates--compact .proof-gate { padding: 18px 24px; align-items: center; grid-template-columns: 48px 1fr; }
.proof-gates--compact .proof-gate h3 { font-size: 17px; margin: 0; font-weight: 600; }
.proof-gates--compact .proof-gate__n { font-size: 22px; padding-top: 0; }
.proof-gates--compact .proof-gate p { font-size: 14px; margin-top: 3px; }

/* --- Featured system card (Atlas on the front page) ---------------------- */
.feature-card { border: 1px solid var(--accent); background: linear-gradient(180deg, rgba(214,106,48,.07), transparent 62%); padding: 30px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.feature-card figure { margin: 0; }
.feature-card figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.feature-card h3 { font-size: clamp(23px, 2.5vw, 30px); margin: 6px 0 12px; }
@media (max-width: 860px) { .feature-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; } }

/* --- Try strip: the one thing a visitor can touch today ------------------ */
.try-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(214,106,48,.10), rgba(214,106,48,.02) 60%, transparent); }
.try-strip .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.try-strip__label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.try-strip h2 { font-size: clamp(19px, 2.1vw, 25px); margin: 0 0 6px; line-height: 1.25; }
.try-strip p.try-strip__sub { margin: 0; color: var(--muted); font-size: 15px; max-width: 68ch; }
.try-strip__cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 780px) {
	.try-strip .wrap { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Proof band: hard figures, no adjectives ----------------------------- */
.proof-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.4rem; }
.proof-stat { background: var(--bg); padding: 26px 24px; }
.proof-stat__n { font-family: var(--mono); font-size: clamp(26px, 3vw, 36px); line-height: 1; color: var(--text); display: block; margin-bottom: 10px; }
.proof-stat__n em { font-style: normal; color: var(--accent); }
.proof-stat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .proof-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .proof-band { grid-template-columns: 1fr; } }
