/* Hallmark · shape: Marquee Hero (draw 1ae97c) · genre: modern-minimal · theme: brand · brand: Carle Systems (spec 2026-11-08) · job: hire
 * paper: oklch(100% 0 0) · accent: oklch(47.6% 0.078 162) · surface: absolute · display: Outfit · body: Outfit · hero: Drafting floor (/) · nav: floating pill · footer: mast · signature: the CS cube assembling itself from its four real pieces
 * 2026-11-08 "Panels drawn in cubes" (owner pick from five mockups): tighter section steps, groups on paper-2 / paper-3 panels, small drawings in the cube's own 2:1 geometry, and a black close with Hunter's photo
 * axes: light/geometric-sans/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: H, the first cut split the tagline into two lines beside a side column and left the cube floating; set the tagline across the container on one line so the head carries the base. A fresh-context review then found the tagline said nothing only Carle Systems could say and the field's left two thirds sat empty; the plain sentence (set large, in ink) and the actions now fill that space at the cube's base, and the tagline's ink is flush with both container edges */
/* Hallmark · waive 7b · surface: absolute, --color-ink is #000000 in the locked brand tokens · Carle Systems brand ink is pure black to match the logo's black faces; white paper and black ink both come from the brand spec */
/* Hallmark · dismissed 77 · /contact, /contact/sent, /vibe-coding-quiz, /privacy, /terms, /404 and every /blog route are one task, one document or one article under a page head; landing-strip sections would bury the form, the quiz or the text */
/* Hallmark · waive 77 · /services Training holds one row, the AI Enablement Workshop · the workshop is the only training service Carle Systems offers, so a second row or a picture would be invented */
/* Hallmark · waive 78 · the h2s on /blog are the fourteen post titles in one list, set at --text-title · a display-size title on every post row would turn the blog list into fourteen sections */
/* Hallmark · waive 59 · sections sit 80px apart (64px on tablets, 56px on phones) · the owner found the 120-176px steps left too much empty space (2026-11-08) and picked the tighter "Panels drawn in cubes" mockup */
/* Hallmark · waive 80 · the group pictures are drawings built from the logo's own cube geometry, not stock art · the owner picked them over photographs (2026-11-08); real screenshots stay wherever there is real work to show */
/* Hallmark · hero: Drafting floor (/), page head (/services, /contact, /vibe-coding-quiz, /blog, /about, /privacy, /terms) */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Component sizes (no colours or faces here; those live in tokens.css) ---------- */
:root {
  --nav-h: 64px;
  --head-pad: var(--space-sm);
  --head-h: calc(var(--nav-h) + 2 * var(--head-pad));
  --control-h: 52px;
  --control-h-sm: 44px;
  --radius-panel: 24px;
}

body { line-height: 1.7; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-paper); font-weight: 500; text-decoration: none; }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Sections ---------- */
/* A section owns its top space; the one before a band or the footer also owns its bottom space. */
.section { padding-top: var(--section-gap); }
.section--s { padding-top: var(--section-gap-s); }
.section--l { padding-top: var(--section-gap-l); }
main > .section:last-child, .section:has(+ .band) { padding-bottom: var(--section-gap); }
.band { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.section-head .lead { color: var(--color-ink-2); }

/* Interior page header: h1 and one lead sentence, left aligned. */
.page-head { padding-top: var(--space-3xl); }
.page-head + .section { padding-top: var(--section-gap-s); }
.page-head h1 { max-width: 24ch; font-size: var(--text-display-s); line-height: 1.05; }
.page-head .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }

/* ---------- The mark ---------- */
.cs-mark path { fill: var(--color-ink); }
.cs-mark .cs-mark__s { fill: var(--color-accent); }

