/* ==========================================================================
   Webgenix 2026 — site stylesheet ("Snug Simple")
   One stylesheet for the public website. Loaded after bootstrap.purged.css
   (grid + utilities + collapse) and bootstrap-icons-subset.css.

   01 Fonts              09 Header & navigation    17 Tables
   02 Tokens             10 Mobile menu            18 Answer box, notes
   03 Legacy variables   11 Footer                 19 FAQ accordion
   04 Base & type        12 Cookie banner, toasts  20 Related pages, rating
   05 Layout & rhythm    13 Page heroes            21 CTA blocks
   06 Buttons & links    14 Section headers        22 Home, about, contact…
   07 Chips & stickers   15 Story / image blocks   23 Blog, portfolio, forms
   08 Characters         16 Cards & grids          24 Motion, print
   ========================================================================== */

/* 01 Fonts ----------------------------------------------------------------- */
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/fraunces/fraunces-soft.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/fraunces/fraunces-soft-italic.woff2') format('woff2');
    font-weight: 500 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/plus-jakarta-sans/plus-jakarta-sans.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
/* Metric-matched fallbacks keep layout shift low while the web fonts load. */
@font-face {
    font-family: 'Fraunces Fallback';
    src: local('Georgia');
    size-adjust: 104%;
    ascent-override: 92%;
    descent-override: 24%;
}
@font-face {
    font-family: 'Jakarta Fallback';
    src: local('Arial');
    size-adjust: 104%;
    ascent-override: 96%;
    descent-override: 24%;
}

/* 02 Tokens ---------------------------------------------------------------- */
:root {
    --cream: #F6F1E7;
    --sand: #EDE3D1;
    --sand-2: #E6DAC3;
    --paper: #FFFCF6;
    --ink: #1E1B16;
    --ink-2: #4A443B;
    --muted: #6F6657;
    --line: #E4D9C6;

    --butter: #F7D774;
    --butter-soft: #FBEDBE;
    --peach: #FFC9A8;
    --peach-soft: #FFE6D6;
    --blush: #F6C1D3;
    --blush-soft: #FBE2EA;
    --lilac: #CFC5F2;
    --lilac-soft: #ECE8FB;
    --mint: #BFE3C4;
    --mint-soft: #E3F3E5;
    --sky: #C3DDF5;
    --sky-soft: #E4EFFA;

    --berry: #9B2C6E;
    --berry-deep: #7E2259;
    --berry-soft: #F4DCE8;

    --font-display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --r-xs: 12px;
    --r-sm: 20px;
    --r-md: 28px;
    --r-lg: 40px;
    --pill: 999px;
    --blob: 46% 54% 58% 42% / 52% 44% 56% 48%;
    --blob-2: 58% 42% 47% 53% / 44% 58% 42% 56%;

    --container: 1200px;
    --container-wide: 1320px;
    --section-y: clamp(64px, 8.5vw, 120px);
    --header-h: 76px;

    --shadow-lift: 0 18px 40px -22px rgba(30, 27, 22, 0.35);
    --shadow-float: 0 24px 60px -24px rgba(30, 27, 22, 0.45);
    --ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Page tone (set per page on <body data-tone>) */
    --tone: var(--butter);
    --tone-soft: var(--butter-soft);

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--cream);
    --bs-emphasis-color: var(--ink);
    --bs-heading-color: var(--ink);
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 30, 27, 22;
    --bs-link-hover-color: var(--berry);
    --bs-link-hover-color-rgb: 155, 44, 110;
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--sand);
    --bs-gutter-x: 1.5rem;
}

[data-tone="butter"] { --tone: var(--butter); --tone-soft: var(--butter-soft); }
[data-tone="peach"]  { --tone: var(--peach);  --tone-soft: var(--peach-soft); }
[data-tone="blush"]  { --tone: var(--blush);  --tone-soft: var(--blush-soft); }
[data-tone="lilac"]  { --tone: var(--lilac);  --tone-soft: var(--lilac-soft); }
[data-tone="mint"]   { --tone: var(--mint);   --tone-soft: var(--mint-soft); }
[data-tone="sky"]    { --tone: var(--sky);    --tone-soft: var(--sky-soft); }

/* 03 Legacy variables ------------------------------------------------------
   Old inline styles still reference the dark theme's custom properties.
   Remapped so they render correctly in the new palette until every inline
   style is replaced by a class (see docs/inline-styles-inventory.md). */
:root {
    --primary-dark: var(--ink);
    --secondary-dark: var(--sand);
    --tertiary-dark: var(--sand-2);
    --bg-primary: var(--paper);
    --accent-orange: var(--berry);
    --accent-cyan: var(--berry);
    --accent-amber: var(--berry);
    --accent-purple: var(--berry);
    --accent-glow: var(--berry);
    --text-primary: var(--ink);
    --text-white: var(--ink);
    --text-secondary: var(--ink-2);
    --text-gray: var(--ink-2);
    --text-muted: var(--muted);
    --font-heading: var(--font-display);
    --font-mono: var(--font-sans);
    --grid-line: transparent;
    --glow-soft: transparent;
    --glow-intense: transparent;
}

/* 04 Base & type ----------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 32px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-2);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Paper grain: a tiny tiled noise texture over the canvas, never over text. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--butter); color: var(--ink); }

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-optical-sizing: auto;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0 0 0.6em;
}
h4, h5, h6, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 0.5em;
}
h1, .h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1.02; }
h2, .h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3.2rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem); }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1.08rem; }
h6, .h6 { font-size: 1rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { color: var(--ink); font-weight: 700; }
small, .small { font-size: 0.875rem; }
img, svg, video { max-width: 100%; }
/* <picture> wrappers (WebP sources) must not affect layout: the <img> keeps its own box. */
picture { display: contents; }
img { height: auto; }
hr { border: 0; height: 1px; background: var(--line); opacity: 1; margin: 2rem 0; }

a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--berry) 45%, transparent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--berry); text-decoration-color: var(--berry); }
p a, li a, td a, .faq-accordion-body a, .accordion-body a { color: var(--berry); text-decoration: underline; }
p a:hover, li a:hover, td a:hover { color: var(--berry-deep); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
button:focus-visible, a:focus-visible { outline-offset: 4px; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--berry); }

blockquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--lilac-soft); font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ink); line-height: 1.4; }

.text-muted { color: var(--muted) !important; }
.text-secondary { color: var(--ink-2) !important; }
.text-white, .text-light { color: var(--ink) !important; }
.text-cyan, .text-orange, .text-primary { color: var(--berry) !important; }
.bg-dark, .bg-black { background-color: var(--ink) !important; color: var(--paper); }
.highlight { color: inherit; }

.visually-hidden, .sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 0.7rem 1.1rem;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }
.skip-link::before { content: "Skip to content"; }
.site-main:focus { outline: none; }

/* 05 Layout & rhythm -------------------------------------------------------- */
.container { max-width: var(--container); padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: clamp(16px, 4vw, 24px); }

.site-main { padding-top: calc(var(--header-h) + 28px); min-height: 60vh; }
.site-main > section,
.site-main > div > section { position: relative; padding-block: var(--section-y); background: transparent; }
.site-main > section:first-child { padding-top: clamp(8px, 2vw, 24px); }

/* Every fourth section sits on a soft sand slab for rhythm. */
.site-main > section:nth-of-type(4n + 3) {
    background: var(--sand);
    border-radius: var(--r-lg);
    margin-inline: clamp(8px, 1.5vw, 20px);
}
.site-main > section:nth-of-type(4n + 3) .faq-accordion-item,
.site-main > section:nth-of-type(4n + 3) .accordion-item { background: var(--paper); }

.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Old decorative layers — retired. */
.scan-line, .grid-bg, .hero-grid-overlay, .page-header-overlay, .hero-overlay,
.project-hero-overlay, .mv-decoration, .loading-screen, .loader, .hero-scroll-indicator, .scroll-arrow { display: none !important; }

/* 06 Buttons & links --------------------------------------------------------- */
.btn-primary-custom, .btn-secondary-custom, .btn-outline-custom, .wx-btn,
.btn-primary, .btn-outline-primary, .btn-secondary {
    --btn-bg: var(--berry);
    --btn-fg: #fff;
    --btn-bd: var(--berry);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.8rem 1.5rem;
    border-radius: var(--pill);
    border: 2px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    text-align: center;
    cursor: pointer;
    clip-path: none;
    box-shadow: none;
    transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn-primary-custom::before, .btn-primary-custom::after,
.btn-secondary-custom::before, .btn-secondary-custom::after,
.btn-outline-custom::before, .btn-outline-custom::after { display: none !important; }

.btn-primary-custom:hover, .btn-primary:hover, .wx-btn:hover {
    --btn-bg: var(--berry-deep);
    --btn-bd: var(--berry-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}
.btn-secondary-custom, .btn-outline-custom, .btn-outline-primary, .btn-secondary, .wx-btn--ghost {
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    --btn-bd: var(--ink);
}
.btn-secondary-custom:hover, .btn-outline-custom:hover, .btn-outline-primary:hover, .btn-secondary:hover, .wx-btn--ghost:hover {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    color: var(--paper);
    transform: translateY(-2px);
}
.wx-btn--ink { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: var(--paper); }
.wx-btn--ink:hover { --btn-bg: #000; --btn-bd: #000; color: var(--paper); }
.btn-primary-custom:active, .btn-secondary-custom:active, .btn-outline-custom:active, .wx-btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary-custom i, .btn-secondary-custom i, .btn-outline-custom i, .wx-btn i { margin: 0 !important; font-size: 1.05em; line-height: 1; }
.btn-primary-custom .bi-whatsapp, .btn-secondary-custom .bi-whatsapp, .btn-outline-custom .bi-whatsapp { color: #1f9e4a !important; }
.btn-secondary-custom:hover .bi-whatsapp, .btn-outline-custom:hover .bi-whatsapp { color: var(--mint) !important; }
.btn-sm, .btn-primary-custom.btn-sm, .btn-secondary-custom.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.9rem; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-buttons.justify-content-center { justify-content: center; }

/* "Learn more" style links */
.service-link, .mega-menu-link, .blog-read-more, .solution-link, .resource-link, .case-study-link, .portfolio-link, .view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--berry) !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}
.service-link i, .mega-menu-link i, .blog-read-more i, .solution-link i, .resource-link i, .case-study-link i, .portfolio-link i { transition: transform 0.25s var(--ease); }
.service-link:hover i, .mega-menu-link:hover i, .blog-read-more:hover i, .solution-link:hover i, .resource-link:hover i, .case-study-link:hover i, .portfolio-link:hover i { transform: translateX(4px); }
.service-link:hover, .blog-read-more:hover { color: var(--berry-deep) !important; text-decoration: underline; }

/* 07 Chips & stickers --------------------------------------------------------- */
.wx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}
.wx-sticker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 16px;
    background: var(--berry);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-lift);
}

