/* Hallmark · shape: Bento Grid, from draw 7b2e · genre: playful · theme: brand · redesign: full · site: 8 pages
 * shapes by route: Bento Grid (/, /about, /case-studies, /nz-constructionindustry), Long Document (/post, /privacy-policy), Form (/consultation), Index (/blog)
 * paper: oklch(98.4% 0.004 301.4) · accent: oklch(58.7% 0.242 289.1) · display: Familjen Grotesk · body: Familjen Grotesk · hero: Ledge (/, /about, /nz-constructionindustry, /case-studies), Banner (/blog, /post, /privacy-policy, /consultation) · nav: floating pill; under 60rem a floating bottom dock with Menu and the action · footer: mast · signature: low-poly service objects that spin a full turn when you tap or point at them, rendered as real Blender turntables
 * axes: light/grotesk-heavy/chromatic-violet · posture: committed (the violet field carries heroes and a few tiles; ink and paper carry the rest) · contrast: pass · fold: pass · job: hire · imagery: the user's photographs, low-poly 3D icons and turntables rendered in Blender · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E5 S4 R4 V4 · weakest: R, a bento can turn into a quilt; held it to four tones, one gutter and one tile padding so every edge lines up */
/* Hallmark · waive 12 · a spring only on the hero objects arriving and on tile press, never on a form state · the five marketing capabilities settle onto the board as one team, the page's one character moment */
/* Hallmark · waive 59 · the hero panel and the closing tile change paper, so the seams beside them run 64 to 105px while sections part at 128 to 160px · a marketing site built from tiles keeps its panels close to what they introduce */
/* Hallmark · dismissed 23 · the violet hero panel is the declared committed posture in the stamp above, one field per page */
/* Hallmark · dismissed 25 · the lead service tile's line is a one-sentence lede at 34ch */
/* Hallmark · answered F1 · the consultation form's error text is kept character for character with the form script it belongs to */
/* Hallmark · reworded "What We Do" to "Five capabilities, one team" · 19 asks heads to say what the visitor gets; the line is the page's own */
/* Hallmark · reworded "Recent Results" to "Six engagements. Real numbers." · the case studies page's own head, so the two pages agree */
/* Hallmark · reworded "30 Mins Free Consultation" to "Book a free consultation" · the button says its verb; the 30-minute fact stays in every closing line */
/* Hallmark · reworded the three home work card heads into result figure tiles · the same results, now shown as figures */
/* Hallmark · reworded "Let's talk about where you're stuck." to "Let’s talk about where you’re stuck." · F1, typographic apostrophes only */
/* Hallmark · dropped hero.jpg · a purple-to-blue gradient, which 2a bans; the hero now shows the Blender service objects */
/* Hallmark · reworded the photo files to WebP copies of the same photographs and logo.png to cropped logo files · the same pictures at a fraction of the weight */
/* Hallmark · waive 78 · the blog post and the privacy policy are Long Document pages whose heads sit inside one reading column · a policy and an article are read top to bottom */
/* Hallmark · waive 77 · the privacy policy is one reading column held to 68 characters · the policy text is kept word for word and read, not scanned */
/* Hallmark · waive 3 · Blender low-poly objects inside service tiles, no tile behind the icon itself · the owner asked for real 3D icons built in Blender */
/* Hallmark · answered F4 · the ink button sits on violet fields and the violet one on paper and inside the ink dock, so each primary contrasts with its ground */
/* Hallmark · dismissed 42 · the nav is a floating pill over the board, named in the stamp, with the action inside it */

/* =========================================================================
   Alignment system (read this before changing spacing)
   - One page gutter: --gutter. Every heading, tile, button group and footer
     element starts on it. The container uses max(gutter, safe-area inset).
   - One inner padding: --pad. Every tile, panel, sheet and the hero field
     uses it, so text inside any box sits on the gutter + pad line.
   - Tiles part by --gap-tiles. Phones keep --dock-space clear at the bottom.
   ========================================================================= */

