/* Blueline Atelier — layout patterns (website revamp, draft)
 * Section anatomy measured from the shadcn.io reference and mapped onto the
 * blueprint grid and ArchUI tokens. Spec: studio-redesign.md, "Section anatomy".
 * Still no colour palette or brand type: browser defaults, plus the hierarchy
 * sizes and the subtle structural lines the layout depends on.
 */

/* --- Lines and shape ------------------------------------------------------ */
:root {
  --line: color-mix(in srgb, CanvasText 14%, Canvas);   /* grid-line: subtle, always visible */
  --mark: color-mix(in srgb, CanvasText 45%, Canvas);   /* intersection marker */
  --stroke: 1px;                                        /* stroke-regular */
  --mark-size: 0.875rem;                                /* 14px */
  --hatch: color-mix(in srgb, CanvasText 9%, transparent); /* lateral-side hatch */
  --hatch-gap: 0.5rem;                                  /* sp-sm: hatch pitch */
}
*, *::before, *::after { border-radius: 0 !important; } /* right angles only */
button, summary, input, select, textarea { border-radius: 0; font: inherit; }

.bp-page { position: relative; overflow-x: clip; }
/* rails: the sheet's frame lines */
.bp-grid { border-inline: var(--stroke) solid var(--line); background-color: Canvas; }
/* lateral sides (sheet margin + drafting table) carry a diagonal hatch; the sheet stays clean */
.bp-page { background: repeating-linear-gradient(45deg, var(--hatch) 0 var(--stroke), transparent var(--stroke) var(--hatch-gap)); }
/* every region starts with a full-bleed hairline (construction line) */
.region { position: relative; }
.region::before {
  content: ""; position: absolute; top: 0; left: -100vw; right: -100vw;
  border-top: var(--stroke) solid var(--line); pointer-events: none;
}
#site-header::before { display: none; }   /* the ruler's bottom line sits there */
main > section:first-of-type::before { display: none; }   /* the hero (landing and system) has no top line */

/* lined grid: cells share 1px lines, no gaps; the rail is the outer edge */
.lined { list-style: none; margin: 0; padding: 0; clip-path: inset(0 0 0 var(--stroke)); }
.lined > * { border-top: var(--stroke) solid var(--line); border-left: var(--stroke) solid var(--line);
  padding: var(--inset-cell); min-width: 0; }
/* bordered rows inside a section (subsection heads, list rows) */
.ln-row { border-top: var(--stroke) solid var(--line); }
.ln-col { border-left: var(--stroke) solid var(--line); }

/* intersection markers: drawn by wireframe.js into this layer */
.ix-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; color: var(--mark); }
.ix-layer > svg { position: absolute; width: var(--mark-size); height: var(--mark-size);
  transform: translate(-50%, -50%); }
/* Section corners: the north-point icon (template#ix-corner), on a disc of the
   sheet colour so the lines don't run through its open quadrants. Its colour is
   --corner-mark: the marker colour here, sys-icon-secondary in the system style. */
/* The studio orange: the primary button and the text selection (at 50%). Not an ArchUI token. */
:root { --studio-orange: #e15e06; }
::selection { background: color-mix(in srgb, var(--studio-orange) 50%, transparent); }
:root { --corner-mark: var(--mark); --corner-size: 0.875rem; }
.ix-layer > svg.ix-corner { width: var(--corner-size); height: var(--corner-size); color: var(--corner-mark);
  background: Canvas; border-radius: 50% !important; }   /* a disc: exempt from the site's right angles, or its square corners show (e.g. over the CTA banner) */

/* --- Hierarchy (sizes from the reference, in rem) ------------------------- */
/* Type: Krona One for headings (its only weight, 400, already reads bold;
   no faux bold). Montserrat Regular (400) for body text and notes, both 12px,
   where Light gets too thin; Montserrat Light (300) only for descriptions, at
   14px. 12px is the floor: nothing is set smaller (the 10px nav excepted).
   The scale sits one step down from the first pass: each level takes the size
   of the one below it (H1 → old H2, H2 → old H3, …). */
:root {
  --font-heading: "Krona One", ui-sans-serif, system-ui, sans-serif;
  --font-body: Montserrat, ui-sans-serif, system-ui, sans-serif;
  --font-nav: Unbounded, "Krona One", ui-sans-serif, system-ui, sans-serif;   /* wide like Krona, with light weights */
}
body { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; }   /* 12px (was 14) */
strong, b, legend, .sp-label { font-weight: 500; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; font-synthesis: none; letter-spacing: -0.01em; }
/* Krona One is wide: headings hyphenate, and break a word only as a last resort */
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: 1.25rem; line-height: 1.15; margin: 0; }    /* 20px phones; 24px from sm (was 28/32/36) */
h2 { font-size: 0.9375rem; line-height: 1.3; margin: 0; }    /* 15px phones; 16px from sm (was 20/24) */
h3 { font-size: 0.875rem; line-height: 1.4; margin: 0; }     /* 14px (was 15/16) */
p  { margin: 0; }
/* Links carry no underline anywhere; they're told apart by colour and, with
   the High contrast setting on, get a 2px underline back (see html.hc a). */
a { text-decoration: none; }
.desc { font-size: 0.875rem; line-height: 1.6; font-weight: 300; }   /* 14px Light (was 16) */
.note, .meta { font-size: 0.75rem; line-height: 1.4; }           /* 12px */
@container bp-page (min-width: 600px) {
  h1 { font-size: 1.5rem; } h2 { font-size: 1rem; }
}

/* numbering: every count starts at 00 */
.idx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; line-height: 1; }
main { counter-reset: sec -1; }
main > section { counter-increment: sec; }
main > section .sec-idx::before { content: counter(sec, decimal-leading-zero); content: counter(sec, decimal-leading-zero) / ""; }
/* a section with its own code (data-idx, e.g. GIT on the Get in touch page) shows that, written in the span, instead of its number */
.crumbs .crumb-idx:empty { display: none; }   /* …but not in the breadcrumbs: no number, no code */
main > section[data-idx] .sec-idx::before { content: none; }
/* Section labels (01 · About the Studio …): the primary button's orange, one
 * step heavier. #E15E06 itself is 3.6:1 on white, short of AA for 12px text,
 * so light mode darkens it to #b64c05 (5.2:1) and dark mode lightens it to
 * #e6762b (4.65:1 on the #2c2c2c card, 6.2:1 on #121212). */
:root p.idx:has(> .sec-idx) { color: light-dark(#b64c05, #e6762b); font-weight: 500; }
/* the CTA banner is always dark, but the system style sets it to the light
 * scheme (pale ink on black), so light-dark() would pick the dark orange */
:root .banner-cell p.idx:has(> .sec-idx) { color: #e6762b; }
.numbered { counter-reset: item -1; }
.numbered > * { counter-increment: item; }
.numbered > * .item-idx::before { content: counter(item, decimal-leading-zero); content: counter(item, decimal-leading-zero) / ""; }

/* --- Column ruler (after devtoti.com): a sticky strip of lettered columns ----
 * Same subgrid as the page, so each letter sits over its column. Hovering a
 * letter shows a band down that column (wireframe.js sets --col on .bp-grid). */
:root { --ruler-h: 1rem; }                       /* 16px */
.ruler { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; position: sticky; top: 0; z-index: 101;   /* above the column band, so its lines stop at the ruler */
  height: var(--ruler-h); margin: 0; padding: 0; list-style: none; background: Canvas;
  border-bottom: var(--stroke) solid var(--line);
  font: 500 0.5rem/var(--ruler-h) ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }  /* 8px */
/* Each letter is an architectural axis label. Between two columns sits a
   minus: a 16px hairline centred on the boundary (8px into each column, drawn
   as the two halves at each cell's edges, at mid-height). Under each letter an
   axis tick runs 16px down from the bar's bottom line, over what is below.
   Decoration only, so small and quiet: the navbar is what should draw the eye. */
:root { --ruler-ink: color-mix(in srgb, CanvasText 38%, Canvas); --ruler-tick: 0.5rem; --ruler-axis: 0.5rem; }  /* axis tick 8px */
.ruler li { position: relative; border-left: var(--stroke) solid var(--line); cursor: crosshair; color: var(--ruler-ink);
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: var(--ruler-tick) var(--stroke); background-position: left center, right center;
  background-repeat: no-repeat; }
.ruler li::after { content: ""; position: absolute; left: calc(50% - var(--stroke) / 2); width: var(--stroke);
  top: 100%; height: var(--ruler-axis); background: var(--line); pointer-events: none; transition: opacity 0.15s; }
.ruler li:first-child { border-left: 0; }
/* once the breadcrumbs sit under the ruler (wireframe.js), the axis ticks go so they don't cross them */
html.crumbs-under-ruler .ruler li::after { opacity: 0; }
/* Hovering a letter: a very subtle grey tint on the letter and down its column,
   edged by two light dashed hairlines that sit above everything else. */
:root { --band-tint: color-mix(in srgb, CanvasText 3%, transparent);
  --band-line: color-mix(in srgb, CanvasText 28%, transparent); --band-stroke: 0.5px;
  --band-dash: 4px; --band-space: 4px; }                     /* dash, space, dash … */
.ruler li:hover { background-color: var(--band-tint); color: CanvasText; }
@container bp-page (max-width: 1023.98px) { .ruler li:nth-child(n+9) { display: none; } }
@container bp-page (max-width: 599.98px)  { .ruler li:nth-child(n+5) { display: none; } }
.col-band { display: none; position: absolute; inset: 0 0 0 0; grid-column: var(--col, 1) / span 1; z-index: 100;
  pointer-events: none;
  /* no fill (the tint is the letter's only); two dashed edges drawn as
     gradients so the dash and the space can be set: 4px on, 4px off */
  --dash: repeating-linear-gradient(to bottom, var(--band-line) 0 var(--band-dash),
    transparent var(--band-dash) calc(var(--band-dash) + var(--band-space)));
  background: var(--dash) left top / var(--band-stroke) 100% no-repeat,
              var(--dash) right top / var(--band-stroke) 100% no-repeat; }
.bp-grid[style*="--col"] > .col-band { display: block; }
.bp-grid { position: relative; }
html.no-ruler { --ruler-h: 0px; }   /* off by default (site settings): the breadcrumbs and jumps move up */
html.no-ruler .ruler { display: none; }
/* jumps (links, the breadcrumb arrows) land below the sticky ruler and breadcrumbs */
:target, main > section[id] { scroll-margin-top: calc(var(--ruler-h) + var(--crumbs-h)); }

/* --- Breadcrumbs: the navbar's second row ---------------------------------
 * Sits under the navbar, then sticks under the ruler while the page scrolls:
 * the trail (Home / 03 Projects) on the left, the sections either side on the
 * right. wireframe.js follows the scroll and fills them in. */
:root { --crumbs-h: 2.25rem; }                                                   /* 36px */
.crumbs { grid-column: 1 / -1; position: sticky; top: var(--ruler-h); z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--crumbs-h); padding: 0 var(--inset-cell); background: Canvas;
  border-bottom: var(--stroke) solid var(--line);   /* no top line: stuck under the ruler it doubled the ruler's bottom line */
  font-size: 0.75rem; white-space: nowrap; }
.crumb-trail { display: flex; align-items: center; min-width: 0; }
.crumb-trail li { display: flex; align-items: baseline; gap: 0.375rem; min-width: 0; }
.crumb-trail li + li::before { content: "/"; content: "/" / ""; margin: 0 0.5rem; opacity: 0.5; }
.crumb-here { font-weight: 500; }
.crumb-name { overflow: hidden; text-overflow: ellipsis; }
.crumb-step { display: flex; gap: 1.5rem; margin: 0; }
.crumb-step a { display: inline-flex; align-items: baseline; gap: 0.375rem; }
.crumb-step a[hidden], .crumb-trail li[hidden] { display: none; }
/* Home carries a house icon */
.crumb-home a { display: inline-flex; align-items: center; gap: 0.375rem; }
.crumb-icon { width: 0.875rem; height: 0.875rem; flex: none; }                     /* 14px */
/* On the landing hero the row keeps its height but shows nothing and drops its
   bottom line; wireframe.js sets .is-root until the hero has scrolled past. */
.crumbs:is(.is-root, .on-hero) { border-bottom-color: transparent; }   /* .on-hero: any page's first section */
.crumbs.is-root { visibility: hidden; }              /* over the landing hero: no breadcrumbs at all */
/* On the landing page the row takes no space (a negative margin as tall as the
 * row): it is hidden over the hero and, once the hero has scrolled past, appears
 * sticky over the content, so nothing shifts when it does. */
.bp-grid:has(> main > #hero) > .crumbs { margin-bottom: calc(-1 * var(--crumbs-h)); }
/* Phones: the step links keep only their arrow and number */
@container bp-page (max-width: 599.98px) { .crumb-step .crumb-name { display: none; } .crumb-step { gap: 1rem; } }

/* --- Navbar --------------------------------------------------------------
 * A fixed height: 3.75rem on phones (the old ~61px), 3.5rem from 600px up
 * (two-thirds of the old ~84px). The phone menu opens as a panel below the
 * bar, so the bar never grows and the hero always gets the rest of the screen. */
#site-header { grid-auto-rows: auto; }
#site-header > .cell { grid-row-end: span 1 !important; height: 3.75rem; }        /* nav-height-xs = sp-6xl */
#site-header .hdr { height: 100%; align-self: stretch; }
.hdr { align-items: center; position: relative; }
.hdr > .brand { grid-column: span 2; display: flex; align-items: center; padding: 0 var(--inset-cell); }
.brand-mark { width: 1.5rem; height: 1.5rem; flex: none; }
/* the wordmark after the mark, in the navbar's face; desktop only (below 1024px
   the mark has a single column, too narrow for the name) */
.hdr .brand { gap: 0.625rem; text-decoration: none; color: var(--ink-heading, CanvasText); }   /* mark and name share the heading ink */
.brand-name { display: none; font-family: var(--font-nav); font-weight: 400; font-synthesis: none;
  font-size: 0.6875rem; line-height: 1.15; letter-spacing: 0.04em; white-space: nowrap; }   /* 11px */
.brand-name > span { display: block; }                  /* two lines, ~26px: well inside the 56px bar */
@container bp-page (min-width: 1024px) { .brand-name { display: block; } }
.hdr-right { grid-column: 3 / -1; justify-self: end; display: flex; align-items: center; gap: 0.5rem;
  padding: 0 var(--inset-cell); }
.nav-toggle, .settings-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-height: 2.25rem; padding: 0.375rem 0.75rem; background: none; color: inherit;
  border: var(--stroke) solid var(--line-ui); cursor: pointer; }
.settings-toggle { width: 2.25rem; padding: 0; border-color: transparent; transition: background-color 0.15s; }   /* no frame: a tint on hover */
.settings-toggle:hover, .settings-toggle[aria-expanded="true"] { background: var(--band-tint); }
.settings-toggle .icon { width: 1.125rem; height: 1.125rem; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }
/* phones: elongated menu icon left, the call to action centred, the gear right */
.menu-icon { width: 2rem; height: 0.875rem; }
.nav-toggle { border-color: transparent; padding-inline: 0.25rem; }
.nav-cta { padding: 0.5rem 1rem; border: var(--stroke) solid currentColor; text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
/* TEMPORARY (2026-11): the phone/tablet bar shows only the menu and settings;
 * delete this rule to bring the Get in touch button back. (From 768px it's
 * hidden anyway: the navbar's links take over.) */
@container bp-page (max-width: 767.98px) { .nav-cta { display: none; } }
/* with the button gone, the gear keeps the bar's third slot (right edge) instead
 * of sliding into the middle one: menu left, gear right */
@container bp-page (max-width: 599.98px) { .hdr-right > .settings { grid-column: 3; grid-row: 1; } }
/* phones: the settings panel hangs centred under the navbar (positioned on the
 * full-width bar, not the gear); from tablets it sits under the gear, inset */
@container bp-page (max-width: 599.98px) {
  .hdr-right > .settings { position: static; }
  .hdr-right > .settings > .settings-panel { left: 50%; right: auto; translate: -50% 0; }
}
@container bp-page (max-width: 599.98px) {
  .hdr > .brand { display: none; }
  .hdr-right { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: 1fr auto 1fr; }
  .hdr-right > .nav-toggle { justify-self: start; }
  .hdr-right > .settings { justify-self: end; }
  .hdr-right > nav { grid-column: 1 / -1; }   /* without JS the links sit on their own row */
}
/* xs: the open menu is a panel below the bar, so the bar never grows */
.js #site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 4; background: Canvas;
  border-top: var(--stroke) solid var(--line); border-bottom: var(--stroke) solid var(--line);
  padding: var(--inset-cell); box-shadow: var(--float-shadow); }   /* the phone menu floats over the page */
.js #site-nav[data-open="false"] { display: none; }
#site-nav ul { gap: 0.5rem 1.25rem; }
/* Navigation in Unbounded Light (300): wide and geometric like the Krona One
   headings, but Krona has a single weight, and the navbar wants a thin stroke.
   The list and the phone CTA. 10px (the one exception to the 12px floor) with
   open tracking and wide gaps; a muted ink at rest, full ink on hover, press and
   for the current section. */
#site-nav a, .nav-cta { font-family: var(--font-nav); font-weight: 300; font-synthesis: none;
  font-size: 0.625rem; letter-spacing: 0.06em; }
:root {
  --nav-ink: color-mix(in srgb, CanvasText 62%, Canvas);   /* at rest: lighter */
  --nav-ink-strong: CanvasText;                           /* hover, press, current */
  --nav-bar: CanvasText;                                   /* the line under a link */
}
/* States: hover draws a hairline in from the left; pressing nudges the link down;
   the current section (aria-current, set by wireframe.js as you scroll) keeps a
   2px bar. Focus gets the usual outline. Reduce motion drops the movement. */
#site-nav a { position: relative; display: inline-block; padding-block: 0.5rem; color: var(--nav-ink);
  transition: color 0.15s, transform 0.1s; }