/* Icon blob: soft organic shape holding an icon. */
.wx-blob, .service-icon, .mv-icon, .value-icon, .feature-icon, .result-icon, .resource-icon,
.contact-info-icon, .contact-icon, .solution-icon, .faq-category-icon, .faq-group-icon, .mega-menu-icon, .response-time-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: var(--blob);
    background: var(--paper);
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 1.1rem;
    clip-path: none;
    transition: border-radius 0.6s var(--ease), transform 0.4s var(--ease);
}
.wx-blob i, .service-icon i, .mv-icon i, .value-icon i, .feature-icon i, .result-icon i, .resource-icon i,
.contact-info-icon i, .contact-icon i, .solution-icon i, .faq-category-icon i, .faq-group-icon i, .mega-menu-icon i { color: var(--ink) !important; font-size: inherit !important; line-height: 1; }
.service-icon.mb-0, .service-icon.flex-shrink-0 { margin-bottom: 0; }

/* 08 Characters (decorative SVG helpers) --------------------------------------- */
.wx-character { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.wx-character .wx-eye { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    .wx-character .wx-eye { animation: wx-blink 6s infinite; }
    .wx-character .wx-arm { transform-box: fill-box; transform-origin: 10% 90%; animation: wx-wave 3.2s var(--ease) infinite; }
}
@keyframes wx-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes wx-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }

/* 09 Header & navigation -------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 1040;
    padding-inline: clamp(10px, 2vw, 20px);
    pointer-events: none;
}
/* Desktop and mobile bars are separate elements (same as before); one shows per breakpoint. */
.site-header--mobile { display: none; }
@media (max-width: 991.98px) {
    .site-header--desktop { display: none; }
    .site-header--mobile { display: block; }
}
.site-header__bar {
    position: relative;
    pointer-events: auto;
    max-width: var(--container-wide);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 10px 0 22px;
    border-radius: var(--pill);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    transition: box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled .site-header__bar { box-shadow: var(--shadow-lift); height: 66px; }

/* Wordmark: the existing "WEBGENIX" link text, set in lowercase Fraunces with a berry x. */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--ink);
}
.site-logo:hover { color: var(--ink); }
.site-logo .wx-logo-x { color: var(--berry); display: inline-block; transition: transform 0.4s var(--ease); }
.site-logo:hover .wx-logo-x { transform: rotate(-12deg) scale(1.08); }

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { margin: 0; position: static; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: var(--pill);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { background: var(--sand); color: var(--ink); }
.site-nav__link.active { background: var(--ink); color: var(--paper); }
.site-nav__link .bi-chevron-down { font-size: 0.75em; transition: transform 0.3s var(--ease); }
.site-nav__link[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-header__cta { min-height: 48px; padding: 0.65rem 1.25rem; font-size: 0.95rem; }
.site-header__cta.active { --btn-bg: var(--berry-deep); --btn-bd: var(--berry-deep); }

.site-menu-btn {
    display: none;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.35rem;
    place-items: center;
    cursor: pointer;
}

/* Mega panel */
.mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(1100px, calc(100vw - 32px));
    transform: translate(-50%, -8px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mega-panel.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
}
.mega-menu-content { display: contents; }
.mega-panel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mega-menu-service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 18px;
    border-radius: var(--r-sm);
    background: var(--cream);
    transition: background 0.2s, transform 0.25s var(--ease);
}
.mega-menu-service:hover { background: var(--tile, var(--butter-soft)); transform: translateY(-2px); }
.mega-menu-service:nth-child(6n + 1) { --tile: var(--butter-soft); }
.mega-menu-service:nth-child(6n + 2) { --tile: var(--peach-soft); }
.mega-menu-service:nth-child(6n + 3) { --tile: var(--lilac-soft); }
.mega-menu-service:nth-child(6n + 4) { --tile: var(--mint-soft); }
.mega-menu-service:nth-child(6n + 5) { --tile: var(--sky-soft); }
.mega-menu-service:nth-child(6n + 6) { --tile: var(--blush-soft); }
.mega-menu-service .mega-menu-icon { width: 44px; height: 44px; font-size: 1.15rem; margin-bottom: 0.5rem; background: var(--paper); }
.mega-menu-title { font-family: var(--font-sans); font-size: 1rem; font-weight: 800; margin: 0; color: var(--ink); }
.mega-menu-desc { font-size: 0.86rem; color: var(--ink-2); margin: 0 0 0.35rem; line-height: 1.45; }
.mega-menu-link { font-size: 0.88rem; margin-top: auto; }
.mega-menu-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.mega-menu-sidebar {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 24px;
    border-radius: var(--r-sm);
    background: var(--butter);
}
.mega-menu-sidebar-title { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.mega-menu-sidebar-text { font-size: 0.92rem; color: var(--ink); margin: 0; }
.mega-menu-all-link { margin-top: auto; align-self: flex-start; }
.mega-menu-sidebar .wx-character { position: absolute; right: -18px; bottom: -22px; width: 120px; opacity: 0.95; }
.mega-menu-sidebar .mega-menu-all-link { position: relative; z-index: 1; }

@media (max-width: 1199.98px) {
    .site-nav__link { padding: 0.55rem 0.75rem; font-size: 0.94rem; }
}
@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .site-nav, .site-header__cta { display: none; }
    .site-menu-btn { display: grid; }
    .site-header__bar { justify-content: space-between; padding-left: 18px; }
    .site-logo { font-size: 1.6rem; }
}

/* 10 Mobile menu (bottom sheet) ------------------------------------------------- */
.mobile-sheet { position: fixed; inset: 0; z-index: 1060; visibility: hidden; pointer-events: none; }
.mobile-sheet.is-open { visibility: visible; pointer-events: auto; }
.mobile-sheet__scrim { position: absolute; inset: 0; background: rgba(30, 27, 22, 0.45); opacity: 0; transition: opacity 0.3s var(--ease); backdrop-filter: blur(3px); }
.mobile-sheet.is-open .mobile-sheet__scrim { opacity: 1; }
.mobile-sheet__panel {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: var(--paper);
    box-shadow: var(--shadow-float);
    transform: translateY(105%);
    transition: transform 0.45s var(--ease);
    overflow: hidden;
}
.mobile-sheet.is-open .mobile-sheet__panel { transform: none; }
.mobile-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.mobile-sheet__handle { position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line); }
.mobile-sheet__close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-size: 1.15rem; cursor: pointer; }
.mobile-sheet__body { overflow-y: auto; padding: 4px 14px 14px; overscroll-behavior: contain; }

.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu-list li { margin: 0; }
.mobile-menu-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 700;
    text-decoration: none;
}
.mobile-menu-list > li > a:hover { background: var(--cream); }
.mobile-menu-list > li > a.active { background: var(--butter-soft); }
.mobile-menu-list .has-submenu > a .bi-chevron-down { transition: transform 0.3s var(--ease); }
.mobile-menu-list .has-submenu.open > a .bi-chevron-down { transform: rotate(180deg); }
.mobile-submenu { list-style: none; margin: 0 0 6px; padding: 6px; display: none; gap: 2px; border-radius: 20px; background: var(--cream); }
.has-submenu.open > .mobile-submenu { display: grid; }
.mobile-submenu a { display: block; padding: 0.7rem 0.9rem; border-radius: 14px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.mobile-submenu a:hover, .mobile-submenu a.active { background: var(--paper); color: var(--ink); }
.mobile-menu-list .mobile-quote-link { margin-top: 8px; justify-content: center !important; background: var(--berry); color: #fff !important; border-radius: var(--pill) !important; }
.mobile-menu-list .mobile-quote-link:hover { background: var(--berry-deep) !important; }

.mobile-menu-footer { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--lilac-soft); display: grid; gap: 12px; }
.mobile-contact-info { display: grid; gap: 6px; }
.mobile-contact-info a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-social { display: flex; gap: 8px; }
.mobile-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); text-decoration: none; }

body.has-sheet-open { overflow: hidden; }

/* 11 Footer -------------------------------------------------------------------- */
.footer {
    position: relative;
    margin: clamp(40px, 6vw, 80px) clamp(8px, 1.5vw, 20px) clamp(8px, 1.5vw, 20px);
    padding: clamp(48px, 6vw, 80px) 0 28px;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: #DCD4C6;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: var(--blob);
    background: var(--berry);
    opacity: 0.35;
    filter: blur(2px);
}
.footer .container { position: relative; }
.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2rem;
    margin-bottom: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--r-md);
    background: var(--butter);
    color: var(--ink);
}
.footer-cta__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; color: var(--ink); margin: 0; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.footer-cta .wx-character { width: 96px; }

