/* =============================================================================
   Exceptionalways — public site design system (Phase 9, written from scratch)
   Replaces the legacy assets/css/main.css for public pages.
   Principles: oversized confident type, generous whitespace, image-led work,
   dark/light section rhythm, restrained motion (off for reduced-motion users).
   Brand colours come from tokens.css (--ew-brand, --ew-lime, --ew-cream) · Space Grotesk.
   ============================================================================= */

/* ---------- 1. Fonts ----------
   Loaded by ew_font_links() in the header (Phase 13.21): /assets/css/fonts.css when the self-hosted file exists,
   otherwise Google Fonts. No @font-face here — a second declaration pointing at a missing file overrode Google's. */

/* ---------- 2. Tokens ---------- */
:root {
  /* brand */
  --c-green: var(--ew-brand);          /* brand values live only in tokens.css (Phase 3.1 rule) */
  --c-green-strong: #018646;           /* AA text on cream/white */
  --c-lime: var(--ew-lime);
  --c-cream: var(--ew-cream);
  /* neutrals */
  --c-ink: #0B110D;                    /* near-black, green-tinted */
  --c-ink-2: #121A15;
  --c-ink-3: #1B2620;
  --c-line-dark: rgba(250, 255, 243, 0.12);
  --c-line-light: rgba(11, 17, 13, 0.12);
  --c-muted-dark: rgba(250, 255, 243, 0.66);
  --c-muted-light: rgba(11, 17, 13, 0.64);
  --c-white: #FFFFFF;
  /* type */
  --f-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --fs-xl: clamp(1.375rem, 1vw + 1.1rem, 1.875rem);
  --fs-h3: clamp(1.5rem, 1.4vw + 1.1rem, 2.25rem);
  --fs-h2: clamp(2.25rem, 3.6vw + 1rem, 4.5rem);
  --fs-display: clamp(3rem, 7.4vw + 0.5rem, 8.25rem);
  --fs-mega: clamp(3.5rem, 13vw, 15rem);
  /* space & shape */
  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --shadow-soft: 0 30px 60px -30px rgba(11, 17, 13, 0.35);
  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms; --t-med: 420ms; --t-slow: 900ms;
  --header-h: 76px;
  /* semantic, theme-aware tokens (Phase 9.4). Components use these, never raw light colours. */
  --surface: var(--c-cream); --surface-2: var(--c-white); --surface-3: #F2FBE6;
  --text: var(--c-ink); --text-muted: rgba(11, 17, 13, 0.64); --line: rgba(11, 17, 13, 0.12);
  --accent-text: var(--c-green-strong); --selected: var(--selected); --focus: var(--c-green-strong); --danger: #B42318;
  color-scheme: light;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-sans); font-size: var(--fs-base); line-height: 1.6;
  color: var(--text); background: var(--surface);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.nav a, .mobile-menu a, .footer-grid a, .footer-bottom a, .brand { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.lead, .statement, .prose p { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-lime); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .on-white :focus-visible { outline-color: var(--focus); }
::selection { background: var(--c-lime); color: var(--c-ink); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1.25rem; border-radius: var(--r-pill);
  background: var(--c-lime); color: var(--c-ink); font-weight: 600; transition: top var(--t-fast); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.on-dark { background: var(--c-ink); color: var(--c-cream); }
.on-dark-2 { background: var(--c-ink-2); color: var(--c-cream); }
.on-light { background: var(--surface); color: var(--text); }
.on-white { background: var(--surface-2); color: var(--text); }
.on-lime { background: var(--c-lime); color: var(--c-ink); }
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. Typography ---------- */
.eyebrow { display: inline-flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: calc(0.75em - 4px); border-radius: 50%; background: var(--c-green); }
.on-dark .eyebrow::before, .on-dark-2 .eyebrow::before { background: var(--c-lime); }
.display { font-size: var(--fs-display); font-weight: 600; line-height: 0.94; letter-spacing: -0.05em; }
.display em, .h2 em { font-style: normal; color: var(--accent-text); }
.h2 { font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.045em; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: var(--fs-lg); line-height: 1.55; max-width: 38ch; }
.muted { color: var(--text-muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .h2 { max-width: 20ch; }
.prose { max-width: 70ch; font-size: var(--fs-lg); }
.prose h2 { font-size: var(--fs-h3); margin: 2em 0 0.6em; }
.prose h3 { font-size: var(--fs-xl); margin: 1.6em 0 0.5em; }
.prose img { border-radius: var(--r-md); margin-block: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--c-green); font-size: var(--fs-xl); }

/* ---------- 6. Buttons & links ---------- */
.btn { --btn-bg: var(--text); --btn-fg: var(--surface);
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill); border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast); }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg); transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn--lime { --btn-bg: var(--c-lime); --btn-fg: var(--c-ink); }
.btn--light { --btn-bg: var(--c-cream); --btn-fg: var(--c-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost .arrow { background: currentColor; }
.btn--ghost .arrow svg { color: var(--surface); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; gap: 0.5rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.link-arrow svg { transition: transform var(--t-med) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 7. Header & navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--c-cream);
  transition: background-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.site-header.is-scrolled { background: rgba(11, 17, 13, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--c-line-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
body.page-light .site-header:not(.is-scrolled) { color: var(--text); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 0.65rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { position: relative; padding: 0.55rem 0.9rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; transition: background-color var(--t-fast); }
.nav a:hover { background: rgba(250, 255, 243, 0.08); }
body.page-light .site-header:not(.is-scrolled) .nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--c-lime); }
body.page-light .site-header:not(.is-scrolled) .nav a[aria-current="page"]::after { background: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--c-ink); color: var(--c-cream);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity var(--t-med), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.mobile-menu nav a { display: block; padding: 0.35rem 0; font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; border-bottom: 1px solid var(--c-line-dark); }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }
@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { color: var(--c-cream); background: transparent; box-shadow: none; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .display { max-width: 14ch; }
.hero-foot { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap;
  padding-top: 1.75rem; border-top: 1px solid var(--c-line-dark); }
.hero-foot .lead { color: var(--c-muted-dark); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-glow { position: absolute; inset: auto -20% -40% auto; width: min(80vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(177, 253, 78, 0.22), rgba(2, 182, 95, 0.10) 55%, transparent 72%); pointer-events: none; }
.page-hero { padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 8rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.page-hero .display { max-width: 16ch; }

/* ---------- 9. Media & placeholders ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-ink-3); aspect-ratio: var(--ratio, 4 / 3); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.media--wide { --ratio: 16 / 10; }
.media--tall { --ratio: 4 / 5; }
.media--square { --ratio: 1; }
/* Designed placeholder shown when an admin hasn't uploaded an image yet */
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(177, 253, 78, 0.55), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(2, 182, 95, 0.65), transparent 60%),
    linear-gradient(160deg, #122018, #0B110D); }
.placeholder::after { content: ''; position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.placeholder span { position: relative; z-index: 1; font-size: clamp(3rem, 9vw, 7rem); font-weight: 700; letter-spacing: -0.06em; color: var(--c-cream); opacity: 0.9; }
.placeholder--light { background:
    radial-gradient(120% 90% at 85% 10%, rgba(177, 253, 78, 0.9), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(2, 182, 95, 0.45), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--surface)); }
.placeholder--light span { color: var(--text); }

/* ---------- 10. Project cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.4vw, 2rem); }
.work-card { grid-column: span 6; display: block; }
.work-card--large { grid-column: span 7; }
.work-card--small { grid-column: span 5; margin-top: clamp(0rem, 8vw, 7rem); }
.work-card:hover .media img { transform: scale(1.045); }
.work-card .media { --ratio: 4 / 3; }
.work-card--large .media { --ratio: 16 / 12; }
.work-meta { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-top: 1.1rem; }
.work-title { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.work-client { font-size: var(--fs-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-dark); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.on-light .tag, .on-white .tag { border-color: var(--line); }
.work-card .view-chip { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-weight: 600; font-size: var(--fs-sm);
  opacity: 0; transform: translateY(8px); transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.work-card:hover .view-chip, .work-card:focus-visible .view-chip { opacity: 1; transform: none; }
@media (max-width: 800px) { .work-card, .work-card--large, .work-card--small { grid-column: 1 / -1; margin-top: 0; } }

/* ---------- 11. Services list ---------- */
.service-list { border-top: 1px solid var(--c-line-dark); list-style: none; }
.on-light .service-list, .on-white .service-list { border-color: var(--line); }
.service-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 1.5rem; align-items: center;
  padding: clamp(1.4rem, 2.4vw, 2.1rem) 0; border-bottom: 1px solid var(--c-line-dark); transition: padding var(--t-med) var(--ease), color var(--t-fast); }
.on-light .service-row, .on-white .service-row { border-color: var(--line); }
.service-num { font-size: var(--fs-sm); font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
.service-name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.service-desc { margin: 0; }
.service-go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease); }
a.service-row:hover { padding-left: 1rem; }
a.service-row:hover .service-go { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); transform: rotate(-45deg); }
.on-light a.service-row:hover .service-go { background: var(--text); color: var(--surface); border-color: var(--text); }
@media (max-width: 800px) { .service-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; } .service-desc { grid-column: 2 / -1; grid-row: 2; } }

/* ---------- 12. Process, statements, stats ---------- */
.steps { counter-reset: step; }
.step { padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; }
.on-dark .step, .on-dark-2 .step { background: var(--c-ink-3); border-color: var(--c-line-dark); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
.step h3 { font-size: var(--fs-xl); }
.step p { margin: 0; }
.step-num { margin-bottom: 1.5rem; }
.statement { font-size: clamp(1.75rem, 3.4vw + 0.5rem, 3.75rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; max-width: 24ch; }
.statement .dim { opacity: 0.4; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { padding: 1.5rem 0; border-top: 1px solid currentColor; }
.stat-value { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat-label { margin-top: 0.6rem; font-size: var(--fs-sm); }

/* ---------- 13. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--c-line-dark); padding-block: 1.4rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--c-lime); font-size: 0.6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 14. Article & product cards ---------- */
.post-card { display: flex; flex-direction: column; gap: 1rem; }
.post-card .media { --ratio: 16 / 11; border-radius: var(--r-md); }
.post-card:hover .media img { transform: scale(1.04); }
.post-meta { display: flex; gap: 0.75rem; font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.post-title { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.18; }
.product-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 0.75rem 0.75rem 1.25rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.product-card .media { --ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); }
.product-card .body { padding-inline: 0.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.price { font-weight: 600; white-space: nowrap; }

/* ---------- 15. CTA ---------- */
.cta { text-align: left; }
.cta .mega { font-size: var(--fs-mega); font-weight: 600; line-height: 0.88; letter-spacing: -0.06em; }
.cta-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 3.5rem); }
.cta-mail { display: inline-flex; align-items: center; min-height: 48px; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; overflow-wrap: anywhere; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-cream); padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--c-line-dark); }
.footer-grid h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted-dark); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a:hover { color: var(--c-lime); }
.footer-news p { color: var(--c-muted-dark); max-width: 34ch; }
.footer-form { display: flex; gap: 0.5rem; margin-top: 1.25rem; max-width: 420px; }
.footer-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1.25rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-dark); background: transparent; color: var(--c-cream); font: inherit; }
.footer-form input::placeholder { color: var(--c-muted-dark); }
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem 1.5rem; padding-block: 1.75rem; font-size: var(--fs-sm); color: var(--c-muted-dark); }   /* © · social icons · legal (Phase 13.22) */
.footer-copy { grid-column: 1; }
.footer-bottom nav { grid-column: 3; justify-self: end; }
.footer-social { grid-column: 2; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line-dark); color: var(--c-cream); transition: color .2s, border-color .2s, background-color .2s; }
.footer-social a:hover { color: var(--c-ink); background: var(--c-lime); border-color: var(--c-lime); }
.footer-social a:focus-visible { outline: 2px solid var(--c-lime); outline-offset: 3px; }
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .footer-bottom { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .footer-copy, .footer-social, .footer-bottom nav { grid-column: 1; justify-self: center; } .footer-social { order: -1; } .footer-social a { width: 44px; height: 44px; } .footer-bottom nav { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .footer-social a { transition: none; } }
.footer-bottom nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { display: block; width: 100%; height: auto; margin-bottom: -2.2%; user-select: none; }   /* SVG: always fits its container exactly */
.wordmark text { font-family: var(--f-sans); font-weight: 700; fill: var(--c-cream); letter-spacing: -0.04em; }
.wordmark tspan { fill: var(--c-lime); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-news { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 17. Forms (public) ---------- */
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 0.85rem 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.textarea { min-height: 160px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(2, 182, 95, 0.18); }
.field-error { color: var(--danger); font-size: var(--fs-sm); }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip { display: inline-flex; align-items: center; padding: 0.7rem 1.2rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 500; cursor: pointer; transition: all var(--t-fast); }
.chip-input:checked + .chip { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip-input:focus-visible + .chip { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- 18. Accordion (native <details>) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.5rem; max-width: 70ch; }

/* ---------- 19. Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 20. Small helpers (no inline styles in templates) ---------- */
.d1 { --delay: 80ms; } .d2 { --delay: 160ms; } .d3 { --delay: 240ms; }
.mt-section { margin-top: clamp(4rem, 8vw, 7rem); }
.steps { list-style: none; }
.product-card .body p { margin: 0; }

/* =============================================================================
   Phase 9.2 — components from owner references (centred hero, browser card,
   continuous slider, testimonial slider, page heroes, filters, bento, banners)
   ============================================================================= */

/* ---------- 21. Centred hero ---------- */
.hero--center { text-align: center; align-items: center; justify-content: flex-start; min-height: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero--center .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero--center .display { max-width: 15ch; margin-inline: auto; font-size: clamp(2.75rem, 6.2vw + 0.4rem, 6.75rem); line-height: 1; }
.hero--center .lead { max-width: 52ch; margin: 1.5rem auto 0; color: var(--c-muted-dark); text-align: center; }
.hero--center .hero-actions { justify-content: center; margin-top: 2.25rem; }
.hero--center .eyebrow { margin: 1.5rem 0 1.25rem; }
.trust-line { margin: 1.25rem 0 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.trust-line strong { color: var(--c-cream); font-weight: 600; }
.hero-glow--center { inset: -30% auto auto 50%; transform: translateX(-50%); width: min(120vw, 1300px); opacity: 0.9; }
/* inline accent icon badges inside a headline */
.icon-badge { display: inline-grid; place-items: center; width: 0.82em; height: 0.82em; margin: 0 0.06em; vertical-align: 0.02em;
  border-radius: 0.2em; background: var(--c-lime); color: var(--c-ink); transform: rotate(-6deg); box-shadow: 0 0.15em 0.4em -0.15em rgba(177, 253, 78, 0.6); }
.icon-badge svg { width: 55%; height: 55%; }
.icon-badge--green { background: var(--c-green); color: var(--c-cream); transform: rotate(5deg); box-shadow: 0 0.15em 0.4em -0.15em rgba(2, 182, 95, 0.7); }
.icon-badge--cream { background: var(--c-cream); color: var(--c-ink); transform: rotate(-3deg); }
/* avatar stack pill */
.avatar-pill { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.4rem 1rem 0.4rem 0.45rem; border-radius: var(--r-pill);
  background: rgba(250, 255, 243, 0.08); border: 1px solid var(--c-line-dark); font-size: var(--fs-sm); backdrop-filter: blur(10px); }
.on-light .avatar-pill { background: var(--surface-2); border-color: var(--line); }
.avatars { display: flex; }
.avatars img, .avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-ink); object-fit: cover; }
.on-light .avatars img, .on-light .avatars span { border-color: var(--surface); }
.avatars > * + * { margin-left: -10px; }
/* floating side chips (desktop only, decorative) */
.float-chip { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; border-radius: var(--r-pill);
  background: rgba(250, 255, 243, 0.08); border: 1px solid var(--c-line-dark); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-cream); animation: float 7s ease-in-out infinite; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); }
.float-chip .dot svg { width: 16px; height: 16px; }
.hero-intro { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.float-chip--l { left: 0; top: 58%; }
.float-chip--r { right: 0; top: 22%; animation-delay: -3.5s; }
.float-chip--r2 { right: 2%; top: 80%; animation-delay: -1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .float-chip { display: none; } }

/* ---------- 22. Browser-style featured card ---------- */
.browser { position: relative; width: 100%; align-self: stretch; margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--r-lg); overflow: hidden; text-align: left;
  background: radial-gradient(120% 120% at 0% 0%, rgba(2, 182, 95, 0.35), transparent 50%), radial-gradient(90% 90% at 100% 100%, rgba(177, 253, 78, 0.18), transparent 55%), linear-gradient(160deg, #15241B, #0B110D 60%);
  border: 1px solid var(--c-line-dark); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(250, 255, 243, 0.08); }
.browser-bar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--c-line-dark); background: rgba(250, 255, 243, 0.03); }
.browser-dots { display: flex; gap: 6px; } .browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(250, 255, 243, 0.18); }
.browser-dots i:first-child { background: #FF6159; } .browser-dots i:nth-child(2) { background: #FFBD2E; } .browser-dots i:nth-child(3) { background: #28C941; }
.browser-url { flex: 1; max-width: 420px; margin-inline: auto; padding: 0.35rem 1rem; border-radius: var(--r-pill); background: rgba(250, 255, 243, 0.06); color: var(--c-muted-dark); font-size: var(--fs-xs); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .browser-body { grid-template-columns: minmax(0, 1fr); } }
.case-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
.case-logo i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-style: normal; }
.browser h3 { font-size: var(--fs-h3); margin: 1.1rem 0 0.8rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1.75rem 0; }
.metric { padding: 1rem; border-radius: var(--r-sm); background: rgba(250, 255, 243, 0.05); border: 1px solid var(--c-line-dark); }
.metric b { display: block; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.04em; line-height: 1; color: var(--c-lime); }
.metric span { display: block; margin-top: 0.45rem; font-size: var(--fs-xs); color: var(--c-muted-dark); }
/* glass dashboard mockup */
.glass { border-radius: var(--r-md); background: rgba(250, 255, 243, 0.06); border: 1px solid rgba(250, 255, 243, 0.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(250, 255, 243, 0.08); }
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.85rem; }
.dash-panel { padding: 1rem 1.1rem; }
.dash-label { margin: 0 0 0.75rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted-dark); }
.dash-big { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.dash-up { color: var(--c-lime); font-size: var(--fs-xs); font-weight: 600; }
.dash-chart { grid-column: 1 / -1; }
.dash-chart > svg { width: 100%; height: 120px; }
.dash-wide { grid-column: 1 / -1; }
.dash-list { list-style: none; display: grid; gap: 0.55rem; font-size: var(--fs-sm); }
.dash-list li { display: flex; justify-content: space-between; gap: 0.5rem; }
.bar { height: 6px; border-radius: 99px; background: rgba(250, 255, 243, 0.1); overflow: hidden; margin-top: 0.3rem; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-green), var(--c-lime)); }
.ring { width: 76px; height: 76px; }
.ring-wrap { display: flex; align-items: center; gap: 0.9rem; }