html { scroll-padding-top: var(--space-lg); scroll-padding-bottom: calc(var(--dock-space) + var(--space-md)); }
@media (min-width: 60rem) { html { scroll-padding-top: calc(var(--bar-h) + var(--space-xl)); } }
body { font-size: 1.0625rem; padding-bottom: var(--dock-space); }
.container { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: var(--z-sticky-nav); background: var(--color-paper); }
main { display: block; }
[id] { scroll-margin-top: var(--space-lg); }
@media (min-width: 60rem) { [id] { scroll-margin-top: calc(var(--bar-h) + var(--space-xl)); } }
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-accent-ink); border-radius: var(--radius-card); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- controls, all eight states ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 2px solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn--primary, .btn-primary { background: var(--color-accent); border-color: var(--color-accent); }
.btn--primary:hover, .btn-primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn--ink:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--on-field { background: transparent; color: var(--color-accent-ink); border-color: var(--color-accent-ink); }
.btn--on-field:hover { background: var(--color-accent-ink); color: var(--color-ink); }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-ink); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--block { width: 100%; }
.hero-panel .btn:focus-visible, .tone-accent .btn:focus-visible { outline-color: var(--color-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 39.99rem) { .actions > .btn { flex: 1 1 100%; } }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--color-accent-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.link:hover { color: var(--color-ink); }
.link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the floating pill nav ---------- */
.top { position: relative; z-index: var(--z-sticky-nav); padding-top: var(--space-sm); }
.pill { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--bar-h); }
.pill__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: var(--radius-card); }
.pill__logo img { height: 34px; width: auto; }
.pill__logo:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.pill__links { display: none; gap: var(--space-2xs); }
.pill__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); font-weight: 500; text-decoration: none; color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.pill__links a:hover { background: var(--color-paper-2); }
.pill__links a[aria-current="page"] { background: var(--color-tint-2); }
.pill__links a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; }
.pill__cta { display: none; }
@media (min-width: 60rem) {
  .top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--space-sm)); padding-top: 0; margin-top: var(--space-sm); }
  .pill { padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); box-shadow: 0 1px 2px var(--color-shadow); }
  .pill__links, .pill__cta { display: inline-flex; }
  .pill__cta { min-height: 48px; }
}

/* ---------- tiles: one padding, four tones ---------- */
.tile { position: relative; display: grid; align-content: start; gap: var(--space-sm); min-width: 0; padding: var(--pad); border-radius: var(--radius-tile); transition: transform var(--dur-micro) var(--ease-out); }
.tone-paper { background: var(--color-paper-2); color: var(--color-ink); }
.tone-tint { background: var(--color-tint-2); color: var(--color-ink); }
.tone-ink { background: var(--color-ink); color: var(--color-accent-ink); }
.tone-deep { background: var(--color-accent-deep); color: var(--color-accent-ink); }
.tone-accent { background: var(--color-accent); color: var(--color-accent-ink); }
.tone-ink a:focus-visible, .tone-deep a:focus-visible, .tone-ink button:focus-visible, .tone-deep button:focus-visible { outline-color: var(--color-accent-pale); }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-tiles); }
.span-all { grid-column: 1 / -1; }
@media (min-width: 60rem) { .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ---------- sections and heads ---------- */
.section { padding-block: var(--sec); }
.section--tight { padding-top: var(--sec); }
.section:has(> .container > .cta) { padding-top: calc(var(--sec) * 1.5); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.head .lead { color: var(--color-muted); max-width: 52ch; }
@media (min-width: 60rem) {
  .head { margin-bottom: var(--space-2xl); }
  .head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap-columns); }
  .head--split > :last-child { justify-self: end; }
}