.footer-brand { margin-bottom: 1rem; font-size: 2.6rem; color: var(--paper); }
.footer-brand:hover { color: var(--paper); }
.footer-brand .wx-logo-x { color: var(--blush); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.footer-col { min-width: 0; }
.footer-col--newsletter { padding: 24px; border-radius: var(--r-md); background: rgba(255, 252, 246, 0.06); align-self: start; }
.footer-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer-decor__char { position: absolute; width: 110px; }
.footer-decor__char--a { right: clamp(16px, 6vw, 90px); top: -6px; transform: rotate(8deg); }
.footer-decor__char--b { left: -26px; bottom: 70px; width: 90px; transform: rotate(-14deg); opacity: 0.9; }
@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--brand, .footer-col--newsletter { grid-column: 1 / -1; }
    .footer-decor__char--a { width: 84px; }
}
@media (max-width: 575.98px) {
    .footer-decor__char--b { display: none; }
}
.footer-desc { color: #C9C0B1; font-size: 0.97rem; }
.footer-title { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--butter); margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-links li { margin: 0; }
.footer-links a, .footer-legal a { color: #EDE6D9; text-decoration: none; font-weight: 500; }
.footer-links a:hover, .footer-legal a:hover { color: var(--butter); text-decoration: underline; }
.footer-social { display: flex; gap: 8px; margin-top: 1.25rem; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 252, 246, 0.08); color: var(--paper); text-decoration: none; transition: background 0.2s, transform 0.25s var(--ease); }
.footer-social a:hover { background: var(--butter); color: var(--ink); transform: translateY(-2px) rotate(-6deg); }
.footer-newsletter { display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: rgba(255, 252, 246, 0.08); border: 1px solid rgba(255, 252, 246, 0.14); }
.footer-newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper); padding: 0 0.9rem; font: inherit; font-size: 0.97rem; }
.footer-newsletter input::placeholder { color: #A99F8F; }
.footer-newsletter input:focus { outline: none; }
.footer-newsletter:focus-within { border-color: var(--butter); }
.footer-newsletter button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--butter); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; transition: transform 0.25s var(--ease); }
.footer-newsletter button:hover { transform: rotate(-12deg) scale(1.05); }
.footer-bottom { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255, 252, 246, 0.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.footer-copyright { margin: 0; font-size: 0.9rem; color: #B5AB9A; }
.footer-copyright .bi-heart-fill { color: var(--blush); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9rem; }

@media (max-width: 767.98px) {
    .footer-cta { grid-template-columns: 1fr; }
    .footer-cta .wx-character { display: none; }
}

/* Sticky mobile quick actions */
.sticky-mobile-cta { display: none; }
@media (max-width: 767.98px) {
    .sticky-mobile-cta {
        display: block;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 1030;
        padding: 6px;
        border-radius: var(--pill);
        background: var(--ink);
        box-shadow: var(--shadow-float);
        transition: transform 0.35s var(--ease);
    }
    .sticky-mobile-cta.is-hidden { transform: translateY(140%); }
    .sticky-cta-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; }
    .sticky-cta-btn { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: var(--pill); color: var(--paper); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
    .sticky-cta-btn:hover { color: var(--paper); background: rgba(255, 252, 246, 0.08); }
    .sticky-cta-primary { background: var(--berry); }
    .sticky-cta-primary:hover { background: var(--berry-deep); }
    .footer { margin-bottom: 84px; }
}

/* 12 Cookie banner, toasts ---------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1080;
    width: min(440px, calc(100vw - 32px));
    padding: 22px;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }
.cookie-banner.is-leaving { transform: translateY(30px); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .cookie-banner:not(.is-leaving) { animation: wx-pop-up 0.5s var(--ease) both; } }
.cookie-banner__topbar { display: none; }
.cookie-banner__inner { display: grid; gap: 16px; }
.cookie-banner__content { display: flex; gap: 14px; align-items: flex-start; }
.cookie-banner__icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--blob); background: var(--butter); font-size: 1.6rem; line-height: 1; }
.cookie-banner__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.35rem; color: var(--ink); }
.cookie-banner__desc { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }
.cookie-banner__link { color: var(--berry); font-weight: 600; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner__actions .cookie-btn--accept { grid-column: 1 / -1; }
.cookie-btn { min-height: 46px; padding: 0.6rem 1rem; border-radius: var(--pill); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 0.92rem var(--font-sans); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.25s var(--ease); }
.cookie-btn:hover { background: var(--ink); color: var(--paper); }
.cookie-btn--accept { border-color: var(--berry); background: var(--berry); color: #fff; }
.cookie-btn--accept:hover { border-color: var(--berry-deep); background: var(--berry-deep); color: #fff; }
.cookie-btn--reject { border-color: var(--line); color: var(--ink-2); }

.cookie-modal { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(30, 27, 22, 0.5); backdrop-filter: blur(4px); }
.cookie-modal__box { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-float); }
@media (prefers-reduced-motion: no-preference) { .cookie-modal__box { animation: wx-pop-up 0.4s var(--ease) both; } }
.cookie-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 24px 14px; }
.cookie-modal__title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.cookie-modal__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cookie-modal__body { padding: 0 24px; }
.cookie-category { padding: 16px 0; }
.cookie-category__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-category__name { display: block; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.cookie-category__desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.cookie-toggle__label { display: inline-block; padding: 0.3rem 0.75rem; border-radius: var(--pill); background: var(--mint-soft); color: #23562c; font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.cookie-toggle__switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; cursor: pointer; }
.cookie-toggle__input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider { position: absolute; inset: 0; border-radius: var(--pill); background: var(--sand-2); transition: background 0.25s; }
.cookie-toggle__slider::before { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--ease); }
.cookie-toggle__input:checked + .cookie-toggle__slider { background: var(--berry); }
.cookie-toggle__input:checked + .cookie-toggle__slider::before { transform: translateX(22px); }
.cookie-toggle__input:focus-visible + .cookie-toggle__slider { outline: 3px solid var(--ink); outline-offset: 3px; }
.cookie-divider { height: 1px; background: var(--line); }
.cookie-modal__footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px 24px; }
.cookie-modal__footer .cookie-btn { flex: 1; }

/* Flash toasts */
.flash-toast {
    position: fixed;
    right: 16px;
    top: calc(var(--header-h) + 28px);
    z-index: 1070;
    width: min(400px, calc(100vw - 32px));
    border-radius: 22px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    transition: opacity 0.4s, transform 0.4s var(--ease);
}
.flash-toast.is-leaving { opacity: 0; transform: translateX(110%); }
@media (prefers-reduced-motion: no-preference) { .flash-toast:not(.is-leaving) { animation: wx-pop-up 0.5s var(--ease) both; } }
.flash-toast-inner { display: flex; align-items: flex-start; gap: 0.75rem; padding: 16px 16px 16px 18px; }
.flash-toast-icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--blob); background: var(--mint); color: var(--ink); font-size: 1rem; }
.flash-error .flash-toast-icon { background: var(--blush); }
.flash-info .flash-toast-icon { background: var(--sky); }
.flash-toast-msg { flex: 1; padding-top: 0.25rem; font-size: 0.95rem; }
.flash-toast-close { border: 0; background: none; color: #B5AB9A; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.flash-toast-close:hover { color: var(--paper); }
.flash-toast-progress { height: 4px; background: var(--butter); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .flash-toast-progress { animation: wx-progress 5s linear forwards; } }
@keyframes wx-progress { to { transform: scaleX(0); } }

/* 13 Page heroes ------------------------------------------------------------------ */
/* Breadcrumbs (both legacy markups) as soft chips */
.breadcrumb-list, .breadcrumb-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 0.86rem;
    font-weight: 600;
}
.breadcrumb-list li, .breadcrumb-custom li { margin: 0; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-2); }
.breadcrumb-list li + li::before, .breadcrumb-custom li + li::before { content: '›'; color: var(--muted); font-weight: 700; }
.breadcrumb-list a, .breadcrumb-custom a { padding: 0.3rem 0.75rem; border-radius: var(--pill); background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--ink); text-decoration: none; }
.breadcrumb-list a:hover, .breadcrumb-custom a:hover { background: var(--paper); color: var(--berry); }
.breadcrumb-list [aria-current], .breadcrumb-custom .active { color: var(--ink); }
.page-breadcrumb { margin: 0; }

/* Landing-page hero: a rounded pastel stage */
.page-hero-section { padding-top: 0 !important; }
.page-hero-section > .container {
    position: relative;
    max-width: var(--container-wide);
    padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 64px);
    border-radius: var(--r-lg);
    background: var(--tone);
    overflow: hidden;
    isolation: isolate;
}
.page-hero-section > .container::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -6%;
    top: -18%;
    width: clamp(220px, 34vw, 460px);
    aspect-ratio: 1;
    border-radius: var(--blob);
    background: color-mix(in srgb, var(--paper) 45%, transparent);
}
.page-hero-section > .container::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -60px;
    bottom: -90px;
    width: 220px;
    aspect-ratio: 1;
    border-radius: var(--blob-2);
    background: color-mix(in srgb, var(--paper) 30%, transparent);
}
.page-hero-title {
    font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem);
    line-height: 1.03;
    margin: 0.4rem 0 1.1rem;
    color: var(--ink);
}
.page-hero-title .highlight, .page-hero-title span { font-style: italic; font-weight: 600; color: var(--ink); }
.page-hero-subtitle { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--ink); max-width: 62ch; opacity: 0.88; }
.page-hero-section .section-label { background: var(--paper); }
.page-hero-section .btn-secondary-custom { --btn-bg: transparent; }
.page-hero-section .btn-secondary-custom:hover { --btn-bg: var(--ink); }

/* Right-hand column of hero: a stack of sticker cards */
.page-hero-section .col-lg-5 { gap: 14px !important; }
.page-hero-section .col-lg-5 .service-card {
    background: var(--paper) !important;
    padding: 20px !important;
    border-radius: 24px;
    box-shadow: var(--shadow-lift);
    transition: transform 0.4s var(--ease);
}
.page-hero-section .col-lg-5 .service-card:nth-child(odd) { transform: rotate(-1.4deg); }
.page-hero-section .col-lg-5 .service-card:nth-child(even) { transform: rotate(1.2deg) translateX(18px); }
.page-hero-section .col-lg-5 .service-card:hover { transform: rotate(0) translateY(-3px); }
.page-hero-section .col-lg-5 .service-icon { width: 48px; height: 48px; font-size: 1.2rem; background: var(--tone-soft); }
.page-hero-section .col-lg-5 .service-card strong { font-size: 1.02rem; }
.page-hero-section .col-lg-5 .service-desc { font-size: 0.9rem; margin-top: 0.15rem; }

.hero-google-rating { display: flex; }

/* Legacy page header (about, contact, blog, some landing pages) */
.page-header { position: relative; padding: 0 0 clamp(20px, 3vw, 40px) !important; background: none !important; min-height: 0 !important; }
.page-header-bg { display: none !important; }
.page-header-content {
    position: relative;
    max-width: var(--container-wide);
    margin: 0 auto;
    margin-inline: max(clamp(8px, 1.5vw, 20px), calc((100% - var(--container-wide)) / 2));
    padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 64px);
    border-radius: var(--r-lg);
    background: var(--tone);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.page-header-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(560px, 70%);
    aspect-ratio: 1.6;
    transform: translate(-50%, -50%) rotate(-6deg);
    border-radius: var(--blob);
    background: color-mix(in srgb, var(--paper) 45%, transparent);
}
.page-header-title { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1.03; margin: 0 auto 1rem; max-width: 18ch; text-transform: none; }
.page-header-title span { font-style: italic; font-weight: 600; color: var(--ink); }
.page-header .breadcrumb-custom { justify-content: center; margin: 0; }