/* ---------- 23. Continuous slider (drag / swipe / arrows) ---------- */
.slider-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.slider-controls { display: flex; align-items: center; gap: 0.6rem; }
.slider-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; background: transparent; display: grid; place-items: center; transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast); }
.slider-btn:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.on-dark .slider-btn:hover, .on-dark-2 .slider-btn:hover { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); }
.slider-btn[disabled] { opacity: 0.35; cursor: default; }
.slider-track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-bottom: 0.5rem; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.slider-track.is-dragging a { pointer-events: none; }
.slide-card { position: relative; flex: 0 0 clamp(270px, 28vw, 380px); aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: var(--c-cream); display: flex; flex-direction: column; }
.slide-card > img, .slide-card > .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.slide-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 17, 13, 0.92) 0%, rgba(11, 17, 13, 0.7) 26%, rgba(11, 17, 13, 0.2) 50%, rgba(11, 17, 13, 0) 64%); }
.slide-body, .bento-card h3, .bento-card p { text-shadow: 0 1px 12px rgba(11, 17, 13, 0.45); }
.slide-card:hover > img { transform: scale(1.05); }
.slide-body { padding: clamp(1.25rem, 2vw, 1.75rem); }
.slide-client { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.035em; }
.slide-client i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-style: normal; font-size: 0.8rem; }
.slide-desc { margin: 0.85rem 0 0; font-size: var(--fs-sm); line-height: 1.5; color: rgba(250, 255, 243, 0.86); max-width: 32ch; }
.slide-card .view-chip { position: absolute; left: 1.25rem; bottom: 1.25rem; opacity: 0; transform: translateY(8px); display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-weight: 600; font-size: var(--fs-sm); transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.slide-card:hover .view-chip, .slide-card:focus-visible .view-chip { opacity: 1; transform: none; }
.slide-step { flex-basis: clamp(260px, 26vw, 340px); aspect-ratio: auto; min-height: 300px; padding: 1.75rem; background: var(--c-ink-3); border: 1px solid var(--c-line-dark); color: var(--c-cream); justify-content: space-between; }
.slide-step::before { display: none; }
.slide-step .step-num { margin-bottom: 0; }

/* ---------- 24. Testimonial slider ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: stretch; }
@media (max-width: 820px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-ink-3); max-height: 520px; }
.quote-media img, .quote-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-med); }
.quote-play { position: absolute; right: 1.25rem; bottom: 3.25rem; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--c-cream); color: var(--c-ink); box-shadow: var(--shadow-soft); transition: transform var(--t-fast); }
.quote-play:hover { transform: scale(1.06); }
.quote-dots { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0.6rem; display: flex; gap: 6px; }
.quote-dots button { flex: 1; height: 24px; padding: 0; border: 0; background: transparent; position: relative; }   /* 24px touch area; 3px bar drawn inside */
.quote-dots button::before, .quote-dots button[aria-current="true"]::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.quote-dots button::before { background: rgba(250, 255, 243, 0.35); }
.quote-dots button[aria-current="true"]::after { background: var(--c-cream); transform-origin: left; animation: qprogress var(--q-interval, 6s) linear forwards; }
.quotes.is-paused .quote-dots button[aria-current="true"]::after { animation: none; transform: none; }
@keyframes qprogress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.quote-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(1rem, 3vw, 3rem); min-height: 380px; }
.quote-mark { position: absolute; top: 0; left: -0.5rem; width: clamp(90px, 12vw, 150px); color: currentColor; opacity: 0.08; pointer-events: none; }
.quote-text { position: relative; font-size: clamp(1.4rem, 1.8vw + 0.8rem, 2.35rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; margin: 0; max-width: 30ch; transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.quote-text.is-leaving { opacity: 0; transform: translateY(12px); }
.quote-foot { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.quote-name { font-size: var(--fs-lg); font-weight: 600; }
.quote-role { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; font-size: var(--fs-sm); }
.company-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-xs); background: var(--surface-2); }
.on-dark .company-badge, .on-dark-2 .company-badge { background: rgba(250, 255, 243, 0.06); border-color: var(--c-line-dark); }
.quote-item[hidden] { display: none; }
.no-js .quote-item[hidden] { display: block; }

/* ---------- 25. Page heroes (inner pages) ---------- */
.page-hero--split .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.page-hero--split .display { font-size: clamp(3.25rem, 8vw, 8.5rem); line-height: 0.92; }
.page-hero-aside { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.5rem; }
.page-hero-aside .lead { max-width: 46ch; }
.page-hero-aside .row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .page-hero--split .container { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- 26. Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.filter:hover { border-color: var(--text); }
.filter[aria-current="page"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.on-dark .filter { border-color: var(--c-line-dark); } .on-dark .filter[aria-current="page"] { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); }

/* ---------- 27. Portfolio grid cards (Work page) ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.4vw, 2rem); }
@media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
.project-card { display: flex; flex-direction: column; gap: 1rem; }
.project-card .media { --ratio: 1; border-radius: var(--r-md); }
.project-card:hover .media img { transform: scale(1.045); }
.project-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.project-brand i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-ink); color: var(--c-lime); font-style: normal; font-size: 0.7rem; }
.project-card p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; }
.project-card .tags { justify-content: flex-start; }
.span-full { grid-column: 1 / -1; }

/* ---------- 28. Banners & bento ---------- */
.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); text-align: center; background: var(--c-ink); color: var(--c-cream); isolation: isolate; }
.banner::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(177, 253, 78, 0.25), rgba(2, 182, 95, 0.12) 55%, transparent 75%); }
.banner .h2 { max-width: 18ch; margin-inline: auto; }
.banner p { max-width: 48ch; margin: 1.25rem auto 2rem; color: var(--c-muted-dark); }
.banner .row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: clamp(1rem, 1.6vw, 1.25rem); }
.bento-card { position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--c-cream); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.25rem, 2.2vw, 2rem); min-height: 240px; }
.bento-card > img, .bento-card > .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.bento-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 17, 13, 0.94) 0%, rgba(11, 17, 13, 0.72) 30%, rgba(11, 17, 13, 0.18) 60%, rgba(11, 17, 13, 0) 78%); }
.bento-card .placeholder span { display: none; }   /* the title already sits over the image */
.bento-card:hover > img { transform: scale(1.04); }
.bento-card h3 { font-size: var(--fs-h3); }
.bento-card p { margin: 0.6rem 0 0; max-width: 36ch; font-size: var(--fs-sm); color: rgba(250, 255, 243, 0.86); }
.b-6 { grid-column: span 6; } .b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; } .b-4 { grid-column: span 4; } .b-8 { grid-column: span 8; }
.b-tall { grid-row: span 2; }
@media (max-width: 900px) { .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }
.cat-rows { display: grid; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--c-line-dark); }
.cat-row h3 { font-size: var(--fs-h3); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: start; }
.chips .tag { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
@media (max-width: 760px) { .cat-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }

/* ---------- 29. Blog listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.4vw, 2rem); }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-date { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.04em; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.post-feature .media { --ratio: 16 / 10; }
.post-feature:hover .media img { transform: scale(1.035); }
.post-feature .post-title { font-size: var(--fs-h3); }
@media (max-width: 860px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }
.load-more { display: flex; justify-content: center; margin-top: clamp(3rem, 6vw, 4.5rem); }

.mt-sm { margin-top: 1.5rem; }
.bar-svg { display: block; width: 100%; height: 6px; margin-top: 0.1rem; }
.section--flush-top { padding-top: 0; }
.eyebrow.h2-reset, h2.eyebrow { font-size: var(--fs-xs); letter-spacing: 0.14em; line-height: 1.5; }

.bento-more { background: radial-gradient(90% 90% at 100% 0%, rgba(177, 253, 78, 0.22), transparent 60%), var(--c-ink-3); justify-content: center; }
.bento-more::before { display: none; }

.bento-more .btn { align-self: flex-start; }
.banner .h2 em, .on-dark .h2 em, .on-dark-2 .h2 em { color: var(--c-lime); }
.quote-side .quote-nav { position: absolute; right: 0; bottom: 0; }
@media (max-width: 820px) { .quote-side { min-height: 0; padding-bottom: 5rem; } }
.quote-side > [aria-live] { flex: 1; display: flex; }
.quote-item { display: flex; flex-direction: column; width: 100%; margin: 0; }
.quote-item .quote-foot { margin-top: auto; padding-top: 2.5rem; padding-right: 8rem; }

/* =============================================================================
   Phase 9.3 — case study, about, article, contact/forms, shop & product
   ============================================================================= */
/* ---------- 30. Case study ---------- */
.case-intro { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.case-statement { font-size: clamp(1.75rem, 2.6vw + 0.9rem, 3.4rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.035em; max-width: 26ch; margin: 0; }
.case-statement strong { font-weight: 700; }
.case-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.case-meta dt { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 0.3rem; }
.case-meta dd { margin: 0; font-weight: 600; font-size: var(--fs-sm); }
.case-client { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.case-client i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-ink); color: var(--c-lime); font-style: normal; font-size: 1rem; }
@media (max-width: 700px) { .case-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .case-meta > :first-child { grid-column: 1 / -1; } }
.case-hero { padding-inline: clamp(0.75rem, 2vw, 1.5rem); }
.case-hero .media { --ratio: 16 / 8.5; border-radius: clamp(16px, 2.4vw, 32px); }
@media (max-width: 700px) { .case-hero .media { --ratio: 4 / 3.4; } }
.narrow { max-width: 760px; margin-inline: auto; }
.case-block h2 { font-size: clamp(2rem, 3vw + 0.8rem, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 1.5rem; max-width: 20ch; }
.case-block p { font-size: var(--fs-lg); color: var(--text-muted); }
.before-after { background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface) 100%); color: var(--text); }
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 760px) { .ba-grid { grid-template-columns: minmax(0, 1fr); } }
.ba-label { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin-bottom: 1.25rem; }
.ba-label--after { color: var(--accent-text); }
.ba-col .media { --ratio: 16 / 10; border-radius: var(--r-md); box-shadow: var(--shadow-soft); background: var(--surface-2); }
.ba-col .tags { justify-content: flex-start; margin-top: 1.25rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.gallery .media { --ratio: 1; border-radius: var(--r-md); }
.gallery .g-wide { grid-column: span 2; } .gallery .g-wide.media { --ratio: 2 / 0.97; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .g-wide { grid-column: 1 / -1; } }
.case-quote { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.case-quote-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.5rem); color: var(--c-cream); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(90% 120% at 100% 0%, rgba(177, 253, 78, 0.28), transparent 55%), radial-gradient(80% 90% at 0% 100%, rgba(2, 182, 95, 0.45), transparent 60%), var(--c-ink-2); }
.case-quote-card blockquote { margin: 0; font-size: clamp(1.4rem, 1.6vw + 0.8rem, 2.2rem); line-height: 1.28; letter-spacing: -0.025em; font-weight: 500; max-width: 26ch; }
.case-quote-card .who { display: flex; align-items: center; gap: 0.9rem; }
.case-quote-card .who img, .case-quote-card .who .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.case-quote-side { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.case-quote-side .media { --ratio: 1.3; border-radius: var(--r-lg); }
@media (max-width: 800px) { .case-quote { grid-template-columns: minmax(0, 1fr); } .case-quote-side { grid-template-columns: 1fr 1fr; } }
.showcase { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.showcase .media { --ratio: 16 / 9.5; border-radius: var(--r-lg); }
.showcase .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.showcase .two .media { --ratio: 4 / 4.6; }
@media (max-width: 700px) { .showcase .two { grid-template-columns: minmax(0, 1fr); } }
.media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: rgba(11, 17, 13, 0.6); color: var(--c-cream); font-size: var(--fs-xs); font-weight: 600; backdrop-filter: blur(8px); }
.media-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--text-muted); }
.next-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.next-project .media { --ratio: 16 / 10; }
.next-project:hover .media img { transform: scale(1.04); }
@media (max-width: 800px) { .next-project { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 31. About ---------- */
.accent-statement { position: relative; padding-left: clamp(1.25rem, 2.4vw, 2rem); border-left: 3px solid var(--c-green); font-size: var(--fs-xl); line-height: 1.45; letter-spacing: -0.02em; max-width: 44ch; }
.on-dark .accent-statement { border-color: var(--c-lime); }
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.values .bento-card { min-height: 380px; }
@media (max-width: 900px) { .values { grid-template-columns: minmax(0, 1fr); } .values .bento-card { min-height: 280px; } }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem 3rem; padding-block: 2rem; border-block: 1px solid var(--line); }
.logo-strip img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter var(--t-fast), opacity var(--t-fast); }
.logo-strip img:hover { filter: none; opacity: 1; }
.engage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 800px) { .engage { grid-template-columns: minmax(0, 1fr); } }
.engage-card { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.engage-card .media { --ratio: 16 / 9; margin: auto calc(-1 * clamp(1.75rem, 3vw, 2.75rem)) calc(-1 * clamp(1.75rem, 3vw, 2.75rem)); border-radius: 0; }
.pill-label { align-self: flex-start; padding: 0.3rem 0.8rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; }
.checklist { list-style: none; display: grid; gap: 0.65rem; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checklist li svg { flex: none; margin-top: 0.3rem; color: var(--accent-text); }
.on-dark .checklist li svg { color: var(--c-lime); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card .media { --ratio: 4 / 5; border-radius: var(--r-md); }
.team-card h3 { font-size: var(--fs-lg); margin-top: 0.9rem; }
.team-card p { margin: 0.2rem 0 0; font-size: var(--fs-sm); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo-card { padding: clamp(2rem, 4vw, 3.25rem); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.duo-card .h3 { font-size: var(--fs-h2); }

/* ---------- 32. Article ---------- */
.article-head { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.article-head .display { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 5.25rem); max-width: 18ch; margin: 1.25rem auto 0; line-height: 1.02; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font-size: var(--fs-sm); }
.author { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.author img, .author .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-cover .media { --ratio: 16 / 8; border-radius: clamp(16px, 2.4vw, 28px); }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 2rem; }
.article-body .prose { grid-column: 2; }
.article-body .prose p, .article-body .prose li { color: var(--text); opacity: 0.88; }
.article-aside { grid-column: 1; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; display: grid; gap: 0.6rem; font-size: var(--fs-sm); }
.share { display: flex; gap: 0.5rem; }
.share a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }
.share a:hover { background: var(--text); color: var(--surface); }
@media (max-width: 1000px) { .article-body { grid-template-columns: minmax(0, 1fr); } .article-body .prose, .article-aside { grid-column: 1; } .article-aside { position: static; grid-row: 2; } }
.newsletter-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-lg); background: var(--c-ink); color: var(--c-cream); }
.newsletter-band .footer-form { margin-top: 0; max-width: none; }
@media (max-width: 800px) { .newsletter-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 33. Contact & project forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-list { display: grid; gap: 0.75rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); transition: border-color var(--t-fast), transform var(--t-fast); }
a.contact-item:hover { border-color: var(--text); transform: translateY(-2px); }
.contact-item .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.contact-item strong { font-weight: 600; overflow-wrap: anywhere; }
.form-card { padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.form-foot p { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); max-width: 42ch; }
.form-step { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.form-step b { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.form-section + .form-section { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: 1.25rem; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
.next-steps li::before { content: counter(ns); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
.next-steps h3 { font-size: var(--fs-lg); }
.next-steps p { margin: 0.25rem 0 0; font-size: var(--fs-sm); }

/* ---------- 34. Shop & product ---------- */
.licence-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
@media (max-width: 800px) { .licence-strip { grid-template-columns: minmax(0, 1fr); } }
.licence-card { padding: 1.75rem; border-radius: var(--r-md); background: var(--c-ink-3); border: 1px solid var(--c-line-dark); }
.licence-card h3 { font-size: var(--fs-xl); margin: 0.9rem 0 0.5rem; }
.licence-card p { margin: 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.product-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .product-layout { grid-template-columns: minmax(0, 1fr); } }
.p-gallery { display: grid; gap: 0.75rem; }
.p-gallery .main.media { --ratio: 4 / 3; border-radius: var(--r-lg); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.thumbs .media { --ratio: 4 / 3; border-radius: var(--r-sm); }
.thumbs a { border-radius: var(--r-sm); outline-offset: 2px; }
.thumbs a[aria-current="true"] .media { box-shadow: 0 0 0 2px var(--text); }
.buy-panel { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
@media (max-width: 960px) { .buy-panel { position: static; } }
.buy-panel h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0.6rem 0 0.75rem; }
.licence-options { display: grid; gap: 0.6rem; margin: 1.5rem 0; border: 0; padding: 0; }
.licence-options legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.licence-opt { position: relative; }
.licence-opt input { position: absolute; opacity: 0; }
.licence-opt label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0.85rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.licence-opt label::before { content: ''; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; transition: all var(--t-fast); }
.licence-opt input:checked + label { border-color: var(--text); background: var(--selected); }
.licence-opt input:checked + label::before { border: 6px solid var(--text); }
.licence-opt input:focus-visible + label { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.licence-opt b { display: block; }
.licence-opt small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 0.2rem; }
.licence-opt .price { font-size: var(--fs-lg); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); margin: 1rem 0 1.25rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--text); flex: none; }
.btn--block { width: 100%; justify-content: center; }
.fineprint { margin: 0.9rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
.spec-list { display: grid; gap: 0.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; }
.spec-list dt { color: var(--text-muted); } .spec-list dd { margin: 0; font-weight: 600; }
.product-top { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); }
.on-light-metrics .metric { background: var(--surface-2); border-color: var(--line); }
.on-light-metrics .metric b { color: var(--accent-text); }
.on-light-metrics .metric span { color: var(--text-muted); }
.statement em.hl { font-style: normal; color: var(--accent-text); }
.on-dark .statement em.hl { color: var(--c-lime); }
/* dark components inside light sections: switch helper text to the dark-surface grey */
.case-quote-card .muted, .newsletter-band .muted, .duo-card.on-dark .muted { color: var(--c-muted-dark); }
/* split-page titles: fit long single words on small phones */
@media (max-width: 520px) { .page-hero--split .display { font-size: clamp(2.1rem, 9.2vw, 3.25rem); } }
.display { overflow-wrap: break-word; }
.case-quote-card { margin: 0; }
.tag { border-color: color-mix(in srgb, currentColor 22%, transparent); }   /* visible outline on any background */
/* video with a branded play button (native controls appear once playing; stay native without JS) */
.video-play { position: absolute; inset: 0; z-index: 2; margin: auto; width: clamp(64px, 7vw, 92px); height: clamp(64px, 7vw, 92px); border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); box-shadow: 0 20px 50px -15px rgba(11, 17, 13, 0.6); transition: transform var(--t-fast) var(--ease); }
.video-play:hover { transform: scale(1.07); }
.video-play svg { width: 34%; height: 34%; margin-left: 6%; }
.media.is-playing .video-play, .media.is-playing .video-badge { display: none; }
/* titles whose longest word is long (e.g. the brand name): smaller display size so the word never breaks.
   The PHP helper adds .display--long automatically when the longest word exceeds 10 characters. */
.page-hero--split .display.display--long { font-size: clamp(2.1rem, 5vw, 6.5rem); }
@media (max-width: 520px) { .page-hero--split .display.display--long { font-size: clamp(1.9rem, 8.2vw, 2.75rem); } }

/* =============================================================================
   Phase 9.4 — themes: light · dark · system
   Light surfaces follow the theme; sections that are dark or lime BY DESIGN set
   their own semantic tokens so they look identical in both themes.
   ============================================================================= */
.on-dark, .on-dark-2, .site-footer, .banner, .case-quote-card, .newsletter-band, .duo-card.on-dark, .mobile-menu, .browser, .licence-strip, .bento-more {
  --surface: var(--c-ink); --surface-2: var(--c-ink-3); --surface-3: var(--c-ink-2);
  --text: var(--c-cream); --text-muted: var(--c-muted-dark); --line: var(--c-line-dark);
  --accent-text: var(--c-lime); --selected: rgba(250, 255, 243, 0.08); --focus: var(--c-lime); --danger: #FF9C8F; color-scheme: dark; }
.on-dark-2 { --surface: var(--c-ink-2); }
.on-lime { --surface: var(--c-lime); --surface-2: #C6FF7A; --text: var(--c-ink); --text-muted: rgba(11, 17, 13, 0.72); --line: rgba(11, 17, 13, 0.2);
  --accent-text: var(--c-ink); --focus: var(--c-ink); color-scheme: light; }
:root[data-theme="dark"] {
  --surface: #0D1510; --surface-2: #141F18; --surface-3: #17251C;
  --text: var(--c-cream); --text-muted: rgba(250, 255, 243, 0.68); --line: rgba(250, 255, 243, 0.12);
  --accent-text: var(--c-lime); --selected: #1B2A20; --focus: var(--c-lime); --danger: #FF9C8F; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0D1510; --surface-2: #141F18; --surface-3: #17251C;
    --text: var(--c-cream); --text-muted: rgba(250, 255, 243, 0.68); --line: rgba(250, 255, 243, 0.12);
    --accent-text: var(--c-lime); --selected: #1B2A20; --focus: var(--c-lime); --danger: #FF9C8F; color-scheme: dark; }
}
/* theme toggle (header) */
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; display: grid; place-items: center; }
.theme-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle [data-icon] { display: none; }
.theme-toggle[data-mode="light"] [data-icon="light"], .theme-toggle[data-mode="dark"] [data-icon="dark"], .theme-toggle[data-mode="system"] [data-icon="system"] { display: block; }
.no-js .theme-toggle { display: none; }

/* =============================================================================
   Phase 9.5 — marketplace: shop (hero, sticky search, featured autoplay, grid, toast)
   and product (zoom gallery, tabs, reviews, purchase sidebar, seats stepper)
   ============================================================================= */
.shop-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.shop-hero .display { font-size: clamp(2.6rem, 5.6vw + 0.4rem, 6rem); max-width: 16ch; margin: 1.25rem auto 0; line-height: 1; }
.shop-hero .lead { margin: 1.25rem auto 0; max-width: 54ch; color: var(--text-muted); }
.shop-stats { display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; margin-top: 2.25rem; }
.shop-stats div { text-align: center; }
.shop-stats b { display: block; font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; }
.shop-stats span { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; list-style: none; font-size: var(--fs-sm); font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row svg { color: var(--accent-text); }
.shop-bar { position: sticky; top: 0; z-index: 30; padding-block: 0.9rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: top var(--t-med) var(--ease); }
body:has(.site-header.is-scrolled:not(.is-hidden)) .shop-bar { top: var(--header-h); }
.shop-bar .container { display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 280px; max-width: 460px; }
.search svg { position: absolute; left: 1.1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text-muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 1.1rem 0 2.9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.shop-bar .filters { margin: 0; }
.result-count { margin-left: auto; font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap; }
.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem) clamp(0.75rem, 1.6vw, 1.25rem); }
@media (max-width: 1100px) { .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; }
.mk-card[hidden] { display: none; }
.mk-card .media { --ratio: 1; border-radius: var(--r-md); }
.mk-card:hover .media img { transform: scale(1.05); }
.mk-card h3 { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.mk-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable; cart button sits above */
.mk-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: var(--fs-sm); }
.mk-price { font-weight: 700; }
.mk-cat { font-size: var(--fs-xs); color: var(--text-muted); }
.cart-btn { position: absolute; right: 0.75rem; top: 0.75rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); box-shadow: 0 10px 24px -10px rgba(11, 17, 13, 0.5); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-fast), transform var(--t-med) var(--ease); }
.cart-btn svg { width: 20px; height: 20px; }
.mk-card:hover .cart-btn, .cart-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .cart-btn { opacity: 1; transform: none; } }
.stars { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--text-muted); }
.stars i { display: inline-block; width: 78px; height: 14px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 14'%3E%3Cg%3E%3Cpath id='s' d='M7 0l2.1 4.5 4.9.6-3.6 3.3.9 4.9L7 10.9 2.7 13.3l.9-4.9L0 5.1l4.9-.6z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 14'%3E%3Cg%3E%3Cpath id='s' d='M7 0l2.1 4.5 4.9.6-3.6 3.3.9 4.9L7 10.9 2.7 13.3l.9-4.9L0 5.1l4.9-.6z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: linear-gradient(90deg, #F5A623 var(--pct, 0%), color-mix(in srgb, var(--text) 18%, transparent) var(--pct, 0%)); }
.r50 { --pct: 100%; } .r45 { --pct: 90%; } .r40 { --pct: 80%; } .r35 { --pct: 70%; } .r30 { --pct: 60%; } .r25 { --pct: 50%; } .r20 { --pct: 40%; } .r15 { --pct: 30%; } .r10 { --pct: 20%; }
.stars b { color: var(--text); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; background: var(--c-lime); color: var(--c-ink); }
.slide-product { flex-basis: clamp(220px, 22vw, 280px); aspect-ratio: auto; color: var(--text); gap: 0.6rem; }
.slide-product::before { display: none; }
.slide-product .media { --ratio: 1; border-radius: var(--r-md); }
.empty-state { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--text-muted); }
/* toast */
.toast-region { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translateX(-50%); display: grid; gap: 0.5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem 0.9rem 1.1rem; border-radius: var(--r-md); background: var(--c-ink); color: var(--c-cream); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6); pointer-events: auto; animation: toast-in var(--t-med) var(--ease); }
.toast .ok { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); }
.toast a { margin-left: auto; font-weight: 600; color: var(--c-lime); white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity var(--t-med), transform var(--t-med); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- product (Creative Market-style, Exceptionalways look) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; font-size: var(--fs-xs); color: var(--text-muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; opacity: 0.6; }
.crumbs a:hover { color: var(--text); }
.pp-title { font-size: clamp(1.75rem, 2.2vw + 0.9rem, 2.75rem); letter-spacing: -0.035em; line-height: 1.08; margin: 0.6rem 0 0.4rem; }
.pp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; font-size: var(--fs-sm); color: var(--text-muted); }
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1.5rem; }
@media (max-width: 960px) { .pp-layout { grid-template-columns: minmax(0, 1fr); } }
.pp-viewer { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.75rem; }
@media (max-width: 640px) { .pp-viewer { grid-template-columns: minmax(0, 1fr); } .pp-thumbs { order: 2; flex-direction: row !important; } }
.pp-thumbs { display: flex; flex-direction: column; gap: 0.6rem; }
.pp-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: none; width: 84px; flex: none; }
.pp-thumbs button[aria-pressed="true"] { border-color: var(--text); }
.pp-thumbs .media { --ratio: 4 / 3; border-radius: 6px; }
.pp-main { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--surface-3); cursor: zoom-in; }
.pp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pp-main.is-zoomed img { transform: scale(1.9); }
.pp-dots { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); display: flex; gap: 6px; }
.pp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(250, 255, 243, 0.55); }
.pp-dots i.on { background: var(--c-cream); width: 20px; border-radius: 4px; }
.tabs { margin-top: clamp(2rem, 4vw, 3rem); }
.tablist { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tablist button { position: relative; min-height: 48px; padding: 0.7rem 1.1rem; border: 0; background: none; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.tablist button[aria-selected="true"] { color: var(--text); }
.tablist button[aria-selected="true"]::after { content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -1px; height: 2px; background: var(--accent-text); }
.tabpanel { padding-top: 1.75rem; }
.no-js .tabpanel[hidden] { display: block; }
.showmore { position: relative; max-height: 260px; overflow: hidden; }
.showmore.is-open { max-height: none; }
.showmore:not(.is-open)::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--surface)); }
.no-js .showmore { max-height: none; } .no-js .showmore::after { display: none; }
.link-btn { border: 0; background: none; padding: 0.5rem 0; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; color: var(--text); min-height: 44px; }
.rating-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: center; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .rating-summary { grid-template-columns: minmax(0, 1fr); } }
.rating-big { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.bars { display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.bars div { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2.2rem; gap: 0.7rem; align-items: center; }
.bars progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.bars progress::-webkit-progress-bar { background: color-mix(in srgb, var(--text) 12%, transparent); border-radius: 99px; }
.bars progress::-webkit-progress-value { background: #F5A623; border-radius: 99px; }
.bars progress::-moz-progress-bar { background: #F5A623; border-radius: 99px; }
.review { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.review-who { display: flex; gap: 0.75rem; align-items: center; }
.review-who img, .review-who .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.verified { font-size: var(--fs-xs); color: var(--accent-text); font-weight: 600; }
.review p { margin: 0.9rem 0 0; }
.reply { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--surface-3); border-left: 3px solid var(--accent-text); font-size: var(--fs-sm); }
.reply b { display: block; margin-bottom: 0.25rem; }
.file-list { list-style: none; display: grid; gap: 0.5rem; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); }
.file-list span { color: var(--text-muted); white-space: nowrap; }
.share-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); flex-wrap: wrap; }
.share-row a, .share-row button { min-height: 40px; padding: 0.45rem 0.95rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; font-weight: 600; font-size: var(--fs-xs); display: inline-flex; align-items: center; }
.share-row a:hover, .share-row button:hover { border-color: var(--text); }
.pp-side { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
@media (max-width: 960px) { .pp-side { position: static; } }
.panel { padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.creator { display: flex; align-items: center; gap: 0.75rem; }
.creator .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
.creator div { flex: 1; min-width: 0; } .creator small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); }
.live-price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 0.25rem; }
.live-price output { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.live-price small { color: var(--text-muted); font-size: var(--fs-xs); text-align: right; }
.seats { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.25rem 0 1.25rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); }
.seats label { font-weight: 600; font-size: var(--fs-sm); }
.stepper { display: inline-flex; align-items: center; gap: 0.25rem; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.1rem; }
.stepper button:hover { border-color: var(--text); }
.stepper input { width: 3rem; text-align: center; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cta-stack { display: grid; gap: 0.6rem; }
.guarantee { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: var(--fs-xs); color: var(--text-muted); }
.guarantee svg { flex: none; color: var(--accent-text); margin-top: 1px; }
.specs { display: grid; gap: 0.65rem; font-size: var(--fs-sm); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; }
.specs dt { color: var(--text-muted); } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.panel h2 { font-size: var(--fs-lg); margin-bottom: 1rem; }
@media (max-width: 640px) { .pp-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); } .pp-thumbs button { width: auto; } }
.pp-sub a.stars { min-height: 44px; }
.mk-card h3 a, .post-card a, .slide-product .post-title { text-decoration: none; }