/* ---------- Nav: a floating pill ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-block: var(--head-pad); pointer-events: none; }
.nav { display: flex; align-items: center; gap: var(--space-md); min-height: var(--nav-h); padding-inline: var(--space-lg) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); pointer-events: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; margin-right: auto; border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-md); font-weight: 600; letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.nav__brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__mark { flex-shrink: 0; width: auto; height: 28px; }

.nav__menu { display: flex; align-items: center; gap: var(--space-lg); position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: inherit; }
.nav__links { display: flex; align-items: center; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav__link:hover { background: var(--color-paper-2); color: var(--color-ink); }
.nav__link:active { background: var(--color-paper-3); }
.nav__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__link[aria-current="page"] { background: var(--color-paper-3); color: var(--color-ink); }

.nav__toggle { display: none; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: var(--color-paper-2); }
.nav__toggle:active { transform: translateY(1px); }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__toggle:disabled { opacity: 0.55; cursor: not-allowed; }

/* Under 60rem the links sit behind the Menu button: a native popover, so it opens and closes on Escape without JavaScript. */
@media (max-width: 60rem) {
  .nav { padding-inline: var(--space-md) var(--space-xs); }
  .nav__toggle { display: inline-flex; }
  .nav__menu:not(:popover-open) { display: none; }
  .nav__menu:popover-open { position: fixed; inset: calc(var(--head-h) - var(--space-2xs)) var(--gutter) auto; display: grid; gap: var(--space-lg); width: auto; height: auto; max-height: calc(100dvh - var(--head-h) - var(--gutter)); margin: 0; padding: var(--space-lg); overflow: auto; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper); color: var(--color-ink); opacity: 1; transform: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
  @starting-style { .nav__menu:popover-open { opacity: 0; transform: translateY(-6px); } }
  .nav__links { display: grid; gap: var(--space-3xs); }
  .nav__link { min-height: 48px; padding-inline: var(--space-md); font-size: var(--text-lg); }
  .nav__cta { width: 100%; }
}

/* ---------- Buttons: one primary, one quiet secondary ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--color-accent-2); background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { border-color: var(--color-accent); background: var(--color-accent); }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; flex-shrink: 0; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin 800ms linear infinite; }
@keyframes btn-spin { to { transform: rotate(1turn); } }
.btn--quiet { border-color: var(--color-rule); background: var(--color-paper); color: var(--color-ink); }
.btn--quiet:hover { border-color: var(--color-muted); background: var(--color-paper-2); }
.btn--quiet:disabled:hover, .btn--quiet[aria-disabled="true"]:hover { border-color: var(--color-rule); background: var(--color-paper); }
.btn--sm { min-height: var(--control-h-sm); padding: 0 var(--space-md); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }

/* ---------- Text links ---------- */
.link, main a:not([class]) { border-radius: var(--space-3xs); color: var(--color-accent); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-micro) var(--ease-out); }
.link:hover, main a:not([class]):hover { color: var(--color-accent-2); }
.link:active, main a:not([class]):active { color: var(--color-ink); }
.link:focus-visible, main a:not([class]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Lists ---------- */
.list { display: grid; gap: var(--space-xs); margin: 0; padding-left: var(--space-lg); }
.list li::marker { color: var(--color-muted); }
.list--check { padding-left: 0; list-style: none; }
.list--check li { position: relative; padding-left: var(--space-xl); }
.list--check li::before { content: ""; position: absolute; left: 0.25em; top: 0.6em; width: 0.75em; height: 0.4em; border-bottom: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); transform: rotate(-45deg); }