/* Project / blog / solution hero */
.project-hero { padding-top: 0 !important; min-height: 0 !important; background: none !important; }
.project-hero-bg { display: none !important; }
.project-hero-content {
    position: relative;
    max-width: var(--container-wide);
    margin-inline: max(clamp(8px, 1.5vw, 20px), calc((100% - var(--container-wide)) / 2));
    padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px);
    border-radius: var(--r-lg);
    background: var(--tone);
    overflow: hidden;
}
.project-hero-content > .container { padding: 0; max-width: none; }
.project-hero-title { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.05; max-width: 22ch; }
.project-hero-subtitle { font-size: 1.12rem; color: var(--ink); opacity: 0.88; max-width: 62ch; }
.project-hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.project-hero-meta > * { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.project-category, .blog-category-tag, .portfolio-category, .case-study-category, .solution-badge, .featured-badge, .overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

/* 14 Section headers -------------------------------------------------------------- */
.section-label, .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.1rem;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}
.section-label::before, .hero-label::before {
    content: '';
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--berry);
}
.section-label::after, .hero-label::after { display: none !important; }
.label-slash { display: none; }
.site-main > section:nth-of-type(4n + 3) .section-label { background: var(--paper); }

.section-title {
    font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.3rem);
    line-height: 1.06;
    margin-bottom: 1rem;
    text-transform: none;
}
.section-title span, .cta-title span, .faq-search-title span, .faq-contact-title span, .solution-title span {
    font-style: italic;
    font-weight: 600;
    color: var(--berry);
}
.section-desc { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin-bottom: 0; }

/* Editorial header: label + title left, description right, on wide screens. */
.section-header { margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 992px) {
    .section-header.text-center:has(.section-desc) {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        grid-template-areas: "label label" "title desc";
        align-items: end;
        column-gap: 3rem;
        text-align: left !important;
    }
    .section-header.text-center:has(.section-desc) .section-label { grid-area: label; justify-self: start; }
    .section-header.text-center:has(.section-desc) .section-title { grid-area: title; margin-bottom: 0; }
    .section-header.text-center:has(.section-desc) .section-desc { grid-area: desc; margin: 0 !important; padding-bottom: 0.4rem; }
}
.section-header.text-center .section-label.justify-content-center { justify-content: flex-start !important; }

/* 15 Story / image blocks ------------------------------------------------------- */
.about-image-container, .about-story-images, .overview-images, .solution-overview-image, .project-overview-image, .project-solution-image, .featured-project-image {
    position: relative;
    padding: 18px;
}
.about-image-main, .story-image-main, .overview-img-main, .solution-overview-image img, .project-overview-image img, .project-solution-image img, .featured-project-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    border-radius: var(--blob);
    background: var(--paper);
    border: 0 !important;
    box-shadow: none;
}
.about-image-container::before, .about-story-images::before {
    content: '';
    position: absolute;
    inset: 4% -2% -2% 6%;
    border-radius: var(--blob-2);
    background: var(--tone);
}
.about-image-overlay, .story-experience-badge, .overview-badge-float {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 22px;
    border-radius: 22px;
    background: var(--berry);
    color: #fff;
    transform: rotate(-5deg);
    box-shadow: var(--shadow-lift);
    clip-path: none;
}
.overlay-number, .experience-number { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; color: #fff; }
.overlay-text, .experience-text { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
.story-image-secondary {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -4%;
    width: 46%;
    border-radius: 24px;
    border: 6px solid var(--paper) !important;
    box-shadow: var(--shadow-lift);
    transform: rotate(4deg);
}

.about-content, .about-story-content { position: relative; }
.about-text, .story-text { color: var(--ink-2); }
.story-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
.about-features, .goals-list, .solution-features, .overview-highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.about-features li, .goals-list li, .solution-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 1rem 0.55rem 0.6rem;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}
.about-features li i, .goals-list li i, .solution-features li i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink) !important; font-size: 0.85rem; flex-shrink: 0; }
.site-main > section:nth-of-type(4n + 3) .about-features li { background: var(--cream); }

/* Trust chips (hero) */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem 0.5rem 0.55rem; border-radius: var(--pill); background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--ink); font-size: 0.93rem; font-weight: 600; }
.trust-item i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink) !important; font-size: 0.8rem; flex-shrink: 0; }

/* Stats */
.about-stats-section .stats-wrapper, .stats-wrapper, .portfolio-stats-grid, .solutions-intro-stats, .response-stats {
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--paper);
    clip-path: none;
    border: 0;
}
.about-stats-section .row { row-gap: 18px; }
.about-stat-item, .portfolio-stat-item, .intro-stat, .response-stat, .stat-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.07);
    border: 0;
    text-align: left;
}
.about-stat-number, .portfolio-stat-number, .intro-stat-number, .stat-value, .result-number, .highlight-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--butter);
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.about-stats-section .col-6:nth-child(2) .about-stat-number { color: var(--blush); }
.about-stats-section .col-6:nth-child(3) .about-stat-number { color: var(--mint); }
.about-stats-section .col-6:nth-child(4) .about-stat-number { color: var(--sky); }
.about-stat-label, .portfolio-stat-label, .intro-stat-label, .stat-desc, .result-label, .highlight-label { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; color: #DCD4C6; text-transform: none; letter-spacing: 0; }

/* 16 Cards & grids ---------------------------------------------------------------- */
.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card,
.contact-info-card, .contact-info-box, .contact-sidebar-box, .sidebar-widget, .team-card, .testimonial-card, .case-study-card, .blog-card, .portfolio-card, .tech-item {
    position: relative;
    height: 100%;
    padding: clamp(22px, 2.6vw, 32px);
    border-radius: var(--r-md);
    background: var(--card, var(--paper));
    border: 0;
    color: var(--ink-2);
    clip-path: none;
    box-shadow: none;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.service-card::before, .service-card::after, .mv-card::before, .mv-card::after, .value-card::before, .value-card::after,
.feature-box::before, .feature-box::after, .solution-card::before, .solution-card::after, .blog-card::before, .portfolio-card::before { display: none; }
.service-card:hover, .mv-card:hover, .value-card:hover, .feature-box:hover, .solution-card:hover, .resource-card:hover, .faq-category-card:hover, .case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.service-card:hover .service-icon, .mv-card:hover .mv-icon, .value-card:hover .value-icon { border-radius: var(--blob-2); transform: rotate(-6deg); }

/* Pastel rotation across a card grid */
.row > :nth-child(6n + 1) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--butter-soft); }
.row > :nth-child(6n + 2) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--lilac-soft); }
.row > :nth-child(6n + 3) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--mint-soft); }
.row > :nth-child(6n + 4) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--peach-soft); }
.row > :nth-child(6n + 5) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--sky-soft); }
.row > :nth-child(6n + 6) > :is(.service-card, .mv-card, .value-card, .feature-box, .solution-card, .result-card, .resource-card, .faq-category-card) { --card: var(--blush-soft); }
.site-main > section:nth-of-type(4n + 3) .row > * > :is(.service-card, .mv-card, .value-card) { --card: var(--paper); }

.service-title, .mv-title, .value-title, .feature-title, .solution-title, .result-desc, .resource-title, .faq-category-title, .team-name, .blog-title, .portfolio-title, .case-study-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.6rem;
    text-transform: none;
    letter-spacing: -0.015em;
}
.service-desc, .mv-text, .value-text, .feature-text, .solution-desc, .resource-desc, .team-role, .blog-excerpt, .portfolio-desc, .case-study-text { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.service-card .service-desc:last-child, .mv-card .mv-text:last-child, .value-card .value-text:last-child { margin-bottom: 0; }
.service-card ul.service-desc { padding-left: 1.2rem !important; line-height: 1.75 !important; }
.service-card ul.service-desc li { margin-bottom: 0.3rem; }
.mv-card.featured, .service-card.featured, .site-main > section .row > * > .mv-card.featured { --card: var(--ink) !important; color: #DCD4C6; }
.mv-card.featured .mv-title, .service-card.featured .service-title { color: var(--paper); }
.mv-card.featured .mv-text { color: #DCD4C6; }
.mv-card.featured .mv-icon { background: var(--butter); }
.mv-card.featured .service-link { color: var(--butter) !important; }

/* Bento: six-card grids become a 4-column mosaic with wide first and last tiles. */
@media (min-width: 992px) {
    .row:has(> .col-lg-4:nth-child(6):last-child) {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        margin: 0;
    }
    .row:has(> .col-lg-4:nth-child(6):last-child) > * { width: auto; max-width: none; padding: 0; margin: 0; }
    .row:has(> .col-lg-4:nth-child(6):last-child) > :first-child,
    .row:has(> .col-lg-4:nth-child(6):last-child) > :last-child { grid-column: span 2; }
    .row:has(> .col-lg-4:nth-child(3):last-child) {
        display: grid;
        grid-template-columns: 1.35fr 1fr 1fr;
        gap: 20px;
        margin: 0;
    }
    .row:has(> .col-lg-4:nth-child(3):last-child) > * { width: auto; max-width: none; padding: 0; margin: 0; }
}

/* Values: sticker tiles with a big number */
.value-card { padding-top: clamp(26px, 3vw, 36px); }
.value-number {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: color-mix(in srgb, var(--ink) 18%, transparent);
    -webkit-text-stroke: 0;
}
.values-section .row > :nth-child(odd) > .value-card { transform: rotate(-0.8deg); }
.values-section .row > :nth-child(even) > .value-card { transform: rotate(0.8deg); }
.values-section .row > * > .value-card:hover { transform: rotate(0) translateY(-4px); }

/* Process: numbered stepping stones */
.process-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    counter-reset: step;
    position: relative;
}
.process-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 24px;
    border-radius: var(--r-md);
    background: var(--paper);
}
.process-item:nth-child(5n + 1) { background: var(--butter-soft); }
.process-item:nth-child(5n + 2) { background: var(--lilac-soft); }
.process-item:nth-child(5n + 3) { background: var(--mint-soft); }
.process-item:nth-child(5n + 4) { background: var(--peach-soft); }
.process-item:nth-child(5n + 5) { background: var(--sky-soft); }
.process-number {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    clip-path: none;
}
.process-item:not(:last-child) .process-number::after {
    content: '';
    position: absolute;
    top: 52px;
    left: 80px;
    right: -20px;
    height: 2px;
    background-image: linear-gradient(90deg, var(--ink) 50%, transparent 0);
    background-size: 10px 2px;
    opacity: 0.25;
}
.process-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.process-text { margin: 0; font-size: 0.98rem; }
.process-line { display: none; }

/* Timeline: path of cards with a dashed line */
.timeline { position: relative; display: grid; gap: 18px; max-width: 860px; margin: 0 auto; padding-left: 64px; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 8px; bottom: 8px; width: 2px; background-image: linear-gradient(180deg, var(--ink) 50%, transparent 0); background-size: 2px 10px; opacity: 0.25; }
.timeline-item { position: relative; width: 100% !important; margin: 0 !important; padding: 0 !important; left: 0 !important; }
.timeline-marker { position: absolute; left: -56px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--berry); border: 6px solid var(--cream); box-shadow: none; }
.site-main > section:nth-of-type(4n + 3) .timeline-marker { border-color: var(--sand); }
.timeline-content { padding: 22px 26px; border-radius: var(--r-md); background: var(--paper); border: 0; clip-path: none; }
.timeline-item:nth-child(odd) .timeline-content { background: var(--butter-soft); }
.timeline-item:nth-child(even) .timeline-content { background: var(--lilac-soft); }
.timeline-year { display: inline-block; margin-bottom: 0.4rem; padding: 0.25rem 0.7rem; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; }
.timeline-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.35rem; }
.timeline-text { margin: 0; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.client-logo { min-height: 96px; display: grid; place-items: center; padding: 16px; border-radius: 22px; background: var(--paper); color: var(--ink-2); font-weight: 700; text-align: center; filter: grayscale(1); opacity: 0.85; transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease); }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.client-logo img { max-height: 48px; width: auto; }