/* =============================================================================
   Phase 9.6 — conversational forms (multi-step project flow, chat-style contact)
   and subscription (plans, billing toggle)
   ============================================================================= */
/* ---------- multi-step flow ---------- */
.flow-progress { position: sticky; top: 0; z-index: 20; padding-block: 1rem 1.1rem; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body:has(.site-header.is-scrolled:not(.is-hidden)) .flow-progress { top: var(--header-h); }
.flow-progress .container { max-width: calc(820px + 2 * var(--gutter)); }
.flow-top { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 600; }
.flow-top span:last-child { color: var(--text-muted); font-weight: 500; }
.flow-bar { height: 3px; margin: 0.7rem 0 0.9rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: var(--p, 20%); background: var(--accent-text); transition: width var(--t-med) var(--ease); }
.p1 { --p: 20%; } .p2 { --p: 40%; } .p3 { --p: 60%; } .p4 { --p: 80%; } .p5 { --p: 100%; }
.flow-steps { display: flex; justify-content: space-between; gap: 0.5rem; list-style: none; font-size: var(--fs-xs); color: var(--text-muted); }
.flow-steps li { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.flow-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; font-size: 0.7rem; }
.flow-steps li.is-current { color: var(--text); font-weight: 600; } .flow-steps li.is-current b { background: var(--accent-text); color: var(--surface); border-color: var(--accent-text); }
.flow-steps li.is-done b { background: color-mix(in srgb, var(--accent-text) 20%, transparent); border-color: transparent; color: var(--accent-text); }
@media (max-width: 640px) { .flow-steps li span { display: none; } }
.flow { max-width: 820px; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.step-panel[hidden] { display: none; }
.no-js .step-panel[hidden] { display: block; }
.no-js .step-panel + .step-panel { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.step-panel h2 { font-size: clamp(2.1rem, 3.4vw + 0.8rem, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0.9rem 0 0.75rem; }
.step-panel h2 em { font-style: normal; color: var(--accent-text); }
.step-intro { color: var(--text-muted); margin-bottom: 2rem; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; border: 0; padding: 0; margin: 0; }
@media (max-width: 600px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.svc-opt label { display: flex; gap: 1rem; align-items: center; min-height: 84px; padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast); }
.svc-opt label:hover { border-color: var(--text); transform: translateY(-1px); }
.svc-opt .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 7%, transparent); }
.svc-opt .ic svg { width: 20px; height: 20px; }
.svc-opt b { display: block; } .svc-opt small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 0.15rem; }
.svc-opt input:checked + label { border-color: var(--accent-text); background: var(--selected); }
.svc-opt input:checked + label .ic { background: var(--accent-text); color: var(--surface); }
.svc-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-block { display: grid; gap: 1.5rem; }
.q-block + .q-block { margin-top: 1.5rem; }
.cond[hidden] { display: none; }
.no-js .cond[hidden] { display: grid; }
.no-js .cond::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.flow-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.no-js .flow-nav [data-back], .no-js .flow-nav [data-next] { display: none; }
.review-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.review-list dt { color: var(--text-muted); } .review-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.done-panel { text-align: center; padding-block: 2rem; }
.done-panel .tick { width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); }
.done-panel .tick svg { width: 38px; height: 38px; }
.done-panel p { max-width: 48ch; margin: 1rem auto 0; color: var(--text-muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */

/* ---------- chat-style contact ---------- */
.chat-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .chat-layout { grid-template-columns: minmax(0, 1fr); } .chat-layout > :first-child { order: 2; } }
.chat { display: flex; flex-direction: column; min-height: 560px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat-head .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
.chat-head small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.25rem; overflow-y: auto; max-height: 520px; }
.bubble { max-width: 82%; padding: 0.8rem 1rem; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.5; animation: toast-in var(--t-med) var(--ease); overflow-wrap: anywhere; }
.bubble--bot { align-self: flex-start; background: color-mix(in srgb, var(--text) 7%, transparent); border-bottom-left-radius: 6px; }
.bubble--me { align-self: flex-end; background: var(--c-ink); color: var(--c-cream); border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .bubble--me { background: var(--c-lime); color: var(--c-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble--me { background: var(--c-lime); color: var(--c-ink); } }
.bubble .edit { margin-left: 0.6rem; border: 0; background: none; color: inherit; opacity: 0.7; text-decoration: underline; font-size: var(--fs-xs); min-height: 32px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.9rem 1rem; border-radius: 18px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-input { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.chat-q[hidden] { display: none; }
.chat-q .choice-row { margin-bottom: 0.25rem; }
.chat-q .row { display: flex; gap: 0.5rem; align-items: flex-end; }
.chat-q .row .input, .chat-q .row .textarea { flex: 1; }
.chat-q .textarea { min-height: 90px; }
.chat-q legend, .chat-q > label { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.6rem; padding: 0; display: block; }
.chat-skip { margin-top: 0.5rem; font-size: var(--fs-xs); }
.no-js .chat-log { display: none; }
.no-js .chat-q[hidden] { display: block; }
.no-js .chat-q + .chat-q { margin-top: 1.25rem; }
.chat-note { font-size: var(--fs-xs); color: var(--text-muted); padding: 0 1.25rem 1rem; }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
@media (max-width: 520px) { .office-grid { grid-template-columns: minmax(0, 1fr); } }
.office { padding: 1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); }
.office b { display: block; } .office span { display: block; color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- subscription ---------- */
.billing { display: inline-flex; align-items: center; gap: 0.9rem; margin: 1.5rem 0 2.5rem; font-size: var(--fs-sm); font-weight: 600; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; border: 0; background: var(--line); padding: 0; }
.switch::after { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform var(--t-med) var(--ease); }
.switch[aria-checked="true"] { background: var(--accent-text); } .switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--surface); }
.save-tag { padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-size: var(--fs-xs); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); align-items: stretch; text-align: left; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.plan--pop { background: var(--c-ink); color: var(--c-cream); border-color: transparent; box-shadow: 0 40px 80px -30px rgba(2, 182, 95, 0.45);
  --surface: var(--c-ink); --surface-2: var(--c-ink-3); --text: var(--c-cream); --text-muted: var(--c-muted-dark); --line: var(--c-line-dark); --accent-text: var(--c-lime); --focus: var(--c-lime); }
.plan-tag { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); padding: 0.35rem 0.9rem; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: var(--fs-xl); }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; }
.plan-price b { font-size: clamp(2.4rem, 3.4vw, 3.25rem); letter-spacing: -0.05em; line-height: 1; }
.plan-price span { color: var(--text-muted); font-size: var(--fs-sm); }
.plan .checklist { font-size: var(--fs-sm); flex: 1; }
.plan .btn { justify-content: center; }
.plan small.muted { display: block; margin-top: -0.6rem; font-size: var(--fs-xs); }
.get-started { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
@media (max-width: 800px) { .get-started { grid-template-columns: minmax(0, 1fr); } }
.gs-card { position: relative; overflow: hidden; min-height: 240px; padding: 1.75rem; border-radius: var(--r-lg); background: var(--c-ink-3); color: var(--c-cream); display: flex; flex-direction: column; justify-content: flex-end; }
.gs-card .num { position: absolute; right: 1.25rem; top: 0.5rem; font-size: 7rem; font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: rgba(250, 255, 243, 0.06); }
.gs-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); margin-bottom: auto; }
.gs-card .ic svg { width: 24px; height: 24px; }
.gs-card h3 { font-size: var(--fs-xl); margin-top: 2rem; } .gs-card p { margin: 0.5rem 0 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 800px) { .perks { grid-template-columns: minmax(0, 1fr); } }
.perk .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-text) 18%, transparent); color: var(--accent-text); margin-bottom: 1rem; }
.perk .ic svg { width: 24px; height: 24px; }
.perk h3 { font-size: var(--fs-lg); } .perk p { margin: 0.4rem 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.center-head { text-align: center; } .center-head .h2 { max-width: 18ch; margin-inline: auto; } .center-head p { max-width: 56ch; margin: 1.25rem auto 0; color: var(--text-muted); }
.center-head .row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
/* FAQ rows: a shrinkable text column + the marker (a flex row could overflow narrow screens with long questions) */
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.switch { width: 60px; height: 34px; } .switch::after { width: 26px; height: 26px; } .switch[aria-checked="true"]::after { transform: translateX(26px); }
.switch { flex: none; }
/* progress sits below the fixed header; moves up only when the header hides on scroll */
.flow-progress { top: var(--header-h); margin-top: var(--header-h); }
body:has(.site-header.is-hidden) .flow-progress { top: 0; }
body:has(.site-header.is-scrolled:not(.is-hidden)) .flow-progress { top: var(--header-h); }
.step-panel h2:focus, .done-panel h2:focus { outline: none; }   /* focus is moved here for screen readers; no ring on a non-interactive heading */
/* headlines in split layouts: sized so words stay whole */
.chat-layout .display { font-size: clamp(2.6rem, 4.6vw + 0.4rem, 5.5rem); overflow-wrap: normal; }
/* plan cards keep their own alignment and colour inside centred sections */
.center-head .plan p { max-width: none; margin: 0; text-align: left; }
.center-head .plan p.muted { color: var(--text-muted); }
.plan-price b { color: var(--text); }
.center-head .plan .plan-price { color: var(--text); }

/* =============================================================================
   Phase 9.7 — utility pages: legal, auth, account, basket, portal, search, 404
   ============================================================================= */
/* ---------- legal ---------- */
.legal-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.legal-hero .display { font-size: clamp(2.6rem, 5vw + 0.5rem, 5.5rem); }
.legal-hero .meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--text-muted); }
.draft-note { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: color-mix(in srgb, #F5A623 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, #F5A623 45%, transparent); font-size: var(--fs-sm); margin-bottom: 2rem; }
.draft-note b { display: block; margin-bottom: 0.2rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.25rem; font-size: var(--fs-sm); }
.toc p { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.toc a { display: block; padding: 0.45rem 0.75rem; border-radius: var(--r-sm); color: var(--text-muted); border-left: 2px solid var(--line); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
@media (max-width: 900px) { .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toc p { grid-column: 1 / -1; } }
.legal-layout .prose { max-width: 72ch; }
.legal-layout .prose h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-layout .prose p, .legal-layout .prose li { color: var(--text); opacity: 0.88; }
/* ---------- auth ---------- */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 4rem); padding-top: calc(var(--header-h) + 2rem); }
.auth-art .glow { position: absolute; inset: auto -30% -30% auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(177, 253, 78, 0.3), rgba(2, 182, 95, 0.12) 55%, transparent 72%); pointer-events: none; }
.auth-art .statement { position: relative; }
.auth-art ul { position: relative; display: grid; gap: 0.75rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: clamp(2rem, 2.6vw + 1rem, 2.9rem); letter-spacing: -0.04em; line-height: 1.05; }
.auth-card > p { color: var(--text-muted); margin: 0.75rem 0 2rem; }
.auth-card form { display: grid; gap: 1.1rem; }
.auth-alt { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-sm); }
.check { display: inline-flex; gap: 0.55rem; align-items: center; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 5.5rem; }
.pw-toggle { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 0.9rem; border: 0; border-radius: var(--r-sm); background: none; font-weight: 600; font-size: var(--fs-xs); color: var(--text-muted); }
.pw-toggle:hover { color: var(--text); }
.no-js .pw-toggle { display: none; }
.hint { font-size: var(--fs-xs); color: var(--text-muted); }
.notice { padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--surface-2); }
.notice--ok { border-color: color-mix(in srgb, var(--accent-text) 45%, transparent); background: color-mix(in srgb, var(--accent-text) 10%, var(--surface-2)); }
.notice--err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface-2)); }
/* ---------- account / portal shell ---------- */
.app { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.app-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .app-layout { grid-template-columns: minmax(0, 1fr); } }
.side-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.25rem; }
.side-nav .who { display: flex; gap: 0.75rem; align-items: center; padding-bottom: 1.25rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.side-nav .who .mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-weight: 700; flex: none; }
.side-nav .who small { display: block; color: var(--text-muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0.5rem 0.9rem; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 500; text-decoration: none; }
.side-nav a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--text); color: var(--surface); }
.side-nav .count { font-size: var(--fs-xs); padding: 0.1rem 0.5rem; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-weight: 700; }
@media (max-width: 900px) { .side-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; } .side-nav .who { display: none; } }
.app-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.app-head h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); letter-spacing: -0.04em; line-height: 1.05; }
.app-head p { margin: 0.4rem 0 0; color: var(--text-muted); }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 2rem; }
@media (max-width: 700px) { .stat-cards { grid-template-columns: minmax(0, 1fr); } }
.stat-card { padding: 1.25rem 1.35rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; display: block; }
a.stat-card:hover { border-color: var(--text); }
.stat-card small { display: block; font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card b { display: block; margin-top: 0.4rem; font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
.stat-card span { display: block; margin-top: 0.45rem; font-size: var(--fs-sm); color: var(--text-muted); }
.card { padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.card + .card { margin-top: 1rem; }
.card h2 { font-size: var(--fs-xl); margin-bottom: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.table td { padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; gap: 0.3rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .table--stack td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; border: 0; }
  .table--stack td::before { content: attr(data-label); color: var(--text-muted); font-size: var(--fs-xs); }
  .table--stack .num { text-align: right; }
}
.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.65rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; border: 1px solid var(--line); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }
.status--wait { color: #B26A00; border-color: color-mix(in srgb, #F5A623 50%, transparent); }
:root[data-theme="dark"] .status--wait { color: #FFC45C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status--wait { color: #FFC45C; } }
.status--bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.status--muted { color: var(--text-muted); }
.dl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.dl-item:last-child { border-bottom: 0; }
.dl-item .media { --ratio: 1; border-radius: var(--r-sm); }
.dl-item small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 0.15rem; }
@media (max-width: 560px) { .dl-item { grid-template-columns: 52px minmax(0, 1fr); } .dl-item .btn { grid-column: 1 / -1; justify-self: start; } }
/* ---------- basket ---------- */
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .basket-layout { grid-template-columns: minmax(0, 1fr); } }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.1rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.line .media { --ratio: 1; border-radius: var(--r-sm); }
.line h3 { font-size: var(--fs-lg); line-height: 1.25; }
.line .opts { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-muted); align-items: center; }
.line .price { font-size: var(--fs-lg); text-align: right; }
.line form { display: inline; }
.line .remove { border: 0; background: none; padding: 0.4rem 0; min-height: 40px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 0.25em; font-size: var(--fs-sm); }
@media (max-width: 560px) { .line { grid-template-columns: 72px minmax(0, 1fr); } .line .price { grid-column: 2; text-align: left; } }
.summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary dl { display: grid; gap: 0.7rem; margin: 0 0 1.25rem; font-size: var(--fs-sm); }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--text-muted); } .summary dd { margin: 0; font-weight: 600; }
.summary .total { padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: var(--fs-lg); }
.summary .total dt { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .summary { position: static; } }
/* ---------- portal documents ---------- */
.doc { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.doc-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.doc-head h2 { font-size: var(--fs-h3); }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem 0; font-size: var(--fs-sm); }
@media (max-width: 640px) { .doc-meta { grid-template-columns: minmax(0, 1fr); } }
.doc-meta dt { font-size: var(--fs-xs); color: var(--text-muted); } .doc-meta dd { margin: 0.2rem 0 0; font-weight: 600; }
.totals { display: grid; gap: 0.5rem; justify-content: end; margin-top: 1.25rem; font-size: var(--fs-sm); }
.totals div { display: grid; grid-template-columns: 10rem 8rem; gap: 1rem; text-align: right; }
.totals dt { color: var(--text-muted); } .totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 700; } .totals .grand dt { color: var(--text); }
@media (max-width: 480px) { .totals div { grid-template-columns: minmax(0, 1fr) auto; } }
.decision { margin-top: 1.5rem; }
.decision .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); }
/* ---------- search ---------- */
.search-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: 2rem; }
.search-big { position: relative; max-width: 760px; }
.search-big input { width: 100%; min-height: 68px; padding: 0 9rem 0 3.4rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-lg); }
.search-big input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.search-big svg { position: absolute; left: 1.3rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--text-muted); }
.search-big .btn { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); }
.search-big .btn:hover { transform: translateY(-50%); }
.result-group + .result-group { margin-top: 2.75rem; }
.result-group h2 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.result { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.result .media { --ratio: 1; border-radius: var(--r-sm); }
.result h3 { font-size: var(--fs-lg); }
.result p { margin: 0.25rem 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.result:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
mark { background: color-mix(in srgb, var(--c-lime) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 0.1em; }
/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); text-align: center; }
.nf .big { font-size: clamp(7rem, 26vw, 20rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.85; color: var(--c-lime); }
.nf h1 { font-size: var(--fs-h2); margin-top: 1rem; }
.nf p { max-width: 46ch; margin: 1rem auto 0; color: var(--text-muted); }
.nf .search-big { margin: 2rem auto 0; }
.nf .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
body.header-solid .site-header { background: rgba(11, 17, 13, 0.92); color: var(--c-cream); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.status--wait { color: #8A5300; }   /* AA on white/cream (was 4.24:1) */
.toc a { min-height: 44px; display: flex; align-items: center; }
.row-between a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) { .table--stack td a { display: inline-flex; align-items: center; min-height: 44px; } }
.statement em { font-style: normal; color: var(--accent-text); }
.doc-head { align-items: flex-start; } .status { align-self: flex-start; }

/* ---------- consent bar (Phase 10.1 — same logic as Phase 3.2) ---------- */
.consent-bar { position: fixed; left: 50%; bottom: 1rem; z-index: 95; transform: translateX(-50%); width: min(94vw, 760px); display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--c-ink); color: var(--c-cream); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.6);
  --text: var(--c-cream); --surface: var(--c-ink); --line: var(--c-line-dark); --focus: var(--c-lime); }
.consent-bar[hidden] { display: none; }
.consent-bar p { flex: 1 1 320px; margin: 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.consent-bar strong { color: var(--c-cream); }
.consent-bar a { color: var(--c-lime); }
.consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.browser-body .media { border-radius: var(--r-md); } .browser-body .media.glass { padding: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.case-quote--solo { grid-template-columns: minmax(0, 1fr); }
.attachments { display: grid; gap: 0.6rem; }
.attachments a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 0.9rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; text-decoration: none; }
.attachments a:hover { border-color: var(--text); }
/* About timeline (Phase 10.3) — owner-written milestones */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 0.5rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 4px var(--surface); }
.timeline .tl-year { font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.02em; color: var(--accent-text); }
.timeline h3 { font-size: var(--fs-lg); } .timeline p { margin: 0.35rem 0 0; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; } }
.share button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; background: none; color: var(--text); } .share button:hover { background: var(--text); color: var(--surface); }
.side-nav form { margin: 0; }
.side-nav-btn { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0.5rem 0.9rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-muted); font: inherit; font-weight: 500; text-align: left; }
.side-nav-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }

