/* ==========================================================================
   Yehia Zakaria — design system v2
   Direction (ui-ux-pro-max: Portfolio/Personal): storytelling flow,
   Motion-Driven + Swiss grid, brand-led color. Dark chapters alternate with
   cream and white; orange is the single brand color. System fonts only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f3ec;          /* warm cream */
    --color-text: #1d1a17;
    --color-text-muted: #6b645d;      /* 5.2:1 on cream */
    --color-border: #e1d9cd;

    --color-brand: #f26e19;           /* fills, decoration, text on dark (6.3:1 on charcoal) */
    --color-brand-hover: #ff7f2e;
    --color-brand-ink: #1d1a17;       /* text on orange, 6.7:1 */
    --color-accent: #c2410c;          /* orange as text on light: 5.2:1 white, 4.7:1 cream */

    --color-dark: #14110e;            /* warm charcoal chapters */
    --color-dark-raised: #1f1a16;
    --color-dark-border: #3a322b;
    --color-dark-text: #f8f3ec;
    --color-dark-muted: #b8ada1;      /* 8.9:1 on charcoal */

    /* Glass surfaces: translucent fills + 1px light edge. Blur is added only
       where backdrop-filter is supported; the fills stay readable without it. */
    --glass-dark-bg: rgb(30 25 21 / 0.85);
    --glass-dark-border: rgb(255 255 255 / 0.14);
    --glass-dark-fill: rgb(255 255 255 / 0.06);
    --glass-light-fill: rgb(255 255 255 / 0.7);
    --glass-light-border: rgb(255 255 255 / 0.9);
    --glass-blur: blur(16px) saturate(160%);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    --text-sm: 0.875rem;
    --text-base: 1.0625rem;
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
    --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
    --text-2xl: clamp(1.875rem, 1.2rem + 2.6vw, 3.5rem);
    --text-3xl: clamp(2.5rem, 1.3rem + 4.8vw, 5rem);
    --text-hero: clamp(2.75rem, 1.2rem + 6.2vw, 6.25rem);
    --text-metric: clamp(2.75rem, 1.6rem + 4vw, 5rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --section-space: clamp(4.5rem, 2.5rem + 7vw, 9rem);

    --container: 1200px;
    --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 2.5rem);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 980px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.45s;
    --header-height: 4rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--color-brand); }

main:focus { outline: none; }
::selection { background: rgb(242 110 25 / 0.3); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    background: var(--color-brand);
    color: var(--color-brand-ink);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }
.section--tight { padding-block: var(--space-7); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--color-bg-alt); }

/* Dark chapters */
.on-dark { background: var(--color-dark); color: var(--color-dark-text); }
.on-dark .eyebrow { color: var(--color-brand); }
.on-dark .section-head__lede,
.on-dark .steps__text { color: var(--color-dark-muted); }

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.section-head__title { font-size: var(--text-2xl); }
.section-head__lede { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--color-text-muted); }
.section-foot { margin-top: var(--space-7); }

/* Chapter labels: "01 · Services" */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
}
.eyebrow__link { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.eyebrow__link:hover { text-decoration: underline; }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 5fr 6fr; }
    .split .split__body { order: 2; }
    .page-hero .split { grid-template-columns: 7fr 5fr; }
    .page-hero .split .split__body { order: 0; }
    .split--text { grid-template-columns: 4fr 8fr; align-items: start; }
}

.prose-lede { font-size: var(--text-lg); color: var(--color-text-muted); margin-block: var(--space-4) var(--space-5); max-width: 36em; }
.prose { margin-top: var(--space-4); max-width: 38em; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn__icon { font-size: 0.95em; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }

.btn--primary { background: var(--color-brand); color: var(--color-brand-ink); }
.btn--primary:hover { background: var(--color-brand-hover); }

.btn--dark { background: var(--color-dark); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--secondary:hover { background: var(--color-text); color: #fff; }
.on-dark .btn--secondary { color: var(--color-dark-text); border-color: var(--color-dark-border); }
.on-dark .btn--secondary:hover { background: var(--color-dark-text); color: var(--color-dark); border-color: var(--color-dark-text); }

.btn--small {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: var(--text-sm);
    background: var(--color-brand);
    color: var(--color-brand-ink);
}
.btn--small:hover { background: var(--color-brand-hover); }

.text-link {
    display: inline-block;
    padding-block: 0.3rem;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }
.on-dark .text-link { color: var(--color-brand); }

/* ---------- Header: floating glass bar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 0.75rem;
    color: var(--color-dark-text);
    pointer-events: none;            /* only the bar itself is interactive */
}
.site-header > .container { padding-inline: clamp(0.75rem, 0.25rem + 2.4vw, 2.5rem); }

.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-height);
    padding: 0.4rem 0.6rem 0.4rem 1.1rem;
    pointer-events: auto;
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.1);
}
@supports (backdrop-filter: blur(1px)) {
    .site-header__bar {
        background: rgb(20 17 14 / 0.8);
        -webkit-backdrop-filter: blur(20px) saturate(170%);
        backdrop-filter: blur(20px) saturate(170%);
    }
}

.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark__logo { width: auto; height: 28px; }

.scroll-progress {
    position: absolute;
    left: 1.5rem; right: 1.5rem; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-brand);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav__list { display: flex; gap: var(--space-1); }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #d8cfc4;                  /* >6:1 even over a light page behind the glass */
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__link:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.site-nav__link[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.14); }

.nav-toggle { display: none; }