/* Testimonials */
.testimonial-card, .project-testimonial { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--paper); }
.testimonial-card::after, .project-testimonial::after { content: ''; position: absolute; left: 36px; bottom: -14px; width: 28px; height: 28px; background: inherit; transform: rotate(45deg); border-radius: 4px; }
.testimonial-quote, .testimonial-text, .project-testimonial-text { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.testimonial-quote-icon, .testimonial-card .bi-quote { color: var(--berry) !important; font-size: 2rem; }
.testimonial-rating, .testimonial-rating i { color: #E2A100 !important; }
.testimonial-author, .project-testimonial-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.testimonial-avatar, .testimonial-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--lilac); color: var(--ink); font-weight: 800; }
.testimonial-meta strong, .testimonial-meta span { display: block; }

/* 17 Tables ------------------------------------------------------------------------ */
.table-responsive, .content-table-wrap {
    border-radius: var(--r-md);
    background: var(--paper);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 0 0 1px var(--line);
}
.table, .content-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink-2);
    --bs-table-border-color: var(--line);
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--ink-2) !important;
    font-size: 0.98rem;
}
.table th, .table td, .content-table th, .content-table td { padding: 1rem 1.15rem !important; border-color: var(--line) !important; vertical-align: top; text-align: left; background: transparent; }
.table thead, .content-table thead { background: var(--sand) !important; }
.table thead th, .content-table thead th { color: var(--ink) !important; font-weight: 800; font-size: 0.92rem; border-bottom: 0 !important; white-space: nowrap; }
.table tbody tr:nth-child(even), .content-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--cream) 60%, transparent); }
.table tbody tr, .content-table tbody tr { border-color: var(--line) !important; }
.table td:first-child, .content-table td:first-child, .content-table tbody th { color: var(--ink) !important; font-weight: 700; }
.content-table caption { caption-side: top; padding: 1rem 1.15rem 0.5rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
@media (max-width: 767.98px) {
    .content-table th:first-child, .content-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
}

/* 18 Answer box, notes ------------------------------------------------------------ */
.answer-box {
    position: relative;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--r-md);
    background: var(--lilac-soft);
    border: 0;
    color: var(--ink);
}
.answer-box::after {
    content: '';
    position: absolute;
    left: 40px;
    bottom: -14px;
    width: 30px;
    height: 30px;
    background: var(--lilac-soft);
    transform: rotate(45deg);
    border-radius: 5px;
}
.answer-box-label { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.85rem; padding: 0.35rem 0.85rem; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 800; text-transform: none; letter-spacing: 0; }
.answer-box p { font-size: 1.08rem; line-height: 1.65; }
.answer-box p:last-child { margin-bottom: 0; }

/* 19 FAQ accordion ----------------------------------------------------------------- */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; display: grid; gap: 10px; }
.accordion-item, .faq-accordion-item {
    border: 0 !important;
    border-radius: 22px !important;
    background: var(--paper);
    overflow: hidden;
    transition: background 0.3s;
}
.accordion-item:has(.accordion-collapse.show), .faq-accordion-item:has(.accordion-collapse.show) { background: var(--butter-soft); }
.accordion-header { margin: 0; font-family: var(--font-sans); }
.accordion-button, .faq-accordion-button {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.15rem 1.4rem;
    border: 0;
    background: transparent !important;
    color: var(--ink) !important;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer;
}
.accordion-button::after {
    content: '+';
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border-radius: var(--blob);
    background: var(--sand);
    background-image: none !important;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    transform: none;
    transition: transform 0.35s var(--ease), background 0.25s;
}
.accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--paper); }
.accordion-button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.accordion-body, .faq-accordion-body { padding: 0 1.4rem 1.35rem; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

/* 20 Related pages, rating badge ------------------------------------------------- */
.related-pages-section .service-card { display: flex; }
.related-pages-section .badge { background: var(--paper) !important; color: var(--ink) !important; border: 0 !important; font-weight: 800; }
.related-pages-section .service-desc.text-secondary { color: var(--ink-2) !important; }

.google-rating-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem !important;
    border-radius: 16px !important;
    background: var(--butter) !important;
    border: 0 !important;
    color: var(--ink) !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    text-decoration: none !important;
    transform: rotate(-2deg);
    box-shadow: var(--shadow-lift);
    backdrop-filter: none !important;
    transition: transform 0.3s var(--ease) !important;
}
.google-rating-badge:hover { transform: rotate(0) translateY(-2px) !important; color: var(--ink) !important; }
.google-rating-badge .star-gold { color: var(--ink) !important; }
.google-rating-badge .star-dim { color: rgba(30, 27, 22, 0.25) !important; }

/* 21 CTA blocks ------------------------------------------------------------------- */
.cta-section { padding-block: var(--section-y) !important; background: none !important; }
.cta-content, .cta-section > .container {
    position: relative;
    max-width: var(--container-wide);
    margin: 0 auto;
    margin-inline: max(clamp(8px, 1.5vw, 20px), calc((100% - var(--container-wide)) / 2));
    padding: clamp(40px, 6vw, 88px) clamp(22px, 5vw, 72px);
    border-radius: var(--r-lg);
    background: var(--butter);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta-content::before, .cta-section > .container::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -80px;
    top: -110px;
    width: 300px;
    aspect-ratio: 1;
    border-radius: var(--blob);
    background: var(--peach);
}
.cta-content::after, .cta-section > .container::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -70px;
    bottom: -120px;
    width: 260px;
    aspect-ratio: 1;
    border-radius: var(--blob-2);
    background: color-mix(in srgb, var(--paper) 50%, transparent);
}
.cta-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); margin: 0 auto 1rem; max-width: 18ch; }
.cta-text { font-size: 1.15rem; color: var(--ink); max-width: 56ch; margin: 0 auto 1.75rem; }

/* Closing CTA sections built from services-section + centred column */
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) > .container {
    max-width: var(--container-wide);
    padding: clamp(40px, 6vw, 88px) clamp(22px, 5vw, 72px);
    border-radius: var(--r-lg);
    background: var(--butter);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) > .container::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -80px;
    top: -110px;
    width: 300px;
    aspect-ratio: 1;
    border-radius: var(--blob);
    background: var(--peach);
}
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) .section-label { background: var(--paper); }
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) .section-label.justify-content-center { justify-content: center !important; }
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) .section-title span { color: var(--ink); }

/* 22 Home, about, contact, FAQ, solutions ----------------------------------------- */
/* Home hero (fully re-composed in Phase 4; clean interim layout) */
.hero-section { position: relative; min-height: 0 !important; padding: 0 0 var(--section-y) !important; background: none !important; }
.hero-bg-img { display: none !important; }
.hero-section > .container, .hero-content {
    position: relative;
}
.hero-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 104px) clamp(22px, 5vw, 72px);
    border-radius: var(--r-lg);
    background: var(--butter);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-content::before { content: ''; position: absolute; z-index: -1; right: -60px; top: -80px; width: 340px; aspect-ratio: 1; border-radius: var(--blob); background: var(--peach); }
.hero-content::after { content: ''; position: absolute; z-index: -1; left: -90px; bottom: -110px; width: 300px; aspect-ratio: 1; border-radius: var(--blob-2); background: var(--lilac); }
.hero-title { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem); line-height: 1; margin: 0.5rem auto 1.25rem; max-width: 16ch; text-transform: none; }
.hero-title span { font-style: italic; font-weight: 600; color: var(--berry); }
.hero-subtitle { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--ink); max-width: 58ch; margin: 0 auto 1.75rem; }
.hero-content .hero-buttons, .hero-content .hero-trust { justify-content: center; }
.hero-content .hero-trust { margin-top: 1.5rem; }
.hero-content .hero-google-rating { justify-content: center; }

.about-section, .services-section, .portfolio-section, .blog-section, .team-section, .testimonials-section, .why-choose-section, .contact-section { overflow: visible; }