/* What is offered: a service's name with its short line, rows parted by hairlines. No prices (docs/adr/0003). */
.offers { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-xs); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.offer__name { margin: 0; font-family: var(--font-display); font-size: var(--text-title); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
.offer__line { max-width: 60ch; color: var(--color-ink-2); }

/* ---------- Surfaces ---------- */
.card { padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.well { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; line-height: 1; white-space: nowrap; }
/* Panels group a section's parts: tight inside, generous between sections. paper-2, or paper-3 for the one that leads. */
.panel { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.panel--tint { background: var(--color-paper-3); }
/* When a service fits: a white pill beside its name. */
.when { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; line-height: 1.2; white-space: nowrap; }
/* A link set in ink with a green underline, for links that sit among headings and names. */
.tlink { border-radius: var(--space-3xs); color: var(--color-ink); text-decoration-line: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; transition: color var(--dur-micro) var(--ease-out); }
.tlink:hover { color: var(--color-accent-2); }
.tlink:focus-visible, .name-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* A heading that is also a link: plain until hovered. */
.name-link { border-radius: var(--space-3xs); color: inherit; text-decoration: none; }
.name-link:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

/* ---------- Drawings: the CS cube's 2:1 isometric geometry in the logo's faces (white top, black left, green right) ---------- */
.iso { display: block; flex-shrink: 0; height: auto; overflow: visible; }
.iso polygon, .iso line { vector-effect: non-scaling-stroke; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.iso .ft { fill: var(--color-paper); stroke: var(--color-ink); }
.iso .fl { fill: var(--color-ink); stroke: var(--color-ink); }
.iso .fr { fill: var(--color-accent); stroke: var(--color-ink); }
.iso .rf { fill: var(--color-ink); stroke: none; }
.iso .gh { fill: none; stroke: var(--color-muted); stroke-dasharray: 3 6; }
.iso .xe { fill: none; stroke: var(--color-ink); }
/* Line icons: 24px, one 1.75 stroke, in the accent wherever they sit. */
.ico { display: block; flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* A fact nobody has given yet: a visible blank, never an invented value. */
.fill { padding: 0 var(--space-2xs); border: 1px dashed var(--color-muted); border-radius: var(--radius-card); color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-lg); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field__label, .choices__legend { color: var(--color-ink); font-weight: 500; line-height: 1.4; }
.field__opt { color: var(--color-muted); font-weight: 400; }
.field__help { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.5; }
.field__error { color: var(--color-error); font-size: var(--text-sm); font-weight: 500; line-height: 1.5; }
.field__error:empty { display: none; }
.input { width: 100%; min-height: var(--control-h); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font: inherit; line-height: 1.5; transition: border-color var(--dur-micro) var(--ease-out); }
.input::placeholder { color: var(--color-muted); opacity: 1; }
.input:hover { border-color: var(--color-ink-2); }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.input:disabled { opacity: 0.55; cursor: not-allowed; background: var(--color-paper-2); }
.input[readonly] { background: var(--color-paper-2); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
textarea.input { min-height: 10rem; resize: vertical; }
select.input { padding-right: var(--space-xl); cursor: pointer; }

.choices { display: grid; gap: var(--space-xs); min-width: 0; margin: 0; padding: 0; border: 0; }
.choices__legend { margin-bottom: var(--space-2xs); padding: 0; }
.choices__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 var(--gap-columns); }
.choice { display: flex; align-items: flex-start; gap: var(--space-sm); min-height: 44px; padding-block: var(--space-xs); line-height: 1.5; cursor: pointer; }
.choice input { flex-shrink: 0; width: 20px; height: 20px; margin: var(--space-3xs) 0 0; accent-color: var(--color-accent); cursor: pointer; }
.choice input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.choice input:disabled { cursor: not-allowed; }
.choices[aria-invalid="true"] .choices__legend { color: var(--color-error); }

/* The message at the top of a form: role="alert", tabindex="-1" so it can take focus. */
.alert { padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
.alert:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.alert--error { border-color: var(--color-error); background: color-mix(in oklab, var(--color-error) 6%, var(--color-paper)); }
.alert--success { border-color: var(--color-success); background: color-mix(in oklab, var(--color-success) 6%, var(--color-paper)); }

/* ---------- Prose: blog posts and legal pages ---------- */
.prose { max-width: 60ch; line-height: 1.7; }
.prose > * { margin-block-end: 0; }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { margin-top: var(--space-2xl); font-size: var(--text-2xl); line-height: 1.15; }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-xl); line-height: 1.2; }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-sm); }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li + li { margin-top: var(--space-xs); }
.prose li::marker { color: var(--color-muted); }
.prose a { border-radius: var(--space-3xs); color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-micro) var(--ease-out); }
.prose a:hover { color: var(--color-accent-2); }
.prose a:active { color: var(--color-ink); }
.prose a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-ink-2); color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; }
.prose code, .prose pre { font-family: var(--font-body); }
.prose code { padding: var(--space-3xs) var(--space-2xs); border-radius: var(--radius-card); background: var(--color-paper-2); font-size: 0.94em; }
.prose pre { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); white-space: pre-wrap; overflow-wrap: break-word; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; border-radius: var(--radius-card); }
.prose figcaption, .prose caption { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.5; text-align: left; }
.prose caption { caption-side: bottom; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.prose th { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.prose td:first-child { font-weight: 500; }

/* ---------- Home hero: Drafting floor. The tagline, the plain sentence and the actions on the left; the real logo standing on a light isometric floor on the right, the floor running off the page edge. ---------- */
/* Source order is words, then the drawing, so a screen reader and the phone layout meet the h1 first. */
.hero { padding-top: var(--space-xs); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: var(--space-lg); }
.hero__title { max-width: none; font-size: clamp(3.5rem, 8.4vw + 0.5rem, 8.5rem); line-height: 0.93; }
.hero__lead { max-width: 24ch; margin-top: var(--space-lg); color: var(--color-ink-2); font-size: clamp(1.1875rem, 0.7vw + 0.95rem, 1.625rem); line-height: 1.42; }
.hero__actions { margin-top: var(--space-xl); }
.hero__art { margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container)) / 2))); }
.hero__svg { width: 100%; height: auto; overflow: visible; }
.hero__floor { fill: var(--color-paper-2); }
.hero__grid line { stroke: var(--color-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* The signature: the cube assembles from its four real pieces along its own isometric axes (slope 1:2), then holds still.
 * Only when motion is welcome: under reduce the per-piece names and delays never apply, so the cube is whole from the first frame. */
.cs-mark--assemble { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .cs-mark--assemble > path { animation: 760ms var(--ease-out) backwards; }
  .cs-mark--assemble .cs-mark__c { animation-name: cs-from-lower-left; }
  .cs-mark--assemble .cs-mark__s { animation-name: cs-from-lower-right; animation-delay: 140ms; }
  .cs-mark--assemble .cs-mark__roof { animation-name: cs-from-above; animation-delay: 340ms; }
  .cs-mark--assemble .cs-mark__diamond { animation-name: cs-land; animation-delay: 620ms; }
}
@keyframes cs-from-lower-left { from { opacity: 0; transform: translate(-96px, 48px); } }
@keyframes cs-from-lower-right { from { opacity: 0; transform: translate(96px, 48px); } }
@keyframes cs-from-above { from { opacity: 0; transform: translate(0, -56px); } }
@keyframes cs-land { from { opacity: 0; transform: translate(0, -120px); } }

@media (max-width: 60rem) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .hero__title { font-size: clamp(3.25rem, 15.5vw, 4.5rem); }
  .hero__lead { margin-top: var(--space-md); font-size: var(--text-lead); }
  .hero__actions { margin-top: var(--space-lg); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__art { width: min(86%, 34rem); margin-top: var(--space-xs); margin-left: auto; }
}
@media (max-width: 40rem) {
  .hero__actions .btn { flex-basis: 100%; }
}

/* ---------- The close: every page ends on its one black panel, the top-left corner cut on the logo's 2:1 angle ----------
 * The line as an h2, an optional lead, the one action with the email address beside it, and Hunter's photo where the page has no portrait of its own. */
.close__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-xl); padding: var(--space-2xl) var(--space-2xl) var(--space-xl); background: var(--color-ink); color: var(--color-paper); clip-path: polygon(0 64px, 128px 0, 100% 0, 100% 100%, 0 100%); }
.close__panel h2 { max-width: 18ch; color: var(--color-paper); font-size: clamp(2rem, 1.6vw + 1.4rem, 3.125rem); }
.close__lead { max-width: 44ch; margin-top: var(--space-md); color: var(--color-paper-2); }
.close__actions { margin-top: var(--space-lg); gap: var(--space-md) var(--space-lg); }
.close__mail { color: var(--color-paper-2); }
.close .close__mail a { color: var(--color-paper); text-decoration-color: var(--color-paper-2); text-underline-offset: 0.2em; }
.close .close__mail a:hover { color: var(--color-paper-3); }
.close__panel .btn:focus-visible, .close .close__mail a:focus-visible { outline-color: var(--color-paper); }
.close__who { display: grid; gap: var(--space-sm); width: 220px; margin: 0; }
.close__who img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); background: var(--color-ink-2); }
.close__who figcaption { color: var(--color-paper-2); font-size: var(--text-sm); line-height: 1.45; }
.close__who strong { display: block; color: var(--color-paper); font-size: var(--text-md); font-weight: 500; }
@media (max-width: 60rem) {
  .close__panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-2xl) var(--space-lg) var(--space-lg); clip-path: polygon(0 32px, 64px 0, 100% 0, 100% 100%, 0 100%); }
  .close__who { grid-template-columns: 72px minmax(0, 1fr); align-items: center; width: auto; gap: var(--space-md); }
  .close__who img { aspect-ratio: 1; }
}
@media (max-width: 40rem) {
  .close__actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer: a mast, the wordmark and the mark large over the links ---------- */
.site-foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); }
/* The wordmark at 10cqi sets "Carle Systems" (6.14em in Outfit 600) to about 61% of the width; the mark takes the right. */
.foot__fit { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); container-type: inline-size; }
.foot__mast { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-size: clamp(2.75rem, 8vw, 9rem); font-size: 10cqi; font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 0.9; overflow-wrap: break-word; min-width: 0; }
.foot__mark { flex-shrink: 0; width: auto; height: 9.5cqi; }
.foot__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__reach { display: grid; align-content: start; gap: var(--space-xs); grid-column: 1 / 7; }
.foot__email { justify-self: start; border-radius: var(--space-3xs); color: var(--color-ink); font-size: var(--text-lead); font-weight: 500; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--dur-micro) var(--ease-out); }
.foot__email:hover { color: var(--color-accent); }
.foot__area { max-width: 46ch; color: var(--color-ink-2); }
.foot__links { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; }
.foot__links:nth-of-type(1) { grid-column: 9 / 11; }
.foot__links:nth-of-type(2) { grid-column: 11 / -1; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--space-3xs); color: var(--color-ink); text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.foot__links a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.2em; }
/* The profiles as icons in a row: each a 44px square tap target around a 24px mark; the row pulls back the 10px
   of padding so the first mark lines up with the column edge, as the text links do. */