@media (max-width: 767px) {
    .site-header__bar { padding-left: 0.9rem; }
    .js .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        min-height: 44px;
        padding: 0 1rem;
        border: 1px solid var(--glass-dark-border);
        border-radius: var(--radius-pill);
        background: rgb(255 255 255 / 0.08);
        color: var(--color-dark-text);
        font: inherit;
        font-size: var(--text-sm);
        font-weight: 600;
        cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before {
        display: block;
        width: 16px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.3s var(--ease-out);
    }
    .nav-toggle__bars { position: relative; transform: translateY(-3px); }
    .nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

    .js .site-nav {
        position: absolute;
        inset: calc(100% + 0.5rem) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        padding: var(--space-3) var(--space-5) var(--space-5);
        background: rgb(20 17 14 / 0.92);
        border: 1px solid var(--glass-dark-border);
        border-radius: var(--radius-md);
        box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
    }
    @supports (backdrop-filter: blur(1px)) {
        .js .site-nav { background: rgb(20 17 14 / 0.88); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
    }
    .js .site-nav:not(.is-open) { display: none; }
    .js .site-nav__list { flex-direction: column; gap: 0; }
    .js .site-nav__link {
        display: flex;
        padding: var(--space-4) 0;
        min-height: 56px;
        border-radius: 0;
        font-size: var(--text-xl);
        font-weight: 600;
        color: var(--color-dark-text);
        background: none;
        border-bottom: 1px solid var(--glass-dark-border);
    }
    .js .site-nav__link[aria-current="page"] { color: var(--color-brand); background: none; }
    .js .site-nav li:last-child .site-nav__link { border-bottom: 0; }
    .js .site-nav .btn { align-self: stretch; min-height: 52px; font-size: 1rem; }

    html:not(.js) .site-header__bar { flex-wrap: wrap; border-radius: var(--radius-md); padding-block: var(--space-2); }
    html:not(.js) .site-nav { flex-wrap: wrap; gap: var(--space-3); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) clamp(3.5rem, 2rem + 6vw, 7.5rem); }
.hero__inner { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 7fr 5fr; } }

.hero__heading { font-size: var(--text-hero); letter-spacing: -0.045em; line-height: 0.98; color: #fff; }
.hero__accent { color: var(--color-brand); }
.hero__lede { margin-top: var(--space-5); max-width: 34rem; font-size: var(--text-lg); color: var(--color-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); }
.hero__tags li {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark-muted);
}