#site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: var(--stroke);
  background: var(--nav-bar); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
#site-nav a:hover { color: var(--nav-ink-strong); }
#site-nav a:hover::after { transform: scaleX(1); }
#site-nav a:active { color: var(--nav-ink-strong); transform: translateY(1px); }
#site-nav a[aria-current] { color: var(--nav-ink-strong); }
#site-nav a[aria-current]::after { transform: scaleX(1); height: 2px; }
#site-nav a:focus-visible { outline: 2px solid var(--focus, Highlight); outline-offset: 2px; }
/* --- Site settings panel --------------------------------------------------
 * Drops from the navbar's bottom line under the gear, its right edge on the
 * rail. Square, lined sections in the page's own vocabulary: hairline frame and
 * dividers (--hairline), the title in the index mono, group names SemiBold like
 * the FAQ topics, options in body text. Controls (segments, switches) keep a
 * darker grey outline (--sp-control, ≥ 3:1) so they read as controls.
 * Appearance (icon segments), Accessibility (text size, contrast, motion),
 * Display (grid lines, markers). */
:root { --sp-control: color-mix(in srgb, CanvasText 45%, Canvas); }
.settings { position: relative; }
.settings-panel { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 5;
  width: min(18rem, calc(100vw - 2rem)); background: Canvas; color: var(--ink-body, CanvasText);
  border: var(--stroke) solid var(--hairline); font: 400 0.75rem/1.4 var(--font-body); }
:root { /* floating panels (settings, the phone menu): soft and mostly below; a deeper
           black in dark mode, where a text-coloured shadow would read as a glow */
  --float-shadow: 0 0.75rem 2rem -0.5rem light-dark(rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.6)); }
.settings-panel { box-shadow: var(--float-shadow); }
/* L angles on the four corners, drawn over the frame: 10px arms, 1.5px lines */
/* (shared with the person card's frame) */
.settings-panel::before, .person-card::before { content: ""; position: absolute; inset: calc(-1 * var(--stroke)); pointer-events: none;
  --arm: 0.625rem; --w: 1.5px; --c: var(--sp-control);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--arm) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--arm) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--arm) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--arm) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--arm) no-repeat; }
.settings-panel[hidden] { display: none; }
.sp-head { display: flex; align-items: center; justify-content: space-between;
  padding: 0.375rem 0.375rem 0.375rem var(--inset-cell); border-bottom: var(--stroke) solid var(--hairline); }
.sp-title { font: 600 0.875rem/1.2 var(--font-body); color: var(--ink-heading, CanvasText); }   /* 14px SemiBold, a step above the group names */
.sp-close { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  background: none; color: inherit; border: 0; cursor: pointer; transition: background-color 0.15s; }
.sp-close:hover { background: var(--band-tint); }
.sp-close .icon { width: 1rem; height: 1rem; }
.sp-group { border: 0; margin: 0; padding: 0.875rem var(--inset-cell) 1rem;
  display: grid; gap: 0.625rem; }
.sp-group + .sp-group { border-top: var(--stroke) solid var(--hairline); }
.sp-label { padding: 0; margin: 0 0 0.125rem; float: left; width: 100%;
  font-weight: 600; color: var(--ink-heading, CanvasText); }   /* like the FAQ topics */
.sp-sub { clear: both; margin: 0; }
/* segmented control: equal square cells sharing 1px lines */
.seg { clear: both; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: var(--stroke) solid var(--sp-control); }
.seg-opt { position: relative; display: grid; cursor: pointer; }
.seg-opt + .seg-opt { border-left: var(--stroke) solid var(--sp-control); }
.seg-opt:hover .seg-face { background: var(--band-tint); }
.seg-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-face { display: grid; place-items: center; height: 2.5rem; }
.seg-face .icon { width: 1.125rem; height: 1.125rem; }
.seg-face .aa { font-family: var(--font-heading); line-height: 1; }
.seg-opt input:checked + .seg-face { background: CanvasText; color: Canvas; }
.seg-opt input:focus-visible + .seg-face { outline: 2px solid Highlight; outline-offset: -2px; }
/* switches: label left, square switch right */
.sp-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.sp-switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 2.25rem; height: 1.25rem; border: var(--stroke) solid var(--sp-control); background: Canvas; cursor: pointer; }
.sp-switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 6px);
  height: calc(1.25rem - 6px); background: color-mix(in srgb, CanvasText 40%, Canvas); }   /* off: muted knob */
.sp-switch input:checked { background: CanvasText; }
.sp-switch input:checked::before { left: auto; right: 2px; background: Canvas; }
.sp-switch input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }

/* --- What the settings change (classes on <html>) ------------------------- */
:root { --line-ui: color-mix(in srgb, CanvasText 22%, Canvas); }   /* controls: always visible */
html.hc { --line: color-mix(in srgb, CanvasText 55%, Canvas); --line-ui: CanvasText;
  --mark: CanvasText; --hatch: color-mix(in srgb, CanvasText 28%, transparent); }
html.hc a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
html.no-markers .ix-layer { display: none; }
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@container bp-page (min-width: 600px) {
  #site-header > .cell { height: 3.5rem; }                                         /* nav-height-sm */
}
/* The links go inline from 768px: in Krona One at 12px, six links don't fit one
   row below that, so narrower screens keep the phone bar (menu, CTA, settings). */
/* From 768px each link sits centred in a column of the page grid, like the
   ruler's letters: the bar, the nav and the list are subgrids of the header.
   Desktop (12 columns): mark and name A–E, F free, Studio G … Contact K, settings L.
   Tablet (8 columns): mark A, B free, Studio C … Contact G, settings H.
   (Five links since System left the navbar: they start one column in.) */