.foot__social { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-inline-start: -10px; }
.foot__social a { justify-content: center; min-width: 44px; }
.foot__social a:hover { text-decoration: none; }
.foot__icon { display: block; width: 24px; height: 24px; }
.foot__email:active, .foot__links a:active { color: var(--color-accent-2); }
.foot__email:focus-visible, .foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__legal { margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .site-foot { padding-top: var(--space-xl); }
  .foot__mast { font-size: 14.5cqi; }
  .foot__mark { display: none; }
  .foot__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__reach { grid-column: 1 / -1; }
  .foot__links:nth-of-type(1) { grid-column: 1; }
  .foot__links:nth-of-type(2) { grid-column: 2; }
}

@media (max-width: 40rem) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .card, .well { padding: var(--space-lg); }
}

/* ---------- Reduced motion: every movement lands at its end state at once ---------- */
@media (prefers-reduced-motion: reduce) {
  .cs-mark--assemble > path, .cs-mark--assemble .cs-mark__c, .cs-mark--assemble .cs-mark__s, .cs-mark--assemble .cs-mark__roof, .cs-mark--assemble .cs-mark__diamond { animation: none; }
  .nav__menu:popover-open { transition: none; }
  .btn, .nav__toggle { transition: background-color var(--dur-short) linear, border-color var(--dur-short) linear; }
  .btn[aria-busy="true"]::after { animation: none; border-right-color: currentColor; opacity: 0.5; }
}