.hero__visual { position: relative; max-width: 30rem; width: 100%; margin-inline: auto; }
.hero__glow {
    position: absolute;
    inset: -18% -22% -10% -22%;
    background: radial-gradient(closest-side, rgb(242 110 25 / 0.38), transparent 72%);
    pointer-events: none;
}
.hero__mark {
    position: absolute;
    width: 62%;
    right: -14%;
    bottom: -10%;
    opacity: 0.9;
    filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.5));
    pointer-events: none;
    z-index: 2;
}
.hero__visual .portrait { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.hero__visual .portrait--placeholder { background-color: var(--color-dark-raised); }
.hero__visual .portrait__monogram { color: var(--color-brand); }

/* Entrance: pure CSS so content never waits for JavaScript. */
@media (prefers-reduced-motion: no-preference) {
    .hero__eyebrow, .hero__heading, .hero__lede, .hero__actions, .hero__reassure, .hero__tags, .hero__visual {
        animation: rise 0.9s var(--ease-out) both;
    }
    .hero__heading { animation-delay: 0.08s; }
    .hero__lede { animation-delay: 0.18s; }
    .hero__actions, .hero__reassure { animation-delay: 0.28s; }
    .hero__tags { animation-delay: 0.36s; }
    .hero__visual { animation-delay: 0.2s; animation-duration: 1.1s; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Marquee of service keywords (decorative) ---------- */
.marquee { overflow: hidden; background: var(--color-brand); color: var(--color-brand-ink); border-block: 1px solid rgb(0 0 0 / 0.12); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; }
.marquee__item {
    padding: 1rem 0 1rem 2.25rem;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.marquee__item::after { content: "✦"; margin-left: 2.25rem; font-size: 0.7em; }
@media (prefers-reduced-motion: no-preference) {
    .marquee__track { animation: marquee 48s linear infinite; }
    .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee__track { width: auto; flex-wrap: wrap; }
    .marquee__group[aria-hidden] { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.page-hero + .section--flush-top { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.page-hero__title { font-size: var(--text-3xl); letter-spacing: -0.04em; line-height: 1.02; max-width: 18ch; }
.page-hero__lede { margin-top: var(--space-5); max-width: 40rem; font-size: var(--text-lg); color: var(--color-text-muted); }

/* ---------- Story / belief statements ---------- */
.statement { font-size: var(--text-3xl); letter-spacing: -0.04em; line-height: 1.04; max-width: 18ch; }
.statement em { font-style: normal; color: var(--color-accent); }
.beliefs { display: grid; gap: var(--space-6); margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.beliefs__item { padding-top: var(--space-4); border-top: 2px solid var(--color-text); }
.beliefs__item p { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }

/* ---------- Credibility ---------- */
.credibility__list { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); border-top: 1px solid var(--color-border); padding-top: var(--space-6); }
.credibility__value { display: block; font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; }
.credibility__label { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Work list ---------- */
.work-list { border-top: 2px solid var(--color-text); }
.work-item { border-bottom: 1px solid var(--color-border); }
.work-item__link {
    display: grid;
    gap: var(--space-3);
    padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
    text-decoration: none;
    transition: padding 0.35s var(--ease-out), background-color 0.35s ease;
}
@media (min-width: 900px) {
    .work-item__link { grid-template-columns: 14rem 1fr auto; column-gap: var(--space-7); align-items: baseline; }
    .work-item__meta { grid-row: 1 / span 3; }
    .work-item__cta { grid-column: 3; grid-row: 1; }
    .work-item__link:hover { padding-inline: var(--space-5); background: var(--color-bg-alt); }
}
.work-item__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.work-item__meta span:first-child { color: var(--color-accent); font-weight: 700; }
.work-item__title { font-size: var(--text-xl); transition: color 0.2s ease; }
.work-item__summary { color: var(--color-text-muted); max-width: 40rem; }
.work-item__metric { font-size: var(--text-sm); color: var(--color-text-muted); }
.work-item__metric strong { color: var(--color-text); font-size: 1.125rem; margin-right: 0.25em; }
.work-item__cta { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.work-item__cta span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.work-item__link:hover .work-item__title { color: var(--color-accent); }
.work-item__link:hover .work-item__cta span { transform: translateX(4px); }

.filters { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.filters__link {
    padding: 0.5rem 1.1rem;
    min-height: 40px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-muted);
}
.filters__link:hover { color: var(--color-text); border-color: var(--color-text); }
.filters__link[aria-current="page"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-brand-ink); }

.empty-state {
    padding: clamp(2rem, 1rem + 4vw, 4.5rem);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    max-width: 52rem;
}
.empty-state__title { font-size: var(--text-xl); }
.empty-state__text { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 38rem; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Service rows (home) ---------- */
.service-grid { border-top: 2px solid var(--color-text); }
.service-grid__item {
    display: grid;
    gap: var(--space-2) var(--space-5);
    align-items: baseline;
    padding-block: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, padding 0.35s var(--ease-out);
}
@media (min-width: 900px) {
    .service-grid__item { grid-template-columns: 4rem 1fr 1.1fr; padding-block: var(--space-6); }
    .service-grid__item:hover { padding-inline: var(--space-5); background: #fff; }
}
.service-grid__index { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.service-grid__title { font-size: var(--text-xl); letter-spacing: -0.025em; }
.service-grid__title a { text-decoration: none; }
.service-grid__title a:hover { color: var(--color-accent); }
.service-grid__text { color: var(--color-text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps__item { padding-top: var(--space-5); border-top: 2px solid var(--color-text); }
.on-dark .steps__item { border-top-color: var(--color-brand); }
.steps__number { display: block; margin-bottom: var(--space-5); font-size: var(--text-metric); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.on-dark .steps__number { color: var(--color-brand); }
.steps__title { font-size: 1.375rem; letter-spacing: -0.025em; }
.steps__text { margin-top: var(--space-2); color: var(--color-text-muted); }
.steps--compact { grid-template-columns: 1fr; gap: var(--space-5); }
.steps--compact .steps__item { border-top-width: 1px; border-color: var(--color-border); }

/* ---------- Portrait ---------- */
.portrait { display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 34rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(var(--color-border), var(--color-border)) 50% 0 / 1px 100% no-repeat,
        linear-gradient(var(--color-border), var(--color-border)) 0 50% / 100% 1px no-repeat,
        #ebe4d8;
}
.portrait__monogram {
    font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    background: inherit;
    padding: 0 0.15em;
}
.page-hero .portrait { margin-left: auto; }

/* About preview (home) */
.about-preview { max-width: 52rem; }
.about-preview .section-head__title { margin-bottom: var(--space-5); }

/* ---------- CTA band: the climax, full brand orange ---------- */
.cta-band { background: var(--color-brand); color: var(--color-brand-ink); text-align: center; position: relative; overflow: hidden; }
.cta-band__inner { max-width: 54rem; position: relative; }
.cta-band__heading { font-size: var(--text-3xl); letter-spacing: -0.04em; line-height: 1.02; color: var(--color-brand-ink); }
.cta-band__text { margin-top: var(--space-5); font-size: var(--text-lg); color: #2b1808; max-width: 38rem; margin-inline: auto; }
.cta-band__actions { display: flex; justify-content: center; margin-top: var(--space-6); }
.cta-band :focus-visible { outline-color: var(--color-dark); }

/* ---------- Services page ---------- */
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--color-border);
    background: #fff;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
}
.toc a:hover { color: var(--color-text); border-color: var(--color-text); }

.service-list { display: grid; }
.service {
    display: grid;
    gap: var(--space-5);
    padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    border-top: 1px solid var(--color-border);
}
.service:first-child { border-top: 2px solid var(--color-text); }
@media (min-width: 900px) { .service { grid-template-columns: 5fr 7fr; gap: var(--space-8); } }
.service__index { display: block; font-size: var(--text-metric); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--color-accent); margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; }
.service__title { font-size: var(--text-xl); }
.service__audience { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-accent); font-weight: 700; }
.service__body { display: grid; gap: var(--space-4); justify-items: start; max-width: 40rem; }
.service__summary { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; }
.service__subhead { font-size: 1rem; margin-top: var(--space-2); }
.service__body .btn { margin-top: var(--space-3); }

.checklist { display: grid; gap: var(--space-2); }
.checklist li { position: relative; padding-left: 1.5rem; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.65rem;
    height: 2px;
    background: var(--color-brand);
}

/* ---------- Case study ---------- */
.facts { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.facts dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.facts dd { margin-top: var(--space-1); font-weight: 600; }

.results { background: var(--color-dark); color: var(--color-dark-text); }
.results__heading { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-brand); margin-bottom: var(--space-6); }
.results__list { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.results__item { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--color-brand); }
.results__value { font-size: var(--text-metric); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.results__label { font-weight: 600; }
.results__context { font-size: var(--text-sm); color: var(--color-dark-muted); }
.results__note { margin-top: var(--space-7); max-width: 44rem; font-size: var(--text-sm); color: var(--color-dark-muted); }

.story { display: grid; }
.story__section { display: grid; gap: var(--space-4); padding-block: var(--space-7); border-top: 1px solid var(--color-border); }
.story__section:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .story__section { grid-template-columns: 4fr 8fr; gap: var(--space-7); } }
.story__label { font-size: 1.375rem; letter-spacing: -0.025em; }
.story__body { display: grid; gap: var(--space-4); max-width: 42rem; font-size: 1.0625rem; }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { padding: 0.3rem 0.85rem; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; }

.link-list { display: grid; gap: var(--space-2); }
.link-list--inline { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }

/* ---------- About ---------- */
.principles { display: grid; gap: 0 var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); border-top: 2px solid var(--color-text); }
.principles__item { padding-block: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border); }
.principles__title { font-size: 1.375rem; letter-spacing: -0.025em; }
.principles__text { margin-top: var(--space-2); color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-8) var(--space-7); font-size: var(--text-sm); background: var(--color-dark); color: var(--color-dark-muted); }
.site-footer__inner { display: grid; gap: var(--space-6); }
@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
    .site-footer__legal { grid-column: 1 / -1; }
}
.site-footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.site-footer__logo { height: 44px; width: auto; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.site-footer__nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer__nav a { display: inline-block; padding-block: var(--space-2); text-decoration: none; font-weight: 500; }
.site-footer__nav a:hover { color: var(--color-brand); }
.site-footer__legal { padding-top: var(--space-5); border-top: 1px solid var(--color-dark-border); }

/* Social profile icons (footer and About) */
.social { list-style: none; padding: 0; display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; transition: color .2s, transform .2s; }
.social__link:hover { color: var(--color-brand); transform: translateY(-2px); }
.social__icon { width: 26px; height: 26px; }
@media (min-width: 900px) { .site-footer__nav .social { justify-content: flex-end; } }
.social--on-light .social__link { color: var(--color-text); }
.social--on-light .social__link:hover { color: var(--color-brand); }
@media (prefers-reduced-motion: reduce) { .social__link { transition: none; } .social__link:hover { transform: none; } }

/* ---------- Reveal on scroll ----------
   Content is hidden only after main.js has run and marked the page as
   ready, so nothing depends on JavaScript to be visible. Subtle offset. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(14px); }
    .reveal-ready [data-reveal] {
        transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
        transition-delay: var(--reveal-delay, 0s);
    }
    [data-parallax] { will-change: transform; }

    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .cta-band, .nav-toggle, .skip-link, .marquee { display: none; }
}

/* ==========================================================================
   Glass layer (appended last so it refines the components above)
   ========================================================================== */

/* Ambient color behind glass, so the blur has something to refract. */
.page-hero, .section--alt, .section--glow, .section.on-dark { position: relative; overflow: hidden; }
.page-hero > .container, .section--alt > .container, .section--glow > .container, .section.on-dark > .container { position: relative; z-index: 1; }
.page-hero::before, .section--alt::before, .section--glow::before, .section.on-dark::before {
    content: "";
    position: absolute;
    width: min(46rem, 110vw);
    aspect-ratio: 1;
    right: -12%;
    top: -28%;
    background: radial-gradient(closest-side, rgb(242 110 25 / 0.2), transparent);
    pointer-events: none;
}
.section--glow::before { right: auto; left: -14%; top: auto; bottom: -30%; background: radial-gradient(closest-side, rgb(242 110 25 / 0.15), transparent); }
.section.on-dark::before { right: auto; left: -16%; top: auto; bottom: -34%; background: radial-gradient(closest-side, rgb(242 110 25 / 0.28), transparent); }

/* Chips, filters, tags */
.toc a, .filters__link, .tags li {
    background: var(--glass-light-fill);
    border: 1px solid var(--glass-light-border);
    box-shadow: 0 1px 2px rgb(40 20 0 / 0.06), 0 4px 14px rgb(40 20 0 / 0.05);
}
.filters__link[aria-current="page"] { background: var(--color-brand); border-color: var(--color-brand); }
.hero__tags li { background: var(--glass-dark-fill); border-color: var(--glass-dark-border); }

/* Secondary buttons */
.btn--secondary { background: var(--glass-light-fill); border: 1px solid rgb(29 26 23 / 0.2); }
.on-dark .btn--secondary { background: var(--glass-dark-fill); border-color: var(--glass-dark-border); }

/* Cards */
.beliefs__item, .principles__item, .steps__item, .empty-state, .results__item {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--glass-light-fill);
    border: 1px solid var(--glass-light-border);
    box-shadow: 0 1px 2px rgb(40 20 0 / 0.05), 0 12px 32px rgb(40 20 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.on-dark .steps__item, .results__item {
    background: var(--glass-dark-fill);
    border-color: var(--glass-dark-border);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.principles { border-top: 0; gap: var(--space-4); }
.principles__item { padding-block: var(--space-5); }
.steps--compact .steps__item { padding: var(--space-4) var(--space-5); border-width: 1px; }
.steps__number { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }

/* Portrait: glass frame */
.hero__visual .portrait { border: 1px solid rgb(255 255 255 / 0.2); outline: 6px solid rgb(255 255 255 / 0.06); outline-offset: 0; }

/* Closing call to action: frosted panel on the orange */
.cta-band__inner {
    padding: clamp(2rem, 1rem + 5vw, 4.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
    background: rgb(255 255 255 / 0.2);
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgb(120 40 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.5);
}
.cta-band { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.cta-band__heading { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem); }

/* Blur, only where supported */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .toc a, .filters__link, .tags li, .btn--secondary, .hero__tags li,
    .beliefs__item, .principles__item, .steps__item, .empty-state, .results__item,
    .cta-band__inner, .hero__visual .portrait {
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
    }
    .cta-band__inner { -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
}

/* ==========================================================================
   Responsive refinements
   ========================================================================== */
@media (max-width: 599px) {
    .hero__actions .btn, .empty-state__actions .btn, .service__body .btn { flex: 1 1 100%; }
    .hero__visual { max-width: 22rem; }
    .hero__mark { width: 52%; right: -8%; }
    .page-hero__title { max-width: none; }
    .marquee__item { padding-block: 0.8rem; }
    .results__list, .steps, .beliefs, .principles { grid-template-columns: 1fr; }
    .site-footer__nav ul { gap: 0 var(--space-5); }
    .toc ul { gap: var(--space-2); }
}
@media (min-width: 600px) and (max-width: 899px) {
    .hero__visual { max-width: 26rem; }
    .steps, .beliefs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
    :root { --gutter: 1rem; }
    .wordmark span { font-size: 0.9375rem; }
    .btn { padding-inline: 1.25rem; }
}
@media (hover: none) {
    .btn:hover, .work-item__link:hover, .service-grid__item:hover { transform: none; }
}

/* Header floats over the page so content scrolls beneath the glass. */
:root { --header-offset: 4.75rem; }
.site-header { margin-bottom: calc(var(--header-offset) * -1); }
.hero { padding-top: calc(var(--header-offset) + clamp(2.5rem, 1rem + 5vw, 6rem)); }
.page-hero { padding-top: calc(var(--header-offset) + clamp(2.5rem, 1.5rem + 4vw, 5rem)); }

/* ==========================================================================
   Case studies: reported/calculated labels, impact, dashboard, evidence
   ========================================================================== */

/* Homepage / listing card stats */
.work-item__stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }
.work-item__stats strong { margin-right: 0.2em; font-size: 1.0625rem; color: var(--color-text); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .work-item__meta { grid-row: 1 / span 4; } }

/* KPI band */
.results__period { margin: calc(var(--space-3) * -1) 0 var(--space-6); max-width: 46rem; font-size: var(--text-sm); color: var(--color-dark-muted); }
.results__item { position: relative; }
.results__value { font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.5rem); overflow-wrap: break-word; }
.results__value--long { font-size: clamp(1.375rem, 0.9rem + 1.4vw, 1.875rem); }
@media (min-width: 600px) and (max-width: 899px) { .results__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
    .results__list--5, .results__list--6 { grid-template-columns: repeat(3, 1fr); }
    .results__list--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .results__list--4 { grid-template-columns: repeat(4, 1fr); } }
.results__item .results__context { margin-top: var(--space-1); }
.basis {
    justify-self: start;
    padding: 0.15rem 0.65rem;
    border: 1px solid var(--glass-dark-border);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-dark-muted);
}
.basis--light { background: #fff; border-color: var(--color-border); color: var(--color-text-muted); }

/* Business impact */
.impact__list { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.impact__item {
    display: grid; gap: var(--space-2); align-content: start;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--glass-light-fill);
    border: 1px solid var(--glass-light-border);
    box-shadow: 0 1px 2px rgb(40 20 0 / 0.05), 0 12px 32px rgb(40 20 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.impact__value { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; color: var(--color-accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.impact__label { font-weight: 600; }
.impact__context { font-size: var(--text-sm); color: var(--color-text-muted); }
.impact .section-head__lede + .section-head__lede { margin-top: var(--space-3); }

/* "How these figures are calculated" */
.disclosure { margin-top: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--glass-light-fill); }
.disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 3.25rem; padding: var(--space-3) var(--space-5); font-weight: 600; cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--color-accent); }
.disclosure[open] summary::after { content: "\2212"; }
.disclosure__body { display: grid; gap: var(--space-4); padding: 0 var(--space-5) var(--space-5); }
.disclosure__body dt { font-weight: 600; }
.disclosure__body dd { margin: var(--space-1) 0 0; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* Campaign dashboard */
.dash__meta { display: grid; gap: var(--space-4) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-bottom: var(--space-7); padding-block: var(--space-4); border-block: 1px solid var(--color-border); }
.dash__meta dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.dash__meta dd { margin: var(--space-1) 0 0; font-weight: 600; }
.dash__note { margin-top: var(--space-5); max-width: 44rem; font-size: var(--text-sm); color: var(--color-text-muted); }

.roas-chart {
    margin: 0 0 var(--space-7);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--glass-light-fill);
    border: 1px solid var(--glass-light-border);
    box-shadow: 0 1px 2px rgb(40 20 0 / 0.05), 0 12px 32px rgb(40 20 0 / 0.07);
}
.roas-chart__caption { display: grid; gap: var(--space-1); margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }
.roas-chart__caption strong { font-size: 1.0625rem; color: var(--color-text); }
.roas-chart__rows { display: grid; gap: var(--space-4); list-style: none; padding: 0; }
.roas-chart__row { display: grid; grid-template-columns: 6.5rem 1fr 10rem; align-items: center; gap: var(--space-4); }
.roas-chart__name { font-weight: 600; }
.roas-chart__svg { display: block; width: 100%; height: 1.25rem; overflow: visible; }
.roas-chart__track { fill: var(--color-border); }
.roas-chart__bar { fill: var(--color-accent); }
.roas-chart__ref { stroke: var(--color-text); stroke-width: 1.5; stroke-dasharray: 3 3; }
.roas-chart__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.roas-chart__value small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--color-text-muted); }
.roas-chart__axis { display: flex; justify-content: space-between; margin: var(--space-3) 10rem 0 calc(6.5rem + var(--space-4)); font-size: 0.75rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .roas-chart__bar { transition: opacity 0.2s ease; }
    .roas-chart__row:hover .roas-chart__bar { opacity: 0.8; }
}
@media (max-width: 599px) {
    .roas-chart { padding: var(--space-4); }
    .roas-chart__row { grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); }
    .roas-chart__svg { grid-column: 1 / -1; grid-row: 2; }
    .roas-chart__value small { display: inline; margin-left: 0.4em; }
    .roas-chart__axis { margin-inline: 0; }
}

.data-table-wrap { overflow-x: auto; }
.data-table-wrap:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.data-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table__title { margin-bottom: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.data-table th, .data-table td { padding: var(--space-3) var(--space-4); text-align: right; border-bottom: 1px solid var(--color-border); }
.data-table thead th { vertical-align: bottom; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid var(--color-text); }
.data-table th:first-child { text-align: left; font-weight: 600; padding-left: 0; }
.data-table tbody tr:hover { background: var(--color-bg-alt); }

/* Infographics: flow + bar blocks */
.viz__grid { display: grid; gap: var(--space-5); }
.viz-card {
    padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
    border-radius: var(--radius-md);
    background: var(--glass-light-fill);
    border: 1px solid var(--glass-light-border);
    box-shadow: 0 1px 2px rgb(40 20 0 / 0.05), 0 12px 32px rgb(40 20 0 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.viz-card__title { font-size: var(--text-xl); letter-spacing: -0.03em; }
.viz-card__intro { margin-top: var(--space-2); max-width: 44rem; color: var(--color-text-muted); }
.viz-card__note { margin-top: var(--space-5); max-width: 44rem; font-size: var(--text-sm); color: var(--color-text-muted); }

.flow { list-style: none; padding: 0; display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.flow__step { position: relative; display: grid; gap: var(--space-1); align-content: start; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); border-left: 3px solid var(--color-accent); background: rgb(255 255 255 / 0.6); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.flow__value { font-size: clamp(1.375rem, 1rem + 1.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-accent); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.flow__label { font-weight: 600; }
.flow__note { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (min-width: 900px) {
    .flow { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-5); }
    .flow__step { border-left: 0; border-top: 3px solid var(--color-accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: var(--space-4); }
    .flow__step + .flow__step::before { content: "\2192"; position: absolute; left: calc(var(--space-5) * -0.85); top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--color-text-muted); }
}

.viz-rows { list-style: none; padding: 0; display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.viz-row { display: grid; gap: var(--space-2); }
.viz-row__label { font-weight: 600; }
.viz-row__note { font-size: var(--text-sm); color: var(--color-text-muted); }
.viz-seg { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-1) var(--space-3); }
.viz-seg__name { grid-column: 1 / -1; font-size: 0.75rem; color: var(--color-text-muted); }
.viz-seg__svg { display: block; width: 100%; height: 1.125rem; }
.viz-seg__value { min-width: 8.5rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-track { fill: var(--color-border); }
.viz-bar--base { fill: var(--color-text); }
.viz-bar--accent { fill: var(--color-accent); }
.viz-bar--muted { fill: #8a7f74; }
.viz-open { fill: var(--color-bg); opacity: 0.55; }
.viz-axis { display: flex; justify-content: space-between; margin-top: var(--space-3); font-size: 0.75rem; color: var(--color-text-muted); }
@media (max-width: 599px) {
    .viz-seg { grid-template-columns: 1fr; }
    .viz-seg__value { min-width: 0; text-align: left; }
}

/* ==========================================================================
   CRO layer: proof strip, audience paths, contact reassurance, mobile CTA
   ========================================================================== */

/* Hero: one primary action, a reassurance line, capability tags.
   The headline is longer than before, so it is set smaller and the hero
   tighter: proof should start near the fold on a ~900 px laptop screen. */
.hero__heading { font-size: clamp(2.5rem, 1.1rem + 4vw, 4.25rem); line-height: 1.02; }
@media (min-width: 900px) { .hero { padding-bottom: clamp(3rem, 1.5rem + 3vw, 4.5rem); } }
.hero__reassure { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-dark-muted); }
.hero__tags { margin-top: var(--space-6); }

/* Audience paths */
.paths__list { list-style: none; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.paths__item {
    display: flex; flex-direction: column; gap: var(--space-3);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
}
.paths__eyebrow { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent); }
.paths__title { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.2; }
.paths__text { color: var(--color-text-muted); }
.paths__links { list-style: none; padding: 0; display: grid; gap: 0; }
.paths__links .text-link { padding-block: 0.55rem; }
.paths__cta { margin-top: auto; padding-top: var(--space-3); }
.paths__cta .btn { width: 100%; }

/* "What happens next" under each closing CTA */
.cta-band__steps { list-style: none; padding: 0; display: grid; gap: var(--space-3); max-width: 40rem; margin: var(--space-6) auto 0; text-align: left; color: #2b1808; font-size: var(--text-sm); }
.cta-band__steps li { display: flex; gap: var(--space-3); align-items: baseline; }
.cta-band__step-n { flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-dark); color: #fff; font-size: 0.75rem; font-weight: 700; }
@media (min-width: 900px) {
    .cta-band__steps { grid-template-columns: repeat(3, 1fr); max-width: none; gap: var(--space-5); }
}

/* Mid-page CTA after the evidence (case studies) */
.inline-cta { padding-block: clamp(2rem, 1.2rem + 3vw, 3rem); border-block: 1px solid var(--color-border); }
.inline-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.inline-cta__text { max-width: 36rem; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; }
.inline-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* Services: problem / who / outcome */
.service__facts { display: grid; gap: var(--space-3); width: 100%; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.service__facts dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent); }
.service__facts dd { margin: var(--space-1) 0 0; }

/* Comfortable tap targets */
.wordmark { min-height: 44px; }
.service-grid__title a { display: inline-block; padding-block: 0.45rem; }

/* Header: WhatsApp stays one tap away on mobile instead of inside the menu */
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header__quick { display: none; }
@media (max-width: 767px) {
    .js .site-header__quick { display: inline-flex; min-height: 44px; }
    .js .site-header__bar { gap: var(--space-2); }
}
@media (max-width: 440px) {
    .js .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 599px) {
    .inline-cta__actions, .inline-cta__actions .btn { width: 100%; }
    /* Keep the portrait, but small enough that proof starts within ~1.5 screens. */
    .hero { padding-bottom: var(--space-7); }
    .hero__inner { gap: var(--space-6); }
    .hero__visual { max-width: 13rem; }
    .hero__tags { margin-top: var(--space-5); }
}

/* ==========================================================================
   Visual layer: icons, hero metric chips, mini dashboards, services map
   ========================================================================== */
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* Round icon bubbles (services, steps, map) */
.service-grid__icon, .steps__icon, .service__icon, .map__icon {
    display: inline-grid; place-items: center;
    border-radius: var(--radius-sm);
    background: rgb(242 110 25 / 0.12);
    border: 1px solid rgb(242 110 25 / 0.28);
    color: var(--color-accent);
}
.service-grid__icon { width: 2.75rem; height: 2.75rem; align-self: start; }
.steps__icon { width: 3rem; height: 3rem; margin-bottom: var(--space-4); border-radius: 50%; }
.on-dark .steps__icon { color: var(--color-brand); background: rgb(242 110 25 / 0.14); }
.service__icon { width: 3.25rem; height: 3.25rem; margin-bottom: var(--space-3); border-radius: var(--radius-md); }
.service__icon .icon { width: 1.75rem; height: 1.75rem; }
.map__icon { width: 3rem; height: 3rem; }

/* Services map: the question each service answers */
.map { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.map__link {
    position: relative; display: grid; gap: var(--space-3); align-content: start; height: 100%;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.map__link:hover { border-color: var(--color-accent); box-shadow: 0 14px 30px rgb(40 20 0 / 0.1); transform: translateY(-3px); }
.map__question { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.map__service { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); }
@media (min-width: 1280px) {
    .map { gap: var(--space-5); }
    .map__step:not(:last-child) .map__link::after { content: "\2192"; position: absolute; right: -1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--color-text-muted); }
}

/* Mini dashboards: card snapshots and case study hero */
.mini-viz { padding: var(--space-4); border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); box-shadow: 0 6px 18px rgb(40 20 0 / 0.06); }
.mini-viz__title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.mini-viz__rows { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.mini-viz__row { display: grid; grid-template-columns: 6.75rem 1fr; align-items: center; gap: 2px var(--space-3); }
.mini-viz__label { font-size: 0.8125rem; color: var(--color-text-muted); }
.mini-viz__svg { display: block; width: 100%; height: 0.875rem; }
.mini-viz__value { grid-column: 2; font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-viz__caption { margin-top: var(--space-3); font-size: 0.75rem; color: var(--color-text-muted); }
.work-item__viz { max-width: 26rem; margin-top: var(--space-2); }
@media (min-width: 900px) {
    .work-item__link { grid-template-columns: 12rem 1fr 19rem; }
    .work-item__viz { grid-column: 3; grid-row: 2 / span 3; align-self: start; max-width: none; margin-top: 0; }
}
/* Mobile hero: the portrait sits beside the headline instead of below the text */
@media (max-width: 899px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 33vw, 14rem);
        gap: var(--space-4) var(--space-5);
        align-items: start;
    }
    .hero__copy { display: contents; }
    .hero__eyebrow { grid-column: 1; grid-row: 1; font-size: 0.6875rem; line-height: 1.35; }
    .hero__heading { grid-column: 1; grid-row: 2; font-size: clamp(1.5rem, 0.9rem + 3.2vw, 3rem); line-height: 1.05; }
    .hero__visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; max-width: none; margin: 0; }
    .hero__visual .portrait { border-radius: var(--radius-md); }
    .hero__mark { display: none; }
    .hero__lede, .hero__actions, .hero__reassure, .hero__tags { grid-column: 1 / -1; margin-top: 0; }
    .hero__lede { margin-top: var(--space-2); }
    .hero__actions { margin-top: var(--space-2); }
}

/* ==========================================================================
   Spot illustrations (templates/components/illustration.php)
   Colors come from custom properties, so one drawing fits light, dark and
   orange sections.
   ========================================================================== */
.ill {
    --ill-line: var(--color-text);
    --ill-card: #fff;
    --ill-muted: #e3dacd;
    --ill-tint: rgb(242 110 25 / 0.18);
    --ill-orange: var(--color-brand);
    --ill-check: #fff;
    --ill-bubble: rgb(29 26 23 / 0.35);
    display: block; width: 100%; height: auto;
    filter: drop-shadow(0 14px 22px rgb(40 20 0 / 0.1));
}
.on-dark .ill { --ill-line: #f8f3ec; --ill-card: #241e19; --ill-muted: #3d352d; --ill-tint: rgb(242 110 25 / 0.28); --ill-bubble: rgb(29 26 23 / 0.4); filter: none; }
.cta-band .ill { --ill-line: #1c1713; --ill-card: rgb(255 255 255 / 0.85); --ill-muted: rgb(29 26 23 / 0.14); --ill-orange: #1c1713; --ill-bubble: rgb(255 255 255 / 0.55); filter: none; }
.ill .ill-line { fill: none; stroke: var(--ill-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .ill-dash { stroke-dasharray: 5 7; stroke: var(--color-brand); }
.ill .ill-line-fill { fill: var(--ill-line); }
.ill .ill-card { fill: var(--ill-card); stroke: var(--ill-line); stroke-width: 2; }
.ill .ill-glass { fill: var(--ill-tint); stroke: var(--ill-line); stroke-width: 2; }
.ill .ill-muted { fill: var(--ill-muted); }
.ill .ill-tint { fill: var(--ill-tint); }
.ill .ill-orange { fill: var(--ill-orange); }
.ill .ill-flag { fill: var(--ill-orange); stroke: var(--ill-line); stroke-width: 2; stroke-linejoin: round; }
.ill .ill-bubble-line { fill: var(--ill-bubble); }
.ill .ill-check { fill: none; stroke: var(--ill-check); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .ill-check--s { stroke-width: 2; }
.cta-band .ill .ill-check { stroke: #fff; }

/* A section heading with an illustration beside it */
.head-art { display: grid; gap: var(--space-5); align-items: center; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.head-art .section-head { margin-bottom: 0; }
.head-art__img { max-width: 15rem; }
@media (min-width: 900px) {
    .head-art { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--space-8); }
    .head-art__img { max-width: none; }
}
@media (max-width: 599px) { .head-art__img { max-width: 11rem; } }

/* Illustration in the page hero (wide screens only) */
.page-hero__art { display: none; }
@media (min-width: 1000px) {
    .page-hero__art { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-42%); width: 19rem; }
}

/* Home: compact service tiles (detail lives on /services) */
.service-tiles { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.service-tiles__link {
    display: flex; align-items: center; gap: var(--space-3); height: 100%;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.service-tiles__link:hover { border-color: var(--color-accent); box-shadow: 0 12px 28px rgb(40 20 0 / 0.09); transform: translateY(-2px); }
.service-tiles__title { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* Case study facts: two columns on phones, so the results start sooner */
@media (max-width: 599px) {
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-4); margin-top: var(--space-5); }
    .facts dd { font-size: 0.9375rem; }
    .case-study__hero .toc ul { margin-top: var(--space-4); }
}

/* Audience cards: illustration, one line, one button */
.paths__art { max-width: 12rem; margin: 0 auto var(--space-2); }
.paths__item { text-align: left; }
.paths__cta { margin-top: auto; }

/* Illustration above the closing CTA */
.cta-band__art { max-width: 10rem; margin: 0 auto var(--space-4); }
@media (max-width: 599px) { .cta-band__art { max-width: 8rem; } }

/* Evidence screenshots + lightbox */
.gallery { list-style: none; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.gallery__link { display: block; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: zoom-in; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.gallery__link:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgb(40 20 0 / 0.14); }
.gallery__link img { display: block; width: 100%; height: auto; }
.gallery__caption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
html.no-scroll { overflow: hidden; }
.lightbox { max-width: min(96vw, 1200px); max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--color-dark-text); }
.lightbox::backdrop { background: rgb(20 17 14 / 0.88); }
.lightbox__inner { position: relative; display: grid; gap: var(--space-3); justify-items: center; padding: 4rem var(--space-4) var(--space-4); }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: 76vh; border-radius: var(--radius-sm); background: #fff; }
.lightbox__caption { margin: 0; max-width: 40rem; text-align: center; font-size: var(--text-sm); }
.lightbox__caption:empty { display: none; }
.lightbox__close, .lightbox__nav {
    position: absolute;
    min-width: 2.75rem; min-height: 2.75rem;
    border: 1px solid var(--glass-dark-border);
    border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 0.14);
    color: #fff;
    font: inherit; font-weight: 600;
    cursor: pointer;
}
.lightbox__close { top: 0.75rem; right: var(--space-4); padding-inline: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--space-2); }
.lightbox__nav--next { right: var(--space-2); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgb(255 255 255 / 0.26); }
.lightbox :focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