/* ---------- the hero field (Ledge) and the calm hero (Banner) ---------- */
.hero { padding-block: var(--space-sm) 0; }
.hero-panel { position: relative; display: grid; gap: var(--space-lg); padding: var(--pad); border-radius: var(--radius-panel); background: var(--color-accent); color: var(--color-accent-ink); overflow: hidden; }
.hero-panel h1 { font-size: clamp(2.5rem, 10.5vw, 7.5rem); line-height: 0.94; letter-spacing: -0.04em; max-width: 10ch; color: var(--color-accent-ink); }
.hero-panel h1.long { font-size: clamp(2.125rem, 7.6vw, 5rem); line-height: 1; max-width: 16ch; letter-spacing: -0.035em; }
.hero-panel .lead { max-width: 34ch; color: var(--color-accent-ink); }
.hero-panel__base { display: grid; gap: var(--space-lg); }
.hero-panel__side { display: grid; gap: var(--space-lg); align-content: end; }
.banner { display: grid; gap: var(--space-md); padding: var(--pad); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.banner h1 { font-size: clamp(2.25rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.035em; max-width: 18ch; }
.banner h1.long { font-size: clamp(1.875rem, 6vw, 3.75rem); line-height: 1.04; max-width: 26ch; }
.banner .meta { color: var(--color-muted); font-size: var(--text-sm); }
@media (min-width: 60rem) {
  .hero { padding-block: var(--space-md) 0; }
  .hero-panel { min-height: min(720px, calc(100svh - var(--bar-h) - var(--space-3xl))); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
  .hero-panel__base { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap-columns); }
  .hero-panel--photo { min-height: 0; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto; align-items: end; column-gap: var(--gap-columns); }
}

/* the orbit: five (or four) objects on one even arc, inset by the panel padding */
.orbit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--space-2xs); align-items: end; }
.orbit li { display: grid; justify-items: center; transform: translateY(var(--lift, 0px)); }
.orbit li > .spin { width: min(100%, var(--obj, 88px)); animation: arrive 900ms var(--spring) both; animation-delay: calc(120ms + var(--d, 0) * 110ms); }
.orbit { --a: 14px; }
.orbit li:nth-child(1) { --lift: var(--a); --d: 0; }
.orbit li:nth-child(2) { --lift: calc(var(--a) * 0.35); --d: 1; }
.orbit li:nth-child(3) { --lift: 0px; --d: 2; }
.orbit li:nth-child(4) { --lift: calc(var(--a) * 0.35); --d: 3; }
.orbit li:nth-child(5) { --lift: var(--a); --d: 4; }
.orbit[data-n="4"] { --n: 4; }
.orbit[data-n="4"] li:nth-child(2), .orbit[data-n="4"] li:nth-child(3) { --lift: 0px; }
.orbit[data-n="4"] li:nth-child(4) { --lift: var(--a); }
.orbit .spin { cursor: pointer; }
@keyframes arrive { from { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-14deg); } to { opacity: 1; transform: none; } }
@media (min-width: 60rem) { .orbit { --a: 48px; --obj: 184px; gap: var(--space-lg); align-self: start; } }