/* =============================================================================
   Phase 10.6 — legal pages: new-design styling for the built-in draft text's classes
   (the wording itself is untouched until the owner's approved text replaces it via the CMS)
   ============================================================================= */
.util-wrap { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--surface); color: var(--text); }
.util-bread-inner, .util-hero-inner, .util-layout { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.util-bread-inner { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--text-muted); }
.util-bread-inner a { color: var(--text-muted); } .util-bread-inner a:hover { color: var(--text); }
.util-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); }
.util-hero-inner { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.util-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.util-title { font-size: clamp(2.6rem, 5vw + 0.5rem, 5.5rem); line-height: 1; letter-spacing: -0.05em; margin: 0.75rem 0 0; }
.util-title em { font-style: normal; color: var(--accent-text); }
.util-meta { margin-top: 1rem; font-size: var(--fs-sm); color: var(--text-muted); }
.util-hero-badge { display: grid; place-items: center; min-width: 96px; padding: 0.9rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.util-hero-badge-num { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.util-hero-badge-lbl { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 0.25rem; }
.util-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .util-layout { grid-template-columns: minmax(0, 1fr); } }
.util-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .util-toc { position: static; } }
.util-toc-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.util-toc-list { list-style: none; display: grid; gap: 0.15rem; }
.util-toc-item { display: flex; align-items: center; min-height: 40px; padding: 0.35rem 0.75rem; border-left: 2px solid var(--line); color: var(--text-muted); font-size: var(--fs-sm); text-decoration: none; }
.util-toc-item:hover { color: var(--text); border-left-color: var(--text); }
.util-article { max-width: 74ch; }
.util-section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.util-section:last-child { border-bottom: 0; }
.util-section-num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--accent-text); }
.util-section-title { font-size: var(--fs-h3); letter-spacing: -0.03em; margin: 0.4rem 0 1rem; }
.util-body, .util-body p, .util-body li { color: var(--text); opacity: 0.9; line-height: 1.7; }
.util-body p + p, .util-body ul, .util-body ol { margin-top: 0.9rem; }
.util-body ul, .util-body ol { padding-left: 1.25rem; }
.util-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.util-highlight { margin: 1.1rem 0; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--surface-3); border-left: 3px solid var(--accent-text); }
.util-body blockquote { margin: 1.1rem 0; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--surface-3); border-left: 3px solid var(--accent-text); }   /* Phase 13.23: the editor's quote = the highlight box */
.util-body blockquote > :last-child { margin-bottom: 0; }
.util-layout--single { grid-template-columns: minmax(0, 1fr) !important; max-width: 820px; }
.util-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.util-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.util-table th { text-align: left; padding: 0.7rem 0.9rem; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.util-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.util-table tr:last-child td { border-bottom: 0; }
/* Licence page + CMS-published legal text */
.legal-page { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.legal-page h1 { font-size: clamp(2.4rem, 4vw + 0.6rem, 4.5rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 1.25rem; }
.legal-page h2 { font-size: var(--fs-h3); letter-spacing: -0.03em; margin: 2.25rem 0 0.9rem; }
.legal-page h3 { font-size: var(--fs-xl); margin: 1.5rem 0 0.6rem; }
.legal-page p, .legal-page li { line-height: 1.7; } .legal-page p + p { margin-top: 0.9rem; }
.legal-page ul, .legal-page ol { padding-left: 1.25rem; margin-top: 0.9rem; }
.legal-page a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--fs-sm); } .legal-page th, .legal-page td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-updated { color: var(--text-muted); font-size: var(--fs-sm); }
.legal-main { padding-top: var(--header-h); background: var(--surface); color: var(--text); }
.legal-main > .draft-note, .util-wrap > .draft-note { width: min(100% - 2 * var(--gutter), var(--container)); margin: 1.5rem auto 0; }
.consent-panel { margin: 1.2rem 0; }
.consent-panel h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.consent-panel .consent-actions { margin-top: 1rem; }
.legal-main .util-wrap { padding-top: clamp(1.5rem, 4vw, 3rem); }
.util-bread { padding-bottom: 0.5rem; }
/* legal fixes after rendering the real text: link colour on tinted notes (was 4.38:1); tap targets on the link, not the <li> */
.util-body a, .legal-page a { color: var(--text); text-decoration-thickness: 1px; }
.util-toc-item { display: block; min-height: 0; padding: 0; border-left: 0; }
.util-toc-item > a { display: flex; align-items: center; min-height: 44px; padding: 0.35rem 0.75rem; border-left: 2px solid var(--line); color: var(--text-muted); font-size: var(--fs-sm); text-decoration: none; }
.util-toc-item > a:hover { color: var(--text); border-left-color: var(--text); }
.util-bread-inner a { display: inline-flex; align-items: center; min-height: 44px; }

/* =============================================================================
   Phase 11.2 — content produced by the OS rich editor (allowlisted classes only; see ew_safe_html)
   ============================================================================= */
:is(.prose, .legal-page) mark { background: color-mix(in srgb, var(--c-lime) 55%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
:is(.prose, .legal-page) s { opacity: .75; }
:is(.prose, .legal-page) :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--surface-3); }
:is(.prose, .legal-page) pre { overflow-x: auto; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--surface-3); font-size: .9em; }
:is(.prose, .legal-page) .ew-lead { font-size: 1.22em; line-height: 1.6; }
:is(.prose, .legal-page) .ew-callout { margin: 1.5rem 0; padding: 1.1rem 1.3rem; border-radius: var(--r-sm); background: var(--surface-3); border-left: 3px solid var(--accent-text); }
:is(.prose, .legal-page) .ew-callout--warn { border-left-color: #C77800; background: color-mix(in srgb, #F5A623 14%, var(--surface)); }
:is(.prose, .legal-page) .ew-callout--note { border-left-color: var(--line); }
:is(.prose, .legal-page) .ew-callout > :last-child { margin-bottom: 0; }
:is(.prose, .legal-page) figure { margin: 2rem 0; }
:is(.prose, .legal-page) figure img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
:is(.prose, .legal-page) figcaption { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
:is(.prose, .legal-page) .ew-align-center { margin-inline: auto; }
:is(.prose, .legal-page) .ew-img-md { max-width: 66%; } :is(.prose, .legal-page) .ew-img-sm { max-width: 40%; }
:is(.prose, .legal-page) .ew-align-left { float: left; max-width: 45%; margin: .3rem 1.5rem 1rem 0; }
:is(.prose, .legal-page) .ew-align-right { float: right; max-width: 45%; margin: .3rem 0 1rem 1.5rem; }
:is(.prose, .legal-page) .ew-align-wide { width: min(100vw - 2 * var(--gutter), 1100px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
@media (max-width: 640px) { :is(.prose, .legal-page) :is(.ew-align-left, .ew-align-right) { float: none; max-width: 100%; margin: 1.5rem 0; } :is(.prose, .legal-page) :is(.ew-img-md, .ew-img-sm) { max-width: 100%; } }
:is(.prose, .legal-page)::after { content: ''; display: block; clear: both; }
:is(.prose, .legal-page) .ew-btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.3rem; border-radius: var(--r-pill); background: var(--c-lime); color: #0B110D; font-weight: 700; text-decoration: none; }
:is(.prose, .legal-page) .ew-btn-link:hover { filter: brightness(.96); }
:is(.prose, .legal-page) .ew-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-sm); display: block; overflow-x: auto; }
:is(.prose, .legal-page) .ew-table :is(th, td) { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
:is(.prose, .legal-page) .ew-table th { background: var(--surface-2); font-weight: 700; }
:is(.prose, .legal-page) figure img { margin: 0; }   /* .prose img adds margin-block; not inside figures */

/* ew_alert() output on public pages (contact, start-project, shop-product) — unstyled since the Phase 10 redesign; found in Phase 11.7.
   Same look as .notice; four variants. */
.ew-alert { padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); margin: 0 0 1rem; }
.ew-alert--success { border-color: color-mix(in srgb, var(--accent-text) 45%, transparent); background: color-mix(in srgb, var(--accent-text) 10%, var(--surface-2)); }
.ew-alert--error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface-2)); }
.ew-alert--warning { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: color-mix(in srgb, var(--danger) 5%, var(--surface-2)); }