@container bp-page (min-width: 768px) {
  .hdr > .brand { grid-column: 1 / 5; }
  .hdr-right { grid-column: 5 / -1; justify-self: stretch; display: grid; grid-template-columns: subgrid;
    gap: normal; padding: 0; align-self: stretch; align-items: center; }   /* full bar height: the panel hangs from its bottom */
  .js .nav-toggle, .nav-cta { display: none; }
  .js #site-nav, .js #site-nav[data-open="false"] { display: grid; position: static; border: 0; padding: 0; background: none;
    box-shadow: none; }   /* the inline navbar: no float */
  #site-nav { grid-column: 2 / span 5; grid-template-columns: subgrid; }
  #site-nav ul { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: normal; align-items: center; }
  #site-nav li { justify-self: center; }
  /* the gear sits centred in the last column; the panel hangs from the
     navbar's bottom line, inset from the rail by the cell inset (as on phones,
     where it ends under the gear, 20px in) */
  .hdr-right > .settings { grid-column: -2 / -1; justify-self: stretch; align-self: stretch;
    display: flex; align-items: center; justify-content: center; }
  .hdr-right > .settings > .settings-panel { top: 100%; right: var(--inset-cell, 1.25rem); }
}
@container bp-page (min-width: 768px) and (max-width: 1023.98px) {
  .hdr > .brand { grid-column: 1 / 2; }
  .hdr-right { grid-column: 2 / -1; }
}
@container bp-page (min-width: 1024px) {
  .hdr > .brand { grid-column: 1 / 6; }
  .hdr-right { grid-column: 6 / -1; }
}
/* Tools leads to the tools site: an external-link icon after the label */
.nav-external { display: inline-flex !important; align-items: center; gap: 0.3125rem; }
.nav-ext { width: 0.625rem; height: 0.625rem; flex: none; }
/* footer brand: the navbar's lockup, the mark and the two-line wordmark in the heading ink */
.foot-brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink-heading, CanvasText); }
.foot-brand .brand-name { display: block; }

/* --- Section head: [00] H2 + description left, action bottom-right -------- */
.section-head { align-items: end; }
.section-head > .head-text {
  display: flex; flex-direction: column; gap: var(--head-gap);
  padding: var(--head-pt) var(--inset-section) var(--head-pb);
}
.section-head > .head-action { grid-column: 1 / -1; padding: 0 var(--inset-section) var(--head-pb); }
@container bp-page (min-width: 1024px) {
  .section-head > .head-action { grid-column: 9 / -1; justify-self: end; }
}

/* --- Subsection row: H3 left, note right, on a line ----------------------- */
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.25rem 1rem;                                   /* sp-xs / sp-lg */
  padding: 1.75rem var(--inset-section) 1rem; }        /* pd-2xl / sp-lg */

/* --- Card content inside a lined cell ------------------------------------ */
.card { display: flex; flex-direction: column; gap: 0.75rem; }   /* sp-md */
.card > :last-child { margin-top: auto; }
.card > .btn { align-self: flex-start; }                 /* a button keeps its own width */
.card > h3 + p:last-child { margin-top: 0; }             /* a card without a button: the text stays under its title */
/* stack-xs: on phones, cards of this grid take the full width (one per row) */
@container bp-page (max-width: 599.98px) { .stack-xs > * { grid-column: 1 / -1; } }
/* Tool cards: each card takes five rows of the list's grid as a subgrid (meta,
 * media, title, description, button), so a row's titles share one height and
 * every description starts at the same line, whatever the title length. */
.tool-cards > .card { display: grid; grid-template-rows: subgrid; grid-row: span 5;
  row-gap: 0.75rem; align-content: start; }
.tool-cards > .card > .btn { align-self: end; justify-self: start; margin-top: 0; }
/* Launch MWD / USC / BPG / CVC: the acronym is an <abbr> (full name on hover,
 * and spelled out for screen readers), without the browser's dotted underline */
.btn abbr { text-decoration: none; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  min-height: 1.5rem; }   /* same height with or without a badge, so the media below lines up */
/* image placeholder: a hatched rectangle, same ratio on every card, to be swapped for an illustration */
.card-media { aspect-ratio: 4 / 3; border: var(--stroke) solid var(--line);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, CanvasText 18%, transparent) 0 var(--stroke),
    transparent var(--stroke) var(--hatch-gap)); }
/* Tool previews on a square drafting grid, like the masonry floor plan: a
 * near-white (near-black in dark) sheet, faint blue minor lines, stronger every
 * 4th. Both layers start from the same corner (0 0) and use whole pixels, so
 * the major lines fall exactly on minor ones and every small square is equal.
 * :root raises it above the hatched .card-media, in both styles. */