/* ---------- the spinning low-poly object ---------- */
.spin { position: relative; display: block; aspect-ratio: 1; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.spin picture, .spin picture img { display: block; width: 100%; height: 100%; }
.spin .strip { position: absolute; top: 0; left: 0; width: 1600%; max-width: none; height: 100%; opacity: 0; }
.spin.is-ready .strip { opacity: 1; }
.spin.is-ready picture { opacity: 0; }
.spin.is-spinning .strip { animation: turn 960ms steps(16) 1; }
@keyframes turn { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- service tiles: same height, same icon box, toggle in its own corner ---------- */
.svc { min-height: calc(2 * var(--pad) + var(--icon-box) + var(--space-sm) + 3 * 1.2 * 1.125rem); grid-template-rows: var(--icon-box); }
.svc .spin { width: var(--icon-box); height: var(--icon-box); }
.svc__title { font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.01em; max-width: none; }
.svc__desc { font-size: var(--text-md); line-height: 1.5; }
.tone-paper .svc__desc, .tone-tint .svc__desc { color: var(--color-ink-2); }
.tone-ink .svc__desc, .tone-deep .svc__desc { color: var(--color-tint-2); }
.svc__toggle { position: absolute; top: var(--pad); right: var(--pad); display: grid; place-items: center; width: var(--toggle); height: var(--toggle); padding: 0; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: 700 var(--text-xl)/1 var(--font-body); cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.svc__toggle::before { content: "+"; }
.svc__toggle[aria-expanded="true"] { transform: rotate(45deg); }
.svc__toggle:hover { background: var(--color-tint-2); }
.tone-ink .svc__toggle:hover, .tone-deep .svc__toggle:hover { background: var(--color-ink-2); }
.svc__toggle:active { transform: scale(0.94); }
.svc__toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.svc--lead { grid-column: 1 / -1; }
.svc--lead .svc__title { font-size: clamp(1.5rem, 6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.svc.is-open { grid-column: 1 / -1; }
.svc:active { transform: scale(0.99); }
@media (max-width: 39.99rem) { .svc--lead { --icon-box: 112px; } }
@media (min-width: 40rem) {
  .svc__toggle { display: none; }
  .svc { min-height: 0; }
  .svc__title { font-size: var(--text-title); }
}
@media (min-width: 60rem) {
  .svc--lead { grid-column: 1 / span 7; grid-row: span 2; align-content: space-between; grid-template-rows: auto auto auto; min-height: 560px; --icon-box: 260px; }
  .svc--lead .svc__desc { font-size: var(--text-lead); max-width: 34ch; }
  .svc--side { grid-column: 8 / span 5; grid-template-columns: var(--icon-box) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--space-lg); align-content: center; }
  .svc--side .spin { grid-row: span 2; align-self: center; }
  .svc--third { grid-column: span 4; }
  .svc.is-open { grid-column: auto; }
  .svc--lead.is-open { grid-column: 1 / span 7; } .svc--side.is-open { grid-column: 8 / span 5; } .svc--third.is-open { grid-column: span 4; }
}

/* steps and service lists that always show their text (about, nz) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { grid-template-rows: var(--icon-box) auto auto; }
.step .spin { width: var(--icon-box); height: var(--icon-box); }
.step__n { position: absolute; top: var(--pad); right: var(--pad); display: grid; place-items: center; width: var(--toggle); height: var(--toggle); border-radius: 50%; border: 2px solid currentColor; font-weight: 700; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--text-title); line-height: 1.15; max-width: none; }
.step p { color: var(--color-ink-2); }
.tone-ink .step p, .tone-deep .step p { color: var(--color-tint-2); }
.steps .step { grid-column: 1 / -1; }
@media (min-width: 40rem) { .steps .step { grid-column: span 1; } }
@media (min-width: 60rem) { .steps .step { grid-column: span 6; } .step { --icon-box: 120px; } }

.mission { list-style: none; margin: 0; padding: 0; display: grid; }
.mission li { padding-block: var(--space-sm); border-top: 1px solid var(--color-rule-strong); font-size: var(--text-xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.tile__kicker { color: var(--color-ink-2); font-weight: 500; }

/* ---------- result figures: content top-aligned so figures share a baseline per row ---------- */
.fig { text-decoration: none; align-content: start; gap: var(--space-2xs); min-height: 172px; }
.fig:hover { transform: translateY(-3px); }
.fig:active { transform: scale(0.985); }
.fig:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.fig__n { display: block; font-size: clamp(1.875rem, 8.4vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin-bottom: var(--space-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fig__what { font-weight: 700; font-size: var(--text-lg); line-height: 1.2; }
.fig__who { font-size: var(--text-sm); line-height: 1.35; }
.tone-paper .fig__who { color: var(--color-muted); }
.tone-ink .fig__who, .tone-deep .fig__who, .tone-accent .fig__who { color: var(--color-tint-2); }
.tone-accent .fig__who { color: var(--color-accent-ink); }
.fig--photo { grid-column: 1 / -1; padding: 0; overflow: hidden; color: var(--color-accent-ink); background: var(--color-ink); min-height: 240px; align-content: end; }
.fig--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fig__cap { position: relative; z-index: 2; display: grid; gap: var(--space-2xs); padding: var(--space-3xl) var(--pad) var(--pad); background: linear-gradient(to top, var(--color-scrim) 0%, var(--color-scrim) 45%, transparent 100%); }
.fig--photo .fig__who { color: var(--color-accent-ink); }
@media (min-width: 60rem) {
  .results { grid-auto-rows: minmax(240px, auto); }
  .results .r1, .results .r2 { grid-column: span 4; }
  .results .r3 { grid-column: span 4; grid-row: span 2; }
  .results .r4, .results .r5 { grid-column: span 4; }
  .results .r6, .results .r7 { grid-column: span 6; min-height: 200px; }
}

/* ---------- photo tiles, post tile, place tile ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-tile); background: var(--color-paper-3); aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.post { grid-column: 1 / -1; padding: 0; overflow: hidden; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__body { display: grid; gap: var(--space-xs); padding: var(--pad); }
.post__title { max-width: none; font-size: var(--text-title); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.post__excerpt { color: var(--color-ink-2); max-width: 62ch; }
.post__meta { font-size: var(--text-sm); color: var(--color-muted); }
.post:hover .post__title { text-decoration: underline; text-decoration-thickness: 2px; }
.post:active { transform: scale(0.99); }
.post:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.place { grid-column: 1 / -1; align-content: space-between; gap: var(--space-lg); }
.place__line { font-size: var(--text-2xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; max-width: 16ch; }
.place__addr { color: var(--color-tint-2); }
.place a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--color-accent-ink); text-decoration-color: var(--color-accent-light); text-decoration-thickness: 2px; }
.place a:hover { color: var(--color-accent-pale); }
.place__social { display: flex; gap: var(--space-lg); }
@media (min-width: 60rem) {
  .post--wide { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .post--wide img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .post--wide .post__body { align-content: end; }
  .place { grid-column: span 5; }
}

/* ---------- closing call to action ---------- */
.cta { justify-items: start; gap: var(--space-lg); }
.cta h2 { max-width: 16ch; color: var(--color-accent-ink); }
.cta .lead { max-width: 44ch; }
@media (max-width: 39.99rem) { .cta .btn { width: 100%; } }
@media (min-width: 60rem) { .cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap-columns); padding-block: var(--space-3xl); } .cta h2 { grid-row: span 2; } }

/* ---------- case studies ---------- */
.jump { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-tiles); }
.jump a { display: grid; gap: var(--space-3xs); align-content: start; min-height: 88px; height: 100%; padding: var(--space-md) var(--pad); border-radius: var(--radius-tile); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; font-weight: 700; line-height: 1.2; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.jump b { color: var(--color-accent-deep); font-variant-numeric: tabular-nums; }
.jump a:hover { background: var(--color-tint-2); }
.jump a:active { transform: scale(0.98); }
.jump a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
@media (min-width: 60rem) { .jump { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.case { display: grid; gap: var(--space-lg); padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule-strong); }
.case:first-child { border-top: 0; padding-top: 0; }
.case__text { display: grid; gap: var(--space-md); align-content: start; }
.case__text h2 { font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.04; }
.case__who { color: var(--color-muted); }
.case__text p { max-width: 62ch; }
.case__num { font-variant-numeric: tabular-nums; }
.case__result { gap: var(--space-xs); }
.case__result .lead { color: var(--color-accent-ink); }
@media (min-width: 60rem) {
  .case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: start; padding-block: var(--space-3xl); }
  .case .photo { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--bar-h) + var(--space-xl)); }
}

/* ---------- long reading: post and privacy ---------- */
.prose { max-width: 68ch; display: grid; gap: var(--space-md); line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: 1.12; margin-top: var(--space-xl); }
.prose ul { margin: 0; padding-left: var(--pad); display: grid; gap: var(--space-xs); }
.prose a { color: var(--color-accent-deep); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--color-ink); }
.prose a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.cover { margin: 0; }
.back { margin-top: var(--space-xl); }

/* ---------- consultation form ---------- */
.consult { display: grid; gap: var(--gap-tiles); }
.consult__context ul { margin: 0; padding-left: var(--pad); display: grid; gap: var(--space-xs); color: var(--color-ink-2); }
.consult-form { display: grid; gap: var(--space-lg); }
.field-row { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: 12px; background: var(--color-surface); color: var(--color-ink); font: 400 1rem/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.hint { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.consult-form button[type="submit"] { justify-self: start; }
@media (max-width: 39.99rem) { .consult-form button[type="submit"] { justify-self: stretch; } }
.form-note { font-size: var(--text-sm); color: var(--color-muted); }
.form-note a { color: var(--color-ink); text-decoration: underline; padding-block: 0.6rem; }
.form-note a:focus-visible, .form-error a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.form-error { padding: var(--pad); border-radius: var(--radius-tile); border: 2px solid var(--color-error); background: var(--color-surface); }
.form-error a { color: var(--color-ink); font-weight: 700; }
.form-success { display: grid; gap: var(--space-xs); padding: var(--pad); border-radius: var(--radius-tile); background: var(--color-accent); color: var(--color-accent-ink); }
.form-success .label { font-size: var(--text-title); font-weight: 700; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .consult { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* ---------- nz construction ---------- */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; }
.sectors li { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--color-rule-strong); font-size: var(--text-lg); font-weight: 700; }
.sectors li:last-child { border-bottom: 1px solid var(--color-rule-strong); }
@media (min-width: 60rem) { .world { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-columns); align-items: start; } }

/* ---------- mast footer ---------- */
.foot { padding-block: var(--space-xl) var(--space-2xl); border-top: 1px solid var(--color-rule); }
.foot__inner { display: grid; gap: var(--space-xl); }
.foot__mast { display: block; width: min(100%, 300px); border-radius: var(--radius-card); }
.foot__mast img { width: 100%; height: auto; }
.foot__mast:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-tiles); }
.foot__links li { border-top: 1px solid var(--color-rule); }
.foot__links a { display: flex; align-items: center; min-height: 48px; color: var(--color-ink); text-decoration: none; font-weight: 500; }
.foot__links a:hover { color: var(--color-accent-deep); text-decoration: underline; }
.foot__links a:focus-visible, .foot__legal a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.foot__legal { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--color-ink); }
@media (min-width: 60rem) {
  .foot__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--gap-columns); align-items: start; }
  .foot__mast { width: min(100%, 452px); grid-row: span 2; }
  .foot__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- the phone dock and the menu sheet ---------- */