/* ---------- Page builder (Phase 11.8): built pages — fixed classes only, no inline styles ---------- */
.pb-page { display: block; }
.pb-sec.pb-pad-l { padding-block: calc(var(--section) * 1.35); }
.pb-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.pb-wide { max-width: calc(1440px + 2 * var(--gutter)); }
.pb-center { text-align: center; }
.pb-center .lead, .pb-center .prose, .pb-center .pb-quote, .pb-center .pb-faq { margin-inline: auto; }
.pb-center .eyebrow, .pb-center .pb-btns { justify-content: center; }
.pb-center .pb-card, .pb-center .faq { text-align: left; }
.pb-row { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.pb-middle { align-items: center; }
@media (min-width: 820px) {
  .pb-row--1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-row--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pb-row--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .pb-row--1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-row--1-1-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .pb-row--1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pb-col { min-width: 0; }
.pb-block + .pb-block { margin-top: 1.5rem; }
.pb-block--heading + .pb-block--text, .pb-block--heading + .pb-block--button { margin-top: 1.1rem; }
.pb-block--heading .eyebrow { display: flex; margin-bottom: 1rem; }
.pb-block--heading .display { font-size: clamp(2.6rem, 7vw, var(--fs-display)); }
.pb-text > :first-child { margin-top: 0; } .pb-text > :last-child { margin-bottom: 0; }
.pb-text ul, .pb-text ol { padding-left: 1.3em; } .pb-text li + li { margin-top: .35em; }
.pb-text.pb-lead { font-size: var(--fs-xl); line-height: 1.5; }
.pb-row:not(.pb-row--1) .pb-text { font-size: var(--fs-base); }
.pb-row:not(.pb-row--1) .pb-text.pb-lead { font-size: var(--fs-lg); }
.pb-figure { margin: 0; }
.pb-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.pb-figure.pb-square img { border-radius: 0; }
.pb-figure .media-caption { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-muted); }
.pb-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0; }
.pb-btns--center { justify-content: center; } .pb-btns--right { justify-content: flex-end; }
.pb-quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--c-green); font-size: var(--fs-xl); line-height: 1.4; max-width: 60ch; }
.on-dark .pb-quote, .on-dark-2 .pb-quote { border-left-color: var(--c-lime); }
.on-lime .pb-quote { border-left-color: var(--c-ink); }
.pb-center .pb-quote { border-left: 0; padding-left: 0; }
.pb-quote p { margin: 0; }
.pb-quote footer { margin-top: .75rem; font-size: var(--fs-sm); color: var(--text-muted); }
.pb-space--s { height: 1rem; } .pb-space--m { height: 2.5rem; } .pb-space--l { height: 4.5rem; } .pb-space--xl { height: 7rem; }
.pb-hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.pb-card-title { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5rem; }
.pb-card-title a { color: inherit; } .pb-card-title a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.pb-card p { margin: 0; color: var(--text-muted); }
.pb-card + .pb-card { margin-top: 0; }
.pb-faq { max-width: 70ch; }
.pb-cta { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.pb-cta .lead { margin: 1rem 0 0; max-width: 52ch; }
.pb-cta .pb-btns { margin-top: 1.5rem; }
.pb-center .pb-cta .lead { margin-inline: auto; }

/* ---------- Client portal support conversation (Phase 12.1) ---------- */
.sd-thread { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .85rem; }
.sd-msg { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sd-msg--client { border-left: 3px solid var(--c-green); }
.sd-msg--team { background: var(--surface-2); }
.sd-msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .45rem; }
.sd-msg-head small { margin-left: auto; color: var(--text-muted); font-size: var(--fs-xs); }
.sd-msg-body { line-height: 1.6; overflow-wrap: anywhere; }
.sd-files { list-style: none; margin: .75rem 0 0; padding: .6rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .35rem; }
.sd-files a { font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px), (pointer: coarse) { .crumbs a, .sd-files a { display: inline-flex; align-items: center; min-height: 40px; } }   /* Phase 12.1: tap targets */

/* ---------- Client portal creative reviews and brand kit (Phase 12.3) ---------- */
.cr-files { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.cr-files li { display: grid; gap: .3rem; min-width: 0; }
.cr-files a { display: grid; gap: .4rem; min-width: 0; }
.cr-files img, .cr-ext { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.cr-ext { font-weight: 700; letter-spacing: .06em; color: var(--text-muted); }
.cr-file-name { font-weight: 600; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .18em; }
.cr-brief h3 { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0 .3rem; }
.cr-brief p, .cr-note { margin: 0; overflow-wrap: anywhere; } .cr-note { margin-top: 1rem; }
.cr-round h3 { margin-top: 1.25rem; }
.bk-colours { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.bk-colours li { display: grid; gap: .25rem; } .bk-swatch { width: 100%; height: auto; color: var(--text); } .bk-colours code { color: var(--text-muted); font-size: var(--fs-sm); }
.bk-fonts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; } .bk-fonts li { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.bk-fonts a { text-decoration: underline; text-underline-offset: .18em; }
.bk-guide { margin: 0; line-height: 1.65; max-width: 70ch; }
@media (max-width: 760px), (pointer: coarse) { .cr-files a, .bk-fonts a { min-height: 40px; } }

/* ---------- Client portal content approvals (Phase 12.5) ---------- */
.mk-img { display: block; max-width: 100%; max-height: 460px; margin: 1rem 0; border-radius: var(--r-md); border: 1px solid var(--line); }
.mk-copy { margin: 1rem 0 0; line-height: 1.65; max-width: 65ch; overflow-wrap: anywhere; }

/* ---------- Announcement bar and logo (Phase 12.6) ---------- */
:root { --announce-h: 40px; }
.announce { position: fixed; inset: 0 0 auto 0; z-index: 52; height: var(--announce-h); display: flex; align-items: center; background: var(--c-lime); color: var(--c-ink); font-size: var(--fs-sm); }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 1rem; min-width: 0; }
.announce p { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.announce a { flex: none; display: inline-flex; align-items: center; min-height: 40px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
body.has-announce { padding-top: var(--announce-h); }
body.has-announce .site-header { top: var(--announce-h); }
body.has-announce .mobile-menu { padding-top: calc(var(--header-h) + var(--announce-h) + 2rem); }
.brand-logo { display: block; height: 34px; width: auto; max-width: 190px; object-fit: contain; }

/* ---------- Client portal Help centre (Phase 12.9) ---------- */
.kb-search label { display: block; font-weight: 600; margin-bottom: .5rem; }
.kb-search-row { display: flex; gap: .6rem; flex-wrap: wrap; } .kb-search-row .input { flex: 1 1 16rem; min-width: 0; }
.kb-links { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .1rem; }
.kb-links li { display: grid; gap: .1rem; padding: .55rem 0; border-top: 1px solid var(--line); } .kb-links li:first-child { border-top: 0; }
.kb-links a { font-weight: 600; text-decoration: underline; text-underline-offset: .18em; min-height: 32px; display: inline-flex; align-items: center; }
.kb-links .muted { font-size: var(--fs-sm); }
.kb-prose { max-width: 70ch; } .kb-prose > :first-child { margin-top: 0; }
.kb-prose .ew-callout { padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); border-left: 3px solid var(--c-green); margin: 1.25em 0; }
.kb-prose .ew-callout p { margin: 0; }
.kb-updated { margin: 1.5rem 0 0; font-size: var(--fs-sm); }
.kb-feedback .actions { margin: .5rem 0 .75rem; }
.kb-hint { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.kb-hint a { font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px), (pointer: coarse) { .kb-links a, .kb-hint a { min-height: 40px; } }

/* ---------- Photo and cover cropper (Phase 13.8) — shared by the OS and the website ---------- */
.ew-crop { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
.ew-crop::backdrop { background: rgba(11, 17, 13, .6); }
.ew-crop-box { width: min(680px, calc(100vw - 2rem)); max-height: 92vh; overflow: auto; display: grid; gap: 1rem; padding: 1.25rem 1.4rem 1.3rem; border-radius: 18px;
  background: var(--u-panel, var(--surface, #fff)); color: var(--u-text, var(--ink, #0b110d)); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); font: inherit; }
.ew-crop-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .ew-crop-head h2 { margin: 0; font-size: 1.2rem; }
.ew-crop-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.ew-crop-drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 2.2rem 1rem; border: 2px dashed rgba(127, 140, 130, .55); border-radius: 14px; text-align: center; cursor: pointer; }
.ew-crop-drop.is-over, .ew-crop-drop:hover, .ew-crop-drop:focus-within { border-color: var(--ew-brand); background: rgba(2, 182, 95, .06); }
.ew-crop-drop span { font-size: 13.5px; opacity: .75; }
.ew-crop-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ew-crop-stage { display: grid; justify-items: center; gap: .9rem; }
.ew-crop-canvas { max-width: 100%; border-radius: 12px; background: rgba(127, 140, 130, .15); touch-action: none; cursor: grab; }
.ew-crop-canvas:active { cursor: grabbing; } .ew-crop-canvas:focus-visible { outline: 3px solid var(--ew-brand); outline-offset: 3px; }
.ew-crop-canvas.is-square { width: 300px; height: 300px; } .ew-crop-canvas.is-wide { width: 600px; height: 200px; }
.ew-crop-zoom { display: flex; align-items: center; gap: .75rem; width: min(360px, 100%); font-size: 13.5px; font-weight: 600; } .ew-crop-zoom input { flex: 1; accent-color: var(--ew-brand); min-height: 32px; }
.ew-crop-err { margin: 0; color: #b42318; font-weight: 600; } .ew-crop-prog { width: 100%; height: 8px; accent-color: var(--ew-brand); }
.ew-crop-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; } .ew-crop-cancel { margin-right: auto; }
.ew-crop-btn { min-height: 44px; padding: 0 1.1rem; border-radius: 12px; border: 1px solid rgba(127, 140, 130, .5); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.ew-crop-save { background: var(--ew-lime); border-color: #8fcf2f; color: #0b110d; } .ew-crop-btn:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) { .ew-crop-canvas.is-square { width: 240px; height: 240px; } .ew-crop-canvas.is-wide { width: 100%; height: auto; aspect-ratio: 3 / 1; } }
/* account page: profile photo (Phase 13.8) */
.acc-photo { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1.25rem; }
.acc-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; background: rgba(2, 182, 95, .12); color: #01723d; }
.acc-avatar img, .side-nav .who .mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.side-nav .who .mark { overflow: hidden; }
.acc-photo small { display: block; opacity: .75; margin-top: .15rem; }
.acc-photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; } .acc-photo-actions form { margin: 0; }

/* ---------- Status (Phase 13.9): public /status page and the client portal ---------- */
.status-banner { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 1.6rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(127, 140, 130, .35); font-size: 1.05rem; }
.status-banner.is-up { border-color: rgba(2, 182, 95, .45); background: rgba(2, 182, 95, .07); } .status-banner.is-warn { border-color: rgba(217, 142, 4, .5); background: rgba(217, 142, 4, .08); } .status-banner.is-down { border-color: rgba(217, 45, 32, .5); background: rgba(217, 45, 32, .07); }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #98a29b; flex: none; }
.status-dot.is-up { background: var(--ew-brand); } .status-dot.is-warn { background: #d98e04; } .status-dot.is-down { background: #d92d20; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.status-list li { display: grid; gap: .5rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(127, 140, 130, .3); }
.status-list small { opacity: .75; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.status-pill { padding: .15rem .65rem; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(127, 140, 130, .15); }
.status-pill.is-up { background: rgba(2, 182, 95, .14); color: #01723d; } .status-pill.is-warn { background: rgba(217, 142, 4, .16); color: #8a5a00; } .status-pill.is-down { background: rgba(217, 45, 32, .14); color: #a11a10; }
.ew-bars { display: block; width: 100%; height: 30px; } .ew-bars rect.is-up { fill: var(--ew-brand); } .ew-bars rect.is-warn { fill: #e3a008; } .ew-bars rect.is-down { fill: #d92d20; } .ew-bars rect.is-none { fill: rgba(127, 140, 130, .3); }
.status-note { margin-top: 1.4rem; opacity: .7; font-size: 14px; }
/* view as someone (Phase 13.10) */
.viewas-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 1.4rem; background: #f5b82e; color: #1c1300; font-size: 14.5px; position: sticky; top: 0; z-index: 60; }
.viewas-banner form { margin: 0; } .viewas-banner .btn { background: #1c1300; color: #fff; border-color: #1c1300; }

/* ---------- Product page: video, what's included, works with, tags (Phase 13.11) ---------- */
.pp-video { margin-top: 1rem; }
.pp-video video { display: block; width: 100%; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.pp-video-link { position: relative; display: grid; place-items: center; min-height: 120px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b110d; color: #fff; text-decoration: none; text-align: center; }
.pp-video-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .2s, transform .5s; }
.pp-video-link:hover img { opacity: .6; transform: scale(1.03); } .pp-video-link:focus-visible { outline: 3px solid var(--ew-brand); outline-offset: 3px; }
.pp-play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pp-play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #0b110d; }
.pp-video-link b, .pp-video-link small { position: relative; display: block; text-shadow: 0 1px 8px rgba(0,0,0,.5); } .pp-video-link b { margin-top: .7rem; } .pp-video-link small { opacity: .85; }
.pp-video-link { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pp-included { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.pp-included li { position: relative; padding-left: 1.9rem; line-height: 1.5; }
.pp-included li::before { content: ''; position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ew-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.pp-works-h { margin: 1.1rem 0 .55rem; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.pp-works, .pp-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pp-works li { padding: .3rem .75rem; border-radius: 999px; background: rgba(2, 182, 95, .1); color: #01723d; font-size: 13.5px; font-weight: 600; }
.pp-tags { margin-top: 1.4rem; }
.pp-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .8rem; border-radius: 999px; border: 1px solid rgba(127, 140, 130, .4); color: inherit; font-size: 13.5px; text-decoration: none; }
.pp-tags a:hover { border-color: var(--ew-brand); color: #01723d; } .pp-tags a::before { content: '#'; opacity: .5; margin-right: .1rem; }
@media (max-width: 640px) { .pp-tags a { min-height: 44px; padding: 0 1rem; } }

/* unsubscribe page (Phase 13.14) */
.unsub { max-width: 560px; } .unsub form { margin-top: 1.4rem; }
.util-bread a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }   /* comfortable breadcrumb target on phones (Phase 13.23) */

/* ---------- Phase 13.24: two logo versions ----------
   The header is dark (over the hero, when scrolled, with the mobile menu open, on header-solid pages) except on light pages
   in the light theme before scrolling. Each slot holds the logo made for that background, or the built-in mark and name. */
.brand-slot { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-slot--light { display: none; }
body.page-light:not(.menu-open) .site-header:not(.is-scrolled) .brand-slot--light { display: inline-flex; }
body.page-light:not(.menu-open) .site-header:not(.is-scrolled) .brand-slot--dark { display: none; }
:root[data-theme="dark"] body.page-light .site-header .brand-slot--light { display: none; }
:root[data-theme="dark"] body.page-light .site-header .brand-slot--dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.page-light .site-header .brand-slot--light { display: none; }
  :root:not([data-theme="light"]) body.page-light .site-header .brand-slot--dark { display: inline-flex; }
}
/* footer (always dark): the logo for dark backgrounds, when set */
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.1rem; }
.footer-brand img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }

/* ---------- Phase 13.27: flow status pages (newsletter sign-up, unsubscribe) ----------
   A dark hero with slowly drifting gradient light, flowing lines and rising sparks behind a glass card. Each outcome has its own
   palette (success green/lime, info mint, warn amber, error coral). All motion stops for people who prefer reduced motion. */
.flow-page { background: var(--c-ink); }
.flow-hero { --flow-1: rgba(var(--ew-brand-rgb), .55); --flow-2: rgba(var(--ew-lime-rgb), .38); --flow-3: rgba(15, 181, 168, .34); --flow-4: rgba(11, 93, 59, .75);
  --flow-accent: var(--c-lime); --flow-line: var(--c-lime);
  --text: var(--c-cream); --text-muted: var(--c-muted-dark); --line: var(--c-line-dark); --surface: var(--c-ink);
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 8vw, 6rem); background: var(--c-ink); color: var(--c-cream); }
body.has-announce .flow-hero { padding-top: calc(var(--header-h) + var(--announce-h, 0px) + clamp(2rem, 6vw, 4.5rem)); }
.flow--info  { --flow-1: rgba(15, 181, 168, .5); --flow-2: rgba(var(--ew-lime-rgb), .26); --flow-3: rgba(58, 160, 255, .22); --flow-4: rgba(8, 72, 70, .8); --flow-accent: #8BEEDD; --flow-line: #8BEEDD; }
.flow--warn  { --flow-1: rgba(245, 185, 66, .42); --flow-2: rgba(var(--ew-lime-rgb), .2); --flow-3: rgba(var(--ew-brand-rgb), .3); --flow-4: rgba(92, 60, 8, .7); --flow-accent: #F7C95C; --flow-line: #F7C95C; }
.flow--error { --flow-1: rgba(255, 107, 90, .42); --flow-2: rgba(245, 185, 66, .2); --flow-3: rgba(var(--ew-brand-rgb), .2); --flow-4: rgba(96, 22, 16, .7); --flow-accent: #FF9A8B; --flow-line: #FF9A8B; }

.flow-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flow-blob { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(40px); mix-blend-mode: screen; opacity: .95; will-change: transform; }
.flow-blob.b1 { left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--flow-1), transparent 62%); animation: flow-drift-a 24s var(--ease) infinite alternate; }
.flow-blob.b2 { right: -20vmax; top: -8vmax; background: radial-gradient(circle, var(--flow-2), transparent 60%); animation: flow-drift-b 28s ease-in-out infinite alternate; }
.flow-blob.b3 { left: 12vmax; bottom: -30vmax; background: radial-gradient(circle, var(--flow-3), transparent 62%); animation: flow-drift-c 32s ease-in-out infinite alternate; }
.flow-blob.b4 { right: -10vmax; bottom: -26vmax; width: 50vmax; height: 50vmax; background: radial-gradient(circle, var(--flow-4), transparent 64%); animation: flow-drift-a 36s ease-in-out infinite alternate-reverse; }
@keyframes flow-drift-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } 100% { transform: translate3d(3vmax, 12vmax, 0) scale(.94); } }
@keyframes flow-drift-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-10vmax, 8vmax, 0) scale(.9); } 100% { transform: translate3d(-4vmax, -4vmax, 0) scale(1.08); } }
@keyframes flow-drift-c { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 100% { transform: translate3d(12vmax, -8vmax, 0) rotate(40deg); } }

.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--flow-line); opacity: .55; }
.flow-lines .fl { fill: none; stroke: url(#flow-grad); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 460 1800; stroke-dashoffset: 2260; animation: flow-run 11s linear infinite; }
.flow-lines .fl2 { stroke-width: 1; opacity: .7; animation-duration: 15s; animation-delay: -4s; }
.flow-lines .fl3 { animation-duration: 13s; animation-delay: -7s; }
.flow-lines .fl4 { stroke-width: .9; opacity: .6; animation-duration: 17s; animation-delay: -2s; }
.flow-lines .fl5 { stroke-width: 1.8; opacity: .45; animation-duration: 19s; animation-delay: -10s; }
@keyframes flow-run { to { stroke-dashoffset: 0; } }

.flow-dots i { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%; background: var(--flow-accent); box-shadow: 0 0 12px var(--flow-accent); opacity: 0; animation: flow-rise-dot 12s linear infinite; }
.flow-dots i:nth-child(1) { left: 8%; animation-delay: 0s; } .flow-dots i:nth-child(2) { left: 21%; animation-delay: -3s; width: 3px; height: 3px; }
.flow-dots i:nth-child(3) { left: 34%; animation-delay: -7s; } .flow-dots i:nth-child(4) { left: 47%; animation-delay: -1.5s; width: 4px; height: 4px; }
.flow-dots i:nth-child(5) { left: 61%; animation-delay: -9s; width: 3px; height: 3px; } .flow-dots i:nth-child(6) { left: 72%; animation-delay: -5s; }
.flow-dots i:nth-child(7) { left: 84%; animation-delay: -10.5s; width: 4px; height: 4px; } .flow-dots i:nth-child(8) { left: 93%; animation-delay: -2.5s; width: 3px; height: 3px; }
@keyframes flow-rise-dot { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translateY(-105vh); opacity: 0; } }
.flow-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 38%, rgba(11, 17, 13, .78) 100%), linear-gradient(180deg, rgba(11, 17, 13, .55), transparent 22%, transparent 78%, rgba(11, 17, 13, .9)); }

.flow-wrap { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.25rem); }
.flow-card { position: relative; width: min(100%, 700px); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 3.5rem); text-align: center;
  border-radius: 32px; border: 1px solid rgba(250, 255, 243, .14);
  background: linear-gradient(180deg, rgba(250, 255, 243, .10), rgba(250, 255, 243, .035));
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .09); animation: flow-card-in .9s var(--ease) both; }
.flow-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--flow-accent), transparent 32%, transparent 68%, rgba(250, 255, 243, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
@keyframes flow-card-in { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

.flow-badge { position: relative; width: 92px; height: 92px; margin: 0 auto 1.6rem; display: grid; place-items: center; border-radius: 50%; color: var(--c-ink);
  background: radial-gradient(circle at 32% 28%, #fff 0, var(--flow-accent) 38%, color-mix(in srgb, var(--flow-accent) 55%, #0B110D) 100%);
  box-shadow: 0 18px 50px -12px color-mix(in srgb, var(--flow-accent) 70%, transparent); animation: flow-pop .7s .15s var(--ease) both; }
.flow-ring { position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--flow-accent) 75%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: flow-spin 5s linear infinite; }
.flow-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--flow-accent); animation: flow-pulse 2.8s 1s ease-out infinite; opacity: 0; }
.flow-icon { position: relative; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: flow-draw .9s .55s var(--ease) forwards; }
@keyframes flow-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes flow-spin { to { transform: rotate(360deg); } }
@keyframes flow-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes flow-draw { to { stroke-dashoffset: 0; } }

.flow-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .35rem .85rem; border-radius: var(--r-pill); border: 1px solid rgba(250, 255, 243, .16);
  background: rgba(250, 255, 243, .06); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-cream); }
.flow-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--flow-accent); box-shadow: 0 0 10px var(--flow-accent); }
.flow-title { margin: 0 auto; max-width: 16ch; font-size: clamp(2.3rem, 4.4vw + .6rem, 4.25rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; color: var(--c-cream); text-wrap: balance; }
.flow-title em { font-style: normal; color: var(--flow-accent);
  background: linear-gradient(95deg, var(--flow-accent) 10%, var(--c-cream) 55%, var(--flow-accent) 95%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: flow-sheen 6s ease-in-out infinite; }
@keyframes flow-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.flow-lead { margin: 1.2rem auto 0; max-width: 54ch; font-size: var(--fs-lg); line-height: 1.6; color: var(--c-muted-dark); text-wrap: pretty; }
.flow-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.flow-actions .btn--ghost { color: var(--c-cream); border-color: rgba(250, 255, 243, .35); } .flow-actions .btn--ghost:hover { border-color: var(--c-cream); }
.flow-tip { display: flex; justify-content: center; gap: .5rem; margin: 1.6rem auto 0; max-width: 46ch; font-size: var(--fs-xs); line-height: 1.55; color: var(--c-muted-dark); }
.flow-tip span { color: var(--flow-accent); }
.flow-form { display: flex; gap: .5rem; width: min(100%, 480px); margin: 1.8rem auto 0; }
.flow-form input[type=email] { flex: 1; min-width: 0; min-height: 54px; padding: 0 1.3rem; border-radius: var(--r-pill); border: 1px solid rgba(250, 255, 243, .28); background: rgba(11, 17, 13, .35); color: var(--c-cream); font: inherit; }
.flow-form input[type=email]::placeholder { color: var(--c-muted-dark); } .flow-form input[type=email]:focus { outline: 3px solid var(--flow-accent); outline-offset: 2px; border-color: transparent; }
.flow-form .btn { min-height: 54px; } .flow-form--one { justify-content: center; }
.flow-form--one .btn--ghost { color: var(--c-cream); border-color: rgba(250, 255, 243, .35); }
.flow-fine { margin: .8rem auto 0; font-size: var(--fs-xs); color: var(--c-muted-dark); }

.flow-next-wrap { width: min(100%, 1040px); margin: 0 auto; }
.flow-next-h { margin: 0 0 1rem; text-align: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted-dark); }
.flow-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.flow-next-card { animation: flow-card-in .8s var(--ease) both; } .flow-next-card.d1 { animation-delay: .35s; } .flow-next-card.d2 { animation-delay: .45s; } .flow-next-card.d3 { animation-delay: .55s; }
.flow-next-card a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .9rem; align-items: center; height: 100%; padding: 1.1rem 1.15rem; border-radius: 20px; text-decoration: none; color: var(--c-cream);
  border: 1px solid rgba(250, 255, 243, .12); background: rgba(250, 255, 243, .05); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--t-med) var(--ease), border-color var(--t-fast), background-color var(--t-fast); }