:root .card-media.grid-stage { --grid-minor: 12px; --grid-major: calc(var(--grid-minor) * 4);
  --hue: var(--grid-hue, #3b82f6);
  --grid-line: light-dark(color-mix(in srgb, var(--hue) 22%, transparent),
    color-mix(in srgb, var(--hue) 12%, transparent));         /* dark: discreet */
  --grid-line-major: light-dark(color-mix(in srgb, var(--hue) 44%, transparent),
    color-mix(in srgb, var(--hue) 22%, transparent));
  /* the sheet takes a light tint of the tool's colour (dark: a deep one) */
  background-color: light-dark(color-mix(in srgb, var(--hue) 10%, #fff),
    color-mix(in srgb, var(--hue) 6%, #111214));
  background-image:
    linear-gradient(var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-major) var(--grid-major), var(--grid-major) var(--grid-major),
    var(--grid-minor) var(--grid-minor), var(--grid-minor) var(--grid-minor);
  background-position: 0 0; }
/* Each tool card's colour: --grid-hue tints its grid; --tool-ink is the same
 * hue darkened (light) or lightened (dark) until it passes WCAG AA (4.5:1) on
 * the card, for its tool code. Light values clear 4.6:1 even on #f2f2f2;
 * dark ones clear it on #2c2c2c (the lightest dark card) and on #121212. */
.tool-cards > .card:has(.scale-stage)    { --grid-hue: #11b9a3; --tool-ink: light-dark(#0b7a6c, #11b9a3); }
.tool-cards > .card:has(.program-stage)  { --grid-hue: #ed8f58; --tool-ink: light-dark(#9c5e3a, #ed8f58); }
.tool-cards > .card:has(.concrete-stage) { --grid-hue: #3765c1; --tool-ink: light-dark(#3765c1, #7595d4); }
.tool-cards > .card:has(.hatch-stage)    { --grid-hue: #b85fc9; --tool-ink: light-dark(#994fa7, #c379d2); }
:root .tool-cards .tool-code { color: var(--tool-ink, inherit); }
/* A tool that isn't out yet: the whole card in greys, on a light diagonal
 * hatch mirrored from the page margins' (-45deg instead of 45deg), and its
 * content at 60% opacity, except the Coming soon badge, which keeps full
 * strength. (Opacity per child, since a parent's opacity can't be undone on
 * one descendant.) The card is aria-hidden in the markup: decorative for now. */
.tool-cards > .card.is-soon { filter: grayscale(1);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, CanvasText 6%, transparent) 0 var(--stroke),
    transparent var(--stroke) var(--hatch-gap)); }
.tool-cards > .card.is-soon > :not(.card-meta),
.tool-cards > .card.is-soon > .card-meta > :not(.badge) { opacity: 0.6; }
/* Clickable screenshot stacks (.shot-swap): each click shows the next image,
 * looping; wireframe.js moves .is-on and the images crossfade. Rounded and
 * shadowed, so the screenshots' white corners are clipped (an exception to the
 * site's right angles). */
.shot-swap { display: grid; padding: 0; border: 0; background: #fff; overflow: clip; cursor: default;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease; }
.shot-swap > img { grid-area: 1 / 1; display: block; width: 100%; height: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
.shot-swap > img.is-on { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.shot-swap:hover { box-shadow: 0 2px 4px rgb(0 0 0 / 0.1), 0 8px 20px rgb(0 0 0 / 0.16); }
.shot-swap:focus-visible { outline: 2px solid CanvasText; outline-offset: 3px; }
/* Scale Conversion: the converter centred, 75% wide (1:125 → 1:200 → 1:500);
 * hover grows it ~10%, a press dips it back a little. */
.scale-stage { display: grid; place-items: center; }
.scale-swap { width: 75%; border-radius: 4.4% / 9.9% !important; }
.scale-swap:hover { transform: scale(1.1); }
.scale-swap:active { transform: scale(1.06); }
/* Building Program Generator: the phone-sized panel stands in the lower part,
 * cropped by the bottom edge (steps 1 → 2 → 3); hover lifts it a little. */
.program-stage { position: relative; overflow: clip; }
.program-swap { position: absolute; top: 38%; left: 50%; width: 66%;
  border-radius: 3.2% / 2.15% !important; transform: translateX(-50%); }
.program-swap:hover { transform: translateX(-50%) translateY(-6%); }
.program-swap:active { transform: translateX(-50%) translateY(-4%); }
/* Concrete Volume Calculator: the recipe panel, centred and nearly full height,
 * is the base (.shot-base, always shown); a mixer, a truck or a wheelbarrow sits
 * over its centre and changes on click. */
.concrete-stage { position: relative; }
/* absolute, so the portrait panel can't stretch the 4:3 media box */
.concrete-swap { position: absolute; top: 6%; bottom: 6%; left: 50%; translate: -50% 0;
  aspect-ratio: 657 / 769; border-radius: 3.2% / 2.7% !important; }
.concrete-swap > img.shot-base { width: 100%; height: 100%; opacity: 1; visibility: visible; }
/* the illustration: 60% of the panel, a soft drop shadow to lift it off the
 * recipe; hovering it grows it ~10% */
.concrete-swap > img:not(.shot-base) { place-self: center; width: 60%; height: auto;
  translate: 0 4%; scale: 1;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.12)) drop-shadow(0 6px 12px rgb(0 0 0 / 0.14));   /* softened */
  transition: opacity 0.25s ease, visibility 0s 0.25s, scale 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); }
.concrete-swap > img.is-on:not(.shot-base) {
  transition: opacity 0.25s ease, scale 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); }
.concrete-swap > img.is-on:not(.shot-base):hover { scale: 1.1; }
/* Hatch Designer: the app panel (.shot-base, on top) has a see-through window;
 * the hatch behind it shows through and changes on click (cobble → brick →
 * stone). The hatch box is a touch larger than the window so no gap shows at
 * its rounded edges. Same placement as the concrete panel. */
.hatch-stage { position: relative; }
.hatch-swap { position: absolute; top: 6%; bottom: 6%; left: 50%; translate: -50% 0;
  aspect-ratio: 657 / 769; border-radius: 3.2% / 2.7% !important; scale: 1;
  transition: scale 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease; }
/* hover settles it back 5%; a click pops it up and back, like a pressed button
 * (wireframe.js restarts .is-popping on every click) */
.hatch-swap:hover { scale: 0.95; }
.hatch-swap.is-popping { animation: hatch-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
@keyframes hatch-pop { 40% { scale: 1.04; } }
.hatch-swap > img.shot-base { position: relative; z-index: 1; width: 100%; height: 100%;
  opacity: 1; visibility: visible; }
.hatch-swap > img:not(.shot-base) { position: absolute; left: 3%; top: 8.3%; width: 94%; height: 52.8%;
  object-fit: cover; }
/* About cards: flat isometric illustrations (assets drawn on 2:1 isometric
 * axes) on a static isometric grid like the hero's. Every colour is a token,
 * light and dark: faces (top, right, left), the floor shadow, the outlines and
 * the dashed guides. Outlines and grid share the hero's ink (--sys-brd-primary:
 * #2855ad light, #acd8fc dark), so lines and grid always match. */
:root {
  --ill-face-top: light-dark(#fafafa, #3a3f48);
  --ill-face-right: light-dark(#f2f1f1, #30343c);
  --ill-face-left: light-dark(#e3dfde, #262a31);
  --ill-shadow: light-dark(rgb(131 131 131 / 0.3), rgb(0 0 0 / 0.4));
  --ill-line: color-mix(in srgb, var(--sys-brd-primary, #2855ad) 55%, transparent);
  --ill-guide: light-dark(#8997ae, #6f7d95);
  --iso-ink: var(--sys-brd-primary, #2855ad);
}
/* the grid pattern lives in one zero-size <svg> (display: none would drop it) */
.iso-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.iso-defs path { fill: none; stroke: var(--iso-ink); stroke-width: 1; }
.iso-defs .iso-minor { stroke-opacity: 0.15; }   /* the hero's opacities */
.iso-defs .iso-major { stroke-opacity: 0.08; }
:root .card-media.about-ill { position: relative; overflow: hidden; background: none; }
.about-ill > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Each figure (.ill-fig: the sphere, the cube, the wall, an interface card,
 * the floor plan…) grows a little while hovered, about its own centre. Hover
 * only: no click, no pointer cursor. Instant with reduced motion. */
.ill-fig { transform-box: fill-box; transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ill-fig:hover { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .ill-fig { transition: none; } }
/* badge (Featured, Coming soon): built like the project category tags
   (.proj-tag): a small square in the hue, a soft tint, a border and text in
   the same hue. Featured in the site blue, Coming soon in neutral grey. */
.badge, .proj-tag { --hue: var(--nav-ink-strong, CanvasText);
  display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.3125rem 0.625rem 0.3125rem 0.5rem;
  font: 500 0.75rem/1 var(--font-body); letter-spacing: 0.02em; white-space: nowrap;
  color: var(--hue); background: color-mix(in srgb, var(--hue) 9%, transparent);
  border: var(--stroke) solid color-mix(in srgb, var(--hue) 35%, transparent); }
.badge::before, .proj-tag::before { content: ""; width: 0.375rem; height: 0.375rem; background: var(--hue); flex: none; }
.badge-featured { --hue: light-dark(#2855ad, #8ec8f6); }
/* Featured leads with a small crown instead of the square: the same hue, drawn
 * through a mask, so it follows the theme and forced colours like the square */
.badge-featured::before { width: 0.75rem; height: 0.625rem;
  -webkit-mask: var(--icon-crown) center / contain no-repeat; mask: var(--icon-crown) center / contain no-repeat; }
:root { --icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 4.5 7.5 9 12 1.5 16.5 9 22 4.5 20 15.5H4Z'/%3E%3Crect x='4' y='17' width='16' height='2.5' rx='0.5'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5'/%3E%3C/svg%3E"); }
.badge-soon     { --hue: light-dark(#5a5a5a, #d2d2d2); }
@media (forced-colors: active) { .badge { border-color: CanvasText; } .badge::before { background: CanvasText; } }

/* --- Projects carousel (WAI-ARIA APG carousel) ----------------------------
 * One big project at a time. The slides sit side by side on a horizontal,
 * scroll-snapping track, so swiping works even without JavaScript; with it,
 * the scrollbar hides and the bar below drives the track: a count (01 / 03),
 * a numbered picker and previous / next arrows. Off-screen slides are inert.
 * A slide: the image, then the text and facts; side by side from 1024px. */
.carousel { position: relative; }
.carousel > * { grid-column: 1 / -1; min-width: 0; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-behavior: smooth; }
html.reduce-motion .carousel-track { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.js .carousel-track { scrollbar-width: none; }
.js .carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1fr); }
.slide-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--stroke) solid var(--line); }
.slide-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-text { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;                    /* sp-md */
  padding: var(--inset-cell) var(--inset-section) calc(var(--inset-cell) + 0.5rem); }
.slide-text h3 { font-size: 0.9375rem; }   /* 15px; 16px from lg (was 18/24) */
.slide-text .proj-facts { margin-top: 0.5rem; }
/* Read more (to the project on the published portfolio, new tab): last, kept
 * at its own width and pushed to the bottom of the text column */
.slide-text > .btn { align-self: flex-start; margin-top: auto; }
/* From tablets, like the featured tool card (Masonry Wall Designer): image and
 * text side by side, the text top-aligned with the card's inset on every side,
 * 1rem between items and the button at the bottom. Halves on tablets; on
 * desktops the text takes a third (4 of 12 columns) and the image two. */
@container bp-page (min-width: 600px) {
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* the ratio is a minimum: when the text column runs taller, the image
     stretches to the full row (the photo is object-fit: cover) */
  .slide-media { aspect-ratio: 4 / 3; align-self: stretch; border-bottom: 0;
    border-right: var(--stroke) solid var(--line); }
  .slide-text { justify-content: flex-start; padding: var(--inset-section); gap: 1rem; }
}
@container bp-page (min-width: 1024px) {
  .slide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .slide-media { aspect-ratio: 16 / 10; }
  .slide-text h3 { font-size: 1rem; }
}
/* The bar: count left, picker centre, arrows right. Hidden without JavaScript
   (the track scrolls on its own then). */
.carousel-bar { display: none; }
/* The bar: previous chevron left, the picker in the middle, pause / play and the
   next chevron right. Hidden without JavaScript (the track scrolls on its own). */
.js .carousel-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0.75rem var(--inset-cell); }
.carousel-start, .carousel-end { display: flex; align-items: center; gap: 0.5rem; }
.carousel-end { justify-content: end; }
/* picker: a short line per project, the current one long and solid; 32 × 24px
   targets */
.carousel-dots { display: flex; justify-content: center; gap: 0.25rem; }
.carousel-dot { display: grid; place-items: center; width: 2rem; height: 1.5rem; padding: 0; border: 0;
  background: none; cursor: pointer; }
:root { --dot-idle: color-mix(in srgb, CanvasText 45%, Canvas); }   /* grey, ≥ 3:1; arch-gray-8 in the system style */
.carousel-dot::before { content: ""; width: 0.75rem; height: 2px; background: var(--dot-idle);
  transition: width 0.2s ease, background-color 0.15s; }
.carousel-dot:hover::before { background: var(--nav-ink-strong); }
.carousel-dot[aria-current="true"]::before { width: 1.5rem; background: var(--nav-ink-strong); }
/* arrows and pause / play: 44px squares, no border of their own (a tint on
   hover, the timer's line when it runs) */
.carousel-btn { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  color: var(--btn-tertiary-fg); background: transparent; border: var(--stroke) solid transparent;
  transition: background-color 0.15s, transform 0.1s, opacity 0.15s; }
.carousel-btn svg { width: 1.125rem; height: 1.125rem; transition: transform 0.15s; }
.carousel-btn:hover { background: var(--btn-hover-tint); }
/* the chevrons are framed by a 1px hairline in the grid's grey (--hairline); the blue timer
   line (::after, inset by the stroke, 1.5px) runs over it */
.carousel-btn:is(.carousel-prev, .carousel-next) { border-color: var(--hairline); }   /* stays with grid lines off */
.carousel-prev:hover svg { transform: translateX(-2px); }
.carousel-next:hover svg { transform: translateX(2px); }
.carousel-btn:active { transform: translateY(1px); }
.carousel-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; background: transparent; }
/* pause / play: over the carousel's top-left corner (on the image), on a square
   of the page colour so it reads on any photo; first in the tab order */
.carousel-play { display: none; }
.js .carousel-play { display: grid; position: absolute; z-index: 2; top: calc(var(--stroke) + 0.75rem); left: 0.75rem;
  background: color-mix(in srgb, var(--card-bg, Canvas) 92%, transparent); }
.js .carousel-play:hover { background: var(--card-bg, Canvas); }
.js .carousel-play[hidden] { display: none; }
.carousel-btn[aria-disabled="true"] svg { transform: none; }
:is(.carousel-btn, .carousel-dot):focus-visible { outline: 2px solid var(--focus, Highlight); outline-offset: 2px; }
.carousel:not(.is-playing) .icon-pause, .carousel.is-playing .icon-play { display: none; }
/* Autoplay timer (data-autoplay): the chevron autoplay will use (.is-timer: next,
   or previous on the last project, where it wraps back) draws a light blue line
   around itself from the top, clockwise on next and anti-clockwise on previous,
   over the interval. The draw is the
   timer itself: wireframe.js advances on its animationend, so hover and focus
   inside, which pause it here, pause the carousel. Reduce motion turns
   animations, and so autoplay, off. */
@property --timer { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --timer-ink: LinkText; }                           /* blue: the browser link blue; sys-brd-primary in the system style */
.carousel.is-playing .carousel-btn.is-timer::after { content: ""; position: absolute; inset: calc(-1 * var(--stroke));
  border: 1.5px solid var(--timer-ink); pointer-events: none;
  -webkit-mask: conic-gradient(#000 var(--timer), transparent 0); mask: conic-gradient(#000 var(--timer), transparent 0);
  animation: carousel-timer var(--autoplay, 10s) linear forwards; }
/* hover and focus inside hold it, except right after Play (.is-resumed): the
   pointer and focus are on the button then, and the timer should visibly run */
.carousel:not(.is-resumed):is(:hover, :focus-within) .carousel-btn.is-timer::after { animation-play-state: paused; }
/* on the last project the timer sits on the previous chevron (autoplay wraps
   back): it draws anti-clockwise, the way it will move */
.carousel.is-playing .carousel-prev.is-timer::after {
  -webkit-mask: conic-gradient(transparent calc(360deg - var(--timer)), #000 0);
  mask: conic-gradient(transparent calc(360deg - var(--timer)), #000 0); }
@keyframes carousel-timer { from { --timer: 0deg; } to { --timer: 360deg; } }
@media (forced-colors: active) {
  .carousel-dot::before { background: ButtonText; } .carousel-dot[aria-current="true"]::before { background: Highlight; }
  .carousel-btn { border-color: ButtonText; }
  .carousel.is-playing .carousel-btn.is-timer::after { border-color: Highlight; }
}
@container bp-page (max-width: 599.98px) {
  .js .carousel-bar { grid-template-columns: auto 1fr auto; gap: 0.5rem; padding-inline: 1rem; }
  .carousel-dots { gap: 0.25rem; }
}

/* --- Category tags (project type): square, each in its own hue ------------
 * A small square in the hue, a soft tint, a border and text in the same hue.
 * Urban blue (sys-brd-primary), Residential terracotta, Landscape green; the
 * light-dark pairs keep the text above 4.5:1 on the tint in both themes. */
/* (the shape is shared with .badge, under Cards above) */
.proj-tag-urban       { --hue: light-dark(#2855ad, #8ec8f6); }
.proj-tag-residential { --hue: light-dark(#9a4522, #f0a37c); }
.proj-tag-landscape   { --hue: light-dark(#2d6a43, #8fd0a4); }
@media (forced-colors: active) { .proj-tag { border-color: CanvasText; } .proj-tag::before { background: CanvasText; } }
/* Facts: a lined 2 × 2 grid (location, year / scale, site), label above value. */
.proj-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; font-size: 0.75rem;
  border-top: var(--stroke) solid var(--line); }
.proj-facts > div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
  padding-block: 0.75rem; }                                                 /* sp-md */
.proj-facts > div:nth-child(odd) { padding-right: 1rem; }                  /* sp-lg */
.proj-facts > div:nth-child(even) { padding-left: 1rem; border-left: var(--stroke) solid var(--line); }
.proj-facts > div:nth-child(n + 3) { border-top: var(--stroke) solid var(--line); }
.proj-facts > div:nth-child(n + 3) { padding-bottom: 0; }
.proj-facts dt { font-size: 0.75rem; opacity: 0.7; display: flex; align-items: center; gap: 0.375rem; }
/* each fact label leads with a small line icon (pin, calendar, scale bar, plot) */
.fact-icon { width: 0.875rem; height: 0.875rem; flex: none; }
.proj-facts dd { margin: 0; }

/* --- Featured card: text (third) + large media (two-thirds) -------------- */
.featured > .feat-text { grid-column: 1 / -1; gap: 1rem; padding: var(--inset-section); }   /* sp-lg */
.featured > .feat-text h3 { font-size: 0.9375rem; }   /* 15px; 16px from lg (was 18/20) */
/* Featured tool's key points: a step heavier than the description (500 vs
 * 400), each led by a right arrow with a visible shaft (the button's arrow) */
.feat-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem;
  font-weight: 500; color: var(--ink-heading, CanvasText); }
.feat-points li { display: flex; align-items: center; gap: 0.5rem; }
.feat-points li::before { content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; }
.featured > .feat-media { grid-column: 1 / -1; display: grid; place-items: center; min-height: 12rem;
  aspect-ratio: 16 / 9; padding: var(--inset-cell); text-align: center; }
@container bp-page (min-width: 600px) {
  .featured > .feat-text, .featured > .feat-media { grid-column: span 4; }
  .featured > .feat-media { aspect-ratio: 4 / 3; }
}
@container bp-page (min-width: 1024px) {
  .featured > .feat-text { grid-column: span 4; }
  .featured > .feat-media { grid-column: span 8; aspect-ratio: 16 / 9; }
  .featured > .feat-text h3 { font-size: 1rem; }
}

/* Masonry Wall Designer preview: the plan fills the media cell and three app
 * panels stand on it as fanned cards, cropped by the bottom edge. Sizes are in
 * cqi so the fan scales with the cell. Static: no hover or click.
 * The side cards tilt by --tilt around their centres, which lifts their top
 * corners; the middle card rises by the same amount (--lift) so all three tops
 * sit on one line. */
.featured > .mwd-stage { --card-w: 25cqi; --card-h: calc(var(--card-w) * 815 / 450); --tilt: 15deg;
  --lift: calc(var(--card-w) / 2 * sin(var(--tilt)) - var(--card-h) / 2 * (1 - cos(var(--tilt))));
  position: relative; overflow: clip; padding: 0; container-type: inline-size; isolation: isolate; }
.mwd-plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -1; }
.mwd-card { --x: 50%; --r: 0deg; --y: 0px; --hover: 0px;
  position: absolute; top: 36%; left: var(--x); width: var(--card-w); aspect-ratio: 450 / 815;
  border-radius: 0.375rem !important; /* app panels, like the device mockups: exempt from right angles */
  overflow: clip; background: Canvas; transform-origin: 50% 50%;
  transform: translateX(-50%) translateY(calc(var(--y) + var(--hover))) rotate(var(--r));
  box-shadow: 0 0.6cqi 1.2cqi rgb(0 0 0 / 0.18), 0 2.4cqi 5cqi rgb(0 0 0 / 0.28);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease; }
/* hover only (no click): the card rises a little, as if active */
@media (hover: hover) {
  .mwd-card:hover { --hover: calc(var(--card-h) * -0.04);
    box-shadow: 0 1cqi 2cqi rgb(0 0 0 / 0.2), 0 3.4cqi 7cqi rgb(0 0 0 / 0.32); }
}
@media (prefers-reduced-motion: reduce) { .mwd-card { transition: none; } }
.mwd-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mwd-card:nth-of-type(1) { --x: 23%; --r: calc(var(--tilt) * -1); z-index: 3; }
.mwd-card:nth-of-type(2) { --x: 50%; --y: calc(var(--lift) * -1); z-index: 2; }
.mwd-card:nth-of-type(3) { --x: 77%; --r: var(--tilt); z-index: 1; }

/* --- Hero: navbar + hero = exactly one screen height, never more ----------
 * wireframe.js sets the exact height (screen height − navbar); the CSS value is
 * the no-JS fallback. The hero is a size container, so its type and spacing
 * shrink with the height available, and the least important lines drop out on
 * very short screens instead of overflowing. */
.region.fit { grid-auto-rows: auto; }
.hero-cell { container: hero / size; height: calc(100svh - 4.5rem);
  grid-template-rows: minmax(0, 1fr) auto; overflow: clip; }
/* Centred in the space above the proof strip, like the system page's overview */
.hero-text { align-self: center; min-height: 0; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(0.25rem, 2cqh, var(--head-gap));
  padding: clamp(0.75rem, 6cqh, var(--head-pt)) var(--inset-section) clamp(0.75rem, 5cqh, var(--head-pb)); }
.hero-text h1 { font-size: clamp(1.25rem, min(8cqh, 8.25cqi), 1.5rem); }   /* 20–24px (was 24–36) */
.hero-text .desc { font-size: clamp(0.75rem, 3cqh, 0.875rem); }               /* 12–14px; kept on short (landscape) screens */
.hero-tagline { color: var(--ink-index, inherit); }                          /* the old 00's style: mono 12px */
/* Title and tagline read as one unit (an <hgroup>): a small fixed gap that
 * doesn't scale with the screen height, unlike the hero's other gaps (cqh), so
 * the tagline sits the same distance under the title on every device. */
.hero-heading { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; margin: 0; }
.hero-heading > * { margin: 0; }
.hero-text .actions { margin-top: clamp(0rem, 2cqh, 0.75rem); }
/* The hero cell has no explicit columns, so span-center's `1 / -1` would collapse
   to one: span the page's columns instead. From tablets the body is two columns
   narrower and still centred: the middle 6 of 8, then the middle 6 of 12. */
.hero-cell { grid-template-columns: repeat(var(--bp-cols), minmax(0, 1fr)); }   /* equal columns, matching the page's */
.hero-cell > .span-center { grid-column: span var(--bp-cols); }
@container bp-page (min-width: 768px) { .hero-cell > .span-center { grid-column: 2 / span 6; } }
@container bp-page (min-width: 1024px) { .hero-cell > .span-center { grid-column: 4 / span 6; } }

/* Isometric hero (isometric-hero.js): a canvas behind the text, edge to edge
   inside the rails. Every mark is --iso-ink at an opacity. */
.hero-cell { position: relative; --iso-ink: var(--sys-brd-primary, #2855ad); }
.hero-cell > .iso-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 0; pointer-events: none;
  /* fades in from the top: transparent at 0, fully drawn from 40% of the height down */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%); }
.hero-cell > :not(.iso-canvas) { position: relative; z-index: 1; }

/* --- Hero app mockups ------------------------------------------------------
 * From 390 × 844 up (desktops: from 1024 wide, 560 tall, so laptop windows
 * with the browser's bars still get it), a device sits under the hero text and runs off the bottom
 * of the hero (its overflow clips it), with the technologies strip on top.
 * The text moves up to make room; the isometric grid is unchanged (its safe
 * zone follows the text, and the device is one of the rects it avoids).
 * One device per tier, the others display: none (so their lazy screenshots
 * never load): an iPhone on phones, an iPad on tablets, a Safari window from
 * 1024px. Frames are mixes of Canvas and CanvasText, so they follow the theme
 * (light and dark). wireframe.js cycles the screenshots (.is-on). */
.hero-stage { display: none; }
@media (min-width: 390px) and (min-height: 844px), (min-width: 1024px) and (min-height: 560px) {
  .hero-cell { grid-template-rows: auto minmax(0, 1fr) auto; }
  .hero-cell > .hero-text { align-self: start;
    padding-top: clamp(0.75rem, 4cqh, var(--head-pt)); padding-bottom: 0; }
  .hero-stage { display: block; grid-row: 2 / 4; grid-column: 1 / -1; min-height: 0;
    margin-top: clamp(1.5rem, 5cqh, 3rem); }
  .hero-cell > .proof { grid-row: 3; grid-column: 1 / -1; z-index: 2; }   /* placed, or auto-placement puts it beside the stage */
  /* the strip is solid, on the same grained ground as the page around it, so
     the device never shows through it */
  .hero-cell > .proof { background: var(--grain, none) 0 0 / 240px 240px repeat, var(--proof-bg); }
}
.hero-stage {
  --dev-frame: color-mix(in srgb, CanvasText 5%, Canvas);
  --dev-edge: color-mix(in srgb, CanvasText 16%, Canvas);
  --dev-ink: color-mix(in srgb, CanvasText 88%, Canvas);
  --dev-muted: color-mix(in srgb, CanvasText 28%, Canvas);
  --dev-shadow: 0 0.125rem 0.375rem color-mix(in srgb, CanvasText 8%, transparent),
                0 1.25rem 2.5rem -0.5rem color-mix(in srgb, CanvasText 18%, transparent),
                0 3rem 6rem -1.5rem color-mix(in srgb, CanvasText 28%, transparent); }
:root { --proof-bg: var(--sec-even, Canvas); }   /* the hero's own surface (system style: white under the grain) */
/* .device places and sizes the mockup and is its size container; .device-body
   draws the frame in cqi, so the frame scales with the device. The mockups are
   the one exception to the site's right angles (border-radius: 0 !important):
   real devices have round corners, so their radii are !important too. */
.device { display: none; position: absolute; top: 0; left: 50%; translate: -50% 0; margin: 0;
  container-type: inline-size; perspective: 1600px; }
/* Tilt: the device leans a little towards the pointer (hover) or the tap
   (wireframe.js sets --tilt-x / --tilt-y, at most 3°), and settles back. */
.device-body { position: relative; box-sizing: border-box;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-origin: 50% 30%;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); will-change: transform;
  background: var(--dev-frame); border: var(--stroke) solid var(--dev-edge); box-shadow: var(--dev-shadow); }
.device-screen { position: relative; overflow: hidden; background: #fff; }
/* screenshots fill the width from the top; whatever is taller is cut at the bottom */
.device-screen > img { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block;
  opacity: 0; transition: opacity 0.8s ease; }
.device-screen > img.is-on { opacity: 1; }
/* the device follows the window width, not the page's (a classic scrollbar
   takes ~15px, which would keep a 1024px window on the tablet) */
@media (max-width: 599.98px) { .device-phone { display: block; } }
@media (min-width: 600px) and (max-width: 1023.98px) { .device-tablet { display: block; } }
@media (min-width: 1024px) { .device-browser { display: block; } }

/* iPhone: a thin even bezel, deep corners (no Dynamic Island) */
.device-phone { width: min(calc(100% - 2 * var(--inset-section)), 18rem); }
.device-phone .device-body { padding: 2.5cqi; border-radius: 15cqi !important; }
.device-phone .device-screen { aspect-ratio: 9 / 19.5; border-radius: 12.5cqi !important; }

/* iPad, landscape: an even bezel, soft corners, the camera dot on the top edge.
   The screenshots fill the width and are cut at the bottom (their side margins
   are cropped in the files, so there is no white either side). */
.device-tablet { width: 75%; }
.device-tablet .device-body { padding: 2.75cqi; border-radius: 4.5cqi !important; }
.device-tablet .device-body::before { content: ""; position: absolute; top: 1.375cqi; left: 50%; translate: -50% -50%;
  width: 0.8cqi; height: 0.8cqi; border-radius: 50% !important; background: var(--dev-muted); }
.device-tablet .device-screen { aspect-ratio: 4 / 3; border-radius: 1.75cqi !important; }

/* Safari window: a white window, a title bar with the red, yellow and green
   window buttons and the shown tool's name (wireframe.js, from data-title).
   Three quarters of the 10 columns it first had. */
.device-browser { width: min(calc(100% * 10 / 12 * 0.75), 54rem); }
.device-browser .device-body { border-radius: 0.75rem !important; overflow: hidden; background: light-dark(#fff, Canvas); }
.browser-bar { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center;
  height: 2.25rem; padding-inline: 0.875rem; border-bottom: var(--stroke) solid var(--dev-edge); }
.browser-dots { display: flex; gap: 0.5rem; }
.browser-dots i { width: 0.625rem; height: 0.625rem; border-radius: 50% !important; background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12); }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url { justify-self: center; width: min(100%, 22rem); padding: 0.3125rem 0.75rem; border-radius: 0.375rem !important;
  background: color-mix(in srgb, CanvasText 6%, Canvas); color: var(--logo-label, var(--dev-muted));
  font: 400 0.6875rem/1 var(--font-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-browser .device-screen { aspect-ratio: 2000 / 1015; }

/* --- Buttons (after shadcn/ui, square) -------------------------------------
 * 40px tall (shadcn lg), 24px sides, 12px Montserrat 500, an 8px gap for an
 * icon. Four variants, strongest first:
 *   primary    filled in the studio orange #E15E06, white text, darker on hover
 *   secondary  filled with the strongest ink, a touch lighter on hover
 *   tertiary   outlined on the page colour, tinted on hover
 *   ghost      text and an arrow only, tinted on hover (12px sides)
 * All: a 3px focus ring, a 1px press, 50% when disabled, a real border in
 * forced-colours mode. Colours are variables; system-style.css maps them. */
:root {
  --btn-primary-bg: var(--studio-orange); --btn-primary-fg: #000;
  --btn-secondary-bg: CanvasText; --btn-secondary-fg: Canvas;
  --btn-tertiary-bg: Canvas;      --btn-tertiary-fg: CanvasText;   --btn-tertiary-brd: color-mix(in srgb, CanvasText 50%, Canvas);   /* ≥ 3:1 */
  --btn-ghost-fg: CanvasText;
  --btn-hover-tint: color-mix(in srgb, CanvasText 7%, Canvas);
  --btn-ring: color-mix(in srgb, CanvasText 45%, transparent);
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 1.5rem; border: var(--stroke) solid transparent; border-radius: 0;
  font: 500 0.75rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;   /* 12px (was 14) */
  user-select: none; -webkit-tap-highlight-color: transparent;
  outline: 2px solid transparent; outline-offset: 2px;          /* visible in forced-colours mode */
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg);
  font-weight: 600; }                                      /* SemiBold; black on the orange is 5.8:1 (white was 3.6:1) */
/* hover lightens: black text keeps its contrast (darkening would drop it to 4.5:1) */
.btn-primary:hover { background: color-mix(in srgb, var(--btn-primary-bg) 85%, #fff);
  border-color: color-mix(in srgb, var(--btn-primary-bg) 85%, #fff); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); border-color: var(--btn-secondary-bg); }
.btn-secondary:hover { background: color-mix(in srgb, var(--btn-secondary-bg) 88%, var(--btn-secondary-fg));
  border-color: color-mix(in srgb, var(--btn-secondary-bg) 88%, var(--btn-secondary-fg)); }
.btn-tertiary { background: var(--btn-tertiary-bg); color: var(--btn-tertiary-fg); border-color: var(--btn-tertiary-brd); }
.btn-tertiary:hover { background: var(--btn-hover-tint); }
.btn-ghost { background: transparent; color: var(--btn-ghost-fg); padding-inline: 0.75rem; }
.btn-ghost:hover { background: var(--btn-hover-tint); }
.head-action .btn-ghost { margin-right: -0.75rem; }      /* the text, not the hover area, lines up with the edge */
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--btn-ring); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-icon { width: 1rem; height: 1rem; flex: none; transition: transform 0.15s; }
.btn:hover .btn-icon { transform: translateX(2px); }
html.hc .btn-tertiary { border-color: var(--btn-tertiary-fg); }
@media (forced-colors: active) { .btn { border-color: ButtonText; } .btn:focus-visible { outline-color: Highlight; } }
/* Phones: the buttons share the width, stacked under 360px */
@container bp-page (max-width: 599.98px) { .hero-text .actions { width: 100%; } .hero-text .actions .btn { flex: 1 1 9rem; } }
/* Social proof strip (after rayon.design/roles): one row of separate rectangles
 * at the bottom of the hero, clipped at the rails (never past the grid, so the
 * side padding stays clean), ready to scroll later.
 * Every entry is square-cornered with a 1px dashed border and a 5px square on
 * each corner, centred exactly on the border line (one pseudo-element, four
 * squares, inset −(corner + stroke) / 2 = −3px), so the corners can't drift. */
/* The strip is a banner: the row's full top line (.ln-row, so the + markers
   land on it), then the moving cards, then the label under them, centred (the
   hero description's face, 11px, grey). The track clips the logos at the rails. */
.proof { position: relative; min-width: 0;
  overflow-x: clip;                                       /* the logos stop at the rails */
  padding-block: clamp(0.5rem, 4cqh, 1.25rem) clamp(0.5rem, 3cqh, 1rem); }
.proof-label { margin: clamp(0.375rem, 2cqh, 0.75rem) 0 0; color: var(--logo-label); text-align: center; white-space: nowrap;
  font-family: var(--font-body); font-weight: 300; font-size: 0.6875rem; line-height: 1.6; }
:root { --hairline: color-mix(in srgb, CanvasText 14%, Canvas);    /* the grid's grey, kept when grid lines are hidden */
  --proof-rule: var(--hairline); }
.proof-track { list-style: none; margin: 0; padding: 0.25rem 0; display: flex; justify-content: center; }   /* 4px keeps the corner squares */
.proof-item { margin-inline: 0.625rem; }                  /* 20px between boxes, as margins so a copied set tiles exactly */
/* The band runs right to left on an 80s loop (wireframe.js appends a hidden
   copy of the logos, so moving by half the track is one seamless lap). It
   pauses under the pointer. With reduced motion (the OS setting or the site's)
   it stays still: no animation, the copy hidden, the set centred as before. */
.proof-track.is-looping { justify-content: flex-start; width: max-content; animation: proof-loop 80s linear infinite; }
.proof:hover .proof-track.is-looping { animation-play-state: paused; }
@keyframes proof-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .proof-track.is-looping { animation: none; width: auto; justify-content: center; }
  .proof-track.is-looping > [aria-hidden="true"] { display: none; }
}
html.reduce-motion .proof-track.is-looping { width: auto; justify-content: center; }
html.reduce-motion .proof-track.is-looping > [aria-hidden="true"] { display: none; }
.proof-item { --corner: 5px; position: relative; flex: 0 0 auto; box-sizing: border-box;
  min-width: 7rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.375rem; padding: clamp(0.375rem, 2cqh, 0.625rem) 1rem;           /* 6px between logo and name */
  border: var(--stroke) dashed var(--mark); white-space: nowrap; }
/* Logos: 20px tall, filled in --logo-fill (sys-icon-tertiary), lines in
   --logo-ink (sys-icon-secondary): the Grasshopper mark is a line drawing, so
   it is stroked. Under each, the name in the tagline's mono at 9px, caps, widely tracked, grey. */
:root { --logo-fill: color-mix(in srgb, CanvasText 70%, Canvas); --logo-ink: color-mix(in srgb, CanvasText 85%, Canvas);
  --logo-label: color-mix(in srgb, CanvasText 55%, Canvas); }
.proof-logo { display: block; height: 1.25rem; width: auto; max-width: 100%; fill: var(--logo-fill); }
.proof-logo.is-line { fill: none; stroke: var(--logo-ink); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round;
  height: 1.5rem; margin-block: -0.125rem; }              /* its 48-unit drawing has more air: same optical size */
.proof-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.5625rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--logo-label); }   /* 9px (below the 12px floor, by request) */
.proof-item::before { content: ""; position: absolute; pointer-events: none;
  inset: calc((var(--corner) + var(--stroke)) / -2);
  background:
    linear-gradient(var(--mark), var(--mark)) top left     / var(--corner) var(--corner) no-repeat,
    linear-gradient(var(--mark), var(--mark)) top right    / var(--corner) var(--corner) no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom left  / var(--corner) var(--corner) no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom right / var(--corner) var(--corner) no-repeat; }

/* --- CTA banner: centred column, generous block padding ------------------- */
.banner { text-align: center; }
.banner > .span-center { display: flex; flex-direction: column; align-items: center; gap: 1.25rem;  /* sp-xl */
  padding: var(--banner-py) var(--inset-section); }
.banner .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 0; }
.banner .cta a { display: inline-block; padding: 0.75rem 2rem; border: var(--stroke) solid currentColor;  /* h48, sp-3xl */
  font-weight: 600; }                                      /* Montserrat SemiBold */
@container bp-page (max-width: 599.98px) { .banner .cta a { flex: 1 1 12rem; } }
/* the landing CTA banner only: ~20% taller than before (on phones the second
 * button, stacked, already adds most of it; the cell still rounds up to whole
 * modules, so it lands within a few percent) */
.banner-cell .banner > .span-center { padding-block: calc(var(--banner-py) + 1rem); }
@container bp-page (min-width: 600px) { .banner-cell .banner > .span-center { padding-block: calc(var(--banner-py) + 2.75rem); } }
/* The banner is always dark, whatever the page theme: `color-scheme: dark` on
 * its cell makes the browser colours (Canvas, CanvasText, LinkText and the
 * --line / --mark mixes) resolve dark inside it. `color` is set again because
 * the inherited one was resolved light on <body>.
 * Behind the content, the perspective floor (perspective-floor.js): a WebGL
 * canvas filling the cell, horizon at 2/3 of the height. The projection lines
 * take the text colour (faintly) and the square floor takes --floor-accent. */
.banner-cell { color-scheme: dark; background: Canvas; color: CanvasText; position: relative;
  --floor-accent: CanvasText; }        /* the square floor (the projection lines take the text colour, faintly) */
.banner-cell .desc { color: color-mix(in srgb, CanvasText 72%, Canvas); }
.banner-cell .cta a { background: CanvasText; color: Canvas; border-color: CanvasText; text-decoration: none;
  transition: background-color 0.15s, color 0.15s; }
.banner-cell .cta a:hover { background: transparent; color: CanvasText; }
.banner-cell .cta a:focus-visible { outline: 2px solid CanvasText; outline-offset: 3px; }
html.reduce-motion .banner-cell .cta a { transition: none; }
.floor-canvas { z-index: 0; }          /* placed by the script: absolute, full cell */
/* VP1′ / VP2′: the side vanishing points' labels, placed by the script on the
   horizon; the padding lifts the text 6px above it and makes a bigger handle,
   since each label drags its point along the horizon */
.banner-cell > span.floor-vp { z-index: 2; padding: 0.5rem 0.5rem 0.375rem; cursor: ew-resize; user-select: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.5625rem;   /* 9px */
  line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--floor-ink, currentColor); }
.banner-cell > span.floor-vp.is-dragging { color: var(--floor-accent, currentColor); }
.banner-cell > :not(.floor-canvas) { position: relative; z-index: 1; }

/* The banner by theme (data-theme, set by wireframe.js from the Appearance
 * setting; both styles). Light: the blueprint navy (#061e4d) with pale ink.
 * Dark: a near-black a step below the page sheet (#121212) with white ink and
 * the dark-mode label orange. Get in touch is the studio orange
 * with black text in both, like every primary button; Schedule a meeting is the
 * outline in the ink. */
:root[data-theme] .banner-cell { background: var(--banner-bg); color: var(--banner-ink);
  --ink-heading: var(--banner-ink); --ink-body: var(--banner-ink); --focus: var(--banner-ink);
  --line: color-mix(in srgb, var(--banner-ink) 22%, transparent);
  --floor-ink: var(--banner-floor); --floor-accent: var(--banner-ink); }
:root[data-theme="light"] .banner-cell { color-scheme: light;
  --banner-bg: var(--sys-bg-blueprint, #061e4d); --banner-ink: var(--sys-txt-light, #e7edff);
  --banner-floor: var(--sys-brd-tertiary, #6b92d3); --banner-label: #e6762b; }
/* dark: a near-black a step below the page sheet (#202020 → #121212), white ink,
 * the dark-mode section-label orange */
:root[data-theme="dark"] .banner-cell { color-scheme: dark;
  --banner-bg: color-mix(in srgb, var(--sys-bg-primary, #202020) 55%, #000); --banner-ink: #fff;
  --banner-floor: color-mix(in srgb, #fff 35%, var(--banner-bg));
  --banner-label: #e6762b; }
:root[data-theme] .banner-cell { --cta-bg: var(--studio-orange); --cta-ink: #000; }
:root[data-theme] .banner-cell .desc { color: color-mix(in srgb, var(--banner-ink) 85%, var(--banner-bg)); }
:root[data-theme] .banner-cell p.idx:has(> .sec-idx) { color: var(--banner-label); }
:root[data-theme] .banner-cell .cta a { border-color: var(--banner-ink); }
:root[data-theme] .banner-cell .cta a.cta-primary { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
:root[data-theme] .banner-cell .cta a.cta-primary:hover { background: color-mix(in srgb, var(--cta-bg) 85%, #fff); border-color: color-mix(in srgb, var(--cta-bg) 85%, #fff); }
/* The hero's Explore Tools, in dark mode: white with black text, like the
 * banner's Schedule a meeting (light mode keeps the outlined button) */
:root[data-theme="dark"] #hero .actions .btn-tertiary { background: #fff; color: #000; border-color: #fff; }
:root[data-theme="dark"] #hero .actions .btn-tertiary:hover { background: color-mix(in srgb, #fff 88%, #000); }
/* Schedule a meeting: white, with strong ink: the blueprint navy in light mode,
 * black in dark mode; hover tints the white slightly toward the ink */
:root[data-theme="light"] .banner-cell { --cta2-ink: var(--sys-bg-blueprint, #061e4d); }
:root[data-theme="dark"] .banner-cell { --cta2-ink: #000; }
:root[data-theme] .banner-cell .cta a.cta-secondary { background: #fff; color: var(--cta2-ink); border-color: #fff; }
:root[data-theme] .banner-cell .cta a.cta-secondary:hover { background: color-mix(in srgb, #fff 88%, var(--cta2-ink)); }
:root[data-theme] .banner-cell .cta a:focus-visible { outline: 2px solid var(--banner-ink); outline-offset: 3px; }
/* The logo above the label: the navbar's mark alone, centred, in the banner's
 * ink, so it follows the theme like the heading: pale on the navy (light mode),
 * navy on the light blue (dark mode). */
.banner-logo { display: flex; justify-content: center; align-self: stretch; margin: 0 0 0.5rem;
  color: var(--banner-ink, CanvasText); }
.banner-logo .brand-mark { width: 2.5rem; height: 2.5rem; }

/* --- Legal pages (privacy.html, terms.html) --------------------------------
 * The document in one readable column (about 70 characters), each numbered
 * section a heading with its paragraphs and bullets. */
.legal { grid-auto-rows: auto; }
.legal-doc { grid-column: 1 / -1; display: grid; gap: 2.5rem; max-width: 46rem;
  padding: var(--inset-section); padding-bottom: calc(var(--inset-section) * 1.5); }
@container bp-page (min-width: 1024px) { .legal-doc { grid-column: 1 / span 8; } }
.legal-sec { display: grid; gap: 0.875rem; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1rem; }
.legal-idx { flex: none; color: var(--ink-index, inherit); }
.legal-sec p, .legal-sec li { margin: 0; font-size: 0.875rem; line-height: 1.65; max-width: 70ch; }
.legal-sec ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; list-style: square; }
.legal-sec a, .head-text .desc a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal-updated { margin: 0; font-size: 0.75rem; opacity: 0.75; }

/* --- FAQ: category tabs (quarter) + accordion (three-quarters) ----------- */
.faq-tabs { grid-column: 1 / -1; }
@container bp-page (min-width: 1024px) { .faq-tabs { grid-column: span 3; } }  /* quarter */
.faq-tabs [role="tablist"] { display: flex; flex-wrap: wrap; }
.faq-tabs [role="tablist"][hidden] { display: none; }
.faq-tabs [role="tab"] { flex: 1 1 100%;   /* one topic per row, full width, on every screen */ display: flex; align-items: center; gap: 0.75rem;   /* the label centred in the row */
  font-weight: 600;                                        /* two steps up from the 400 body (SemiBold) */
  min-height: 3rem; padding: 0.75rem var(--inset-cell); text-align: start;
  background: none; color: inherit; border: 0; border-top: var(--stroke) solid var(--line); border-left: var(--stroke) solid var(--line); }
.faq-tabs [role="tab"]:last-child { border-bottom: var(--stroke) solid var(--line); }   /* closes the list */
/* the current topic: the ruler's hover grey (--band-tint), no underline */
.faq-tabs [role="tab"][aria-selected="true"] { background: var(--band-tint); }
/* the current topic, unmistakable in both themes: a blue tint and a 3px bar in
 * the blueprint blue on its leading edge, in the strong ink */
.faq-tabs [role="tab"][aria-selected="true"] {
  background: color-mix(in srgb, var(--sys-brd-primary, #2855ad) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--sys-brd-primary, #2855ad); color: var(--nav-ink-strong, CanvasText); }
.faq-panels { border-left: var(--stroke) solid var(--line); }
.faq-panels h3.panel-title { padding: 1.75rem var(--inset-section) 1rem; }
.js .faq-panels h3.panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-item { border-top: var(--stroke) solid var(--line); }
.faq-item summary { display: flex; gap: 1.5rem; align-items: baseline; cursor: pointer; list-style: none;
  padding: 1.5rem 3rem 1.5rem 2rem; }                   /* pd-xl, sp-5xl, sp-3xl */
.faq-item summary::-webkit-details-marker { display: none; }
/* open / closed: the carousel's chevron (16px, 1.5 stroke, square caps), pointing
   down when closed and turning up when open; drawn as a mask in the text colour */
.faq-item summary::after { content: ""; flex: none; align-self: center; margin-inline-start: auto;
  width: 1rem; height: 1rem; background: currentColor; transition: transform 0.2s ease;
  -webkit-mask: var(--chevron-down) center / contain no-repeat; mask: var(--chevron-down) center / contain no-repeat; }
.faq-item[open] summary::after { transform: rotate(180deg); }
:root { --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E"); }
@media (forced-colors: active) { .faq-item summary::after { background: CanvasText; } }
.faq-item summary > span:last-child { font-weight: 500; }    /* the question: one step up (Medium) */
/* questions are numbered Q-01, Q-02 … in each topic */
.faq-panels .numbered { counter-reset: item 0; }
.faq-panels .numbered > * .item-idx::before { content: "Q-" counter(item, decimal-leading-zero); content: "Q-" counter(item, decimal-leading-zero) / ""; }
.faq-item summary .item-idx { flex: none; min-width: 2.25rem; }                 /* room for Q-00 */
/* the question codes (Q-01…): a bright blue, semibold, so they stand apart from
 * the questions. #2855ad light (7:1), #5eb1ef dark (7:1 on #202020); both styles. */
:root .faq-item summary .item-idx { color: light-dark(var(--sys-brd-primary, #2855ad), #5eb1ef); font-weight: 600; }
.faq-item .answer { padding: 0 3rem 1.75rem calc(2rem + 1.5rem + 2.25rem); }  /* aligns under the question */
/* an answer with more than one block (a lead-in, a list of links, a closing line) */
div.answer { display: grid; gap: 0.75rem; }
div.answer > p { margin: 0; }
.answer-links { margin: 0; padding-left: 1.25em; display: grid; gap: 0.375rem; list-style: square; }

/* --- 07 Get in touch: the contact form ---------------------------------------
 * As on the original /contact page: the inquiry type (a segmented control, like
 * the settings panel's) with its description and notes in a third, the fields in
 * two thirds; stacked below desktop. Fields are square and outlined in the
 * control grey (--sp-control, >= 3:1), labels in the heading ink, focus like the
 * settings controls. Text in fields is 16px on phones so iOS doesn't zoom. */
.inquiry > .inquiry-aside, .inquiry > .inquiry-fields { grid-column: 1 / -1; }
@container bp-page (min-width: 1024px) {
  .inquiry > .inquiry-aside { grid-column: span 4; }
  .inquiry > .inquiry-fields { grid-column: span 8; }
}
.inquiry .card { gap: 1rem; padding: var(--inset-section); }
.inquiry-types { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.5rem; }
.field > label { padding: 0; font-weight: 500; color: var(--ink-heading, CanvasText); }
/* the side column's headings (Inquiry type, Book a call): subheadings, set like
 * the card titles (heading font, 15px; 16px from desktops) */
.inquiry-label { margin: 0; padding: 0 0 0.75rem; font-family: var(--font-heading); font-weight: 400;
  font-synthesis: none; letter-spacing: -0.01em; font-size: 0.9375rem; line-height: 1.3;
  color: var(--ink-heading, CanvasText); }                      /* a legend sits outside the fieldset's grid gap */
@container bp-page (min-width: 1024px) { .inquiry-label { font-size: 1rem; } }
/* the segmented control, stacked: full-width rows with text labels */
.seg-stack { grid-auto-flow: row; }
.seg-stack .seg-opt + .seg-opt { border-left: 0; border-top: var(--stroke) solid var(--sp-control); }
.seg-stack .seg-face { place-items: center start; padding: 0 0.875rem; font-weight: 500; }
@container bp-page (min-width: 600px) and (max-width: 1023.98px) {
  .seg-stack { grid-auto-flow: column; }                     /* tablets: one row of three */
  .seg-stack .seg-opt + .seg-opt { border-top: 0; border-left: var(--stroke) solid var(--sp-control); }
  .seg-stack .seg-face { place-items: center; }
}
.inquiry-type-desc { margin: 0; }
.inquiry-note { margin: 0; color: var(--ink-body, inherit); opacity: 0.85; }
.inquiry-aside > :last-child { margin-top: 0; }               /* notes flow on (cards push a last button down) */
.inquiry-note a, .inquiry-type-desc a { text-decoration: underline; text-underline-offset: 0.2em; }
/* fields */
.inquiry-row { display: grid; gap: 1rem; }
@container bp-page (min-width: 600px) { .inquiry-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field-hint { margin: 0; font-weight: 400; opacity: 0.75; }
.field input, .field textarea { width: 100%; min-width: 0; margin: 0; padding: 0.625rem 0.75rem;
  font-size: 1rem; line-height: 1.4; color: inherit; background: var(--card-bg, Canvas);
  border: var(--stroke) solid var(--sp-control); }
@container bp-page (min-width: 600px) { .field input, .field textarea { font-size: 0.875rem; } }
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder, .field textarea::placeholder { color: CanvasText; opacity: 0.45; }
.field input:hover, .field textarea:hover { background: var(--band-tint); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid Highlight; outline-offset: -1px; }
.field input:disabled, .field textarea:disabled { opacity: 0.6; }
/* errors: a red that clears AA (4.5:1) as text in both themes */
.inquiry { --error-ink: light-dark(#b42318, #fda29b); --ok-ink: light-dark(#067647, #75e0a7); }
.field [aria-invalid="true"] { border-color: var(--error-ink); box-shadow: inset 0 0 0 1px var(--error-ink); }
.field-error { margin: 0; color: var(--error-ink); }
.inquiry-status:empty { display: none; }
.inquiry-status { padding: 0.75rem 1rem; border: var(--stroke) solid currentColor; }
.inquiry-status.is-ok { color: var(--ok-ink); background: color-mix(in srgb, var(--ok-ink) 8%, transparent); }
.inquiry-status.is-error { color: var(--error-ink); background: color-mix(in srgb, var(--error-ink) 8%, transparent); }
.inquiry-submit { margin: 0; }
@container bp-page (max-width: 599.98px) { .inquiry-submit .btn { width: 100%; } }
/* honeypot: off screen, out of the tab order, hidden from assistive tech */
.inquiry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Get in touch switch: Contact | Meeting, small and centred at the top of each
 * view's section head (one per view; the hidden view's goes with it), set like
 * the navbar links (nav font, 300, tracked, nav ink). The current view
 * (aria-current) gets a faint blue tint and the strong ink. */
/* a switched-off view: .region sets display: grid, which would override [hidden] */
.region[data-view][hidden] { display: none; }
.section-head > .git-switch { grid-column: 1 / -1; display: flex; justify-content: center;
  padding: var(--head-pt) var(--inset-section) 0; }
.section-head > .git-switch + .head-text { padding-top: 2rem; }
.git-switch .seg { grid-auto-columns: 1fr; border-color: var(--hairline, var(--sp-control)); }
.git-switch .seg-opt + .seg-opt { border-left-color: var(--hairline, var(--sp-control)); }
.git-switch .seg-opt { color: var(--nav-ink); text-decoration: none;
  font-family: var(--font-nav); font-weight: 300; font-synthesis: none; font-size: 0.625rem; letter-spacing: 0.06em;
  transition: color 0.15s; }
.git-switch .seg-face { height: 2rem; padding: 0 1rem; white-space: nowrap; }
.git-switch .seg-opt:hover { color: var(--nav-ink-strong); }
.git-switch .seg-opt:hover .seg-face { background: var(--band-tint); }
.git-switch .seg-opt[aria-current="page"] { color: var(--nav-ink-strong); }
.git-switch .seg-opt[aria-current="page"] .seg-face {
  background: color-mix(in srgb, var(--sys-brd-primary, #2855ad) 10%, transparent); }
.git-switch .seg-opt:focus-visible { outline: none; }
.git-switch .seg-opt:focus-visible .seg-face { outline: 2px solid var(--focus, Highlight); outline-offset: -2px; }
/* SAM Schedule a meeting: the form's split mirrored from tablets up, Calendly
 * on the left, the notes on the right (order only: the notes still come first
 * in the reading order, and stacked on phones). The widget's column is white,
 * like Calendly's own page, so the calendar reads as filling it. */
.schedule > .inquiry-aside, .schedule > .schedule-widget { grid-column: 1 / -1; }
@container bp-page (min-width: 600px) {
  .schedule > .schedule-widget { order: -1; grid-column: span 5; }
  .schedule > .inquiry-aside { grid-column: span 3; }
}
@container bp-page (min-width: 1024px) {
  .schedule > .schedule-widget { grid-column: span 8; }
  .schedule > .inquiry-aside { grid-column: span 4; }
}
/* data-resize="true": Calendly reports each step's height and its script sets
 * it on the widget inline, so the box follows the step (700px only until then).
 * Inside, Calendly's page has ~25px above "Select a Day" and ~130px under the
 * calendar (more under the time list, ~63px under Schedule Event), so the column
 * pads the top by the difference: the calendar step sits centred in the white.
 * (Pulling the widget under the column's edge to crop that blank breaks it:
 * Calendly then reports a 26px page and never renders.) */
.schedule .schedule-widget { padding: 6.5rem 0 0; background: #fff;
  display: flex; flex-direction: column; justify-content: center; }
.calendly-inline-widget { min-width: 320px; height: 700px; }
.calendly-inline-widget iframe { display: block; }
/* Loading and failure, over the widget (never hiding it: Calendly stalls when
 * its iframe is out of view). wireframe.js sets data-cal on the column:
 * loading → the skeleton, a calendar-shaped placeholder that shimmers;
 * ready → it fades away; error → a message with Try again. Both sit on the
 * column's white, so they read as Calendly's own ground. */
.schedule .schedule-widget { position: relative; color-scheme: light; }   /* white in both themes, so its controls use light values */
/* bp-snap rounds the cell up to whole modules, so it ends up to one module below
 * this block; the white runs on by a module and the cell clips it at its edge,
 * so the white meets the footer with no strip of the section's colour */
.schedule .schedule-widget::after { content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: var(--bp-mod, 2rem); background: #fff; }
.bp-snap:has(> .schedule) { overflow: clip; }
/* .lined clips its block to itself (to trim the left grid line): let it reach a module lower here */
.lined.schedule { clip-path: inset(0 0 calc(-1 * var(--bp-mod, 2rem)) var(--stroke)); }
.cal-skeleton, .cal-error { position: absolute; inset: 0; z-index: 2; background: #fff; color: #1a1a1a; }
.cal-skeleton { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.75rem; padding: 2rem 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s; }
.schedule-widget[data-cal="loading"] .cal-skeleton { opacity: 1; visibility: visible; transition: none; }
.sk { display: block; border-radius: 0.25rem !important; background: #eceef2; }
.sk-title { width: 9rem; height: 1.5rem; }
.sk-month { display: flex; align-items: center; gap: 2.5rem; }
.sk-arrow { width: 0.75rem; height: 0.75rem; }
.sk-label { width: 7.5rem; height: 1rem; }
.sk-grid { display: grid; grid-template-columns: repeat(7, 2.25rem); gap: 0.875rem 0.5rem; }
.sk-grid i { display: block; width: 2.25rem; height: 2.25rem; border-radius: 50% !important; background: #f2f4f7; }
.sk-grid i:nth-child(7n + 2), .sk-grid i:nth-child(7n + 4) { background: #e6edf9; }   /* the bookable days' tint */
.sk-zone { width: 12rem; height: 1rem; align-self: center; }
@container bp-page (max-width: 599.98px) { .sk-grid { grid-template-columns: repeat(7, 2rem); gap: 0.75rem 0.375rem; } .sk-grid i { width: 2rem; height: 2rem; } }
/* the shimmer: a soft light band crossing every block; still with reduced motion */
.schedule-widget[data-cal="loading"] :is(.sk, .sk-grid i) {
  background-image: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.7) 50%, transparent 70%);
  background-size: 300% 100%; animation: sk-shimmer 1.4s linear infinite; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .schedule-widget[data-cal="loading"] :is(.sk, .sk-grid i) { animation: none; } }
.cal-error { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem var(--inset-section); text-align: center; }
.cal-error[hidden] { display: none; }
.cal-error p { margin: 0; max-width: 28rem; }
.cal-error-title { font-size: 1rem; }
.cal-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* --- Footer: Studio (third) + Site, Tools, Contact, Social (sixths), then the legal row */
.foot-col { display: flex; flex-direction: column; gap: 1rem; padding: 2rem var(--inset-cell); overflow-wrap: anywhere;
  font-size: 0.75rem; }                                                     /* 12px; sp-lg, sp-3xl */
.foot-col h3 { font-size: 0.75rem; letter-spacing: 0.04em; }
.foot-col ul { display: grid; gap: 0.875rem; }                             /* room between entries */
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding: 1rem var(--inset-section); font-size: 0.75rem; }
.foot-end .note { font-size: inherit; }
.foot-end ul { gap: 0.5rem 1.5rem; }
/* Footer links: a muted ink, always underlined (a hairline) so they read as
   links; on hover the ink goes full-strength; pressing nudges them down. Links
   that leave the site carry a small ↗ (inline-block, so it isn't underlined). */
:is(.foot-col, .foot-end) a:not(.foot-brand) { color: var(--nav-ink); transition: color 0.15s;
  text-decoration: underline; text-decoration-thickness: var(--stroke); text-underline-offset: 0.2em; }
:is(.foot-col, .foot-end) a:not(.foot-brand):hover { color: var(--nav-ink-strong); }
:is(.foot-col, .foot-end) a:not(.foot-brand):active { position: relative; top: 1px; }
:is(.foot-col, .foot-end) a:focus-visible { outline: 2px solid var(--focus, Highlight); outline-offset: 2px; }
.foot-col a[href^="http"]::after { content: "\2009↗"; content: "\2009↗" / ""; display: inline-block; }

/* --- Contact page ---------------------------------------------------------- */
/* Arriving from a footer link (contact.html#feedback) tints that card, so the
   jump shows where it landed. */
.card:target { background: var(--btn-hover-tint); }
/* Person card (contact/antonio.html): one vertical card, centred, after a
   team-member card: portrait, a hairline, role and name, a dashed rule, bio,
   contact rows, then icon links in bordered boxes (profiles left, CV right).
   Square corners like the rest. It fits the first screen: the photo's side is
   the screen height minus the sticky bars (--bars) and the rest of the card
   (--pc-rest), between 6.5rem and 17rem, and the card is as wide as the photo
   plus its margins (never narrower than 18rem for the text). Phones in landscape
   are the one case it cannot fit; there the card scrolls. */
.sub > .bp-content.person-wrap { justify-items: center; padding: clamp(0.75rem, 2.5svh, 1.5rem) var(--inset-cell); }
.person-wrap > .person-card { grid-column: 1 / -1; }
.person-card {
  --bars: calc(var(--ruler-h) + var(--crumbs-h) + 3.75rem);   /* ruler + breadcrumbs + navbar */
  --pc-rest: 19rem;                                           /* card minus the photo, plus the section's padding */
  --pc-pad: 0.875rem;
  --pc-photo: clamp(5rem, calc(100svh - var(--bars) - var(--pc-rest)), 8.5rem);   /* ~30% smaller card (was up to 17rem) */
  width: min(100%, max(13.5rem, calc(var(--pc-photo) + 2 * var(--pc-pad))));
  display: flex; flex-direction: column; position: relative;
  /* the settings panel's frame: a grey hairline with corner brackets (::before, shared rule) */
  border: var(--stroke) solid var(--hairline); background: var(--card-bg, Canvas); }
.pc-media { margin: var(--pc-pad) var(--pc-pad) 0; align-self: center; width: min(var(--pc-photo), calc(100% - 2 * var(--pc-pad)));
  aspect-ratio: 1; border: var(--stroke) solid var(--line); overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--hatch) 0 var(--stroke), transparent var(--stroke) var(--hatch-gap)); }
.pc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; gap: 0.125rem; margin-top: var(--pc-pad);
  padding: 1rem var(--pc-pad) 0; border-top: var(--stroke) solid var(--line-ui); }
.pc-role { font-size: 0.75rem; opacity: 0.8; }
.person-card .pc-name { font-size: 1rem; }                     /* 16px (was 18) */
.pc-bio { margin-top: 0.625rem; padding-top: 0.625rem; border-top: var(--stroke) dashed var(--line-ui); }
.pc-list { margin: 0.5rem 0 0; }
.pc-row { display: grid; gap: 0.125rem; padding: 0.25rem 0; }   /* label above value: the narrower card keeps the email on one line */
.pc-row dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.pc-row dd { margin: 0; display: flex; flex-direction: column; gap: 0.125rem; overflow-wrap: anywhere; }
.pc-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  padding: 0.75rem var(--pc-pad) var(--pc-pad); margin-top: auto; }
.pc-links { display: flex; padding: 0.25rem; gap: 0.125rem; border: var(--stroke) solid var(--line-ui); }
/* icon links: 32px targets (above the 24px WCAG minimum), a tint on hover, a press, the focus ring */
.pc-icon-link { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--nav-ink-strong, CanvasText);
  transition: background-color 0.15s, color 0.15s, transform 0.1s; }
.pc-icon-link:hover { background: var(--btn-hover-tint); }
.pc-icon-link:active { transform: translateY(1px); }
.pc-icon-link:focus-visible { outline: 2px solid var(--focus, Highlight); outline-offset: 1px; }
.pc-icon { width: 1.125rem; height: 1.125rem; }
@container bp-page (max-width: 599.98px) { .person-card { --bars: calc(var(--ruler-h) + var(--crumbs-h) + 3.75rem); --pc-pad: 0.75rem; } }
/* From tablets the card spans the footer's Site and Tools columns (page columns
 * 5–8), and the photo grows with it. */
@container bp-page (min-width: 600px) {
  .person-wrap > .person-card { grid-column: 5 / span 4; width: auto; justify-self: stretch;
    --pc-photo: clamp(6rem, calc(100svh - var(--bars) - var(--pc-rest)), 14rem); }
}
/* Behind the card: a static isometric grid like the hero's (2:1 axes, minor and
 * major lines at the hero's opacities) in a very light grey, fading in from the
 * top as the hero's does. The lines are a mask over a grey fill, so the grey
 * follows the theme; the fade is a second mask, intersected. */
.bp-snap:has(> .person-wrap) { position: relative; }
.bp-snap:has(> .person-wrap)::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: color-mix(in srgb, CanvasText 55%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 12L24 24M24 0L48 12M0 12L24 0M24 24L48 12' fill='none' stroke='%23000' stroke-opacity='0.15'/%3E%3Cpath d='M0 0L48 24M0 24L48 0' fill='none' stroke='%23000' stroke-opacity='0.08'/%3E%3C/svg%3E") 0 0 / 48px 24px repeat, linear-gradient(to bottom, transparent 0%, #000 40%);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 12L24 24M24 0L48 12M0 12L24 0M24 24L48 12' fill='none' stroke='%23000' stroke-opacity='0.15'/%3E%3Cpath d='M0 0L48 24M0 24L48 0' fill='none' stroke='%23000' stroke-opacity='0.08'/%3E%3C/svg%3E") 0 0 / 48px 24px repeat, linear-gradient(to bottom, transparent 0%, #000 40%);
  mask-composite: intersect; }
.bp-snap:has(> .person-wrap) > .person-wrap { position: relative; z-index: 1; }

/* --- System page ---------------------------------------------------------- */
.swatch-strip { display: flex; list-style: none; margin: 0; padding: 0; min-height: 5rem; }
.swatch-strip > li { flex: 1; display: flex; align-items: end; padding: 0.75rem;
  border-left: var(--stroke) solid var(--line); }
.swatch-strip > li:first-child { border-left: 0; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.facts dd { margin: 0; font-family: var(--font-heading); font-size: 0.875rem; }   /* 14px (was 16) */
.chip { display: block; height: 4rem; border: var(--stroke) solid var(--line); }
/* light | dark pair, for tokens that change with the mode */
.chip-pair { display: grid; grid-template-columns: 1fr 1fr; height: 4rem; border: var(--stroke) solid var(--line); }
.chip-pair > span + span { border-left: var(--stroke) solid var(--line); }
.card .flag { font-style: italic; }
.type-row { display: flex; flex-direction: column; gap: 0.5rem; }
@container bp-page (min-width: 600px) { .type-row { flex-direction: row; align-items: baseline; gap: 2rem; } .type-row > .meta { flex: 0 0 16rem; } }
.type-row > .specimen { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radius-swatch { display: block; width: 5rem; aspect-ratio: 1; border: var(--stroke) solid var(--line); }
.space-list { list-style: none; margin: 0; padding: 0; }
.space-list > li { display: flex; align-items: center; gap: 1rem; padding: 0.625rem 0; border-top: var(--stroke) solid var(--line); }
.space-list > li > .meta { flex: 0 0 6rem; }
.space-bar { display: block; height: 0.625rem; max-width: 100%; background: currentColor; }
.half-pad { padding: var(--inset-cell); display: flex; flex-direction: column; gap: 1.25rem; }
.radius-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 1rem; }
.radius-grid > li { display: flex; flex-direction: column; gap: 0.75rem; width: 7rem; }
.table-wrap { overflow-x: auto; padding: 0 var(--inset-section) var(--head-pb); }
.table-wrap table { border-collapse: collapse; width: 100%; }
.table-wrap th, .table-wrap td { text-align: start; padding: 0.625rem 1rem 0.625rem 0; border-top: var(--stroke) solid var(--line); }