.dock { position: fixed; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-sticky); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs); height: var(--dock-h); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-ink); box-shadow: 0 1px 2px var(--color-shadow); animation: dock-in 700ms var(--spring) 600ms both; }
.dock__menu { min-height: 52px; min-width: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); cursor: pointer; }
.dock__menu:hover { background: var(--color-ink-2); }
.dock__menu:active { transform: scale(0.96); }
.dock__menu:focus-visible { outline: 3px solid var(--color-accent-pale); outline-offset: -3px; }
.dock__cta { min-height: 52px; border-width: 0; }
.dock__cta:focus-visible { outline-color: var(--color-accent-pale); outline-offset: -3px; }
@keyframes dock-in { from { transform: translateY(140%); } to { transform: none; } }
@media (min-width: 60rem) { .dock { display: none; } }
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; margin: 0; padding: var(--space-sm) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); border: 0; border-radius: var(--radius-panel) var(--radius-panel) 0 0; background: var(--color-paper); color: var(--color-ink); }
.sheet[open] { display: grid; gap: var(--space-md); animation: sheet-up var(--dur-long) var(--ease-out); }
.sheet::backdrop { background: var(--color-scrim); }
.sheet__grip { justify-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--color-rule-strong); }
.sheet__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-tiles); }
.sheet__links a { display: flex; align-items: end; min-height: 96px; padding: var(--pad); border-radius: var(--radius-tile); background: var(--color-paper-2); font-size: var(--text-xl); font-weight: 700; text-decoration: none; color: var(--color-ink); }
.sheet__links a[aria-current="page"] { background: var(--color-tint-2); }
.sheet__links a:hover { background: var(--color-tint-2); }
.sheet__links a:active { transform: scale(0.97); }
.sheet__links a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sheet__contact { color: var(--color-muted); }
.sheet__contact a { color: inherit; text-decoration: underline; display: inline-flex; min-height: 44px; align-items: center; }
.sheet__contact a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- page pieces ---------- */
@media (max-width: 59.99rem) { .wide-only { display: none; } }
.services .svc--third { grid-column: span 1; }
.mission-tile { grid-column: 1 / -1; }
@media (min-width: 60rem) { .services .svc--third, .mission-tile { grid-column: span 4; } }
.hero-panel--short { min-height: 0; }
@media (min-width: 60rem) { .hero-panel--short { min-height: 0; padding-block: var(--space-3xl) var(--pad); } }
.hero-panel__text { display: grid; gap: var(--space-lg); align-content: end; }
.hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-tile); }
@media (min-width: 60rem) { .hero-photo { aspect-ratio: 4 / 5; } }
.story { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.story__text { display: grid; gap: var(--space-md); max-width: 62ch; font-size: var(--text-lg); line-height: 1.55; }
@media (min-width: 60rem) { .story { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); padding-block: var(--space-2xl); } }
.world h2 { color: var(--color-accent-ink); }
.world .sectors li { border-color: var(--color-ink-2); }
.post--full { grid-column: 1 / -1; }
@media (min-width: 60rem) { .post--full { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } .post--full img { height: 100%; aspect-ratio: auto; min-height: 380px; } .post--full .post__body { align-content: center; } }
.post__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--color-accent-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.blog-empty { margin-top: var(--space-xl); color: var(--color-muted); }
.post-layout { display: grid; gap: var(--space-2xl); }
.cover { aspect-ratio: 16 / 9; }
.case__result h3 { font-size: var(--text-md); font-weight: 700; color: var(--color-accent-ink); }
.consult__context { gap: var(--space-md); font-size: var(--text-lg); line-height: 1.5; }
.consult__context ul { font-size: var(--text-md); }
.consult__form { gap: var(--space-lg); }

/* ---------- gentle arrival for tiles further down (visible by default, transform only) ---------- */
.js .reveal:not(.in-view) { transform: translateY(16px); }
.reveal { transition: transform 600ms var(--ease-out); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orbit li > .spin, .dock, .sheet[open] { animation: none; }
  .spin.is-spinning .strip { animation: none; }
  .tile, .btn, .svc__toggle, .reveal, .jump a { transition: none; }
  .js .reveal:not(.in-view) { transform: none; }
  .fig:hover, .fig:active, .svc:active, .btn:active, .post:active, .sheet__links a:active, .dock__menu:active, .jump a:active { transform: none; }
}