.flow-next-card a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--flow-accent) 60%, transparent); background: rgba(250, 255, 243, .08); }
.flow-next-card a:focus-visible { outline: 3px solid var(--flow-accent); outline-offset: 3px; }
.flow-next-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--flow-accent) 18%, transparent); color: var(--flow-accent); }
.flow-next-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-next-t { display: grid; gap: .2rem; } .flow-next-t b { font-size: var(--fs-sm); } .flow-next-t small { font-size: var(--fs-xs); line-height: 1.45; color: var(--c-muted-dark); }
.flow-next-go { color: var(--flow-accent); transition: transform var(--t-med) var(--ease); } .flow-next-card a:hover .flow-next-go { transform: translateX(4px); }
@media (max-width: 860px) { .flow-next { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .flow-form { flex-direction: column; } .flow-form .btn { justify-content: center; } .flow-actions .btn { width: 100%; justify-content: center; } .flow-badge { width: 80px; height: 80px; } .flow-icon { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .flow-blob, .flow-lines .fl, .flow-dots i, .flow-card, .flow-badge, .flow-ring, .flow-pulse, .flow-title em, .flow-next-card { animation: none !important; }
  .flow-dots { display: none; } .flow-lines .fl { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .25; }
  .flow-draw { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Phase 13.27: logo sizes (Website › Look › Logo size) ----------
   Ready-made size classes: the pages' security policy doesn't allow inline styles. lh = height, lhm = height on phones and tablets, lw = maximum width. */
img.lh-20 { height: 20px; } img.lh-22 { height: 22px; } img.lh-24 { height: 24px; } img.lh-26 { height: 26px; } img.lh-28 { height: 28px; } img.lh-30 { height: 30px; } img.lh-32 { height: 32px; } img.lh-34 { height: 34px; } img.lh-36 { height: 36px; } img.lh-38 { height: 38px; } img.lh-40 { height: 40px; } img.lh-42 { height: 42px; } img.lh-44 { height: 44px; } img.lh-46 { height: 46px; } img.lh-48 { height: 48px; } img.lh-50 { height: 50px; } img.lh-52 { height: 52px; } img.lh-54 { height: 54px; } img.lh-56 { height: 56px; } img.lh-58 { height: 58px; } img.lh-60 { height: 60px; } img.lh-62 { height: 62px; } img.lh-64 { height: 64px; } img.lh-66 { height: 66px; } img.lh-68 { height: 68px; } img.lh-70 { height: 70px; } img.lh-72 { height: 72px; } img.lh-74 { height: 74px; } img.lh-76 { height: 76px; } img.lh-78 { height: 78px; } img.lh-80 { height: 80px; } img.lh-82 { height: 82px; } img.lh-84 { height: 84px; } img.lh-86 { height: 86px; } img.lh-88 { height: 88px; } img.lh-90 { height: 90px; } img.lh-92 { height: 92px; } img.lh-94 { height: 94px; } img.lh-96 { height: 96px; } img.lh-98 { height: 98px; } img.lh-100 { height: 100px; } img.lh-102 { height: 102px; } img.lh-104 { height: 104px; } img.lh-106 { height: 106px; } img.lh-108 { height: 108px; } img.lh-110 { height: 110px; } img.lh-112 { height: 112px; } img.lh-114 { height: 114px; } img.lh-116 { height: 116px; } img.lh-118 { height: 118px; } img.lh-120 { height: 120px; }
img.lw-80 { max-width: 80px; } img.lw-90 { max-width: 90px; } img.lw-100 { max-width: 100px; } img.lw-110 { max-width: 110px; } img.lw-120 { max-width: 120px; } img.lw-130 { max-width: 130px; } img.lw-140 { max-width: 140px; } img.lw-150 { max-width: 150px; } img.lw-160 { max-width: 160px; } img.lw-170 { max-width: 170px; } img.lw-180 { max-width: 180px; } img.lw-190 { max-width: 190px; } img.lw-200 { max-width: 200px; } img.lw-210 { max-width: 210px; } img.lw-220 { max-width: 220px; } img.lw-230 { max-width: 230px; } img.lw-240 { max-width: 240px; } img.lw-250 { max-width: 250px; } img.lw-260 { max-width: 260px; } img.lw-270 { max-width: 270px; } img.lw-280 { max-width: 280px; } img.lw-290 { max-width: 290px; } img.lw-300 { max-width: 300px; } img.lw-310 { max-width: 310px; } img.lw-320 { max-width: 320px; } img.lw-330 { max-width: 330px; } img.lw-340 { max-width: 340px; } img.lw-350 { max-width: 350px; } img.lw-360 { max-width: 360px; } img.lw-370 { max-width: 370px; } img.lw-380 { max-width: 380px; } img.lw-390 { max-width: 390px; } img.lw-400 { max-width: 400px; } img.lw-410 { max-width: 410px; } img.lw-420 { max-width: 420px; } img.lw-430 { max-width: 430px; } img.lw-440 { max-width: 440px; } img.lw-450 { max-width: 450px; } img.lw-460 { max-width: 460px; } img.lw-470 { max-width: 470px; } img.lw-480 { max-width: 480px; }
@media (max-width: 960px) { img.lhm-20 { height: 20px; } img.lhm-22 { height: 22px; } img.lhm-24 { height: 24px; } img.lhm-26 { height: 26px; } img.lhm-28 { height: 28px; } img.lhm-30 { height: 30px; } img.lhm-32 { height: 32px; } img.lhm-34 { height: 34px; } img.lhm-36 { height: 36px; } img.lhm-38 { height: 38px; } img.lhm-40 { height: 40px; } img.lhm-42 { height: 42px; } img.lhm-44 { height: 44px; } img.lhm-46 { height: 46px; } img.lhm-48 { height: 48px; } img.lhm-50 { height: 50px; } img.lhm-52 { height: 52px; } img.lhm-54 { height: 54px; } img.lhm-56 { height: 56px; } }
/* Phase 13.27 revision: no box around the message — the badge, words and buttons sit straight on the moving background.
   An edgeless dark glow behind the text keeps it readable (AA) wherever the light drifts. */
.flow-card { border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding-inline: 0; }
.flow-card::before { inset: -12% -18%; padding: 0; border-radius: 50%; -webkit-mask: none; mask: none; opacity: 1; z-index: -1;
  background: radial-gradient(closest-side, rgba(11, 17, 13, .62), rgba(11, 17, 13, .35) 60%, transparent); }
.flow-title { text-shadow: 0 2px 30px rgba(11, 17, 13, .55); }
.flow-title em { text-shadow: none; }

/* ---------- Phase 13.29: home hero — three layouts on the flow background (Settings › Home page) ----------
   .hh shares the flow pages' drifting light, lines and sparks (.flow-bg). Layouts: .hh--flow (centred), .hh--split (words + project
   showcase on an orbit), .hh--spotlight (very large words, light portal, pointer light, service lanes). Motion: .hh-m-full / -calm / -still. */
.hh { --flow-1: rgba(var(--ew-brand-rgb), .5); --flow-2: rgba(var(--ew-lime-rgb), .3); --flow-3: rgba(15, 181, 168, .26); --flow-4: rgba(11, 93, 59, .8);
  --flow-accent: var(--c-lime); --flow-line: var(--c-lime); --mx: 50%; --my: 40%; --rx: 0deg; --ry: 0deg;
  isolation: isolate; background: var(--c-ink); color: var(--c-cream); }
.hh .flow-bg { z-index: -1; }
.hh .flow-vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(11, 17, 13, .8) 100%), linear-gradient(180deg, rgba(11, 17, 13, .6), transparent 24%, transparent 72%, var(--c-ink)); }
.hh-eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 1.4rem 0 1.25rem; padding: .4rem .95rem; border-radius: var(--r-pill);
  border: 1px solid rgba(250, 255, 243, .16); background: rgba(250, 255, 243, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-cream); }
.hh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flow-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--flow-accent) 60%, transparent); animation: hh-ping 2.4s ease-out infinite; }
@keyframes hh-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flow-accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hh-title em { font-style: normal; color: var(--flow-accent);
  background: linear-gradient(95deg, var(--c-lime) 10%, var(--c-cream) 50%, var(--c-lime) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: flow-sheen 7s ease-in-out infinite; }
.hh-lead { color: var(--c-muted-dark); }
.hh .btn--ghost { color: var(--c-cream); border-color: rgba(250, 255, 243, .35); } .hh .btn--ghost:hover { border-color: var(--c-cream); }

/* 1 · Flow (centred) */
.hh--flow { text-align: center; justify-content: flex-start; min-height: min(100svh, 1040px); }
.hh-center { position: relative; display: flex; flex-direction: column; align-items: center; }
.hh--flow .display { max-width: 15ch; margin-inline: auto; font-size: clamp(2.75rem, 6.2vw + .4rem, 6.75rem); line-height: 1; }
.hh--flow .hh-lead { max-width: 52ch; margin: 1.5rem auto 0; text-align: center; }
.hh--flow .hero-actions { justify-content: center; margin-top: 2.25rem; }
.hh--flow .hero-intro::before { content: ''; position: absolute; inset: -6% -10%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 17, 13, .55), rgba(11, 17, 13, .25) 60%, transparent); }
.hh-browser { box-shadow: 0 60px 140px -60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(250, 255, 243, .06); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(20, 30, 23, .78), rgba(11, 17, 13, .86)); }