/* Portfolio cards (home, index, related) */
.portfolio-item, .portfolio-card { border-radius: var(--r-md); overflow: hidden; background: var(--paper); padding: 0; height: 100%; display: flex; flex-direction: column; }
.portfolio-image, .case-study-image, .blog-image-wrapper { position: relative; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--sand); }
.portfolio-image img, .case-study-image img, .blog-image, .blog-image-wrapper img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.portfolio-item:hover img, .portfolio-card:hover img, .case-study-card:hover img, .blog-card:hover img { transform: scale(1.04); }
.portfolio-item, .portfolio-card, .case-study-card { position: relative; }
/* Project info sits as a label panel under the image (it used to cover the image on hover). */
.portfolio-overlay, .case-study-overlay {
    position: static !important;
    inset: auto !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 18px 22px 22px;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.portfolio-overlay .portfolio-title, .case-study-overlay .case-study-title { margin: 0; }
img.portfolio-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--sand); }
.portfolio-item:hover, .portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.portfolio-item { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.portfolio-content, .case-study-content, .blog-content { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.portfolio-tech, .project-goals { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-tech span, .tech-item, .featured-tech span { display: inline-flex; padding: 0.3rem 0.75rem; border-radius: var(--pill); background: var(--sand); color: var(--ink); font-size: 0.8rem; font-weight: 700; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.blog-meta i { color: var(--berry); }

/* Team */
.team-card { padding: 0 0 24px; overflow: hidden; text-align: center; background: var(--paper); }
.team-image { position: relative; margin: 18px 18px 18px; border-radius: var(--blob); overflow: hidden; background: var(--tone); aspect-ratio: 1; }
.team-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-info { padding: 0 20px; }
.team-name { margin-bottom: 0.15rem; }
.team-role { font-size: 0.92rem; font-weight: 600; color: var(--berry); }
.team-social { display: flex; justify-content: center; gap: 6px; margin-top: 0.75rem; }
.team-social a, .contact-social-links a, .social-link-box a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--ink); text-decoration: none; }
.team-social a:hover, .contact-social-links a:hover { background: var(--ink); color: var(--paper); }

/* Contact */
.contact-info-card, .contact-info-box { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-cards-section .row > :nth-child(3n + 1) .contact-info-card { --card: var(--butter-soft); }
.contact-cards-section .row > :nth-child(3n + 2) .contact-info-card { --card: var(--lilac-soft); }
.contact-cards-section .row > :nth-child(3n + 3) .contact-info-card { --card: var(--mint-soft); }
.contact-info-title, .sidebar-box-title, .sidebar-title, .faq-contact-title, .faq-search-title, .goals-title, .nav-title, .blog-tags-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 0 0 0.5rem; text-transform: none; }
.contact-info-text, .sidebar-box-text, .contact-value { color: var(--ink-2); }
.contact-label { font-size: 0.82rem; font-weight: 800; color: var(--muted); text-transform: none; letter-spacing: 0; }
.contact-item, .quick-contact-item { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-item .contact-icon, .quick-contact-item i { width: 44px; height: 44px; font-size: 1.1rem; margin: 0; background: var(--sand); }
.contact-sidebar-box, .sidebar-widget { background: var(--paper); margin-bottom: 16px; height: auto; }
.contact-form-wrapper, .contact-form-card, .contact-page-form {
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 0;
    clip-path: none;
    box-shadow: none;
}
.contact-form-desc { color: var(--ink-2); }
.map-wrapper { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.map-wrapper iframe { display: block; width: 100%; min-height: 380px; border: 0; filter: saturate(0.85); }
.map-pin { color: var(--berry); }

/* FAQ page */
.faq-search-box, .sidebar-search { display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); }
.faq-search-box input, .sidebar-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; font: inherit; color: var(--ink); }
.faq-search-box input:focus, .sidebar-search input:focus { outline: none; }
.faq-search-box:focus-within, .sidebar-search:focus-within { border-color: var(--ink); }
.faq-search-box button, .sidebar-search button { width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.faq-category-card { text-align: left; text-decoration: none; display: flex; flex-direction: column; gap: 0.25rem; }
.faq-category-count { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.faq-group { margin-bottom: 2.5rem; }
.faq-group-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.faq-group-header .faq-group-icon { margin: 0; width: 48px; height: 48px; font-size: 1.2rem; background: var(--butter); }
.faq-group-title { margin: 0; }
.faq-item, .faq-item-full { margin-bottom: 10px; border-radius: 22px; background: var(--paper); padding: 0; overflow: hidden; }
.faq-question, .faq-question-full { padding: 1.15rem 1.4rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.faq-answer, .faq-answer-full { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }
.faq-list, .faq-list-full { display: grid; gap: 10px; }
.faq-contact-wrapper { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--lilac); text-align: center; }
.faq-contact-text { color: var(--ink); }
.faq-contact-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* Solutions */
.solution-card { display: flex; flex-direction: column; gap: 0.5rem; }
.solution-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.solution-number { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--ink) 18%, transparent); }
.solution-feature, .feature-box { display: flex; gap: 1rem; align-items: flex-start; }
.feature-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--berry); line-height: 1; }
.tech-grid, .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.result-card { text-align: left; }
.overview-text, .project-overview-text { font-size: 1.08rem; }

/* Project navigation */
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.project-nav-item, .project-nav-all { display: flex; flex-direction: column; gap: 0.2rem; padding: 18px 22px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-decoration: none; }
.project-nav-item.next { text-align: right; }
.project-nav-all { align-items: center; justify-content: center; background: var(--ink); color: var(--paper); }
.nav-direction { font-size: 0.82rem; font-weight: 800; color: var(--muted); }

/* Featured project */
.featured-project-content { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--paper); }
.featured-desc { color: var(--ink-2); }
.featured-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 1.25rem 0; }
.featured-highlight, .highlight-item { padding: 14px 16px; border-radius: 18px; background: var(--cream); }
.featured-highlight strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }

/* Signature, author */
.story-signature { display: flex; flex-direction: column; margin-top: 1.25rem; }
.signature-name { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ink); }
.signature-role { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.author-box { display: flex; gap: 1rem; align-items: center; padding: 22px; border-radius: var(--r-md); background: var(--lilac-soft); margin: 2.5rem 0; }
.author-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.author-role { color: var(--muted); font-size: 0.9rem; }

/* 23 Blog, portfolio filters, forms ------------------------------------------------- */
.blog-single-content { font-size: 1.12rem; line-height: 1.8; color: var(--ink-2); }
.blog-single-content > * { max-width: 72ch; }
.blog-single-content h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin: 2.2em 0 0.6em; }
.blog-single-content h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); margin: 1.8em 0 0.5em; }
.blog-single-content img { border-radius: var(--r-md); margin: 1.5rem 0; }
.blog-single-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--paper); border-radius: var(--r-sm); overflow: hidden; font-size: 0.98rem; }
.blog-single-content th, .blog-single-content td { padding: 0.8rem 1rem; border: 1px solid var(--line); text-align: left; }
.blog-single-content th { background: var(--sand); color: var(--ink); }
.blog-single-content pre, .blog-single-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--sand); border-radius: 8px; }
.blog-single-content code { padding: 0.1em 0.4em; }
.blog-single-content pre { padding: 1rem 1.2rem; overflow-x: auto; }
.blog-tags, .blog-tags-list, .sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag, .sidebar-tags a { display: inline-flex; padding: 0.35rem 0.85rem; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.blog-tag:hover, .sidebar-tags a:hover { background: var(--ink); color: var(--paper); }
.sidebar-categories { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.sidebar-categories a { display: flex; justify-content: space-between; padding: 0.55rem 0.8rem; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar-categories a:hover { background: var(--cream); }
.sidebar-recent-post { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.85rem; }
.sidebar-recent-image { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; overflow: hidden; }
.sidebar-recent-image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-content a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }

/* Filters & pagination */
.portfolio-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--paper); width: fit-content; max-width: 100%; margin: 0 auto 2.5rem; }
.filter-btn { min-height: 44px; padding: 0.5rem 1.15rem; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font: 700 0.95rem var(--font-sans); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.filter-btn:hover { background: var(--cream); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); }
.pagination-custom, .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.pagination-custom a, .pagination-custom span, .pagination .page-link {
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0 0.9rem;
    border: 0;
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.pagination-custom .active, .pagination-custom a.active, .pagination .active .page-link { background: var(--ink); color: var(--paper); }
.pagination-custom .disabled, .pagination .disabled .page-link { opacity: 0.45; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-label, .contact-page-form label, .contact-form-card label { display: block; margin-bottom: 0.4rem; color: var(--ink); font-size: 0.95rem; font-weight: 700; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
.form-control, .form-select, .contact-page-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-page-form select, .contact-page-form textarea, .contact-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .contact-form-card textarea, .contact-form-card select {
    width: 100%;
    min-height: 54px;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s;
}
.form-control::placeholder, textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus, .form-select:focus, .contact-page-form input:focus, .contact-page-form textarea:focus, .contact-page-form select:focus, .contact-form-card input:focus, .contact-form-card textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--paper);
    box-shadow: 0 0 0 4px var(--butter-soft);
}
textarea.form-control, .contact-page-form textarea { min-height: 150px; resize: vertical; }
.form-control.is-invalid, .is-invalid { border-color: #C0392B !important; }
.invalid-feedback, .text-danger { color: #A3261C !important; font-weight: 600; font-size: 0.9rem; }
.form-check-custom { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-check-custom input[type="checkbox"], .form-check-input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--berry); border-radius: 7px; }
.alert-success-custom, .alert-success { padding: 1rem 1.25rem; border-radius: 20px; background: var(--mint-soft); color: #1F4D25; border: 0; }

/* Misc template classes */
.badge-area, .badge-number, .badge-text { color: var(--ink); }
.goals-title { margin-top: 1.5rem; }
.case-study-card, .blog-card, .portfolio-item { box-shadow: none; }
.featured, .feature-info { position: relative; }
.overview-badge { background: var(--butter); }

/* Cost calculator (website-cost-calculator) */
.calculator-wrapper { padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); background: var(--paper); }
.calc-progress { margin-bottom: 2rem; }
.calc-progress-bar { height: 12px; border-radius: var(--pill); background: var(--sand); overflow: hidden; margin-bottom: 0.6rem; }
.calc-progress-fill { height: 100%; border-radius: var(--pill); background: var(--berry); transition: width 0.4s var(--ease); }
.calc-progress-fill--start { width: 16.66%; }
.calc-progress-label { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.calc-step { display: none; }
.calc-step.active { display: block; }
@media (prefers-reduced-motion: no-preference) { .calc-step.active { animation: wx-pop-up 0.45s var(--ease) both; } }
.calc-question { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); text-align: center; margin-bottom: 1.5rem; }
.calc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.calc-options-checkbox { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.calc-option { display: block; cursor: pointer; margin: 0; }
.calc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.calc-option-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.4rem 1rem;
    border-radius: var(--r-sm);
    background: var(--cream);
    text-align: center;
    box-shadow: inset 0 0 0 2px transparent;
    transition: background 0.2s, box-shadow 0.2s, transform 0.3s var(--ease);
}
.calc-option-card i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--blob); background: var(--paper); color: var(--ink); font-size: 1.4rem; margin-bottom: 0.35rem; }
.calc-option-card strong { font-size: 1.02rem; color: var(--ink); }
.calc-option-card span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.calc-option-card .calc-price-tag { margin-top: 0.4rem; padding: 0.25rem 0.75rem; border-radius: var(--pill); background: var(--paper); color: var(--berry); font-size: 0.82rem; font-weight: 800; }
.calc-option:hover .calc-option-card { transform: translateY(-2px); background: var(--butter-soft); }
.calc-option input:focus-visible + .calc-option-card { outline: 3px solid var(--ink); outline-offset: 3px; }
.calc-option input:checked + .calc-option-card { background: var(--lilac-soft); box-shadow: inset 0 0 0 3px var(--berry); }
.calc-option input:checked + .calc-option-card i { background: var(--berry); color: #fff; }
.calc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.calc-nav button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.calc-result-display { margin: 2rem 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-md); background: var(--butter); text-align: center; }
.calc-result-main { margin-bottom: 1rem; }
.calc-result-label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.calc-result-amount { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); font-weight: 700; line-height: 1; color: var(--ink); }
.calc-result-amount-small { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--berry); }
.calc-result-breakdown { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--r-sm); background: var(--cream); }
.calc-breakdown-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.calc-breakdown-row:last-child { border-bottom: 0; padding-top: 0.8rem; font-weight: 800; color: var(--ink); }
.calc-result-disclaimer { display: flex; gap: 0.6rem; margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--r-sm); background: var(--sky-soft); font-size: 0.92rem; color: var(--ink); }
.calc-result-disclaimer i { color: var(--ink); }
.calc-result-disclaimer p { margin: 0; }
.calc-result-cta { margin-top: 2rem; text-align: center; }
.calc-result-cta h4 { font-family: var(--font-display); font-size: 1.7rem; }

