/*
Theme Name: MB Business Woven
Author: Melissa
Description: Portfolio, honest blog and kids' activities for Melissa / MB Business Support. The Woven design: a moving photo collage, pastel ribbons, animated work covers and a career thread.
Version: 6.20.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mbbusiness
*/

/* ==========================================================================
   Woven design principles
   • Warm daylight pastels (lilac, blush, peach, butter, sage) on warm white,
     with deep plum ink for contrast. One typeface, Figtree, used with weight.
   • Real moving pictures only: Melissa's photos, our chalk windows and Lucy
     Doodles art, looped silently. Diagrams are labelled "Illustrative motion".
   • Threads tie it together: ribbons in the heroes, a thread through the
     career, a washing line for the blog.
   • Motion reveals, follows or sways. It is all off under reduced motion, and
     everything is visible if JavaScript fails.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/figtree-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(fonts/figtree-latin-wght-italic.woff2) format("woff2-variations"), url(fonts/figtree-latin-wght-italic.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --page-bg: #fbf7f4;
  --paper: #fffdfb;
  --ink: #261f2b;
  --ink-2: #554b5c;
  --ink-3: #64596b;
  --line: rgba(38, 31, 43, .12);
  --lilac: #cdbbea;
  --lilac-2: #b9a2e6;
  --lilac-soft: #ece4f8;
  --lilac-deep: #5d4192;
  --lilac-ink: #3d2a63;
  --blush: #f3cbc6;
  --blush-soft: #fbe6e5;
  --peach: #f8d6bb;
  --peach-2: #f4b48e;
  --peach-soft: #fdeee2;
  --butter: #f6e6ae;
  --butter-2: #efd47e;
  --sage: #b9d9c4;
  --sage-2: #93c3a5;
  --sage-soft: #e1f2e8;
  --warm: #a4512f;
  --thread: #ee9a78;
  --accent: var(--lilac-deep);
  --font: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 72px;
}
.mb-about { --accent: #9b3f5c; }
.mb-kids { --accent: #2f6b4b; }
.mb-journal, .mb-article { --accent: var(--warm); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color 1s var(--ease); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; border-radius: 6px; }
.visually-hidden, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
main { display: block; }

/* ---------- Motion helpers (gated by .motion-ok, set before first paint) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion-ok [data-split] .wi { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 45ms + 80ms); }
.motion-ok [data-split].in .wi { transform: none; opacity: 1; }
.motion-ok [data-reveal]:not([data-reveal="mask"]):not([data-reveal="portrait"]) { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0s)); }
.motion-ok [data-reveal]:not(.in):not([data-reveal="mask"]):not([data-reveal="portrait"]) { opacity: 0; transform: translateY(24px); }
.motion-ok [data-reveal="mask"], .motion-ok [data-reveal="portrait"] { clip-path: inset(14% 14% 14% 14% round 40px); transition: clip-path 1.3s var(--ease); }
.motion-ok [data-reveal="mask"].in, .motion-ok [data-reveal="portrait"].in { clip-path: inset(0 0 0 0 round var(--radius)); }
.motion-ok [data-draw] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.motion-ok [data-draw].in path { stroke-dashoffset: 0; }

/* ---------- Type ---------- */
.eyebrow, .label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow-warm { color: var(--warm); }
.label-num { display: none; }
.display { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
.h-xl { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 720; }
.h-lg { font-size: clamp(1.8rem, 1.25rem + 1.8vw, 2.7rem); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
.h-md { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.h-sm { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
h1 em, h2 em, h3 em, .display em, .h-xl em, .h-lg em, .h-md em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
p { max-width: 68ch; }
.small { font-size: .92rem; }
.muted { color: var(--ink-3); }
.columns-2 { columns: 2 320px; column-gap: 40px; }
.columns-3 { columns: 3 260px; column-gap: 36px; }
.columns-2 p, .columns-3 p { break-inside: avoid; margin-bottom: 1em; }

/* ---------- Buttons and links ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; text-decoration: none; padding: 14px 20px; border-radius: 14px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px -14px rgba(38, 31, 43, .6); transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease); }
.button:hover { transform: translateY(-3px); background: var(--lilac-deep); }
.button-light, .button-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button-light:hover, .button-ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.arrow { display: inline-flex; transition: transform .35s var(--ease); }
.button:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link::after { content: "→"; display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.section-action { margin-top: 40px; }
.section-action-split { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }

/* ---------- Media frames and tags ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--lilac-soft); isolation: isolate; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: .74rem; font-weight: 600; padding: 5px 9px; border-radius: 6px; background: rgba(255, 253, 251, .9); color: var(--ink-2); max-width: calc(100% - 24px); line-height: 1.3; }
.tag b { color: var(--ink); font-weight: 700; }
.illus { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--ink-2); }
canvas.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s, box-shadow .4s; }
.site-header[data-scrolled], .menu-open .site-header { background: rgba(251, 247, 244, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; }
.brand span, .footer-brand span { color: var(--lilac-deep); }
.site-nav-list { list-style: none; display: flex; gap: 28px; font-weight: 550; font-size: .98rem; }
.site-nav-list a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.site-nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--lilac-deep); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.site-nav-list a:hover, .site-nav-list a[aria-current] { color: var(--ink); }
.site-nav-list a:hover::after, .site-nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-contact-item, .nav-note { display: none; }
.header-cta { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); transition: transform .3s var(--ease), background .3s; }
.header-cta:hover { background: var(--lilac-deep); transform: translateY(-2px); }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--ink); color: var(--paper); border: 0; border-radius: 12px; padding: 10px 14px; align-items: center; gap: 10px; cursor: pointer; }
.menu-icon { width: 18px; height: 10px; position: relative; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-icon i:first-child { top: 0; } .menu-icon i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.footer-cta { padding: clamp(90px, 12vw, 150px) 0; text-align: center; background: linear-gradient(180deg, transparent, var(--lilac-soft)); }
.footer-cta .eyebrow { justify-content: center; }
.footer-cta-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; max-width: 14ch; margin: 0 auto 22px; }
.footer-cta p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.mb-contact .footer-grid { border-top: 0; }
.footer-brand { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; text-decoration: none; }
.footer-brand-block p { color: var(--ink-2); margin-top: 8px; }
.footer-links { display: grid; gap: 8px; align-content: start; font-weight: 600; }
.footer-links a, .footer-aside a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover, .footer-aside a:hover { color: var(--lilac-deep); }
.footer-aside { display: grid; gap: 8px; align-content: start; }
.footer-aside-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer-quote { color: var(--ink-3); font-size: .95rem; }
.footer-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 36px; font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.footer-base a { color: inherit; }
.back-top { text-decoration: none; font-weight: 600; }

/* ==========================================================================
   Homepage
   ========================================================================== */
/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 980px); padding-top: calc(var(--header-h) + 40px); padding-bottom: 70px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.hello { font-weight: 650; color: var(--lilac-deep); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 3.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; max-width: 12ch; }
.hero .lead { margin: 26px 0 12px; max-width: 44ch; }
.hero-sub { color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hint-row { margin-top: 22px; font-size: .9rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hint-row b { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); display: inline-grid; place-items: center; font-size: .7rem; }
.hero-visual { position: relative; width: 100%; max-width: 640px; justify-self: end; }
.collage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.piece { position: absolute; transform: translate3d(var(--mx, 0), var(--my, 0), 0); will-change: transform; }
.piece .media { width: 100%; height: 100%; box-shadow: 0 30px 60px -30px rgba(38, 31, 43, .45); }
.p-portrait { width: 52%; height: 64%; left: 26%; top: 9%; z-index: 3; }
.p-pumpkin { width: 28%; height: 40%; left: 0; top: 0; z-index: 2; }
.p-chalk { width: 42%; height: 32%; left: 2%; bottom: 4%; z-index: 4; }
.p-prints { width: 34%; height: 27%; right: 0; top: 2%; z-index: 1; }
.p-desk { width: 46%; height: 33%; right: -2%; top: 50%; z-index: 4; }
@media (max-width: 560px) { .p-desk { right: 0; } }
.p-note { position: relative; z-index: 5; width: 84%; margin: -84px -2% 0 auto; }
.note-card { background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: 0 24px 50px -24px rgba(38, 31, 43, .4); font-size: .86rem; line-height: 1.4; }
.note-row { display: grid; gap: 3px; padding: 8px 0; border-top: 1px solid var(--line); }
.note-row:first-child { border-top: 0; }
.note-row b { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.note-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.note-chips li { font-size: .76rem; font-weight: 650; line-height: 1.2; padding: 4px 8px; border-radius: 7px; background: var(--lilac-soft); color: var(--lilac-ink); }
.note-chips li:nth-child(3n+2) { background: var(--peach-soft); color: #7a3d22; } .note-chips li:nth-child(3n) { background: var(--sage-soft); color: #24543a; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fae84; margin-right: 6px; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 174, 132, .6); } 70% { box-shadow: 0 0 0 8px rgba(95, 174, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 174, 132, 0); } }
.motion-ok .collage .piece { opacity: 0; translate: 0 40px; transition: opacity 1.2s var(--ease), translate 1.2s var(--ease); }
.motion-ok .collage.in .piece { opacity: 1; translate: 0 0; }
.motion-ok .collage.in .p-pumpkin { transition-delay: .15s; } .motion-ok .collage.in .p-chalk { transition-delay: .3s; }
.motion-ok .collage.in .p-prints { transition-delay: .45s; } .motion-ok .collage.in .p-desk { transition-delay: .55s; } .motion-ok .collage.in .p-note { transition-delay: .6s; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: .8rem; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue i { width: 2px; height: 34px; background: linear-gradient(var(--ink-3), transparent); border-radius: 2px; animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* ---------- Dive into the work (pinned, scroll-linked, no scroll-jacking) ---------- */
.dive { height: 220vh; position: relative; }
.dive-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.dive-frame { position: absolute; inset: 0; display: grid; place-items: center; }
.dive-media { width: calc(40vw + var(--p, 0) * 70vw); height: calc(46vh + var(--p, 0) * 70vh); max-width: none; border-radius: calc(28px - var(--p, 0) * 28px); transform: translateY(calc((1 - min(var(--p, 0) * 2, 1)) * 6vh)); background: #fff; }
.dive-media img { object-position: top center; }
.dive-tint { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(61, 42, 99, .9), rgba(93, 65, 146, .78)); opacity: calc(var(--p, 0) * 2 - .35); z-index: 2; }
.dive-copy { position: relative; z-index: 3; color: #fff; text-align: center; max-width: 900px; padding: 0 20px; opacity: calc(var(--p, 0) * 2.2 - .9); transform: translateY(calc((1 - var(--p, 0)) * 60px)); }
.dive-copy .kick { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; opacity: .85; margin: 0 auto 14px; }
.dive-copy h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 720; }
.dive-copy p { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); margin: 18px auto 0; opacity: .92; }
.no-js .dive-copy, :root:not(.motion-ok) .dive-copy { opacity: 1; transform: none; }
:root:not(.motion-ok) .dive { height: auto; }
:root:not(.motion-ok) .dive-stick { position: relative; height: auto; min-height: 70vh; padding: 80px 0; }
:root:not(.motion-ok) .dive-tint { opacity: 1; }
:root:not(.motion-ok) .dive-media { width: 100%; height: 100%; border-radius: 0; transform: none; }

/* ---------- Work stage ---------- */
.work-stage { background: var(--paper); position: relative; z-index: 1; padding: 40px 0 110px; }
.work-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 96px); }
.chapters { padding-top: 10vh; }
.work-stage .chapter { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.motion-ok .work-stage .chapter { opacity: .35; transition: opacity .6s var(--ease); }
.motion-ok .work-stage .chapter.on { opacity: 1; }
.work-stage .chapter .num { font-weight: 700; font-size: .85rem; color: var(--lilac-deep); letter-spacing: .08em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.work-stage .chapter h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin-bottom: 16px; }
.work-stage .chapter p { color: var(--ink-2); max-width: 48ch; }
.work-stage .chapter p + p { margin-top: 10px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.facts li { font-size: .82rem; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: var(--lilac-soft); color: var(--lilac-deep); }
.work-stage .chapter .inline-media { display: none; }
.chapters .section-action { padding-bottom: 6vh; }
.stage { position: sticky; top: 12vh; height: 76vh; align-self: start; margin-top: 10vh; }
.cover { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; clip-path: inset(100% 0 0 0 round 28px); transition: clip-path 1s var(--ease); }
.cover.on { clip-path: inset(0 0 0 0 round 28px); z-index: 2; }
.cover.was { clip-path: inset(0 0 0 0 round 28px); z-index: 1; }
.cover > * { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.cover.on > * { transform: none; }
/* cover: priorities, sorted */
.c-sort { position: absolute; inset: 0; background: linear-gradient(150deg, var(--lilac-soft), var(--peach-soft)); padding: 10% 5% 6%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.board-cap { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.board { --gap: 12px; position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .55); }
.board .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.board .cols span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px 4px; border-bottom: 2px solid rgba(38, 31, 43, .08); }
.board .cols span:last-child { color: #2f6b4b; }
.lane { --step: calc((100cqw - 8px - 2 * var(--gap)) / 3 + var(--gap)); position: relative; container-type: inline-size; height: 58px; overflow: hidden; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .35) 0 33.3%, rgba(255, 255, 255, .5) 33.3% 66.6%, rgba(185, 217, 196, .35) 66.6%); }
.track { position: absolute; top: 4px; bottom: 4px; left: 4px; display: flex; gap: var(--gap); transform: translateX(calc(var(--step) * -4)); }
.task { flex: none; width: calc((100cqw - 8px - 2 * var(--gap)) / 3); height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 28px 0 10px; border-radius: 10px; background: #fff; box-shadow: 0 10px 22px -16px rgba(38, 31, 43, .55); font-size: .82rem; font-weight: 650; line-height: 1.15; overflow: hidden; }
.task i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.lane .done { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #5fae84; z-index: 2; }
.lane .done::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.motion-ok .cover.on .track { animation: conveyor 12s var(--ease) infinite; animation-delay: calc(var(--n) * -2s); }
@keyframes conveyor {
  0%, 18% { transform: translateX(calc(var(--step) * -4)); }
  25%, 43% { transform: translateX(calc(var(--step) * -3)); }
  50%, 68% { transform: translateX(calc(var(--step) * -2)); }
  75%, 93% { transform: translateX(calc(var(--step) * -1)); }
  100% { transform: translateX(0); }
}

/* cover: real website in browser and phone frames */
.c-site { position: absolute; inset: 0; background: linear-gradient(160deg, #e8dff6, #f9dfd2); display: grid; place-items: center; }
.c-maint { background: linear-gradient(160deg, #f6e6ae, #e8dff6); }
.browser { width: 84%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(38, 31, 43, .55); }
.browser .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f3eff4; font-size: .72rem; color: var(--ink-3); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #e4dbe6; }
.browser .bar span { margin-left: 10px; }
.browser .view { aspect-ratio: 1426 / 800; overflow: hidden; }
.browser .view img { width: 100%; }
.motion-ok .cover.on .browser .view img { animation: pageScroll 9s ease-in-out infinite alternate; }
@keyframes pageScroll { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(-18%); } }
.phone { position: absolute; right: 6%; bottom: 7%; width: 22%; border-radius: 18px; overflow: hidden; border: 5px solid #241d27; background: #241d27; box-shadow: 0 30px 60px -30px rgba(38, 31, 43, .6); }
.phone .view { aspect-ratio: 376 / 640; overflow: hidden; }
.motion-ok .cover.on .phone img { animation: pageScroll 7s ease-in-out infinite alternate; }
/* cover: systems map (hub and spoke) */
.c-flow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #3a2d4c, #241c2e 70%); color: #fff; display: grid; place-items: center; padding: 9% 3% 3%; }
.c-flow .flow-svg { position: absolute; top: 56px; left: 3%; right: 3%; bottom: 3%; width: 94%; height: calc(97% - 56px); overflow: visible; }
.c-flow .ln { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.c-flow .card { fill: #352a44; stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.c-flow .ttl { fill: #fff; font: 700 14px var(--font); }
.c-flow .chip { fill: rgba(255, 255, 255, .09); }
.c-flow .chip-t { fill: #ece5f5; font: 600 11.5px var(--font); }
.c-flow .hub-c { fill: #5d4192; stroke: #cdbbea; stroke-width: 2; }
.c-flow .hub-glow { fill: rgba(205, 187, 234, .14); }
.c-flow .hub-t { fill: #fff; font: 800 17px var(--font); }
.c-flow .hub-s { fill: rgba(255, 255, 255, .75); font: 600 11px var(--font); }
.c-flow .dots { display: none; }
.motion-ok .c-flow .dots { display: inline; }
.motion-ok .cover.on .c-flow .grp .card { animation: grpOn 7.2s infinite; animation-delay: calc(var(--n) * 1.2s); }
.motion-ok .cover.on .c-flow .ln { animation: lnOn 7.2s infinite; animation-delay: calc(var(--n) * 1.2s); }
.motion-ok .cover.on .c-flow .hub-glow { animation: hubPulse 2.4s ease-in-out infinite; transform-origin: 300px 300px; }
@keyframes grpOn { 0%, 2% { fill: #352a44; stroke: rgba(255, 255, 255, .16); } 5%, 15% { fill: #4b3a63; stroke: var(--a); } 19%, 100% { fill: #352a44; stroke: rgba(255, 255, 255, .16); } }
@keyframes lnOn { 0%, 2% { stroke: rgba(255, 255, 255, .16); stroke-width: 2; } 5%, 15% { stroke: var(--a); stroke-width: 3; } 19%, 100% { stroke: rgba(255, 255, 255, .16); stroke-width: 2; } }
@keyframes hubPulse { 50% { transform: scale(1.08); } }
.c-flow .cap { position: absolute; left: 6%; top: 5%; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.c-flow .illus { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.flow-list { display: none; }
/* phones: the same groups as a readable list */
.work-stage .chapter .inline-flow { aspect-ratio: auto; }
.work-stage .chapter .inline-flow .cover { position: relative; }
.inline-flow .c-flow { position: relative; display: block; padding: 46px 16px 16px; }
.inline-flow .flow-svg { display: none; }
.inline-flow .flow-list { display: grid; gap: 10px; }
.fl-g { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; border-left: 4px solid var(--a); }
.fl-t { font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.fl-g ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.fl-g li { font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #ece5f5; }
/* cover: purchasing and finance */
.c-ledger { position: absolute; inset: 0; background: linear-gradient(160deg, #fff6dc, #f6e6ae); padding: 9%; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.lrow { display: grid; grid-template-columns: 1fr 70px 26px; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 24px -18px rgba(38, 31, 43, .5); }
.lrow .bar { height: 8px; border-radius: 4px; background: #efe3c1; position: relative; overflow: hidden; }
.lrow .bar::after { content: ""; position: absolute; inset: 0; background: #d9b64e; transform-origin: left; transform: scaleX(var(--w, .6)); }
.lrow .lbl { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.lrow .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9a234; position: relative; background: #c9a234; }
.lrow .tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.motion-ok .cover.on .lrow .tick { animation: tickBg 6s infinite; animation-delay: calc(var(--n) * .6s); }
.motion-ok .cover.on .lrow .tick::after { animation: tickMark 6s infinite; animation-delay: calc(var(--n) * .6s); }
@keyframes tickBg { 0%, 10% { background: transparent; } 20%, 90% { background: #c9a234; } 100% { background: transparent; } }
@keyframes tickMark { 0%, 10% { transform: rotate(45deg) scale(0); } 20%, 90% { transform: rotate(45deg) scale(1); } 100% { transform: rotate(45deg) scale(0); } }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tools span { font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); }
/* cover: motor trade */
.c-route { position: absolute; inset: 0; background: linear-gradient(165deg, #dbe7f6, #f3cbc6); padding: 8%; display: flex; flex-direction: column; justify-content: center; }
.big600 { font-size: clamp(5rem, 3rem + 7vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.big600 + p { font-weight: 600; color: var(--ink-2); margin: 10px 0 32px; }
.route { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.route li { display: flex; align-items: center; font-size: .82rem; font-weight: 700; }
.route li span { padding: 7px 11px; border-radius: 9px; background: rgba(255, 255, 255, .75); }
.motion-ok .cover.on .route li span { animation: hop 6s infinite; animation-delay: calc(var(--n) * .5s); }
@keyframes hop { 0%, 8% { background: rgba(255, 255, 255, .75); } 12%, 20% { background: var(--ink); color: #fff; } 30%, 100% { background: rgba(255, 255, 255, .75); color: inherit; } }

/* ---------- Career thread (homepage and Work page) ---------- */
.career { padding: clamp(90px, 11vw, 130px) 0 100px; background: var(--lilac-soft); position: relative; z-index: 1; }
.career-sub { margin-top: 14px; }
.thread-box { position: relative; margin-top: 56px; }
.thread-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thread-svg .base { fill: none; stroke: rgba(93, 65, 146, .22); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.thread-svg .live { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tp, 1)); }
.tstops { list-style: none; display: grid; gap: 64px; }
.tstop { width: min(470px, 46%); position: relative; }
.tstop:nth-child(even) { margin-left: auto; }
.tstop .dot { position: absolute; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid rgba(93, 65, 146, .3); transition: border-color .4s, transform .5s var(--ease); }
.tstop:nth-child(odd) .dot { right: -46px; } .tstop:nth-child(even) .dot { left: -46px; }
.tstop.lit .dot { border-color: var(--thread); transform: scale(1.25); }
.tcard { background: var(--paper); border-radius: 22px; padding: 22px 24px; box-shadow: 0 24px 50px -36px rgba(38, 31, 43, .5); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.motion-ok .tstop:not(.lit) .tcard { opacity: .45; transform: translateY(16px); }
.tcard .when { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-deep); }
.tcard h3 { font-size: 1.3rem; font-weight: 700; margin: 6px 0; letter-spacing: -.01em; line-height: 1.2; }
.tcard p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Life beyond the job title ---------- */
.turn { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0 100px; }
.turn > .wrap { position: relative; }
.life-ribbon { position: absolute; left: -5%; top: 40%; width: 110%; height: 300px; transform: translateY(-50%); pointer-events: none; }
.life-ribbon path { fill: none; stroke-width: 70; stroke-linecap: round; opacity: .5; }
.motion-ok .life-ribbon path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0) * 1.6); }
.turn-line { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.1rem); line-height: 1.1; letter-spacing: -.032em; font-weight: 720; max-width: 18ch; }
.turn-line .tw { opacity: calc(.18 + var(--on, 1) * .82); transition: opacity .25s linear; }
.turn-line .tw.hl { color: var(--warm); }
.life-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 22px; margin-top: 60px; align-items: start; }
.life-grid .media { aspect-ratio: 4 / 5; transform: translateY(var(--dy, 0)); }
.life-grid .m2 { margin-top: 90px; aspect-ratio: 1; }
.life-grid .m3 { margin-top: 30px; }
.life-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; align-items: start; }
.life-copy p { color: var(--ink-2); margin-bottom: 14px; }
.personality { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: 100px; align-items: center; }
.personality-copy p { color: var(--ink-2); margin-top: 12px; }
.personality-copy .h-md { margin-bottom: 6px; }
.notes-board { list-style: none; display: grid; gap: 14px; }
.note { background: var(--paper); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 40px -30px rgba(38, 31, 43, .5); display: grid; gap: 4px; transform: rotate(var(--r, 0deg)); }
.note strong { font-size: 1.05rem; }
.note span { color: var(--ink-2); font-size: .98rem; }
.note-a { --r: -1.2deg; border-left: 6px solid var(--butter-2); }
.note-b { --r: .8deg; margin-left: 24px; border-left: 6px solid var(--lilac-2); }
.note-c { --r: -.6deg; border-left: 6px solid var(--sage-2); }

/* ---------- A tiny reset ---------- */
.breathe { padding: clamp(80px, 10vw, 130px) 0; }
.breathe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.breathe-copy p { color: var(--ink-2); margin-top: 14px; }
.breathe-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.breathe-steps li { background: var(--paper); border-radius: 12px; padding: 10px 14px; display: grid; box-shadow: inset 0 0 0 1px var(--line); }
.breathe-steps strong { font-size: .95rem; } .breathe-steps span { font-size: .85rem; color: var(--ink-3); }
.breathe-stage { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.breathe-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(205, 187, 234, .55), rgba(248, 214, 187, .35) 60%, transparent 75%); }
.breathe-orb { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--lilac) 55%, var(--lilac-2)); box-shadow: 0 30px 60px -30px rgba(93, 65, 146, .6); animation: breath 12s ease-in-out infinite; }
@keyframes breath { 0% { transform: scale(.72); } 33.3% { transform: scale(1.18); } 50% { transform: scale(1.18); } 100% { transform: scale(.72); } }
.breathe-readout { position: relative; display: grid; text-align: center; color: var(--lilac-ink); }
.breathing-phase { font-weight: 800; font-size: 1.3rem; } .breathing-count { font-size: .9rem; }
.breathe-help { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; font-size: .88rem; color: var(--ink-3); margin: 0 auto; }

/* ---------- Blog on a washing line ---------- */
.home-blog { padding: clamp(70px, 9vw, 120px) 0 120px; }
.home-blog .lead { margin-top: 12px; }
.line-wrap { position: relative; margin-top: 50px; padding-top: 30px; }
.line-wrap .line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; }
.line-wrap .line path { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.tags { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tags li { transform-origin: 50% -18px; transform: rotate(calc(var(--sw, 0) * 1deg + var(--tilt, 0deg))); }
.tags li:nth-child(1) { --tilt: -1.5deg; margin-top: 22px; } .tags li:nth-child(2) { --tilt: 1deg; margin-top: 38px; } .tags li:nth-child(3) { --tilt: -.5deg; margin-top: 38px; } .tags li:nth-child(4) { --tilt: 2deg; margin-top: 22px; }
.tags a { display: flex; flex-direction: column; position: relative; text-decoration: none; background: var(--bg, var(--paper)); border-radius: 18px; padding: 34px 22px 24px; min-height: 300px; box-shadow: 0 30px 50px -35px rgba(38, 31, 43, .55); transition: transform .45s var(--ease); }
.tags a:hover, .tags a:focus-visible { transform: translateY(-10px); }
.tags a::before { content: ""; position: absolute; left: 50%; top: -26px; width: 14px; height: 40px; margin-left: -7px; border-radius: 4px; background: #d9c4a6; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .06); }
.tags .bt { font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.tags .bd { color: var(--ink-2); font-size: .96rem; margin-top: 10px; }
.tags .bm { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; padding-top: 16px; }
.tags .bimg { display: block; border-radius: 12px; overflow: hidden; margin: -14px -8px 16px; aspect-ratio: 16 / 10; }
.tags .bimg img { width: 100%; height: 100%; object-fit: cover; }
.tags .bimg-art svg { display: block; width: 100%; height: 100%; }

/* ---------- Kids on the homepage: draw on the window, idea card ---------- */
.home-kids { padding: clamp(80px, 10vw, 120px) 0; }
.kids-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.home-kids-copy p { color: var(--ink-2); margin: 14px 0; }
.home-kids-copy .button { margin-top: 10px; }
.window { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; touch-action: pan-y; cursor: crosshair; box-shadow: 0 40px 80px -46px rgba(38, 31, 43, .6); }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.window-hint { position: absolute; left: 14px; top: 14px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .92); padding: 6px 10px; border-radius: 8px; transition: opacity .5s; }
.window.drawn .window-hint { opacity: 0; }
.clear { margin-top: 12px; font: inherit; font-weight: 700; font-size: .9rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.clear:hover { border-color: var(--ink); }
.quick-ideas { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 100px; }
.quick-ideas > div:first-child p { color: var(--ink-2); margin-top: 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cats button { font: inherit; font-weight: 700; font-size: .92rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.flip { perspective: 1400px; }
.flip-in { position: relative; display: grid; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip.turned .flip-in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; padding: clamp(26px, 4vw, 44px); min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 40px 70px -45px rgba(38, 31, 43, .6); background: var(--bg, var(--butter)); }
.face.back { transform: rotateY(180deg); }
.face .ft { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.face .idea { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); font-weight: 650; line-height: 1.22; letter-spacing: -.01em; margin: 18px 0; }
.face .cnt { font-size: .85rem; color: var(--ink-3); }
.idea-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Lucy Doodles card ---------- */
.lucy-band { padding: 20px 0 40px; }
.lucy-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 30px; overflow: hidden; background: #fde7ea; }
.lucy-card .media { border-radius: 0; min-height: 420px; }
.lucy-card .copy { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.lucy-card .copy p { color: var(--ink-2); }
.lucy-logo { width: 78px; height: auto; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .3); }
.motion-ok .lucy-logo { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Homepage: mobile has its own choreography
   ========================================================================== */
@media (max-width: 960px) {
  .site-nav { position: fixed; inset: 0; z-index: -1; background: var(--page-bg); padding: calc(var(--header-h) + 30px) max(20px, env(safe-area-inset-left, 0px)) 40px; display: flex; flex-direction: column; gap: 24px; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .site-nav-list { flex-direction: column; gap: 6px; font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
  .site-nav-list a { color: var(--ink); }
  .nav-contact-item, .nav-note { display: block; }
  .nav-note { color: var(--ink-3); }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open { overflow: hidden; }
  .hero { padding-top: calc(var(--header-h) + 24px); min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; justify-self: center; margin-top: 10px; }
  .collage { aspect-ratio: 1 / 1.08; }
  .p-portrait { height: 58%; }
  .p-note { width: 94%; margin: -48px auto 0 auto; }
  .note-card { font-size: .82rem; padding: 12px 14px; }
  .scroll-cue, .hint-row { display: none; }
  .dive { height: 170vh; }
  .dive-media { width: calc(76vw + var(--p, 0) * 40vw); height: calc(40vh + var(--p, 0) * 64vh); }
  .work-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .chapters { padding-top: 0; }
  .work-stage .chapter, .motion-ok .work-stage .chapter { min-height: 0; opacity: 1; padding: 34px 0; }
  .work-stage .chapter .inline-media { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; margin-bottom: 22px; }
  .work-stage .chapter .inline-media .cover { clip-path: none; position: absolute; inset: 0; }
  .work-stage .chapter .inline-media .cover > * { transform: none; }
  .tstop, .tstop:nth-child(even) { width: auto; margin-left: 44px; }
  .tstop:nth-child(odd) .dot, .tstop:nth-child(even) .dot { left: -44px; right: auto; }
  .tstops { gap: 34px; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-grid .m3 { display: none; }
  .life-grid .m2 { margin-top: 40px; }
  .life-copy, .personality, .breathe-grid, .kids-grid, .quick-ideas, .lucy-card, .footer-grid { grid-template-columns: 1fr; }
  .personality { margin-top: 70px; }
  .tags { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .quick-ideas { margin-top: 70px; }
  .lucy-card .media { min-height: 280px; }
  canvas.ribbons { opacity: .55; }
}
@media (max-width: 560px) {
  .c-sort { padding: 13% 3% 3%; gap: 6px; }
  .board-cap { display: none; }
  .board { --gap: 6px; padding: 8px; gap: 6px; }
  .board .cols span { font-size: .6rem; letter-spacing: .04em; }
  .lane { height: 40px; }
  .task { font-size: .62rem; line-height: 1.1; padding: 0 5px; gap: 4px; }
  .task i { width: 7px; height: 7px; }
  .lane .done { display: none; }
  .tags { grid-template-columns: 1fr; }
  .tags li { margin-top: 30px !important; }
  .line-wrap .line { display: none; }
  .note-b { margin-left: 0; }
  .lrow { grid-template-columns: 1fr 44px 22px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot-live, .scroll-cue i, .breathe-orb, .lucy-logo { animation: none !important; }
  .flip-in { transition: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
/* ---------- Shared hero for inner pages: ribbons behind ---------- */
.page-hero, .about-hero, .kids-hero, .masthead, .contact-hero, .essay-hero, .not-found { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(50px, 7vw, 90px)) 0 clamp(60px, 8vw, 100px); }
.page-hero-grid, .about-hero-grid, .kids-hero-grid, .masthead-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero-copy .lead, .about-hero-copy .lead, .kids-hero-copy .lead, .masthead-copy .lead, .contact-intro .lead { margin: 24px 0; }
.about-title, .masthead-title { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: .98; letter-spacing: -.045em; font-weight: 780; }
.masthead-dot { color: var(--accent); }

/* Profile card (Work) */
.profile-card { background: var(--paper); border-radius: 24px; padding: 10px 24px; box-shadow: 0 30px 60px -40px rgba(38, 31, 43, .5); margin: 0; }
.profile-card div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.profile-card div:first-child { border-top: 0; }
.profile-card dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.profile-card dd { margin: 0; font-weight: 600; }

/* Section index that follows the reader */
.chapter-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(251, 247, 244, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.chapter-nav ol { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.chapter-nav ol::-webkit-scrollbar { display: none; }
.chapter-nav a { display: block; white-space: nowrap; text-decoration: none; font-weight: 650; font-size: .92rem; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); transition: background .3s, color .3s; }
.chapter-nav a:hover { background: var(--lilac-soft); color: var(--ink); }
.chapter-nav a[data-active] { background: var(--ink); color: var(--paper); }
.mb-kids .chapter-nav a:hover { background: var(--sage-soft); }

.section-head { margin-bottom: 44px; }
.section-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; }
.section-head-aside p { color: var(--ink-2); }
.section-head-aside p + p { margin-top: 12px; }
.signature-line { font-weight: 700; color: var(--accent); }

/* ---------- Work page ---------- */
.case-head { margin-bottom: 40px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-block { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: 0 24px 50px -40px rgba(38, 31, 43, .5); }
.case-key { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-deep); margin-bottom: 10px; }
.case-block p { color: var(--ink-2); }
.details-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(60px, 8vw, 100px); padding: clamp(28px, 4vw, 56px); border-radius: 30px; background: linear-gradient(150deg, var(--lilac-soft), var(--peach-soft)); }
.details-copy p { color: var(--ink-2); margin-top: 14px; }
.process { list-style: none; display: grid; gap: 10px; counter-reset: p; }
.process li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 14px 18px; font-weight: 650; box-shadow: 0 12px 26px -20px rgba(38, 31, 43, .5); }
.process-num { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--lilac-soft); color: var(--lilac-deep); flex: none; }
.process .process-result { background: var(--ink); color: var(--paper); justify-content: center; }
.stack { list-style: none; display: grid; gap: 18px; }
.stack-card { position: sticky; top: calc(var(--header-h) + 76px + var(--n) * 14px); display: grid; grid-template-columns: 4rem minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: var(--tone, var(--lilac-soft)); box-shadow: 0 -10px 40px -30px rgba(38, 31, 43, .4); min-height: 220px; }
.stack-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: rgba(38, 31, 43, .62); line-height: 1; }
.stack-body p { color: var(--ink-2); margin-top: 10px; }
.stack-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.stack-tags li { font-size: .82rem; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); }
.tone-lilac { --tone: var(--lilac-soft); } .tone-blush { --tone: var(--blush-soft); } .tone-peach { --tone: var(--peach-soft); } .tone-butter { --tone: #fbf2d2; } .tone-sage { --tone: var(--sage-soft); }
.experience { background: var(--lilac-soft); }
.experience-head { max-width: 760px; }
.experience-note { color: var(--ink-2); margin-top: 14px; font-size: 1.1rem; }
.wfh { background: var(--peach-soft); }
.wfh-head { max-width: 900px; margin-bottom: 40px; }
.wfh-head em { color: var(--warm); }
.wfh-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.house-notes { list-style: none; display: grid; gap: 14px; }
.hn { background: var(--paper); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 40px -30px rgba(38, 31, 43, .5); }
.hn-who { display: block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); margin-bottom: 4px; }
.hn-bed { rotate: -1.6deg; } .hn-wash { rotate: 1.2deg; margin-left: 10%; background: #fff8e0; } .hn-dish { rotate: -.8deg; margin-left: 4%; } .hn-lego { rotate: 1.6deg; margin-left: 14%; background: #f6f0fd; }
.wfh-copy p { color: var(--ink-2); }
.tool-wall { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tool-wall li { font-weight: 700; padding: 12px 18px; border-radius: 14px; background: var(--tone, var(--lilac-soft)); transition: transform .4s var(--ease); }
.tool-wall li:hover { transform: translateY(-4px) rotate(-1deg); }
.tool-wall .tool-wall-more { background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink-2); }
.toolkit-coda { margin-top: 36px; font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.toolkit-coda em { font-style: normal; font-weight: 700; color: var(--accent); }
.offer { background: var(--ink); color: #f6f0f6; }
.offer .eyebrow, .offer .label { color: var(--lilac); }
.offer h2 em { color: var(--lilac); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.offer-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.offer-list li { font-weight: 650; font-size: .92rem; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.offer-copy p { color: rgba(246, 240, 246, .82); margin-bottom: 14px; }
.offer .button { background: var(--lilac); color: var(--ink); margin-top: 10px; }
.offer .button:hover { background: #fff; }
.offer-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(50px, 6vw, 80px); }
.example { display: grid; gap: 14px; }
.example-cover { position: relative; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; }
.example-cover > * { position: absolute; inset: 0; }
.example figcaption { color: rgba(246, 240, 246, .8); font-size: .98rem; }
.example figcaption strong { display: block; color: #fff; font-size: 1.05rem; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.how-copy p { color: var(--ink-2); margin-bottom: 14px; }
.career-notes { background: var(--paper); }
.career-note { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px clamp(32px, 5vw, 80px); padding: clamp(30px, 4vw, 50px) 0; border-top: 1px solid var(--line); }
.career-note-num { grid-column: 1; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-deep); }
.career-note .h-md { grid-column: 1; }
.career-note-body { grid-column: 2; grid-row: 1 / span 2; }
.career-note-body p { color: var(--ink-2); margin-bottom: 12px; }

/* ---------- About ---------- */
.about-portrait { position: relative; margin: 0; border-radius: 999px 999px 28px 28px; overflow: hidden; max-width: 460px; justify-self: center; box-shadow: 0 50px 90px -50px rgba(38, 31, 43, .6); }
.motion-ok .about-portrait[data-reveal="mask"] { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); }
.motion-ok .about-portrait[data-reveal="mask"].in { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }
.about-portrait-img { width: 100%; height: auto; }
.about-portrait-tag { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(-2deg); background: var(--paper); padding: 8px 14px; border-radius: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 14px 30px -18px rgba(38, 31, 43, .5); }
.descriptors { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px 0 20px; }
.descriptors li { font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.descriptors li:nth-child(2n) { background: var(--blush-soft); box-shadow: none; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chapter-head { position: sticky; top: calc(var(--header-h) + 30px); }
.prose p, .prose-sans p, .prose-read p { color: var(--ink-2); margin-bottom: 1em; }
.pull { margin: 30px 0; padding: 26px 28px; border-radius: 22px; background: var(--blush-soft); }
.pull p { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin: 0 !important; }
.pull.tone-lilac { background: var(--lilac-soft); }
.belongs { background: var(--blush-soft); }
.belongs-head { max-width: 900px; margin-bottom: 40px; }
.belongs-title { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); }
.belongs-body p { color: var(--ink-2); }
.line-head { max-width: 900px; }
.wobbly-line { width: 100%; height: clamp(80px, 12vw, 160px); margin: 30px 0; overflow: visible; }
.wobbly-line path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.why-site { background: var(--peach-soft); overflow: hidden; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.why-statement { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 760; }
.why-copy p { color: var(--ink-2); margin-bottom: 14px; }
.why-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 10px; }

/* ---------- Blog index ---------- */
.masthead-top { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.masthead-note { color: var(--ink-3); }
.masthead-art { position: relative; margin: 0; border-radius: 26px; overflow: visible; }
.masthead-art-link { display: block; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -46px rgba(38, 31, 43, .6); }
.masthead-art-link img { width: 100%; }
.masthead-art figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-3); }
.lucy-badge { position: absolute; display: block; width: 86px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .35); }
.masthead-badge { right: -14px; top: -20px; }
.lucy-badge img { border-radius: 50%; }
.journal-section-head { margin-bottom: 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -48px rgba(38, 31, 43, .6); transition: transform .5s var(--ease), box-shadow .5s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -44px rgba(38, 31, 43, .6); }
.post-card-cover { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tone); }
.post-card-cover svg, .post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card-cover svg, .post-card:hover .post-card-cover img { transform: scale(1.05); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.post-meta .topic { color: var(--accent); }
.post-card-title { font-size: 1.35rem; line-height: 1.18; letter-spacing: -.015em; font-weight: 720; }
.post-card-summary { color: var(--ink-2); font-size: .98rem; }
.post-card-more { margin-top: auto; padding-top: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.post-card-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.post-card-lead .post-card-cover { aspect-ratio: auto; height: 100%; min-height: 340px; }
.post-card-lead .post-card-body { padding: clamp(26px, 4vw, 50px); justify-content: center; }
.post-card-lead .post-card-title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.post-card-compact .post-card-body { padding: 20px 22px; }
.feature-post { margin-bottom: 22px; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.journal-pair, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.journal-more { background: var(--peach-soft); }
.journal-list { display: grid; border-top: 1px solid var(--line); }
.journal-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.journal-row-title { display: block; font-weight: 700; font-size: 1.15rem; }
.journal-row-summary { display: block; color: var(--ink-2); font-size: .95rem; }
.autism { background: var(--sage-soft); }
.autism-head { max-width: 900px; margin-bottom: 40px; }
.autism-head em { color: #2f6b4b; }
.autism-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.autism-story a, .inclusion-card a { color: #2f6b4b; font-weight: 650; }
.inclusion-card { background: var(--paper); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -44px rgba(38, 31, 43, .5); position: sticky; top: calc(var(--header-h) + 24px); }
.inclusion-card p { color: var(--ink-2); margin: 10px 0; }
.inclusion-list { list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.inclusion-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.inclusion-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--sage-2); }
.illustrations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; max-width: 900px; }
.illustration { margin: 0; }
.illustration video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: #fff; }
.illustration figcaption { margin-top: 10px; color: var(--ink-3); font-size: .92rem; }
.illustration-offset { margin-top: 60px; }
.illustrations-credit { margin-top: 20px; color: var(--ink-3); font-size: .9rem; }
.journal-close { text-align: center; }
.journal-close-inner { display: grid; justify-items: center; gap: 24px; }
.journal-close-line { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 740; max-width: 20ch; }

/* ---------- Articles ---------- */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lilac-2), var(--thread)); transform-origin: left; transform: scaleX(0); }
.essay-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.essay-hero-inner-solo { grid-template-columns: 1fr; max-width: 900px; }
.essay-back { display: inline-flex; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink-2); margin-bottom: 24px; }
.essay-back:hover { color: var(--accent); }
.essay-title { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 760; margin: 14px 0 20px; }
.essay-deck { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 48ch; }
.essay-cover { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -46px rgba(38, 31, 43, .55); }
.essay-cover svg { width: 100%; height: 100%; }
.essay-body { max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) max(20px, env(safe-area-inset-left, 0px)) 30px; font-size: 1.16rem; line-height: 1.75; }
.essay-body > p { margin: 0 0 1.15em; color: #3b3241; }
.essay-body > p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .82; font-weight: 800; margin: .06em .1em 0 0; color: var(--accent); }
.essay-body.no-dropcap > p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; color: inherit; }
.essay-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 720; margin: 1.8em 0 .6em; }
.essay-body .pull { margin: 1.6em -40px; background: var(--peach-soft); }
.essay-body ul, .essay-body ol { padding-left: 1.3em; margin: 0 0 1.15em; color: #3b3241; }
.essay-body a { color: var(--accent); font-weight: 650; }
.essay-figure { margin: 1.5em 0; }
.essay-figure img { border-radius: 20px; }
.essay-figure figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 8px; }
.essay-figure-float { float: right; width: 44%; margin: .4em -60px 1em 30px; }
.essay-end { max-width: 700px; margin: 0 auto; padding-bottom: 70px; display: grid; gap: 20px; justify-items: start; }
.essay-signoff { display: flex; align-items: center; gap: 14px; font-size: 1.25rem; font-weight: 700; padding-top: 26px; border-top: 1px solid var(--line); width: 100%; }
.essay-signoff .mark { width: 46px; height: 46px; border-radius: 50%; background: var(--lilac-soft); color: var(--lilac-deep); display: grid; place-items: center; font-weight: 800; flex: none; }
.essay-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.essay-tags li { font-size: .82rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.essay-tags li::before { content: "#"; color: var(--accent, var(--lilac-deep)); margin-right: 2px; }
/* kids guide pages */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .88rem; font-weight: 650; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.guide-body { max-width: 860px; padding-top: clamp(40px, 6vw, 70px); padding-bottom: 60px; }
.guide-intro p { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.65; color: #3b3241; margin: 0 0 1em; max-width: 62ch; }
.guide-toc { margin: 30px 0 10px; padding: 22px 26px; border-radius: 22px; background: var(--tone, var(--lilac-soft)); }
.guide-toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.guide-toc a { color: var(--ink); font-weight: 650; text-decoration-color: rgba(38, 31, 43, .25); text-underline-offset: 3px; }
.guide-toc a:hover { color: var(--accent); }
.guide-section { padding-top: clamp(40px, 6vw, 64px); scroll-margin-top: 90px; }
.guide-section .h-md { margin: 6px 0 14px; }
.guide-lead { color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; max-width: 62ch; margin: 0 0 18px; }
.guide-section .link-list { margin: 8px 0 22px; }
.guide-items { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: gi; }
.guide-items li { counter-increment: gi; position: relative; padding: 20px 20px 18px 62px; border-radius: 18px; background: var(--paper); box-shadow: 0 18px 40px -32px rgba(38, 31, 43, .45); border: 1px solid var(--line); }
.guide-items li::before { content: counter(gi); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--tone, var(--lilac-soft)); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.guide-items h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 750; margin: 2px 0 6px; }
.guide-items p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.guide-items a { color: var(--accent); font-weight: 650; }
.guide-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.guide-faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; }
.guide-faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; font-weight: 800; color: var(--accent); flex: none; }
.guide-faq details[open] summary::after { content: "\2212"; }
.guide-faq details p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.65; max-width: 64ch; }
.guide-body .safety-note { margin-top: 40px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kids-guides .guide-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-back { margin-top: 30px; }
.idea-more { display: inline-block; margin-top: 18px; }
@media (max-width: 960px) { .guide-cards, .kids-guides .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-items, .guide-toc ol, .guide-cards, .kids-guides .guide-cards { grid-template-columns: 1fr; } .guide-items li { padding-left: 58px; } }
.related { background: var(--paper); }
.related-head { margin-bottom: 30px; }

/* ---------- Kids ---------- */
.kids-hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.photo-frame { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -46px rgba(38, 31, 43, .6); background: #fff; }
.photo-frame img, .photo-frame video { width: 100%; height: 100%; object-fit: cover; }
.kids-photo-a { aspect-ratio: 3 / 4.4; rotate: -2deg; }
.kids-photo-b { aspect-ratio: 5 / 4; rotate: 2deg; margin-bottom: 40px; }
.sticker { position: absolute; z-index: 3; font-weight: 800; font-size: .9rem; padding: 10px 14px; border-radius: 12px; background: var(--butter); box-shadow: 0 14px 30px -18px rgba(38, 31, 43, .5); rotate: -4deg; }
.sticker-kids { right: 6%; top: -6px; }
.kids-intro-grid, .chalk-grid, .pen-paper-grid, .lucy-grid, .links-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.kids-intro-copy p { color: var(--ink-2); margin-bottom: 14px; }
.chalk { background: var(--sage-soft); }
.chalk-grid { align-items: start; }
.chalk-copy p { color: var(--ink-2); margin: 14px 0; }
.need-card { background: var(--paper); border-radius: 20px; padding: 22px 24px; margin: 22px 0; box-shadow: 0 24px 50px -40px rgba(38, 31, 43, .5); }
.need-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--sage); color: #1f4a33; }
.safety-note { font-size: .92rem; color: var(--ink-3); border-left: 3px solid var(--sage-2); padding-left: 14px; margin-top: 16px; }
.chalk-photos { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 80px); }
.chalk-photo-1 { aspect-ratio: 4 / 5; }
.chalk-photo-2 { aspect-ratio: 4 / 3; width: 80%; margin-left: auto; margin-top: -90px; position: relative; rotate: 2deg; }
.scribble { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.scribble path { fill: none; stroke: var(--lilac-2); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.scribble .scribble-sun { stroke: var(--butter-2); }
.pen-paper-copy p { color: var(--ink-2); margin-top: 14px; }
.ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.idea-panel { border-radius: 28px; padding: clamp(26px, 4vw, 44px); background: var(--tone); }
.idea-wide { grid-column: 1 / -1; }
.idea-panel .h-md { margin-bottom: 20px; max-width: 30ch; }
.idea-list { list-style: none; display: grid; gap: 10px; counter-reset: idea; }
.idea-list li { counter-increment: idea; position: relative; padding: 14px 16px 14px 54px; background: rgba(255, 255, 255, .7); border-radius: 14px; color: var(--ink-2); }
.idea-list li::before { content: counter(idea); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--ink); }
.idea-list-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idea-toys { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; }
.idea-toys-head p { color: var(--ink-2); margin-top: 12px; }
.rule-card { background: #fff; border-radius: 16px; padding: 16px 18px; font-weight: 650; color: var(--ink) !important; }
.lucy { background: #fde7ea; }
.lucy-art { position: relative; margin: 0; }
.lucy-art a { display: block; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -46px rgba(38, 31, 43, .6); }
.lucy-art .lucy-badge { right: -12px; top: -18px; }
.lucy-art figcaption { margin-top: 12px; color: var(--ink-3); }
.lucy-art figcaption strong { color: var(--ink); margin-right: 6px; }
.lucy-copy p { color: var(--ink-2); margin: 14px 0; }
.links-grid { align-items: start; }
.links-grid > div:first-child p { color: var(--ink-2); margin-top: 14px; }
.link-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.link-list a:hover { background: var(--sage-soft); padding-left: 14px; }
.link-list-title { font-weight: 700; font-size: 1.08rem; }
.link-list-desc { grid-column: 1; color: var(--ink-2); font-size: .95rem; }
.link-list-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.2rem; }
.later { background: var(--butter); background: #fbf2d2; }
.later-inner { max-width: 900px; display: grid; gap: 16px; justify-items: start; }
.later-inner p { color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-aside { margin-top: 30px; background: var(--paper); border-radius: 22px; padding: 24px; box-shadow: 0 24px 50px -40px rgba(38, 31, 43, .5); }
.contact-aside p { color: var(--ink-2); margin: 8px 0 14px; }
.contact-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-topics li { font-size: .86rem; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: var(--lilac-soft); color: var(--lilac-deep); }
.contact-form-wrap { background: var(--paper); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -50px rgba(38, 31, 43, .55); }
.contact-form { display: grid; gap: 16px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--page-bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 24px 16px 10px; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lilac-deep); box-shadow: 0 0 0 4px rgba(93, 65, 146, .15); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--ink-3); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, top .25s; font-weight: 550; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--lilac-deep); }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { justify-self: start; }
.contact-notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 650; }
.contact-notice-success { background: var(--sage-soft); color: #1f4a33; }
.contact-notice-error { background: #fde2e2; color: #8a2330; }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: grid; align-items: center; }
.not-found-inner { display: grid; gap: 20px; justify-items: start; }
.not-found h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: 1; letter-spacing: -.045em; font-weight: 780; }

@media (max-width: 960px) {
  .page-hero-grid, .about-hero-grid, .kids-hero-grid, .masthead-grid, .contact-grid, .essay-hero-inner, .section-head-split, .details-feature, .wfh-grid, .offer-grid, .how-grid, .chapter-grid, .why-grid, .autism-grid, .kids-intro-grid, .chalk-grid, .pen-paper-grid, .lucy-grid, .links-grid, .idea-toys, .post-card-lead, .career-note { grid-template-columns: 1fr; }
  .case-grid, .journal-grid, .journal-pair, .related-grid, .offer-examples { grid-template-columns: 1fr; }
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .chapter-head, .inclusion-card, .chalk-photos { position: static; }
  .career-note-body { grid-column: 1; grid-row: auto; }
  .ideas-grid { grid-template-columns: 1fr; }
  .idea-list-2col { grid-template-columns: 1fr; }
  .essay-body .pull { margin: 1.4em 0; }
  .essay-figure-float { float: none; width: 100%; margin: 1.4em 0; }
  .journal-row { grid-template-columns: 1fr auto; }
  .journal-row .topic { display: none; }
  .post-card-lead .post-card-cover { min-height: 0; aspect-ratio: 4 / 3; }
  .masthead-badge { right: 8px; }
  .illustration-offset { margin-top: 30px; }
  .hn-wash, .hn-dish, .hn-lego { margin-left: 0; }
}
@media (max-width: 560px) {
  .profile-card div { grid-template-columns: 1fr; gap: 2px; }
  .illustrations { grid-template-columns: 1fr; }
  .illustration-offset { margin-top: 0; }
  .kids-hero-visual { grid-template-columns: 1fr 1fr; }
  .about-portrait { max-width: 320px; }
}
.journal-close-line em, .footer-cta-title em, .pull em, .lead em { font-style: normal; color: var(--accent); }
:root:not(.js) .stage .cover:first-child { clip-path: none; }

/* ---------- Work page: what I do now, and what I have done before (6.1) ---------- */
.case-lead { margin-top: 16px; }
.before-now { margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.before-now-head { position: sticky; top: calc(var(--header-h) + 80px); }
.before-now-head p:not(.eyebrow) { color: var(--ink-2); margin-top: 12px; }
.before-list { list-style: none; display: grid; gap: 14px; }
.before-list li { background: var(--paper); border-radius: 20px; padding: 22px 24px; box-shadow: 0 24px 50px -40px rgba(38, 31, 43, .5); border-left: 5px solid var(--lilac-2); }
.before-list li:nth-child(2) { border-left-color: var(--peach-2); } .before-list li:nth-child(3) { border-left-color: var(--sage-2); } .before-list li:nth-child(4) { border-left-color: var(--butter-2); }
.before-list .when { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-deep); }
.before-list h4 { font-size: 1.2rem; margin: 6px 0 8px; letter-spacing: -.01em; }
.before-list p:not(.when) { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 960px) { .before-now { grid-template-columns: 1fr; } .before-now-head { position: static; } }
/* systems map on phones (higher specificity than the generic inline cover rules) */
.work-stage .chapter .inline-media.inline-flow { aspect-ratio: auto; }
.work-stage .chapter .inline-media.inline-flow .cover { position: relative; inset: auto; }
.work-stage .chapter .inline-flow .c-flow { padding: 48px 14px 14px; }
.work-stage .chapter .inline-flow .cap { top: 18px; left: 16px; }
.work-stage .chapter .inline-flow .illus { display: none; }
.work-stage .chapter .fl-t { color: #fff; max-width: none; }
/* task board on phones: grow to fit instead of cropping */
.work-stage .chapter .inline-media.inline-sort { aspect-ratio: auto; }
.work-stage .chapter .inline-media.inline-sort .cover { position: relative; inset: auto; }
.work-stage .chapter .inline-sort .c-sort { position: relative; padding: 46px 10px 10px; }
.work-stage .chapter .inline-sort .illus { top: 12px; right: 12px; }
/* Lucy Doodles badge on article images: sits on the top corner of the picture, clear of the caption */
.essay-figure { position: relative; }
.essay-badge { top: -14px; right: -14px; width: 66px; }
@media (max-width: 960px) { .essay-badge { right: 8px; top: -12px; width: 56px; } }
/* hero card: shows straight away on page load, alongside the photos (not on scroll) */
.motion-ok .p-note { animation: noteIn 1s var(--ease) .5s both; }
@keyframes noteIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .p-note { animation: none !important; } }

/* ==========================================================================
   6.2: livelier header and footer
   ========================================================================== */
/* Header: hides while reading down, returns on scroll up; thread progress line */
.site-header { transition: background-color .4s, box-shadow .4s, transform .45s var(--ease); }
.site-header[data-hidden] { transform: translateY(-110%); }
.thread-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; overflow: hidden; }
.thread-progress i { display: block; height: 100%; background: linear-gradient(90deg, #cdbbea, #f3a9b9 50%, #f4b48e); border-radius: 0 3px 3px 0; transform-origin: left; transform: scaleX(0); }
.mb-article .thread-progress { display: none; }
@media (prefers-reduced-motion: reduce) { .site-header[data-hidden] { transform: none; } }
/* current page: a small coloured marker as well as the underline */
.site-nav-list a[aria-current] { padding-left: 14px; }
.site-nav-list a[aria-current]::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--thread); }
.site-nav-list a[aria-current]::after { left: 14px; }

/* Footer: ribbons come back behind the call to action */
.footer-cta { position: relative; isolation: isolate; overflow: hidden; }
.footer-cta canvas.ribbons { opacity: .75; }
.services-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 auto 10px !important; }
.services { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 0 auto 30px; }
.services li { font-weight: 650; font-size: .95rem; padding: 8px 14px; border-radius: 12px; background: rgba(255, 253, 251, .85); box-shadow: 0 10px 24px -18px rgba(38, 31, 43, .5); }
.services li:nth-child(1) { border-bottom: 3px solid #cdbbea; } .services li:nth-child(2) { border-bottom: 3px solid #f8d6bb; } .services li:nth-child(3) { border-bottom: 3px solid #f6e6ae; } .services li:nth-child(4) { border-bottom: 3px solid #b9d9c4; } .services li:nth-child(5) { border-bottom: 3px solid #f3a9b9; }
.footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1.3fr; }
.footer-quote { margin-top: 14px; font-style: italic; }
.footer-links .footer-aside-label { margin-bottom: 4px; }
.latest-card { display: grid; gap: 6px; margin-top: 8px; padding: 18px 20px; border-radius: 18px; background: var(--paper); text-decoration: none; box-shadow: 0 20px 40px -30px rgba(38, 31, 43, .5); border-left: 5px solid #f4b48e; transition: transform .4s var(--ease); }
.latest-card:hover { transform: translateY(-4px); }
.latest-topic { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warm); }
.latest-title { font-weight: 720; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.01em; }
.latest-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: .92rem; }
/* back to top: a little thread that pulls up */
.back-top { display: inline-flex; align-items: center; gap: 10px; }
.bt-thread { position: relative; width: 16px; height: 22px; display: inline-block; }
.bt-thread::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(#cdbbea, #f4b48e); }
.bt-thread i { position: absolute; left: 3px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--thread); transition: transform .45s var(--ease); }
.back-top:hover .bt-thread i, .back-top:focus-visible .bt-thread i { transform: translateY(-6px); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-block, .footer-latest { grid-column: 1 / -1; }
  .site-nav-list a[aria-current] { padding-left: 18px; }
  .site-nav-list a[aria-current]::before { width: 9px; height: 9px; margin-top: -4.5px; }
}
/* when the header tucks away, section indexes slide up to the top */
.chapter-nav { transition: top .45s var(--ease); }
.site-header[data-hidden] ~ main .chapter-nav { top: env(safe-area-inset-top, 0px); }

/* Mobile menu: the open panel must cover the whole screen. A backdrop-filter or transform on the
   header turns it into the containing block for the fixed panel, which then shrinks to the header's
   height and lets the page show through (seen on iPhone). */
.menu-open .site-header, .menu-open .site-header[data-scrolled], .menu-open .site-header[data-hidden] { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--page-bg); transform: none; }

/* "My work" dive: a plain purple panel with soft ribbons, growing to fill the screen */
.dive-plain { background: linear-gradient(160deg, #6a4ca3, #3d2a63); }
.dive-waves { position: absolute; inset: -10% -5%; width: 110%; height: 120%; fill: none; stroke-linecap: round; transform: translateX(calc((var(--p, 0) - .5) * -6%)); }
@media (prefers-reduced-motion: reduce) { .dive-waves { transform: none; } }
.example figcaption a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.services a { color: inherit; text-decoration: none; } .services a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Websites page ---------- */
.sites-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 100px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.sites-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sites-hero-copy .display em { color: var(--accent); }
.sites-hero-copy .lead { margin: 22px 0 12px; }
.sites-hero-copy > p:not(.lead):not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }
.sites-hero-copy .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.sites-hero-visual { position: relative; aspect-ratio: 1 / .86; }
.sites-stack { position: absolute; width: 78%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(38, 31, 43, .6); animation: noteIn 1s var(--ease) both; }
.sites-stack-a { left: 0; top: 0; transform: rotate(-2deg); z-index: 2; }
.sites-stack-b { right: 0; bottom: 0; transform: rotate(2.5deg); animation-delay: .2s; }
.sites-frame { position: relative; }
.sites-bar { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; background: #f3eff4; }
.sites-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e0d6e3; }
.sites-frame img { display: block; width: 100%; aspect-ratio: 788 / 520; object-fit: cover; object-position: top; }
.project-feature { background: var(--paper); }
.project-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(38, 31, 43, .55); }
.project-cover > * { position: absolute; inset: 0; }
.c-lucy { background: linear-gradient(160deg, #fce4ee, #ffd45c55); }
.c-mbnow { background: linear-gradient(160deg, #e8dff6, #fbe6e5); }
.project .c-site .browser { width: 74%; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.project-head .lead { margin: 16px 0 12px; }
.project-head > p:not(.lead):not(.eyebrow) { color: var(--ink-2); margin-bottom: 20px; }
.project-head .h-xl em, .project-head .h-lg em { color: var(--accent); }
.project-tags { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags li { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--lilac-soft); color: var(--lilac-ink); }
.project-tags li:nth-child(3n+2) { background: var(--peach-soft); color: #7a3d22; } .project-tags li:nth-child(3n) { background: var(--sage-soft); color: #24543a; }
.project-tags-center { justify-content: center; margin: 40px 0 0; }
.project-did { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--page-bg); border: 1px solid var(--line); }
.project-did .checklist li { margin-bottom: 10px; color: var(--ink-2); }
.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(40px, 5vw, 64px); }
.project-gallery figure { margin: 0; }
.project-gallery .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(38, 31, 43, .5); background: #fff; }
.project-gallery img { display: block; width: 100%; height: auto; }
.project-gallery figcaption { margin-top: 10px; font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.project-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.project-more .h-lg { margin: 8px 0 30px; }
.project-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { margin: 0; display: grid; gap: 14px; }
.project-card .project-cover { aspect-ratio: 16 / 11; border-radius: 24px; }
.project-card figcaption { color: var(--ink-2); }
.project-card figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }
.sites-process { background: var(--paper); }
.sites-process-head { max-width: 720px; margin-bottom: 34px; }
.sites-process-head .h-lg em { color: var(--accent); }
.sites-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.sites-steps li { counter-increment: st; padding: 22px 20px; border-radius: 20px; background: var(--page-bg); border: 1px solid var(--line); }
.sites-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lilac-soft); color: var(--lilac-ink); font-weight: 800; margin-bottom: 14px; }
.sites-steps h3 { font-size: 1.08rem; font-weight: 750; margin: 0 0 6px; }
.sites-steps p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.sites-cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.sites-cta-inner .h-xl em { color: var(--accent); }
.sites-cta-inner .lead { margin: 18px auto 28px; }
@media (max-width: 960px) {
  .sites-hero-grid, .project-grid, .project-split { grid-template-columns: 1fr; }
  .sites-hero-visual { max-width: 560px; }
  .sites-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .project-gallery, .project-pair, .sites-steps { grid-template-columns: 1fr; }
  .project-cover { aspect-ratio: 4 / 3.4; }
  .project .c-site .browser { width: 84%; }
}
@media (prefers-reduced-motion: reduce) { .sites-stack { animation: none; } }

/* Websites cover: browser and phone cycle through each site */
.c-sites { background: linear-gradient(160deg, #e8dff6, #fce4ee); }
.c-sites .browser .view, .c-sites .phone .view { position: relative; }
.c-sites .slide { position: absolute; inset: 0; opacity: 0; }
.c-sites .slide:first-child { opacity: 1; }
.c-sites .slide img { width: 100%; }
.c-sites .tag { display: grid; }
.c-sites .slide-tag { grid-area: 1 / 1; opacity: 0; }
.c-sites .slide-tag:first-child { opacity: 1; }
.motion-ok .c-sites .slide, .motion-ok .c-sites .slide-tag { opacity: 0; animation: siteCycle 16s linear infinite; animation-delay: calc(var(--n) * 4s - 16s); }
@keyframes siteCycle { 0%, 23% { opacity: 1; } 26%, 97% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c-sites .slide, .c-sites .slide-tag { animation: none !important; } .c-sites .slide:first-child, .c-sites .slide-tag:first-child { opacity: 1; } }

/* "My work" dive v2: the words sit on the page first, then purple sweeps in behind them and the words turn white */
.dive-media.dive-plain { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; transform: none; clip-path: circle(clamp(0%, calc((var(--p, 0) - .12) * 190%), 150%) at 50% 50%); }
.dive-tint { display: none; }
.dive-copy { opacity: 1; transform: translateY(calc((1 - var(--p, 0)) * 24px)); color: var(--ink); color: color-mix(in srgb, #fff calc(clamp(0, (var(--p, 0) - .24) * 4.5, 1) * 100%), var(--ink)); }
.dive-copy .kick { color: var(--accent); color: color-mix(in srgb, #fff calc(clamp(0, (var(--p, 0) - .24) * 4.5, 1) * 100%), var(--lilac-deep)); opacity: 1; }
.dive-copy p { opacity: 1; }
:root:not(.motion-ok) .dive-media.dive-plain { clip-path: none; }
:root:not(.motion-ok) .dive-copy, :root:not(.motion-ok) .dive-copy .kick { color: #fff; transform: none; }


/* "My work" dive v3: calmer. No movement: a soft, muted purple simply fades in behind the words */
.dive-plain { background: linear-gradient(170deg, #6e5f8f, #5b4d7a); }
.dive-media.dive-plain { clip-path: none; opacity: clamp(0, calc((var(--p, 0) - .1) * 2.6), 1); }
.dive-waves { transform: none; }
.dive-copy { transform: none; }
:root:not(.motion-ok) .dive-media.dive-plain { opacity: 1; }

/* MB Business Support logo */
.services-logo { margin: 0 auto 6px; } .services-logo img { width: min(300px, 80vw); height: auto; display: block; margin: 0 auto; }
.footer-cta .services-label { margin-top: 0; }
.contact-logo { margin: 0 0 18px; } .contact-logo img { width: min(280px, 78vw); height: auto; display: block; }

/* header logo */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { height: 26px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo img { height: 19px; } }

/* ---------- Automations page: illustrative covers ---------- */
.c-auto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 7% 6%; font-size: clamp(9.5px, 1.05vw, 13px); color: var(--ink); }
.c-refund { background: linear-gradient(160deg, #fdeee2, #ece4f8); }
.c-creator { background: linear-gradient(160deg, #e1f2e8, #fdeee2); }
.c-training { background: linear-gradient(160deg, #ece4f8, #e1f2e8); }
.c-tracker { background: linear-gradient(160deg, #fff6dc, #fbe6e5); }
.c-automix { background: linear-gradient(160deg, #ece4f8, #fdeee2); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5%; align-items: center; }
.ac-h { margin: 0 0 .7em; font-weight: 800; font-size: 1.05em; letter-spacing: -.01em; }
.ac-form, .ac-pdf, .ac-sheet, .ac-sheetwide, .ac-quiz, .ac-mail { background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -28px rgba(38, 31, 43, .55); }
.ac-form { flex: 0 0 44%; padding: 1.3em 1.2em; display: grid; gap: .55em; }
.ac-field { display: grid; gap: .2em; }
.ac-field b { font-size: .78em; font-weight: 700; color: var(--ink-3); }
.ac-field i { font-style: normal; display: block; min-height: 1.9em; padding: .35em .6em; border: 1.5px solid #e3dbe8; border-radius: 7px; font-weight: 600; }
.ac-field.ok i { border-color: #93c3a5; background: #f1faf4; }
.ac-btn { justify-self: start; margin-top: .3em; padding: .45em 1em; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .85em; }
.ac-choice { display: flex; gap: .4em; }
.ac-choice em { font-style: normal; padding: .3em .8em; border-radius: 999px; border: 1.5px solid #e3dbe8; font-weight: 700; font-size: .85em; }
.ac-choice em.on { background: var(--lilac-soft); border-color: var(--lilac-2); color: var(--lilac-ink); }
.ac-flow { position: relative; flex: 0 0 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--lilac-2) 0 6px, transparent 6px 11px); }
.ac-dot { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--thread); }
.motion-ok .ac-dot { animation: acMove 2.6s ease-in-out infinite; }
@keyframes acMove { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.ac-out { flex: 0 0 40%; display: grid; gap: .7em; }
.ac-pdf { position: relative; padding: 1.3em 1.1em 1.1em; display: grid; gap: .45em; }
.ac-pdf .ac-h { margin-bottom: .2em; }
.ac-pill { position: absolute; top: -.7em; right: .9em; padding: .2em .6em; border-radius: 6px; background: #c0392b; color: #fff; font-weight: 800; font-size: .72em; letter-spacing: .05em; }
.ac-line { display: block; height: .55em; border-radius: 4px; background: #ece6f0; }
.ac-line.s { width: 62%; }
.ac-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.ac-chips span { padding: .3em .7em; border-radius: 999px; background: #fff; font-weight: 700; font-size: .78em; box-shadow: 0 8px 18px -14px rgba(38, 31, 43, .5); }
.ac-chips span:nth-child(1) { background: var(--lilac-soft); } .ac-chips span:nth-child(2) { background: var(--peach-soft); } .ac-chips span:nth-child(3) { background: var(--sage-soft); }
.ac-mail { display: flex; align-items: center; gap: .6em; padding: .8em 1em; font-weight: 700; font-size: .85em; }
.ac-tick { flex: none; position: relative; width: 1.25em; height: 1.25em; border-radius: 50%; background: #5fae84; }
.ac-tick::after { content: ""; position: absolute; left: 34%; top: 16%; width: 28%; height: 50%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ac-warn { margin: .3em 0; padding: .6em .7em; border-radius: 8px; background: #fff3cd; border-left: 3px solid #efd47e; font-size: .82em; line-height: 1.35; }
.ac-warn b { display: block; margin-bottom: .15em; }
.ac-pdf.tall { padding-bottom: 1.4em; }
.c-training { flex-direction: column; align-items: stretch; justify-content: center; gap: 4%; }
.ac-browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -32px rgba(38, 31, 43, .6); }
.ac-browser .bar { height: 2em; display: flex; align-items: center; gap: .4em; padding: 0 .8em; background: #f3eff4; font-size: .8em; color: var(--ink-3); }
.ac-browser .bar i { width: .7em; height: .7em; border-radius: 50%; background: #e0d6e3; }
.ac-browser .bar span { margin-left: .6em; font-weight: 600; }
.ac-app { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1em; padding: 1em; }
.ac-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.ac-lessons li { display: flex; align-items: center; gap: .5em; font-weight: 650; font-size: .88em; }
.ac-quiz { padding: 1em; display: grid; gap: .5em; align-content: start; box-shadow: none; background: var(--page-bg); }
.ac-q { font-size: .82em; color: var(--ink-3); font-weight: 600; }
.ac-bar { display: block; height: .55em; border-radius: 99px; background: #ece6f0; overflow: hidden; }
.ac-bar i { display: block; width: 66%; height: 100%; background: var(--lilac-2); border-radius: 99px; }
.motion-ok .ac-bar i { animation: acFill 4s ease-in-out infinite alternate; }
@keyframes acFill { from { width: 20%; } to { width: 92%; } }
.ac-pass { justify-self: start; padding: .3em .7em; border-radius: 999px; background: #e1f2e8; color: #24543a; font-weight: 800; font-size: .8em; }
.ac-next { font-size: .78em; color: var(--ink-3); }
.ac-sheet { padding: .9em 1em; display: grid; gap: .35em; }
.ac-row, .ac-trow { display: flex; align-items: center; gap: .8em; padding: .35em 0; border-top: 1px solid #f0ebf3; font-size: .86em; }
.ac-row b { flex: 1; font-weight: 650; }
.st { font-style: normal; padding: .2em .65em; border-radius: 999px; font-weight: 800; font-size: .78em; white-space: nowrap; }
.st.ok, .st.done { background: #e1f2e8; color: #24543a; } .st.due, .st.prog { background: #fdeee2; color: #7a3d22; } .st.late { background: #fbe1e4; color: #9b2335; } .st.open { background: var(--lilac-soft); color: var(--lilac-ink); }
.ac-sheetwide { width: 100%; padding: 1.2em; }
.ac-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6em; margin-bottom: .9em; }
.ac-tile { display: grid; gap: .1em; padding: .7em .8em; border-radius: 10px; font-weight: 700; font-size: .78em; color: var(--ink-2); }
.ac-tile b { font-size: 2em; line-height: 1; color: var(--ink); }
.t-lilac { background: var(--lilac-soft); } .t-peach { background: var(--peach-soft); } .t-blush { background: #fbe1e4; } .t-sage { background: var(--sage-soft); }
.ac-trow b { flex: 0 0 5.5em; font-weight: 800; color: var(--ink-3); font-size: .9em; }
.ac-trow span { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-automix .mix { min-width: 0; }
.c-automix .ac-form { padding: .9em; gap: .4em; }
.c-automix .ac-field i { min-height: 1.4em; padding: .2em .5em; }
.c-automix .ac-tiles { grid-template-columns: repeat(3, 1fr); margin: 0; }
.c-automix .ac-quiz { background: #fff; box-shadow: 0 18px 40px -28px rgba(38, 31, 43, .55); }
.c-automix .mix-a { grid-row: span 2; }
.project-split-flip > .project-cover { order: 2; }
.autos-hero-visual { aspect-ratio: auto; }
.autos-hero-visual .project-cover { aspect-ratio: 4 / 3.2; }
.project .project-split .checklist li { margin-bottom: 8px; color: var(--ink-2); }
@media (max-width: 960px) { .project-split-flip > .project-cover { order: 0; } }
@media (max-width: 560px) {
  .c-auto { font-size: 9.5px; padding: 6% 4%; }
  .c-training .ac-app { grid-template-columns: 1fr; }
  .c-training .ac-quiz, .c-training .ac-sheet { display: none; }
  .ac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ac-dot, .ac-bar i { animation: none !important; } }
/* training cover: side by side so all five lessons fit */
.c-training { flex-direction: row; align-items: center; gap: 4%; }
.c-training .ac-browser { flex: 0 0 58%; }
.c-training .ac-app { grid-template-columns: 1fr; gap: .7em; padding: .9em 1em 1em; }
.c-training .ac-lessons { gap: .35em; }
.c-training .ac-quiz { padding: .7em .8em; gap: .35em; }
.c-training .ac-sheet { flex: 0 0 36%; }
.c-training .ac-row b { font-size: .92em; }
@media (max-width: 560px) { .c-training .ac-browser { flex-basis: 100%; } .c-training .ac-quiz { display: grid; } }
@media (max-width: 560px) { .c-automix { padding-top: 13%; } }

/* Automations 6.13.0: brand protection and discount code covers */
.c-notice { background: linear-gradient(160deg, #fbe6e5, #ece4f8); }
.c-codes { background: linear-gradient(160deg, #fff6dc, #e1f2e8); }
.c-notice .ac-listings { flex: 0 0 44%; }
.c-notice .ac-row b, .c-codes .ac-row b { flex: 1; font-weight: 650; }
.ac-ref { font-size: .78em; font-weight: 700; color: var(--ink-3); }
.ac-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35em; }
.ac-steps span { text-align: center; padding: .4em .3em; white-space: nowrap; border-radius: 8px; background: rgba(255, 255, 255, .7); font-weight: 750; font-size: .74em; color: var(--ink-3); box-shadow: inset 0 0 0 1px #e8e0ec; }
.ac-steps span.on { background: #e1f2e8; color: #24543a; box-shadow: none; }
.motion-ok .ac-steps span { animation: acStep 6s ease-in-out infinite; animation-delay: calc(var(--s, 0) * 1s); }
.ac-steps span:nth-child(2) { --s: 1; } .ac-steps span:nth-child(3) { --s: 2; } .ac-steps span:nth-child(4) { --s: 3; }
@keyframes acStep { 0%, 100% { transform: none; } 8% { transform: translateY(-3px); } 16% { transform: none; } }
.ac-voucher { flex: 0 0 46%; }
.ac-vlist { display: grid; gap: .5em; padding: 1em; }
.ac-vrow { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .55em .7em; border-radius: 9px; background: #faf7fb; font-size: .86em; }
.ac-vrow b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-code { font-style: normal; font-weight: 800; letter-spacing: .04em; padding: .25em .6em; border-radius: 6px; border: 1.5px dashed var(--lilac-2); color: var(--lilac-ink); background: #fff; }
.ac-vrow.exp { background: #f4f1f5; } .ac-vrow.exp b { color: #5e5664; } .ac-vrow.exp .ac-code { text-decoration: line-through; border-color: #d9cfe0; color: #5e5664; }
.c-codes .ac-out { flex-basis: 42%; }
.motion-ok .c-codes .ac-row { animation: acRowIn 6s ease-in-out infinite; }
.c-codes .ac-row:nth-of-type(2) { animation-delay: .4s; } .c-codes .ac-row:nth-of-type(3) { animation-delay: .8s; }
@keyframes acRowIn { 0%, 6% { opacity: .35; transform: translateX(-6px); } 14%, 100% { opacity: 1; transform: none; } }
@media (max-width: 560px) { .c-notice .ac-listings, .ac-voucher { flex-basis: 48%; } }
@media (prefers-reduced-motion: reduce) { .ac-steps span, .c-codes .ac-row { animation: none !important; } }

/* ==========================================================================
   Midnight sections (6.13.0)
   Warm near-black with peach highlights, fine hairlines and a faint grain.
   Any section with .is-dark swaps the colour tokens, so text, links, cards and
   buttons follow. Covers and illustrations inside keep their daylight colours.
   Dark: My work, work chapters, Experience, the footer, Work toolkit and the
   "how it works" steps on the Websites and Automations pages.
   ========================================================================== */
:root { --night: #e8d3d4; --night-2: #ebd8d9; --night-lift: #eedfdf; --night-ink: #261f2b; --night-mute: #5c4447; --night-btn: #fdeee2; --night-line: rgba(38, 31, 43, .12); --night-peach: #7f3f45; --night-butter: #f6e6ae;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.is-dark { --ink: var(--night-ink); --ink-2: var(--night-mute); --ink-3: var(--night-mute); --paper: #7f4634; --paper: color-mix(in srgb, var(--night) 82%, #000); --line: var(--night-line); --accent: var(--night-peach); --lilac-deep: var(--night-peach); color: var(--night-ink); background-color: var(--night); background-image: var(--grain); }
.is-dark .cover, .is-dark .inline-media, .is-dark .project-cover, .is-dark .example-cover { --ink: #261f2b; --ink-2: #554b5c; --ink-3: #64596b; --paper: #fffdfb; --line: rgba(38, 31, 43, .12); --accent: #5d4192; --lilac-deep: #5d4192; color: #261f2b; }
.is-dark em { color: var(--night-peach); }
.is-dark .text-link:hover { color: #fff; }
.is-dark .facts li { background: transparent; color: var(--night-peach); box-shadow: inset 0 0 0 1px var(--night-line); }
/* buttons: peach with a light sweep */
.is-dark .button { background: var(--night-btn, var(--night-peach)); color: #261f2b; box-shadow: 0 14px 34px -16px rgba(244, 180, 142, .5); position: relative; overflow: hidden; isolation: isolate; }
.is-dark .button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.is-dark .button:hover { background: var(--night-butter); color: #261f2b; }
.is-dark .button:hover::before { transform: translateX(120%); }

/* "My work": the colour that fades in is now midnight, so it runs straight into the work chapters */
/* (6.13.1) "My work" is back to the soft muted purple from 6.10.1, with no waves. */

/* Work chapters: hairlines, big outline numbers and a peach glow that follows the cursor */
.work-stage.is-dark { isolation: isolate; }
.work-stage.is-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 78%) var(--my, 30%), rgba(255, 240, 220, .12), transparent 65%); }
.work-stage.is-dark .chapter { border-top: 1px solid var(--night-line); }
.work-stage.is-dark .chapter .num { font-size: clamp(2.6rem, 2rem + 2vw, 4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--night-peach); margin-bottom: 8px; }
@supports (-webkit-text-stroke: 1px #000) { .work-stage.is-dark .chapter .num { color: transparent; -webkit-text-stroke: 1px rgba(251, 238, 192, .85); } }
.work-stage.is-dark .chapter h3 { font-weight: 620; letter-spacing: -.03em; }
.work-stage.is-dark .stage { border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -40px rgba(0, 0, 0, .9); }

/* Experience: glassy cards with peach light under the cursor, glowing thread dots */
.career.is-dark { background-color: var(--night-2); background-image: var(--grain), linear-gradient(180deg, var(--night), var(--night-2)); }
.is-dark .tcard { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--night-line); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .7s var(--ease); }
.is-dark .tcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(244, 180, 142, .16), transparent 70%); opacity: 0; transition: opacity .4s; }
.is-dark .tcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(244, 180, 142, .45), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.is-dark .tcard:hover::before { opacity: 1; }
.is-dark .thread-svg .base { stroke: rgba(255, 255, 255, .16); }
.is-dark .tstop .dot { background: var(--night); border-color: rgba(255, 255, 255, .25); }
.is-dark .tstop.lit .dot { border-color: var(--night-peach); box-shadow: 0 0 0 6px rgba(244, 180, 142, .15), 0 0 24px rgba(244, 180, 142, .6); }

/* Footer */
.site-footer.is-dark .footer-cta { background: radial-gradient(700px 380px at 50% 100%, rgba(244, 180, 142, .14), transparent 70%); }
.site-footer.is-dark .ribbons { display: none; }
.site-footer.is-dark .footer-brand span { color: var(--night-peach); }
.site-footer.is-dark .footer-links a:hover, .site-footer.is-dark .footer-aside a:hover { color: var(--night-peach); }
.is-dark .services li { background: rgba(255, 255, 255, .06); color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); transition: transform .4s var(--ease), background .4s; }
.is-dark .services li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.is-dark .latest-topic { color: var(--night-peach); }
.is-dark .post-card { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--night-line); }

/* Work toolkit and "how it works" steps */
.is-dark .tool-wall li:not(.tool-wall-more) { color: #261f2b; }
.is-dark .tool-wall li:not(.tool-wall-more):hover { box-shadow: 0 16px 30px -14px rgba(244, 180, 142, .45); }
.is-dark .sites-steps li { background: rgba(255, 255, 255, .04); border-color: var(--night-line); transition: transform .45s var(--ease), border-color .45s; }
.is-dark .sites-steps li:hover { transform: translateY(-4px); border-color: rgba(244, 180, 142, .5); }
.is-dark .sites-steps li::before { background: transparent; color: var(--night-peach); box-shadow: inset 0 0 0 1px rgba(244, 180, 142, .6); }
.is-dark .project-tags li { background: rgba(255, 255, 255, .06); color: var(--night-ink); }

/* Header: turns midnight while it sits over a dark section */
.brand-logo .logo-night { display: none; }
body:not(.menu-open) .site-header[data-dark] { background: rgba(232, 211, 212, .92); background: color-mix(in srgb, var(--night) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
body:not(.menu-open) .site-header[data-dark] .logo-day { display: none; }
body:not(.menu-open) .site-header[data-dark] .logo-night { display: block; }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a { color: rgba(255, 255, 255, .74); }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a:hover, body:not(.menu-open) .site-header[data-dark] .site-nav-list a[aria-current] { color: #fff; }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a::after { background: var(--night-peach); }
body:not(.menu-open) .site-header[data-dark] .header-cta, body:not(.menu-open) .site-header[data-dark] .menu-toggle { background: var(--night-btn, var(--night-peach)); color: #261f2b; }
.site-header { transition: background-color .5s, box-shadow .5s, transform .45s var(--ease); }

/* ==========================================================================
   6.13.1: shorter dark runs that blend into the light sections
   ========================================================================== */
/* Dark sections fade in and out of the cream page instead of starting with a hard edge */
.is-dark { --fade: clamp(40px, 6vw, 96px); background-color: transparent; background-image: var(--grain), linear-gradient(180deg, var(--page-bg) 0, var(--night) var(--fade), var(--night) calc(100% - var(--fade)), var(--page-bg) 100%); }
.site-footer.is-dark { background-image: var(--grain), linear-gradient(180deg, var(--page-bg) 0, var(--night) var(--fade)); }
/* Work chapters: carry on from the purple of "My work", deepen to plum night,
   then lift back through plum into the lilac of Experience */
.work-stage.is-dark { background-image: var(--grain), linear-gradient(180deg, var(--night-2) 0, var(--night-2) 520px, var(--night) 1300px, var(--night) calc(100% - 1500px), var(--night-2) calc(100% - 460px), var(--night-lift) calc(100% - 200px), var(--lilac-soft) 100%); padding-bottom: 190px; }
.work-stage.is-dark .chapter:first-child { border-top: 0; }
/* Experience is light again; its cards lift on hover */
.career .tcard { transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .7s var(--ease); }
.career .tstop.lit .tcard:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(93, 65, 146, .55); }
/* 6.13.2: no purple in the dark sections. "My work" fades straight into the dark tone */
.dive-plain { background: radial-gradient(900px 520px at 50% 35%, var(--night-lift), transparent 75%), var(--night-2); }

/* ==========================================================================
   6.15.0: light rose clay. The "dark" sections are now a soft, light rose clay with dark
   text, so they stand apart from the cream page without feeling heavy.
   ========================================================================== */
.is-dark { --paper: #f6eaea; }
.is-dark .text-link:hover { color: var(--ink); }
.is-dark .button { background: #261f2b; color: #fffaf6; box-shadow: 0 14px 30px -16px rgba(38, 31, 43, .55); }
.is-dark .button:hover { background: var(--night-peach); color: #fffaf6; }
.is-dark .services li, .is-dark .sites-steps li, .is-dark .project-tags li, .is-dark .post-card, .is-dark .offer-list li { background: rgba(255, 255, 255, .5); color: var(--ink); }
.is-dark .services li:hover { background: rgba(255, 255, 255, .75); }
.work-stage.is-dark .chapter .num { color: var(--night-peach); }
@supports (-webkit-text-stroke: 1px #000) { .work-stage.is-dark .chapter .num { color: transparent; -webkit-text-stroke: 1px rgba(127, 63, 69, .7); } }
.work-stage.is-dark::before { background: radial-gradient(560px circle at var(--mx, 78%) var(--my, 30%), rgba(255, 255, 255, .35), transparent 65%); }
.work-stage.is-dark .stage { box-shadow: 0 0 0 1px rgba(38, 31, 43, .06), 0 40px 80px -40px rgba(110, 50, 60, .4); }
.site-footer.is-dark .footer-cta { background: radial-gradient(700px 380px at 50% 100%, rgba(255, 255, 255, .45), transparent 70%); }
/* "My work": dark words stay dark as the light clay fades in */
.dive-copy, :root:not(.motion-ok) .dive-copy { color: var(--ink); }
.dive-copy .kick, :root:not(.motion-ok) .dive-copy .kick { color: var(--night-peach); }
/* Work page websites section */
.offer.is-dark { color: var(--ink); }
.offer.is-dark .eyebrow, .offer.is-dark .label, .offer.is-dark h2 em { color: var(--night-peach); }
.offer.is-dark .offer-copy p { color: var(--ink-2); }
.offer.is-dark .button { background: #261f2b; color: #fffaf6; }
/* Header over these sections: light clay, normal logo and dark links */
body:not(.menu-open) .site-header[data-dark] { box-shadow: 0 1px 0 rgba(38, 31, 43, .08); }
body:not(.menu-open) .site-header[data-dark] .logo-day { display: block; }
body:not(.menu-open) .site-header[data-dark] .logo-night { display: none; }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a { color: var(--ink-2); }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a:hover, body:not(.menu-open) .site-header[data-dark] .site-nav-list a[aria-current] { color: var(--ink); }
body:not(.menu-open) .site-header[data-dark] .site-nav-list a::after { background: var(--night-peach); }
body:not(.menu-open) .site-header[data-dark] .header-cta, body:not(.menu-open) .site-header[data-dark] .menu-toggle { background: #261f2b; color: #fffaf6; }

/* 6.15.1: Work page website examples: dark text on the light rose clay */
.offer.is-dark .example figcaption { color: var(--ink-2); }
.offer.is-dark .example figcaption strong { color: var(--ink); }
.offer.is-dark .example figcaption a { color: var(--night-peach); }
/* "Meet Melissa" pictures: lined up on one centre line instead of staggered */
.life-grid { align-items: center; }
.life-grid .m2, .life-grid .m3 { margin-top: 0; }

/* 6.16.0: PowerShell cover */
.c-ps { background: linear-gradient(160deg, #e1f2e8, #ece4f8); }
.ac-term { flex: 0 0 60%; border-radius: 12px; overflow: hidden; background: #1f2433; box-shadow: 0 24px 50px -30px rgba(38, 31, 43, .7); }
.ac-term .bar { height: 2em; display: flex; align-items: center; gap: .4em; padding: 0 .8em; background: #2b3144; font-size: .8em; color: #c9cfdd; }
.ac-term .bar i { width: .7em; height: .7em; border-radius: 50%; background: #475069; }
.ac-term .bar span { margin-left: .6em; font-weight: 600; }
.ac-tbody { display: grid; gap: .45em; padding: 1em 1.1em 1.2em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82em; color: #e8ebf2; }
.ac-tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-tl b { color: #9fb3d9; font-weight: 600; }
.ac-tl-ok { color: #a6dcb9; } .ac-tl-ok i { font-style: normal; }
.ac-cursor { display: block; width: .6em; height: 1.1em; background: #e8ebf2; }
.motion-ok .ac-cursor { animation: acBlink 1.1s steps(1) infinite; }
.motion-ok .ac-tl { animation: acType 7s ease-in-out infinite; animation-delay: calc(var(--n) * .5s); }
@keyframes acBlink { 50% { opacity: 0; } }
@keyframes acType { 0% { opacity: 0; transform: translateX(-4px); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ac-psheet { flex: 0 0 34%; }
.ac-psheet .ac-h { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
@media (max-width: 560px) { .ac-term { flex-basis: 62%; } .ac-tbody { font-size: .74em; } }
@media (prefers-reduced-motion: reduce) { .ac-tl, .ac-cursor { animation: none !important; } }

/* 6.17.0: client login link */
.header-login { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 650; font-size: .92rem; color: var(--ink-2); padding: 9px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-left: auto; margin-right: -12px; transition: color .3s, box-shadow .3s, transform .3s var(--ease); white-space: nowrap; }
.header-login:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.nav-login-item { display: none; }
@media (max-width: 1180px) { .header-login { display: none; } }
@media (max-width: 960px) { .nav-login-item { display: block; } }

/* Brand Studio cover: one studio, two example brands, fading between them */
.c-studio { position: absolute; inset: 0; display: grid; place-items: center; padding: 8% 5%; background: linear-gradient(160deg, #fdeee2, #e1f2e8); font-size: clamp(8px, .9vw, 11.5px); color: #261f2b; }
.c-studio .browser { width: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(38, 31, 43, .6); }
.c-studio .bar { height: 2.1em; display: flex; align-items: center; gap: .4em; padding: 0 .8em; background: #f3eff4; font-size: .9em; color: #64596b; }
.c-studio .bar i { width: .7em; height: .7em; border-radius: 50%; background: #e0d6e3; }
.c-studio .bar span { margin-left: .6em; font-weight: 600; }
.st-stack { display: grid; }
.st-app { grid-area: 1 / 1; display: grid; grid-template-columns: 27% 1fr; min-height: 25em; background: var(--st-bg); color: var(--st-ink); }
.st-app.b-a { --st-1: #2a7f7a; --st-2: #f28c6b; --st-3: #f7d9c4; --st-bg: #fbf6ef; --st-side: #ffffff; --st-ink: #1f3534; --st-font: Georgia, "Times New Roman", serif; }
.st-app.b-b { --st-1: #f2b33d; --st-2: #3f6b4f; --st-3: #dfe9e1; --st-bg: #233a2e; --st-side: #1b2d24; --st-ink: #f4f1e8; --st-font: "Figtree", system-ui, sans-serif; opacity: 0; }
.motion-ok .st-app.b-b { animation: stSwap 10s ease-in-out infinite; }
@keyframes stSwap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.st-side { background: var(--st-side); padding: 1em .8em; display: flex; flex-direction: column; gap: .8em; border-right: 1px solid rgba(0, 0, 0, .08); }
.st-brand { margin: 0; display: flex; align-items: center; gap: .5em; font-family: var(--st-font); font-weight: 700; font-size: 1.1em; }
.st-mark { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--st-1); color: #fff; font-size: .9em; }
.st-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; }
.st-side li { padding: .45em .6em; border-radius: 8px; font-weight: 650; font-size: .92em; }
.st-side li.on { background: var(--st-1); color: #fff; }
.st-pow { margin: auto 0 0; font-size: .72em; opacity: .7; }
.st-main { padding: 1.2em 1.3em; min-width: 0; }
.st-hi { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin-bottom: .9em; }
.st-h1 { margin: 0; font-family: var(--st-font); font-weight: 700; font-size: 1.8em; line-height: 1; }
.st-new { padding: .5em .9em; border-radius: 999px; background: var(--st-1); color: #fff; font-weight: 800; font-size: .85em; white-space: nowrap; }
.st-h2 { margin: 0 0 .5em; font-family: var(--st-font); font-weight: 700; font-size: 1.05em; }
.st-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; margin-bottom: 1em; }
.st-size { display: grid; grid-template-columns: auto 1fr; column-gap: .5em; align-items: center; padding: .6em; border-radius: 10px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); min-width: 0; }
.st-size i { grid-row: span 2; width: 1.4em; height: 1.75em; border-radius: 4px; background: var(--st-1); }
.st-size i.sw-s { width: 1em; height: 1.75em; background: var(--st-2); } .st-size i.sw-q { width: 1.5em; height: 1.5em; background: var(--st-3); }
.st-size b { font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-size em { font-style: normal; font-size: .72em; opacity: .7; }
.st-tpl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; }
.st-tpl i { aspect-ratio: 4 / 5; border-radius: 8px; background: var(--st-1); }
.st-tpl i:nth-child(2) { background: var(--st-2); } .st-tpl i:nth-child(3) { background: var(--st-3); } .st-tpl i:nth-child(4) { background: linear-gradient(160deg, var(--st-2), var(--st-1)); }
.motion-ok .st-tpl i { animation: stPop 10s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .25s); }
.st-tpl i:nth-child(2) { --k: 1; } .st-tpl i:nth-child(3) { --k: 2; } .st-tpl i:nth-child(4) { --k: 3; }
@keyframes stPop { 0%, 6%, 100% { transform: none; } 3% { transform: translateY(-4px); } }
@media (max-width: 560px) { .st-app { grid-template-columns: 1fr; } .st-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .st-app.b-b, .st-tpl i { animation: none !important; } }
.c-studio .illus { top: auto; bottom: 12px; }
.c-tax { background: linear-gradient(160deg, #fff6dc, #ece4f8); }
.ac-esign { justify-self: start; margin-top: .2em; padding: .2em .6em; border-radius: 6px; border: 1.5px solid #5fae84; color: #24543a; font-weight: 800; font-size: .74em; transform: rotate(-4deg); }

/* ==========================================================================
   6.18.0: hero option B. The desk photo leads, with Melissa as a round badge.
   "My work" has the desk photo behind its rose overlay.
   ========================================================================== */
.collage.collage-b { aspect-ratio: 1 / .88; }
.collage-b .p-desk { width: 100%; height: 76%; left: auto; right: 0; top: 0; z-index: 2; }
.collage-b .p-portrait { width: 34%; height: auto; aspect-ratio: 1; left: -5%; top: 52%; z-index: 4; }
.collage-b .p-portrait .media { border-radius: 50%; box-shadow: 0 0 0 8px var(--page-bg), 0 30px 60px -30px rgba(38, 31, 43, .5); }
@media (max-width: 960px) { .collage.collage-b { aspect-ratio: 1 / .9; } .collage-b .p-portrait { left: 0; width: 36%; } }
.dive-media.dive-plain { background: linear-gradient(rgba(232, 211, 212, .84), rgba(232, 211, 212, .9)), url(assets/img/desk-work-v2-wide-1920.webp) center / cover no-repeat; transform: scale(calc(1.12 - var(--p, 0) * .12)); }
@media (max-width: 960px) { .dive-media.dive-plain { background-image: linear-gradient(rgba(232, 211, 212, .86), rgba(232, 211, 212, .9)), url(assets/img/desk-work-v2-wide-1000.webp); } }
@media (prefers-reduced-motion: reduce) { .dive-media.dive-plain { transform: none; } }

/* 6.18.0 - Website concepts with scroll-through videos */
.project-concepts { background: var(--page-bg); }
.concepts-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }
.concepts-head .h-lg { margin: 8px 0 16px; }
.concepts-head > p:not(.eyebrow) { color: var(--ink-2); }
.concepts-head .h-lg em { color: var(--accent); }
.concept-frame { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 34px 70px -44px rgba(38, 31, 43, .6); }
.concept-video { position: relative; aspect-ratio: 16 / 10; background: #f4efe9; }
.concept-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.concept-toggle { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(38, 31, 43, .78); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.concept-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.concept-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.concept-toggle:hover { background: var(--ink); transform: scale(1.06); }
.concept-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.concepts-actions { margin-top: clamp(28px, 4vw, 40px); display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .concept-toggle { display: none; } }

/* ==========================================================================
   6.19.0 / 6.19.1: centred hero with a slow strip of real work underneath.
   The whole hero, work strip included, fits on the first screen.
   Text, buttons and cards are edited in Appearance > Customize > Homepage hero.
   ========================================================================== */
.hero.hero-centre { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 18px); padding-bottom: 22px; }
.hero-centre > .wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.hc-copy { text-align: center; max-width: 980px; margin: 0 auto; }
.hc-copy > * { margin-left: auto; margin-right: auto; }
.hc-copy .hello { display: flex; justify-content: center; max-width: none; margin-bottom: 12px; }
.hero.hero-centre h1 { max-width: 17ch; font-size: clamp(2.3rem, .9rem + 3.2vw, 4.3rem); line-height: 1.02; }
.hc-copy .lead { margin-top: 18px; margin-bottom: 6px; max-width: 68ch; font-size: clamp(1rem, .92rem + .3vw, 1.15rem); }
.hc-copy .hero-sub { margin-top: 0; margin-bottom: 0; max-width: 62ch; color: var(--ink-2); font-size: .95rem; }
.hc-copy .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.hc-now { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 650; color: var(--ink-2); background: var(--paper); border-radius: 999px; padding: 9px 16px; box-shadow: 0 0 0 1px var(--line); }
.hc-now i { width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 4px rgba(63, 174, 106, .2); flex: none; }
.hc-strip { position: relative; flex: none; margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hc-track { display: flex; width: max-content; animation: hc-run var(--hc-speed, 70s) linear infinite; }
.hc-strip:hover .hc-track, .hc-strip:focus-within .hc-track { animation-play-state: paused; }
.hc-set { list-style: none; margin: 0; padding: 10px 11px 20px; display: flex; align-items: flex-start; gap: 22px; }
.hc-set .wcard { position: relative; flex: none; width: clamp(230px, 21vw, 330px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(38, 31, 43, .55), 0 0 0 1px rgba(38, 31, 43, .06); transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.hc-set .wcard:nth-child(odd) { --r: -1.2deg; margin-top: 12px; }
.hc-set .wcard:nth-child(even) { --r: 1deg; }
.hc-set .wcard:hover, .hc-set .wcard:focus-within { transform: rotate(0) translateY(-6px); box-shadow: 0 34px 60px -30px rgba(38, 31, 43, .6), 0 0 0 1px rgba(38, 31, 43, .08); }
.hc-set .wcard > a { display: block; color: inherit; text-decoration: none; }
.hc-set .wcard .sites-bar { height: 22px; }
.hc-set .wcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hc-cap { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 253, 251, .95); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(38, 31, 43, .4); }
@keyframes hc-run { to { transform: translateX(-50%); } }
.hero-centre .scroll-cue { display: none; }
/* Shorter screens: drop the optional second line so the work strip still shows */
@media (max-height: 820px) and (min-width: 961px) { .hc-copy .hero-sub { display: none; } .hc-set .wcard { width: clamp(220px, 18vw, 290px); } }
@media (max-width: 960px) {
  .hero.hero-centre { padding-top: calc(var(--header-h) + 14px); }
  .hc-copy .hero-sub { display: none; }
  .hc-copy .lead { font-size: .98rem; margin-top: 14px; }
  .hero.hero-centre h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3rem); }
  .hc-copy .actions { margin-top: 18px; gap: 10px; }
  .hc-strip { margin-top: 20px; }
  .hc-set { gap: 16px; padding-left: 8px; padding-right: 8px; }
  .hc-set .wcard { width: 220px; }
}
/* Phones: show the work straight after the buttons, with the intro underneath, so the work is on the first screen */
@media (max-width: 960px) {
  .hero.hero-centre { min-height: 0; }
  .hero-centre > .wrap, .hero-centre .hc-copy { display: contents; }
  .hc-copy > * { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); box-sizing: border-box; width: 100%; }
  .hc-copy .hello { order: 1; }
  .hero.hero-centre h1 { order: 2; max-width: none; }
  .hc-copy .actions { order: 3; }
  .hc-strip { order: 4; margin-top: 18px; }
  .hc-copy .lead { order: 5; margin-top: 4px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .hc-track { animation: none; } .hc-strip { overflow-x: auto; } }