/* 2 · Split: words left, showcase right */
.hh--split { justify-content: center; min-height: min(100svh, 980px); }
.hh-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hh-copy { position: relative; }
.hh-copy::before { content: ''; position: absolute; inset: -12% -14% -12% -30%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(11, 17, 13, .6), transparent); }
.hh--split .display { max-width: 13ch; font-size: clamp(2.6rem, 4.6vw + .5rem, 5.4rem); line-height: 1.02; }
.hh--split .hh-lead { max-width: 46ch; margin-top: 1.4rem; }
.hh--split .hero-actions { margin-top: 2rem; }
.hh--split .avatar-pill { margin-bottom: .2rem; }
.hh--split .flow-blob.b2 { right: -30vmax; top: -18vmax; } .hh--split .flow-blob.b4 { right: -18vmax; bottom: -20vmax; }
.hh-stage { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; perspective: 1400px; }
.hh-orbit { position: absolute; inset: 0; }
.hh-orbit > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: hh-turn 60s linear infinite; }
.hh-orbit circle { fill: none; stroke: rgba(250, 255, 243, .16); stroke-width: 1; stroke-dasharray: 3 9; }
.hh-orbit circle.in { stroke: color-mix(in srgb, var(--flow-accent) 30%, transparent); stroke-dasharray: 1 14; stroke-width: 2; stroke-linecap: round; }
@keyframes hh-turn { to { transform: rotate(360deg); } }
.hh-orb { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem .5rem .5rem; border-radius: var(--r-pill);
  background: rgba(17, 26, 20, .72); border: 1px solid rgba(250, 255, 243, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-cream); white-space: nowrap; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .8); animation: float 7s ease-in-out infinite; }