/* Blog sidebar newsletter card */
.sidebar-widget--newsletter { background: var(--berry) !important; color: #fff; }
.sidebar-widget--newsletter :is(h3, h4, h5, .sidebar-title, p) { color: #fff; }
.sidebar-widget--newsletter .form-control { background: var(--paper); border-color: transparent; }

/* Testimonial quote marks (generated, not text) */
.testimonial-quote { quotes: "\201C" "\201D"; }
.testimonial-quote::before { content: open-quote; }
.testimonial-quote::after { content: close-quote; }
.testimonial-rating { display: flex; gap: 0.2rem; margin-bottom: 1rem; }
.testimonial-rating .star-filled { color: #C98A00; }
.testimonial-rating .star-empty { color: rgba(30, 27, 22, 0.15); }

.u-w-48 { width: 48px !important; }
.u-h-48 { height: 48px !important; }

/* Hub pages (services / industries / locations) */
.hub-quicknav { padding: 20px; border-radius: var(--r-md); background: var(--paper); }
.hub-quicknav .font-monospace { font-family: var(--font-sans) !important; font-weight: 800; color: var(--muted) !important; }
.hub-tab { min-height: 42px !important; padding: 0.4rem 0.5rem !important; }
.hub-stat-icon { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--blob); background: var(--butter); }
.hub-stat-icon--alt { background: var(--lilac); }
.hub-stat-icon i { color: var(--ink) !important; }
.hub-search-icon { left: 1.1rem; z-index: 5; font-size: 1.1rem; color: var(--muted); }
.hub-search-input { min-height: 54px; padding-left: 3rem !important; border-radius: var(--pill) !important; background: var(--paper) !important; }
.hub-badge, .bg-cyan-gradient { background: var(--paper) !important; color: var(--ink) !important; border: 0 !important; font-weight: 800; }
/* Contact page pieces (moved from the template) */
.custom-select-wrapper { position: relative; }
.custom-select-wrapper::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.custom-select { appearance: none; -webkit-appearance: none; padding-right: 2.8rem !important; cursor: pointer; }
.custom-select::-ms-expand { display: none; }
.map-wrapper { min-height: 380px; }
.map-info-card { position: absolute; left: 24px; bottom: 24px; z-index: 2; max-width: 300px; padding: 22px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-float); }
.map-info-card .map-pin { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 0.85rem; border-radius: var(--blob); background: var(--berry); }
.map-info-card .map-pin i { color: #fff !important; font-size: 1.35rem; }
.map-info-card h4 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 0.35rem; }
.map-info-card p { font-size: 0.93rem; color: var(--ink-2); margin-bottom: 1rem; }
@media (max-width: 767.98px) { .map-info-card { position: relative; left: auto; bottom: auto; max-width: none; margin: 12px; } }
.faq-question { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-question i { display: none; }
.faq-question::after { content: "+"; flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--blob); background: var(--sand); color: var(--ink); font-size: 1.35rem; font-weight: 500; line-height: 1; transition: transform 0.35s var(--ease); }
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--paper); }
.faq-item:has(.collapse.show) { background: var(--butter-soft); }
.alert-success-custom { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; }
.alert-success-custom i { color: #1F4D25; font-size: 1.4rem; }
.alert-success-custom strong { display: block; color: #1F4D25; }
.alert-success-custom p { margin: 0; color: #1F4D25; }
.form-help-text { display: block; margin-top: 0.35rem; font-size: 0.86rem; color: var(--muted); }
.form-reassurance { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.form-reassurance i { color: var(--berry); }
/* Portfolio index */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.portfolio-grid > .portfolio-item { height: 100%; }
.portfolio-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767.98px) { .portfolio-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portfolio-image > .portfolio-overlay { position: absolute !important; inset: auto 14px 14px auto !important; padding: 0; }
.portfolio-view-label { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.85rem; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: 0.85rem; font-weight: 800; box-shadow: var(--shadow-lift); transition: background 0.2s, color 0.2s; }
.portfolio-card:hover .portfolio-view-label { background: var(--berry); color: #fff; }
/* Images that carry the component class themselves: crop instead of squash */
img.team-image { display: block; width: calc(100% - 36px); aspect-ratio: 1; height: auto; object-fit: cover; margin: 18px; border-radius: var(--blob); background: var(--tone); }
img.sidebar-recent-image { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; flex-shrink: 0; }

/* Decorative characters (CSS backgrounds: no markup, no text) */
.cta-content, .site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) > .container {
    background-image: url("/images/illustrations/char-celebrate-peach.svg");
    background-repeat: no-repeat;
    background-position: right clamp(16px, 4vw, 56px) bottom -14px;
    background-size: clamp(84px, 9vw, 130px) auto;
}
.page-header-content {
    background-image: url("/images/illustrations/char-wave-butter.svg");
    background-repeat: no-repeat;
    background-position: left clamp(18px, 4vw, 60px) bottom -12px;
    background-size: clamp(70px, 8vw, 118px) auto;
}
[data-tone="butter"] .page-header-content { background-image: url("/images/illustrations/char-wave-lilac.svg"); }
@media (max-width: 575.98px) {
    .page-header-content { background-size: 64px auto; background-position: left 14px bottom -10px; }
    .cta-content, .site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center) > .container { background-size: 72px auto; background-position: right 12px bottom -12px; }
}

/* 404 page */
.error-404-section { padding-block: clamp(24px, 4vw, 48px) var(--section-y) !important; }
.error-404-bg, .error-404-overlay, .error-404-grid, .error-404-scanline { display: none !important; }
.error-404-number-wrapper { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.error-404-number {
    position: relative;
    padding-right: clamp(110px, 16vw, 190px);
    font-family: var(--font-display);
    font-size: clamp(6rem, 3rem + 12vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--ink);
    background: url("/images/illustrations/char-lost-butter.svg") no-repeat right center / clamp(100px, 14vw, 170px) auto;
}
.error-404-number::before, .error-404-number::after { display: none !important; }
.error-404-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin: 0.75rem auto 1rem; max-width: 20ch; }
.error-404-title span, .error-404-subtitle span { font-style: italic; font-weight: 600; color: var(--berry); }
.error-404-text { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; margin: 0 auto 1.75rem; }
.error-404-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: clamp(40px, 6vw, 72px); }
.error-404-helpful { margin-top: 1rem; }
.error-404-subtitle { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin-bottom: 1.25rem; }
.error-404-link-card { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 18px 20px; border-radius: var(--r-md); background: var(--card, var(--paper)); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.row > :nth-child(3n + 1) > .error-404-link-card { --card: var(--butter-soft); }
.row > :nth-child(3n + 2) > .error-404-link-card { --card: var(--lilac-soft); }
.row > :nth-child(3n + 3) > .error-404-link-card { --card: var(--mint-soft); }
.error-404-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.error-404-link-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--blob); background: var(--paper); }
.error-404-link-icon i { color: var(--ink); font-size: 1.2rem; }
.error-404-link-content { flex: 1; min-width: 0; }
.error-404-link-content strong { display: block; color: var(--ink); }
.error-404-link-content span { font-size: 0.9rem; color: var(--ink-2); }
.error-404-link-arrow { color: var(--berry); transition: transform 0.3s var(--ease); }
.error-404-link-card:hover .error-404-link-arrow { transform: translateX(4px); }
.error-404-search { max-width: 560px; margin: 2.5rem auto 0; text-align: center; }
.error-404-search-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.error-404-search-form { position: relative; display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--paper); border: 2px solid var(--line); }
.error-404-search-form:focus-within { border-color: var(--ink); }
.error-404-search-icon { align-self: center; margin-left: 0.85rem; color: var(--muted); }
.error-404-search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0.6rem; font: inherit; color: var(--ink); }
.error-404-search-form input:focus { outline: none; }
.error-404-search-form button { min-height: 46px; padding: 0 1.25rem; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.error-404-search-form button:hover { background: var(--berry); }
/* Component kit (Phase 1) ------------------------------------------------------ */
/* Segmented control: a pill track of options (filters, tabs). */
.wx-segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: var(--pill); background: var(--paper); }
.wx-segment > * { min-height: 42px; display: inline-flex; align-items: center; padding: 0.45rem 1.05rem; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font: 700 0.92rem var(--font-sans); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.wx-segment > *:hover { background: var(--cream); color: var(--ink); }
.wx-segment > .is-active, .wx-segment > [aria-pressed="true"], .wx-segment > [aria-current] { background: var(--ink); color: var(--paper); }

/* Avatars */
.wx-avatar { width: 48px; height: 48px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; background: var(--lilac); color: var(--ink); font-weight: 800; overflow: hidden; }
.wx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wx-avatar--butter { background: var(--butter); }
.wx-avatar--mint { background: var(--mint); }
.wx-avatar--peach { background: var(--peach); }
.wx-avatar--lg { width: 72px; height: 72px; font-size: 1.3rem; }
.wx-avatar--blob { border-radius: var(--blob); }
.wx-avatars { display: inline-flex; }
.wx-avatars > .wx-avatar { box-shadow: 0 0 0 3px var(--cream); }
.wx-avatars > .wx-avatar + .wx-avatar { margin-left: -12px; }

/* Alerts and inline messages */
.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; border: 0; border-radius: 20px; font-size: 0.97rem; color: var(--ink); }
.alert-success { background: var(--mint-soft); color: #1F4D25; }
.alert-danger, .alert-error { background: var(--blush-soft); color: #7A1E3C; }
.alert-warning { background: var(--butter-soft); color: #5C4500; }
.alert-info { background: var(--sky-soft); color: #1A426F; }
.alert > i:first-child { font-size: 1.25rem; line-height: 1.3; }

/* Choice chips (checkboxes) and radio tiles: the input stays real and focusable. */
.wx-choice { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.wx-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wx-choice > span { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-weight: 700; font-size: 0.93rem; transition: background 0.2s, box-shadow 0.2s, transform 0.25s var(--ease); }
.wx-choice:hover > span { box-shadow: inset 0 0 0 2px var(--ink); }
.wx-choice input:checked + span { background: var(--lilac-soft); box-shadow: inset 0 0 0 2px var(--berry); }
.wx-choice input:checked + span::before { content: "\2713"; color: var(--berry); font-weight: 900; }
.wx-choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.wx-choice--tile > span { min-height: 0; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 1rem 1.15rem; border-radius: var(--r-sm); }
.wx-choice--tile small { font-weight: 500; color: var(--ink-2); }
.wx-choices { display: flex; flex-wrap: wrap; gap: 8px; }

/* File input */
input[type="file"] { width: 100%; padding: 0.5rem; border: 2px dashed var(--line); border-radius: 18px; background: var(--cream); color: var(--ink-2); font: inherit; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 0.85rem; padding: 0.55rem 1.1rem; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--paper); font: 700 0.9rem var(--font-sans); cursor: pointer; }
input[type="file"]:hover { border-color: var(--ink); }

/* Badges */
.badge, .wx-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: var(--pill); background: var(--sand); color: var(--ink); font-size: 0.78rem; font-weight: 800; line-height: 1.2; }
.wx-badge--berry { background: var(--berry); color: #fff; }
.wx-badge--mint { background: var(--mint); }
.wx-badge--butter { background: var(--butter); }

/* Speech-bubble quote */
.wx-quote { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-md); background: var(--paper); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.wx-quote::after { content: ""; position: absolute; left: 36px; bottom: -14px; width: 28px; height: 28px; background: inherit; border-radius: 4px; transform: rotate(45deg); }
.wx-quote-by { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; font-family: var(--font-sans); font-style: normal; font-size: 0.95rem; }

/* List rows */
.wx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-list > li { display: flex; align-items: center; gap: 0.85rem; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--paper); }
.wx-list > li > .wx-blob { width: 44px; height: 44px; font-size: 1.1rem; margin: 0; background: var(--cream); }
/* Small utilities */
.u-measure { max-width: 62ch !important; }
.u-top-accent { box-shadow: inset 0 4px 0 var(--berry); }

/* A closing CTA section never gets the sand slab behind its own colour block. */
.site-main > section:last-of-type:has(.col-lg-7.text-center, .col-lg-8.text-center),
.site-main > section.cta-section { background: transparent !important; margin-inline: 0 !important; }
.page-hero-section strong, .page-header strong { color: var(--ink); }
/* Utilities — replacements for former inline styles (see tools/convert-inline-styles.php).
   !important keeps the precedence the inline styles had. */
.u-ink { color: var(--ink) !important; }
.u-ink-2 { color: var(--ink-2) !important; }
.u-muted { color: var(--muted) !important; }
.u-accent { color: var(--berry) !important; }
.u-whatsapp { color: #1f9e4a !important; }
.u-danger { color: #B42318 !important; }
.u-display { font-family: var(--font-display) !important; letter-spacing: -0.02em; }
.u-fs-4 { font-size: 3.2rem !important; line-height: 1 !important; }
.u-fs-2 { font-size: 2rem !important; line-height: 1.1 !important; }
.u-fs-15 { font-size: 1.5rem !important; }
.u-fs-14 { font-size: 1.4rem !important; }
.u-fs-13 { font-size: 1.3rem !important; }
.u-fs-12 { font-size: 1.2rem !important; }
.u-fs-lead { font-size: 1.08rem !important; }
.u-fs-1 { font-size: 1rem !important; }
.u-fs-sm { font-size: 0.93rem !important; }
.u-fs-xs { font-size: 0.8rem !important; }
.u-lh-loose { line-height: 1.9 !important; }
.u-pl-list { padding-left: 1.25rem !important; }
.u-mt-tiny { margin-top: 0.2rem !important; }
.u-flex-1 { flex: 1 1 0% !important; }
.u-min-0 { min-width: 0 !important; }
.u-list-none { list-style: none !important; }
.u-pointer { cursor: pointer !important; }
.u-size-42 { width: 42px !important; height: 42px !important; min-width: 42px !important; }
.u-size-48 { width: 48px !important; height: 48px !important; }
.u-r-sm { border-radius: 14px !important; }
.u-rule-b { border-bottom: 1px solid var(--line) !important; }
.u-rule-t { border-top: 1px solid var(--line) !important; }
.u-band { background: var(--sand) !important; border-radius: var(--r-lg); margin-inline: clamp(8px, 1.5vw, 20px); }
.u-bg-sand { background: var(--sand) !important; }
.u-outline-accent { box-shadow: inset 0 0 0 2px var(--berry) !important; }
.u-outline-soft { box-shadow: inset 0 0 0 1px var(--line) !important; }
.u-offscreen { position: absolute !important; left: -9999px !important; }

/* Style guide page (local only) */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sg-swatch { display: flex; flex-direction: column; gap: 0.2rem; padding: 12px; border-radius: var(--r-sm); background: var(--paper); }
.sg-swatch__chip { height: 72px; border-radius: 14px; margin-bottom: 0.5rem; box-shadow: inset 0 0 0 1px rgba(30, 27, 22, 0.08); }
.sg-swatch code { font-size: 0.82rem; color: var(--muted); }
.sg-swatch--cream .sg-swatch__chip { background: var(--cream); }
.sg-swatch--sand .sg-swatch__chip { background: var(--sand); }
.sg-swatch--paper .sg-swatch__chip { background: var(--paper); }
.sg-swatch--ink .sg-swatch__chip { background: var(--ink); }
.sg-swatch--berry .sg-swatch__chip { background: var(--berry); }
.sg-swatch--berry-deep .sg-swatch__chip { background: var(--berry-deep); }
.sg-swatch--butter .sg-swatch__chip { background: var(--butter); }
.sg-swatch--peach .sg-swatch__chip { background: var(--peach); }
.sg-swatch--blush .sg-swatch__chip { background: var(--blush); }
.sg-swatch--lilac .sg-swatch__chip { background: var(--lilac); }
.sg-swatch--mint .sg-swatch__chip { background: var(--mint); }
.sg-swatch--sky .sg-swatch__chip { background: var(--sky); }
.sg-characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 24px; }
/* 24 Motion, print ------------------------------------------------------------------ */
@keyframes wx-pop-up { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* Scroll reveal: content is visible by default; only when JS runs and the
   visitor allows motion does it start hidden and rise into place. */
@media (prefers-reduced-motion: no-preference) {
    .js .fade-in-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
    .js .fade-in-up.visible { opacity: 1; transform: none; }
    /* Stagger comes from scripts.js (--reveal-delay per batch of items entering together). */
    .js .fade-in-up { transition-delay: var(--reveal-delay, 0s); }
}
.animate__animated { animation: none !important; }


/* Phase 6 — motion and delight ------------------------------------------------ */
/* Header tucks away while reading down, returns on scroll up (transform only: no layout shift). */
.site-header { transition: transform 0.45s var(--ease); }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }

/* Inline characters: blink/wave only while on screen. */
.wx-character.is-paused, .wx-character.is-paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
    .wx-character--celebrate .wx-confetti { animation: wx-confetti 2.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
    .wx-character--think .wx-eye { animation: wx-glance 5s var(--ease) infinite; }
    .footer-decor__char, .mega-menu-sidebar .wx-character { transition: transform 0.6s var(--ease); }
    .footer:hover .footer-decor__char--a { transform: rotate(-4deg) translateY(-6px); }
    .mega-menu-sidebar:hover .wx-character { transform: rotate(-10deg) scale(1.05); }

}
@keyframes wx-confetti { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes wx-glance { 0%, 40%, 100% { transform: translateX(0); } 50%, 80% { transform: translateX(-4px); } }

/* Small hover touches */
.trust-item, .about-features li, .wx-chip, .project-hero-meta > * { transition: transform 0.3s var(--ease), background 0.2s; }
.trust-item:hover, .about-features li:hover { transform: translateY(-2px); }
.service-card:active, .mv-card:active, .portfolio-item:active { transform: translateY(-1px) scale(0.99); }
.footer-links a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.3s var(--ease), color 0.2s; }
.footer-links a:hover { background-size: 100% 1px; text-decoration: none; }

/* Busy state on submit (visual only) */
button.is-busy, .btn-primary-custom.is-busy {
    cursor: progress;
    padding-right: 2.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cg fill=%27none%27 stroke=%27white%27 stroke-width=%273%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279%27 opacity=%27.3%27/%3E%3Cpath d=%27M21 12a9 9 0 0 0-9-9%27 stroke-linecap=%27round%27%3E%3CanimateTransform attributeName=%27transform%27 type=%27rotate%27 from=%270 12 12%27 to=%27360 12 12%27 dur=%27.8s%27 repeatCount=%27indefinite%27/%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px 18px;
}
.btn-secondary-custom.is-busy, .btn-outline-custom.is-busy, .wx-btn--ghost.is-busy { background-image: none; }

/* Success states */
@media (prefers-reduced-motion: no-preference) {
    .alert-success-custom, .alert-success, .flash-success { animation: wx-pop-up 0.55s var(--ease) both; }
    .alert-success-custom > i, .alert-success > i, .flash-success .flash-toast-icon { animation: wx-check-pop 0.7s var(--ease) 0.15s both; }
}
@keyframes wx-check-pop { 0% { transform: scale(0.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: none; } }

/* Reduced motion: everything static, instantly. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .site-header.is-hidden { transform: none; }
}
@media (max-width: 991.98px) {
    .page-hero-section > .container { border-radius: 32px; }
    .page-hero-section .col-lg-5 .service-card:nth-child(even) { transform: rotate(1.2deg); }
    .process-item:not(:last-child) .process-number::after { display: none; }
    .about-image-container, .about-story-images { margin-bottom: 1.5rem; }
}
@media (max-width: 575.98px) {
    :root { --r-lg: 30px; --r-md: 24px; }
    .timeline { padding-left: 44px; }
    .timeline::before { left: 15px; }
    .timeline-marker { left: -40px; width: 28px; height: 28px; border-width: 5px; }
    .project-nav { grid-template-columns: 1fr; }
    .project-nav-item.next { text-align: left; }
    .about-image-overlay, .story-experience-badge { padding: 12px 16px; }
    .overlay-number, .experience-number { font-size: 1.8rem; }
}

@media print {
    .site-header, .mobile-sheet, .cookie-banner, .cookie-modal, .sticky-mobile-cta, .flash-toast, .footer-cta { display: none !important; }
    body { background: #fff; }
    body::before { display: none; }
    .site-main { padding-top: 0; }
}