.hh-orb .dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); } .hh-orb .dot svg { width: 13px; height: 13px; }
.hh-orb.o1 { left: -8%; top: 4%; } .hh-orb.o2 { right: -4%; top: 8%; animation-delay: -2s; } .hh-orb.o3 { right: -6%; bottom: 18%; animation-delay: -4s; } .hh-orb.o4 { left: 4%; bottom: 4%; animation-delay: -5.5s; }
.hh-stack { position: absolute; inset: 11%; list-style: none; margin: 0; padding: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.hh-card { position: absolute; width: 74%; aspect-ratio: 4 / 3; animation: hh-card-in 1s var(--ease) both; }
.hh-card a { position: relative; display: block; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; color: var(--c-cream); text-decoration: none;
  border: 1px solid rgba(250, 255, 243, .16); background: #121a15; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.hh-card-media, .hh-card-media img, .hh-card-media .placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.hh-card-cap { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 14px;
  background: rgba(11, 17, 13, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(250, 255, 243, .12); }
.hh-card-cap small { font-size: var(--fs-xs); color: var(--c-muted-dark); } .hh-card-cap b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-card.c1 { left: 0; top: 4%; z-index: 3; transform: rotate(-4deg) translateZ(60px); animation-delay: .2s; }
.hh-card.c2 { right: 0; top: 30%; z-index: 2; transform: rotate(5deg) translateZ(20px); animation-delay: .35s; }
.hh-card.c3 { left: 8%; bottom: -5%; z-index: 1; transform: rotate(-1deg); animation-delay: .5s; }
.hh-stack.count-1 .hh-card.c1 { left: 13%; top: 13%; transform: rotate(-3deg); }
.hh-stack.count-2 .hh-card.c1 { top: 10%; } .hh-stack.count-2 .hh-card.c2 { top: auto; bottom: 8%; }
.hh-card a:hover, .hh-card a:focus-visible { transform: translateY(-8px) scale(1.02); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 0 2px var(--flow-accent); }
.hh-card:hover, .hh-card:focus-within { z-index: 4; }
@keyframes hh-card-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.hh-tiles { position: absolute; inset: 13%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-content: center; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); }
.hh-tile { animation: hh-card-in .9s var(--ease) both; } .hh-tile.t2 { animation-delay: .12s; translate: 0 1.4rem; } .hh-tile.t3 { animation-delay: .24s; } .hh-tile.t4 { animation-delay: .36s; translate: 0 1.4rem; }
.hh-tile a { display: grid; gap: .5rem; height: 100%; padding: 1.1rem; border-radius: 20px; color: var(--c-cream); text-decoration: none;
  background: rgba(17, 26, 20, .66); border: 1px solid rgba(250, 255, 243, .13); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--ease), border-color .2s; }
.hh-tile a:hover, .hh-tile a:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--flow-accent) 60%, transparent); }
.hh-tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--flow-accent) 18%, transparent); color: var(--flow-accent); } .hh-tile-ic svg { width: 20px; height: 20px; }
.hh-tiles.count-3 .hh-tile.t3 { grid-column: 1 / -1; translate: 0 .7rem; } .hh-tiles.count-1 .hh-tile { grid-column: 1 / -1; }
.hh-tile b { font-size: var(--fs-sm); } .hh-tile small { font-size: var(--fs-xs); line-height: 1.45; color: var(--c-muted-dark); }

/* 3 · Spotlight: very large words, portal, pointer light, lanes */
.hh--spotlight { justify-content: flex-end; min-height: min(100svh, 1080px); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hh-portal { position: absolute; z-index: -1; right: -18vmin; top: 8%; width: min(92vmin, 980px); aspect-ratio: 1; pointer-events: none; }
.hh-portal span { position: absolute; inset: 0; border-radius: 50%; filter: blur(2px);
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(var(--ew-lime-rgb), .75) 18%, rgba(var(--ew-brand-rgb), .7) 30%, transparent 42%, transparent 58%, rgba(15, 181, 168, .55) 70%, rgba(var(--ew-lime-rgb), .5) 80%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%, #000 69%, transparent 74%); mask: radial-gradient(farthest-side, transparent 62%, #000 64%, #000 69%, transparent 74%); animation: hh-turn 22s linear infinite; }
.hh-portal::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ew-brand-rgb), .28), transparent 65%); animation: hh-breathe 8s ease-in-out infinite; }
@keyframes hh-breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
.hh-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(var(--ew-lime-rgb), .13), transparent 60%); transition: background .2s linear; }
.hh-spot-wrap { position: relative; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.hh-spot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.hh-spot-top .hh-eyebrow { margin: 0; }
.hh-title--xl { max-width: 16ch; margin: 0; font-size: clamp(2.8rem, min(7.4vw, 11.5svh), 8.75rem); line-height: .92; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 4px 60px rgba(11, 17, 13, .6); }
.hh .hh-title--xl { max-width: 16ch; }
.hh-words { display: inline; }
.hh-w { display: inline-block; animation: hh-rise 1s var(--ease) both; }
em.hh-w { text-shadow: none; }
.hh-w.w2 { animation-delay: .06s; } .hh-w.w3 { animation-delay: .12s; } .hh-w.w4 { animation-delay: .18s; } .hh-w.w5 { animation-delay: .24s; } .hh-w.w6 { animation-delay: .3s; } .hh-w.w7 { animation-delay: .36s; } .hh-w.w8 { animation-delay: .42s; }
.hh-w.w9 { animation-delay: .48s; } .hh-w.w10 { animation-delay: .54s; } .hh-w.w11 { animation-delay: .6s; } .hh-w.w12 { animation-delay: .66s; } .hh-w.w13 { animation-delay: .72s; } .hh-w.w14 { animation-delay: .78s; } .hh-w.w15 { animation-delay: .84s; } .hh-w.w16 { animation-delay: .9s; }
@keyframes hh-rise { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hh-spot-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.hh-spot-copy .hh-lead { max-width: 50ch; margin: 0; }
.hh-spot-copy .hero-actions { margin-top: 1.6rem; }
.hh-case { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: center; width: min(100%, 380px); padding: .7rem; border-radius: 22px; color: var(--c-cream); text-decoration: none;
  background: rgba(17, 26, 20, .7); border: 1px solid rgba(250, 255, 243, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); transition: transform .4s var(--ease), border-color .2s; }
.hh-case:hover, .hh-case:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--flow-accent) 60%, transparent); }
.hh-case-media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; } .hh-case-media img, .hh-case-media .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-case-t { display: grid; gap: .25rem; } .hh-case-t small { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--flow-accent); } .hh-case-t b { font-size: var(--fs-sm); line-height: 1.3; }
.hh-case-go { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--c-muted-dark); } .hh-case-go .arrow { width: 22px; height: 22px; }
.hh-lanes-wrap { margin-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid rgba(250, 255, 243, .12); }
.hh-lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hh-lane + .hh-lane { border-left: 1px solid rgba(250, 255, 243, .12); }
.hh-lane a { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 1.1rem 1.25rem; color: var(--c-cream); text-decoration: none; overflow: hidden; }
.hh-lane a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--flow-accent) 16%, transparent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hh-lane a:hover::before, .hh-lane a:focus-visible::before { transform: scaleX(1); }
.hh-lane-n { font-size: var(--fs-xs); font-weight: 700; color: var(--flow-accent); font-variant-numeric: tabular-nums; }
.hh-lane b { flex: 1; font-size: var(--fs-md, 1.05rem); font-weight: 600; }
.hh-lane-go { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(250, 255, 243, .2); transition: transform .4s var(--ease), background-color .2s, color .2s; }
.hh-lane-go svg { width: 14px; height: 14px; } .hh-lane a:hover .hh-lane-go { transform: rotate(45deg); background: var(--c-lime); color: var(--c-ink); border-color: transparent; }

/* Responsive */
@media (max-width: 960px) {
  .hh-split { grid-template-columns: minmax(0, 1fr); } .hh-stage { width: min(100%, 460px); }
  .hh--split { padding-top: calc(var(--header-h) + 2.5rem); }
  .hh-spot-foot { grid-template-columns: minmax(0, 1fr); } .hh-lanes { grid-template-columns: minmax(0, 1fr); }
  .hh-lane + .hh-lane { border-left: 0; border-top: 1px solid rgba(250, 255, 243, .12); }
  .hh-portal { right: -40vmin; top: 4%; opacity: .7; }
}
@media (max-width: 560px) { .hh-orb { display: none; } .hh-stack { inset: 4%; } .hh-card { width: 82%; } .hh-tiles { inset: 2%; gap: .6rem; } .hh-tile small { display: none; }
  .hh--spotlight .hero-actions .btn, .hh--split .hero-actions .btn { flex: 1 1 auto; justify-content: center; } .hh-case { grid-template-columns: 88px minmax(0, 1fr); } }

/* Motion settings */
.hh-m-calm .flow-blob { animation-duration: 60s !important; } .hh-m-calm .flow-lines .fl4, .hh-m-calm .flow-lines .fl5, .hh-m-calm .flow-dots { display: none; }
.hh-m-calm .flow-lines .fl { animation-duration: 26s; } .hh-m-calm .hh-portal span { animation-duration: 60s; } .hh-m-calm .hh-orbit svg { animation-duration: 140s; }
.hh-m-still *, .hh-m-still *::before, .hh-m-still *::after { animation: none !important; }
.hh-m-still .flow-dots { display: none; } .hh-m-still .flow-lines .fl { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .22; }
@media (prefers-reduced-motion: reduce) {
  .hh *, .hh *::before, .hh *::after { animation: none !important; transition: none !important; }
  .hh .flow-dots { display: none; } .hh .flow-lines .fl { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .22; }
}
.hh-card-media, .hh-case-media { position: relative; overflow: hidden; }
.hh-card-media .placeholder span { font-size: clamp(2.5rem, 6vw, 4.5rem); } .hh-case-media .placeholder span { font-size: 1.6rem; }
/* hero content arrives on load (not on scroll), so the buttons are never hidden above the fold */
.hh-in { animation: hh-in .9s var(--ease) both; } .hh-in.d1 { animation-delay: .08s; } .hh-in.d2 { animation-delay: .2s; } .hh-in.d3 { animation-delay: .34s; }
@keyframes hh-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Phase 13.32: CAPTCHA (System › Security) ---------- */
.captcha-box { margin: .75rem 0 1rem; min-height: 65px; max-width: 100%; overflow-x: auto; }
.captcha-note { margin: .5rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); } .captcha-note a { text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }   /* the note beside the form credits reCAPTCHA instead, as Google allows */
.flow-form .captcha-box, .footer-form .captcha-box { flex-basis: 100%; order: 2; margin: .25rem 0; }
.flow-form:has(.captcha-box), .footer-form:has(.captcha-box) { flex-wrap: wrap; }

/* ── Secure link from the Vault (Phase 13.34): /s/{id}. Standalone dark page; tokens only. ── */
.sh-body { margin: 0; min-height: 100vh; background: var(--ew-ink); color: var(--ew-cream); font-family: var(--ew-font-sans); -webkit-font-smoothing: antialiased; }
.sh { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 1.2rem 1rem 2rem; overflow: hidden; }
.sh-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sh-blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(50px); opacity: .9; }
.sh-b1 { left: -20vmax; top: -26vmax; background: radial-gradient(circle, rgba(var(--ew-brand-rgb), .5), transparent 62%); }
.sh-b2 { right: -22vmax; top: -10vmax; background: radial-gradient(circle, rgba(var(--ew-lime-rgb), .22), transparent 60%); }
.sh-b3 { left: 10vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(var(--ew-brand-rgb), .28), transparent 62%); }
.sh-top { width: min(100%, 640px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 7vh, 4rem); }
.sh-brand { color: var(--ew-cream); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; }
.sh-brand img { display: block; height: 30px; width: auto; }
.sh-e2e { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(var(--ew-lime-rgb), .12); color: var(--ew-lime); font-size: .78rem; font-weight: 700; }
.sh-e2e svg { width: 14px; height: 14px; }
.sh-card { width: min(100%, 640px); padding: clamp(1.5rem, 5vw, 2.6rem); border-radius: 26px; background: color-mix(in srgb, var(--ew-ink) 72%, transparent);
  border: 1px solid rgba(var(--ew-lime-rgb), .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sh-ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 17px; background: var(--ew-lime); color: var(--ew-ink); }
.sh-ic svg { width: 26px; height: 26px; }
.sh-ic--off { background: rgba(255, 255, 255, .08); color: var(--ew-cream); }
.sh-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ew-lime); }
.sh-card h1 { margin: .3rem 0 0; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.sh-card h2 { margin: 0 0 .35rem; font-size: 1.2rem; letter-spacing: -.02em; }
.sh-lead { margin: .8rem 0 1.4rem; color: color-mix(in srgb, var(--ew-cream) 78%, transparent); font-size: .98rem; line-height: 1.6; }
.sh-lead b { color: var(--ew-cream); }
.sh-step { display: grid; gap: .9rem; margin-top: .5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.sh-step p { margin: 0; font-size: .92rem; line-height: 1.55; color: color-mix(in srgb, var(--ew-cream) 75%, transparent); }
.sh-step[hidden], .sh-result[hidden], .sh-file[hidden], .sh-error[hidden], .sh-field[hidden], .sh [hidden] { display: none; }
.sh-field { display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; }
.sh-field input { width: 100%; box-sizing: border-box; min-height: 50px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: var(--ew-cream); font: inherit; font-size: 1rem; font-weight: 500; }
.sh-field input:focus { outline: none; border-color: var(--ew-lime); box-shadow: 0 0 0 3px rgba(var(--ew-lime-rgb), .25); }
.sh-field small { font-weight: 500; color: color-mix(in srgb, var(--ew-cream) 60%, transparent); }
.sh-link { justify-self: center; min-height: 40px; border: 0; background: none; color: var(--ew-lime); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sh-note { margin: .2rem 0 0; font-size: .82rem !important; text-align: center; color: color-mix(in srgb, var(--ew-cream) 60%, transparent) !important; }
.sh-error { margin: 0 0 1rem; padding: .75rem .95rem; border-radius: 14px; background: rgba(255, 107, 90, .14); border: 1px solid rgba(255, 107, 90, .35); color: var(--ew-cream); font-size: .9rem; font-weight: 600; line-height: 1.5; }
.sh-result { margin-top: .5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.sh-kind { margin: 0 0 1rem; font-size: .82rem; color: color-mix(in srgb, var(--ew-cream) 60%, transparent); }
.sh-fields { margin: 0; display: grid; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.sh-f { display: grid; gap: .3rem; padding: .8rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); } .sh-f:first-child { border-top: 0; }
.sh-f dt { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--ew-cream) 60%, transparent); }
.sh-f dd { margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sh-val { flex: 1; min-width: 0; font-size: 1rem; overflow-wrap: anywhere; word-break: break-word; }
code.sh-val { font-family: var(--ew-font-mono); background: none; color: var(--ew-lime); }
.sh-pre { white-space: pre-wrap; }
.sh-mini { min-height: 34px; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--ew-cream); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.sh-mini:hover { border-color: var(--ew-lime); color: var(--ew-lime); }
.sh-file { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; padding: .85rem 1rem; border-radius: 16px; background: rgba(var(--ew-lime-rgb), .08); border: 1px solid rgba(var(--ew-lime-rgb), .2); font-size: .92rem; font-weight: 600; }
.sh-file span { overflow-wrap: anywhere; }
.sh-result .sh-note { margin-top: 1rem; }
.sh-foot { width: min(100%, 640px); margin: 1.5rem 0 0; font-size: .78rem; text-align: center; color: color-mix(in srgb, var(--ew-cream) 55%, transparent); }
.sh-foot a { color: inherit; }
