/* ==========================================================================
   Atishay Goyal: portfolio design system
   Palette, type and devices borrowed from the Mad N Creative system:
   warm paper, warm-black ink, coral for actions, teal / mustard / lilac /
   peach as secondary fills, an ink-blue halftone band for proof.
   Everything you can touch is an ink-outlined "sticker" with a hard shadow.
   ========================================================================== */

:root {
    /* paper */
    --canvas: #fbf6ec;
    --canvas-low: #fcf8f0;
    --canvas-lowest: #fffaf3;
    --canvas-high: #f4ecdd;
    --canvas-highest: #efe5d3;
    --canvas-dim: #e6dac5;

    /* ink */
    --ink: #17120d;
    --ink-soft: #241c15;
    --ink-muted: #4a3f36;
    --ink-faint: #6d6157;

    --line: #e2d6c3;
    --line-strong: #17120d;

    /* coral: a fill colour; text in coral uses --accent-text */
    --accent: #c7343f;
    --accent-text: #a8282f;
    --accent-hover: #b02c37;
    --accent-press: #8f1f27;
    --accent-soft: #ffe2d6;
    --accent-lift: #ffb08a;
    --on-accent: #fffaf3;
    --magenta: #c23a8a;

    --teal: #17adae;
    --teal-deep: #026b73;
    --teal-soft: #dff5f4;
    --teal-tint: #bfeceb;
    --mustard: #f5c542;
    --mustard-deep: #7a5a00;
    --mustard-soft: #fff1c7;
    --mustard-tint: #ffe58f;
    --peach: #ff9b6a;
    --peach-tint: #ffd0bd;
    --lilac-soft: #e6e4fb;
    --lilac-tint: #cfcbf6;
    --lilac-deep: #3b3496;
    --live: #3ccf7a;

    /* dark surfaces */
    --night: #17120d;
    --night-low: #1f1913;
    --night-high: #2a221a;
    --night-line: #3a3029;
    --night-text: #fbf6ec;
    --night-muted: #c9bcae;

    --ember: #2b2f8f;
    --ember-line: #5a4fb0;
    --ember-muted: #f8edf2;

    /* type */
    --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

    /* layout */
    --header-h: 72px;
    --shell: 1320px;
    --gutter: clamp(16px, 4vw, 40px);

    --r-sm: 6px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --ease: cubic-bezier(.16, 1, .3, 1);
    --on-ink: var(--canvas);
}

@media (min-width: 1024px) {
    :root { --header-h: 84px; }
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    text-wrap: balance;
    color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
    border-radius: 4px;
}

.surface-night :focus-visible,
.surface-ember :focus-visible { outline-color: var(--accent-lift); }

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
}
.skip:focus { left: 16px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ type */

.t-display {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.1rem + 6.2vw, 6rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.t-h1 {
    font-size: clamp(2.25rem, 1.35rem + 3.9vw, 3.9rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.t-h2 {
    font-size: clamp(1.9rem, 1.25rem + 2.8vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.t-h3 {
    font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.022em;
}

.t-h4 {
    font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.lead {
    font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-muted);
}

.body { font-size: 1rem; line-height: 1.68; color: var(--ink-muted); }
.small { font-size: .9rem; line-height: 1.6; color: var(--ink-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.grad {
    background: linear-gradient(90deg, var(--accent) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .08em;
}

.surface-night .grad,
.surface-ember .grad {
    background-image: linear-gradient(90deg, var(--accent-lift) 0%, #ffd27a 100%);
}

.mark-under {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.mark-under .swash {
    position: absolute;
    left: -2%;
    bottom: -.14em;
    width: 104%;
    height: .3em;
    color: var(--teal);
    overflow: visible;
}

.swash path {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: draw 1.1s .6s var(--ease) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .swash path { animation: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- layout */

.shell {
    width: 100%;
    max-width: calc(var(--shell) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 2.4rem + 6vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3.6vw, 5.25rem); }

.sec-head {
    display: grid;
    gap: 18px 48px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.sec-head > div > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
    .sec-head--split {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: end;
    }
    .sec-head--top { align-items: start; }
}

.sec-head .lead { max-width: 56ch; }

.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }

/* -------------------------------------------------------------- surfaces */

.surface-night {
    background: var(--night);
    color: var(--night-text);
    --line: var(--night-line);
    --ink: var(--night-text);
    --ink-muted: var(--night-muted);
    --ink-faint: var(--night-muted);
    --accent-text: var(--accent-lift);
    --on-ink: var(--night);
    --line-strong: var(--night-text);
}

.surface-ember {
    background-color: var(--ember);
    background-image: radial-gradient(rgb(255 255 255 / .09) 1.4px, transparent 1.6px);
    background-size: 14px 14px;
    border-block: 2px solid var(--night);
    color: var(--night-text);
    --line: var(--ember-line);
    --ink: var(--night-text);
    --ink-muted: var(--ember-muted);
    --ink-faint: var(--ember-muted);
    --accent-text: #ffd27a;
    --on-ink: var(--ember);
    --line-strong: var(--night);
}

.surface-mustard {
    background-color: var(--mustard);
    background-image: radial-gradient(rgb(23 18 13 / .12) 1.4px, transparent 1.6px);
    background-size: 14px 14px;
    border-block: 2px solid var(--night);
}

.surface-high { background: var(--canvas-high); }

/* paper sticker inside a dark surface: restores the light token set */
.surface-paper {
    background-color: var(--canvas-lowest);
    color: #17120d;
    --line: #e2d6c3;
    --ink: #17120d;
    --ink-muted: #4a3f36;
    --ink-faint: #6d6157;
    --accent-text: #a8282f;
    --on-ink: #fbf6ec;
    --line-strong: #17120d;
}

/* --------------------------------------------------------------- sticker */

.sticker {
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: 5px 5px 0 var(--line-strong);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.surface-ember .sticker { --line-strong: #17120d; }

a.sticker:hover,
.sticker--hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--line-strong);
}

/* halftone texture over a flat tint */
.halftone { position: relative; isolation: isolate; }
.halftone::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgb(23 18 13 / .13) 1.3px, transparent 1.5px);
    background-size: 12px 12px;
    pointer-events: none;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    --btn-bg: var(--canvas-lowest);
    --btn-fg: #17120d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border: 2px solid #17120d;
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.005em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 4px 4px 0 #17120d;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s ease, color .2s ease;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #17120d;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #17120d;
}

.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); }
.btn--mustard { --btn-bg: var(--mustard); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; box-shadow: 3px 3px 0 #17120d; }

.surface-night .btn,
.surface-ember .btn { box-shadow: 4px 4px 0 #000; border-color: #000; }
.surface-night .btn:hover,
.surface-ember .btn:hover { box-shadow: 6px 6px 0 #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px 14px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .4s var(--ease);
}
.text-link:hover { background-size: 100% 2px; }

/* ------------------------------------------------------------------ chips */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 2px solid #17120d;
    border-radius: var(--r-pill);
    background: var(--canvas-lowest);
    color: #17120d;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 2px 2px 0 #17120d;
}

.chip--plain { box-shadow: none; border-width: 1.5px; font-weight: 600; }
.chip--teal { background: var(--teal); }
.chip--coral { background: var(--accent); color: var(--on-accent); }
.chip--mustard { background: var(--mustard); }
.chip--lilac { background: var(--lilac-tint); }
.chip--peach { background: var(--peach-tint); }
.chip--mint { background: var(--teal-tint); }

.chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgb(60 207 122 / .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgb(60 207 122 / 0); }
    100% { box-shadow: 0 0 0 0 rgb(60 207 122 / 0); }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ hand icons
   The hand-drawn icons are single-colour SVGs, used as masks so each one
   can be filled with any colour from the palette.                        */

.ico {
    display: block;
    width: var(--ico-size, 76px);
    aspect-ratio: 1;
    flex: none;
    background-color: var(--ico-c, var(--ink));
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.ico--coral { --ico-c: var(--accent); }
.ico--teal { --ico-c: var(--teal-deep); }
.ico--mustard { --ico-c: var(--mustard-deep); }
.ico--lilac { --ico-c: var(--lilac-deep); }
.ico--ink { --ico-c: #17120d; }
.ico--paper { --ico-c: var(--canvas-lowest); }

/* ------------------------------------------------------------------ header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: color-mix(in oklab, var(--canvas) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 2px solid transparent;
    transition: border-color .3s ease;
}

.site-header.is-scrolled { border-bottom-color: #17120d; }

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: .92;
    font-family: var(--font-display);
}

.wordmark b {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #17120d;
}

.wordmark span {
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--accent-text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-muted);
    transition: color .2s ease, background-color .2s ease;
}

.nav a:hover { color: #17120d; background: var(--canvas-high); }

.nav a.is-active {
    color: #17120d;
    background: var(--mustard-soft);
    box-shadow: inset 0 0 0 1.5px #17120d;
}

.nav .btn { display: none; }

.site-header__cta { display: flex; align-items: center; gap: 10px; }

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 2px solid #17120d;
    border-radius: 50%;
    background: var(--canvas-lowest);
    box-shadow: 3px 3px 0 #17120d;
    position: relative;
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #17120d;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.site-header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .burger { display: block; }
    .site-header__cta > .btn { display: none; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px var(--gutter) 28px;
        background: var(--canvas);
        border-bottom: 2px solid #17120d;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s var(--ease), opacity .2s ease, visibility 0s .3s;
    }

    .site-header.is-open .nav {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: transform .3s var(--ease), opacity .2s ease;
    }

    .nav a { font-size: 1.15rem; padding: 12px 16px; font-family: var(--font-display); font-weight: 700; }
    .nav .btn { display: inline-flex; margin-top: 10px; }
}

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    padding-block: clamp(16px, 2.5vw, 32px) clamp(48px, 5vw, 80px);
}

.hero__title { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.4rem); line-height: 1.06; }

.hero__grid {
    display: grid;
    gap: 56px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; }
}

.hero .chips { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 54ch; margin-bottom: 32px; }
.hero .lead strong { color: var(--ink); font-weight: 700; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 44px;
    max-width: 640px;
}

@media (min-width: 640px) {
    .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hero__stats div {
    padding: 14px 16px;
    border: 2px solid #17120d;
    border-radius: var(--r-md);
    background: var(--canvas-lowest);
}

.hero__stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: 6px;
}

.hero__stats b span { display: inline; font-size: inherit; color: inherit; font-weight: inherit; }
.hero__stats > div > span { font-size: .8rem; font-weight: 600; color: var(--ink-muted); line-height: 1.3; display: block; }

/* portrait collage */
.collage {
    position: relative;
    max-width: 470px;
    margin-inline: auto;
    padding: 40px 34px 56px 20px;
}

.collage__blob {
    position: absolute;
    inset: 14% -4% 4% 2%;
    z-index: 0;
    border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
    background: linear-gradient(160deg, var(--ember), #8a2f80 55%, #c4472f);
    animation: blob 20s ease-in-out infinite alternate;
}

.collage__blob::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgb(255 255 255 / .16) 1.4px, transparent 1.6px);
    background-size: 14px 14px;
}

@keyframes blob {
    from { transform: rotate(0) scale(1); border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
    to { transform: rotate(8deg) scale(1.04); border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
}

/* cutout portrait popping out of a halftone sticker card */
.collage__card {
    position: absolute;
    z-index: 1;
    left: 8%;
    right: 10%;
    top: 22%;
    bottom: 56px;
    background: var(--mustard-tint);
}

.collage__card--teal { background: var(--teal-tint); }

.collage__cutout {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-inline: auto;
}

.speech {
    position: absolute;
    z-index: 3;
    display: inline-block;
    max-width: 230px;
    padding: .7em 1.15em .75em;
    background: var(--canvas-lowest);
    color: #17120d;
    border: 2px solid #17120d;
    border-radius: 26px;
    box-shadow: 5px 5px 0 #17120d;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.22;
    letter-spacing: -.01em;
    rotate: -3deg;
}

.speech::after {
    content: "";
    position: absolute;
    left: 22%;
    bottom: -14px;
    width: 20px;
    height: 20px;
    background: inherit;
    border-right: 2px solid #17120d;
    border-bottom: 2px solid #17120d;
    transform: skewX(-25deg) rotate(45deg);
}

.collage .speech { left: auto; right: -8px; top: 12%; bottom: auto; max-width: 230px; rotate: 3deg; }

.float {
    position: absolute;
    z-index: 2;
    padding: 10px 14px 11px;
    border: 2px solid #17120d;
    border-radius: 16px;
    box-shadow: 4px 4px 0 #17120d;
    line-height: 1.1;
    animation: bob 3.8s ease-in-out infinite alternate;
}

.float b { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.04em; }
.float span { font-size: .74rem; font-weight: 700; }

.float--a { top: 14px; right: -4px; background: var(--mustard); rotate: 5deg; }
.float--b { top: 44%; right: -18px; background: var(--teal); rotate: -4deg; animation-delay: -1.6s; }
.float--icon { top: -6px; left: 0; padding: 8px; background: var(--peach-tint); rotate: -8deg; border-radius: 50%; animation-delay: -2.4s; }
.float--icon .ico { --ico-size: 54px; }

@keyframes bob { from { translate: 0 0; } to { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
    .collage__blob, .float { animation: none; }
}

@media (max-width: 1023px) {
    .collage { max-width: 420px; }
}

@media (max-width: 520px) {
    .collage { padding: 30px 12px 50px 12px; max-width: 340px; }
    .float--b { right: -6px; }
    .speech { font-size: .92rem; max-width: 190px; }
}

/* ------------------------------------------------------------------ logos */

.logos { padding-block: 28px; overflow: hidden; }

.logos__label {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.marquee {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: marquee 38s linear infinite;
}

.logos:hover .marquee { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

@media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee [aria-hidden="true"] { display: none; }
}

.logo-tile {
    flex: none;
    display: grid;
    place-items: center;
    width: 170px;
    height: 84px;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid #17120d;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #17120d;
}

.logo-tile:nth-child(odd) { rotate: -1.5deg; }
.logo-tile:nth-child(even) { rotate: 1.5deg; }

.logo-tile img { max-height: 56px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* ------------------------------------------------------------------ impact */

.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }

.filter button {
    padding: 8px 16px;
    border: 2px solid #17120d;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s var(--ease);
}

.surface-ember .filter button { border-color: var(--night-text); }
.filter button:hover { background: rgb(255 255 255 / .1); }

.filter button[aria-pressed="true"] {
    background: var(--mustard);
    color: #17120d;
    border-color: #17120d;
    box-shadow: 3px 3px 0 #000;
    transform: translate(-1px, -1px);
}

.impact {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.metric {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 22px 20px;
    transition: opacity .35s ease, filter .35s ease, transform .25s var(--ease), box-shadow .25s var(--ease);
}

.impact .metric.is-dim { opacity: .12; filter: grayscale(1); box-shadow: none; }
.cases .is-dim { display: none; }

.metric__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

.metric__v {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 2rem + 1.8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
}

.metric .ico { --ico-size: 46px; opacity: .9; }

.metric__l { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 6px; }
.metric__ctx { font-size: .85rem; line-height: 1.5; color: var(--ink-muted); margin-bottom: 16px; }

.metric__hats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

.metric__hats span {
    padding: 3px 9px;
    border: 1.5px solid currentColor;
    border-radius: var(--r-pill);
    font-size: .7rem;
    font-weight: 700;
    opacity: .85;
}

.metric--paper { background: var(--canvas-lowest); }
.metric--mustard { background: var(--mustard); }
.metric--teal { background: var(--teal); }
.metric--peach { background: var(--peach-tint); }
.metric--lilac { background: var(--lilac-tint); }
.metric--mint { background: var(--teal-tint); }
.metric { color: #17120d; --ink: #17120d; --ink-muted: #4a3f36; }
.metric--coral { background: var(--accent); color: var(--on-accent); --ink: var(--on-accent); --ink-muted: rgb(255 250 243 / .88); }

/* ------------------------------------------------------------------- hats */

.relay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.relay__col {
    padding: 18px 18px 16px;
    background: var(--canvas-lowest);
}

.relay__col--me { background: var(--mustard-soft); }

.relay__k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }

.relay__steps { list-style: none; display: grid; gap: 0; }

.relay__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .92rem;
    padding: 7px 0;
}

.relay__steps li i {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    border: 2px solid #17120d;
    background: var(--canvas-high);
}

.relay__col--me .relay__steps li i { background: var(--accent); }

.relay__handoff {
    margin: 0 0 0 10px;
    padding: 4px 0 4px 20px;
    border-left: 2px dashed var(--accent);
    color: var(--accent-text);
    font-size: .74rem;
    font-weight: 700;
}

.relay__col--me .relay__handoff { border-left: 2px solid #17120d; color: var(--teal-deep); }

.relay__total { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--line); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.relay__total b { font-size: 1.6rem; letter-spacing: -.04em; margin-right: 4px; }

.hats {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.hat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--canvas-lowest);
}

.hat__art {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 2px solid #17120d;
    min-height: 140px;
}

.hat__art .ico { --ico-size: 104px; transition: transform .5s var(--ease); }
.hat:hover .hat__art .ico { transform: rotate(-6deg) scale(1.06); }

.hat__num {
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .9rem;
    padding: 4px 10px;
    border: 2px solid #17120d;
    border-radius: var(--r-pill);
    background: var(--canvas-lowest);
}

.hat--mustard .hat__art { background: var(--mustard-tint); }
.hat--teal .hat__art { background: var(--teal-tint); }
.hat--peach .hat__art { background: var(--peach-tint); }
.hat--lilac .hat__art { background: var(--lilac-tint); }
.hat--coral .hat__art { background: var(--accent-soft); }
.hat--mint .hat__art { background: var(--teal-soft); }

.hat__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.hat__tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.hat h3 { margin-bottom: 8px; }
.hat__line { color: var(--ink-muted); margin-bottom: 14px; }

.ticks { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; }

.ticks li {
    position: relative;
    padding-left: 26px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #17120d;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317120d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.surface-night .ticks li::before { border-color: var(--night-text); }

.hat__proof {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 14px;
    border-top: 2px dashed var(--line);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.hat__proof b {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
    white-space: nowrap;
}

/* -------------------------------------------------------------- AI band */

.shipped {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.shipped__card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.shipped__card h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.shipped__card p { font-size: .92rem; color: var(--ink-muted); }

.shipped__n {
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .85rem;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    border: 2px solid #17120d;
    background: var(--mustard);
    color: #17120d;
}

.rule {
    display: grid;
    gap: 32px;
    margin-top: clamp(36px, 4vw, 56px);
    align-items: center;
}

@media (min-width: 960px) {
    .rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}

.rule h3 { margin-bottom: 14px; }
.rule p { color: var(--ink-muted); max-width: 54ch; }

.log {
    overflow: hidden;
    background: var(--night-low);
    color: var(--night-text);
    font-family: var(--font-mono);
    font-size: .82rem;
    border-color: #000 !important;
    box-shadow: 6px 6px 0 var(--accent) !important;
}

.surface-night .log { border: 2px solid var(--night-text) !important; }

.log__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--night-line);
    color: var(--night-muted);
}

.log__bar b { color: var(--night-text); }
.log__lights { display: flex; gap: 6px; margin-right: 6px; }
.log__lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.log__lights i:nth-child(2) { background: var(--mustard); }
.log__lights i:nth-child(3) { background: var(--live); }

.log ol { list-style: none; padding: 8px 0; }

.log li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
}

.log li + li { border-top: 1px dashed var(--night-line); }

.log li > i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.log li > i.warn { background: var(--mustard); }
.log li > i.hold { background: var(--accent); box-shadow: 0 0 0 4px rgb(199 52 63 / .25); }

.log__meta { color: var(--night-muted); font-size: .76rem; white-space: nowrap; }
.log__meta.is-hold { color: var(--night); background: var(--mustard); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

@media (max-width: 520px) {
    .log li { grid-template-columns: 12px minmax(0, 1fr); }
    .log__meta { grid-column: 2; }
}

/* -------------------------------------------------------------- case cards */

.cases { display: grid; gap: 32px; }

.case {
    display: grid;
    overflow: hidden;
    background: var(--canvas-lowest);
}

@media (min-width: 900px) {
    .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .case:nth-child(even) .case__media { order: 2; border-right: 0; border-left: 2px solid #17120d; }
}

.case__media {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--canvas-high);
    border-bottom: 2px solid #17120d;
    min-height: 240px;
}

@media (min-width: 900px) {
    .case__media { border-bottom: 0; border-right: 2px solid #17120d; }
}

.case__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.case:hover .case__media img { transform: scale(1.04); }

.case__badge { position: absolute; top: 16px; left: 16px; z-index: 1; }

.case__body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; }
.case__body .chips { margin-bottom: 16px; }
.case__body h3 { margin-bottom: 10px; }
.case__desc { color: var(--ink-muted); margin-bottom: 18px; }

.case__hats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .78rem; font-weight: 700; color: var(--ink-faint); }

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.metrics > div {
    padding: 12px 12px 10px;
    border: 2px solid #17120d;
    border-radius: 14px;
}

.metrics > div:nth-child(1) { background: var(--mustard-soft); }
.metrics > div:nth-child(2) { background: var(--teal-soft); }
.metrics > div:nth-child(3) { background: var(--accent-soft); }

.metrics b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    margin-bottom: 4px;
    color: #17120d;
}

.metrics span { display: block; font-size: .74rem; font-weight: 600; line-height: 1.3; color: #4a3f36; }

.case__body .btn { align-self: flex-start; margin-top: auto; }

.case--solo { grid-template-columns: 1fr !important; }
.case--solo .case__body { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; }
.case--solo .case__copy { flex: 1 1 420px; }
.case--solo .ico { --ico-size: 110px; }

.note {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--canvas-high);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
}

/* -------------------------------------------------------------- path / about */

.path {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    counter-reset: path;
}

.path__step {
    position: relative;
    padding: 20px 20px 18px;
    background: var(--canvas-lowest);
}

.path__step .ico { --ico-size: 58px; margin-bottom: 12px; }
.path__yr { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--accent-text); text-transform: uppercase; }
.path__step h3 { font-size: 1.15rem; letter-spacing: -.02em; margin: 4px 0 6px; }
.path__step p { font-size: .88rem; color: var(--ink-muted); }

.statline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 760px) { .statline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.statline > div { padding: 16px 18px; border-top: 3px solid #17120d; }
.statline b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); letter-spacing: -.05em; line-height: 1; margin-bottom: 6px; }
.statline > div > span { font-size: .85rem; font-weight: 600; color: var(--ink-muted); }

/* credentials */
.creds {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.cred {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--canvas-lowest);
}

.cred__mark {
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 2px solid #17120d;
    background: var(--mustard-tint);
    overflow: hidden;
}

.cred__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cred__mark .ico { --ico-size: 42px; }
.cred b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
.cred span { font-size: .82rem; color: var(--ink-muted); font-weight: 600; }

/* ---------------------------------------------------------------- CTA + footer */

.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4.5rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 3vw, 4.5rem);
}

.cta__blob {
    position: absolute;
    top: -200px;
    right: -180px;
    z-index: -1;
    width: min(640px, 90vw);
    aspect-ratio: 1;
    border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
    background: linear-gradient(160deg, var(--ember), #8a2f80 55%, #c4472f);
    opacity: .6;
    animation: blob 22s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) { .cta__blob { animation: none; } }

.cta__grid { display: grid; gap: 32px; align-items: end; }

@media (min-width: 960px) { .cta__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

.cta h2 { margin-bottom: 0; }
.cta p { color: var(--night-muted); margin-bottom: 22px; max-width: 44ch; }

.site-footer { padding-block: 40px 32px; border-top: 1px solid var(--night-line); }

.site-footer__grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 860px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer .wordmark b { color: var(--night-text); }
.site-footer .wordmark span { color: var(--accent-lift); }
.site-footer__blurb { margin-top: 14px; max-width: 40ch; font-size: .9rem; color: var(--night-muted); }

.site-footer h4 {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--night-muted);
    margin-bottom: 12px;
}

.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer ul a:hover { color: var(--accent-lift); }

.site-footer__base {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--night-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--night-muted);
}

/* ----------------------------------------------------------------- page hero */

.page-hero { padding-block: clamp(40px, 5vw, 80px) clamp(40px, 4.5vw, 64px); }
.page-hero h1 { margin-bottom: 20px; max-width: 18ch; }
.page-hero .lead { max-width: 58ch; margin-bottom: 28px; }

.page-hero__grid { display: grid; gap: 48px; align-items: center; }

@media (min-width: 960px) {
    .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

/* ------------------------------------------------------------------ timeline */

.tl { position: relative; display: grid; gap: 28px; }

.tl::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 10px;
    bottom: 10px;
    border-left: 2px dashed var(--ink-faint);
}

@media (max-width: 640px) { .tl::before { left: 31px; } }

.tl__item {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 640px) { .tl__item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; } }

.tl__year {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    justify-self: center;
    padding: 6px 10px;
    border: 2px solid #17120d;
    border-radius: var(--r-pill);
    background: var(--mustard);
    box-shadow: 3px 3px 0 #17120d;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.02em;
}

@media (max-width: 640px) { .tl__year { font-size: .82rem; padding: 5px 8px; } }

.tl__item:nth-child(4n+2) .tl__year { background: var(--teal); }
.tl__item:nth-child(4n+3) .tl__year { background: var(--peach-tint); }
.tl__item:nth-child(4n+4) .tl__year { background: var(--lilac-tint); }

.tl__card { padding: 22px; background: var(--canvas-lowest); }
.tl__hat { margin-bottom: 10px; }
.tl__card h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -.02em; margin-bottom: 8px; }
.tl__card p { color: var(--ink-muted); font-size: .95rem; }

.tl__item--future .tl__card { background: transparent; border-style: dashed; box-shadow: none; }
.tl__item--future .tl__year { background: var(--canvas-lowest); border-style: dashed; box-shadow: none; }

.shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.shots button {
    width: 92px;
    height: 92px;
    padding: 0;
    border: 2px solid #17120d;
    border-radius: 12px;
    overflow: hidden;
    background: var(--canvas-high);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.shots button:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 4px 4px 0 #17120d; }
.shots img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 520px) { .shots button { width: 72px; height: 72px; } }

.portrait { padding: 10px; background: var(--canvas-lowest); rotate: 2deg; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border: 2px solid #17120d; }

/* ------------------------------------------------------------------ process */

.principles {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.principle { padding: 22px; background: var(--canvas-lowest); }
.principle .ico { --ico-size: 72px; margin-bottom: 14px; }
.principle h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 8px; }
.principle p { font-size: .92rem; color: var(--ink-muted); }

.quote {
    margin: clamp(32px, 4vw, 52px) auto 0;
    max-width: 820px;
    text-align: center;
    padding: 28px 30px;
    background: var(--mustard-soft);
    rotate: -.6deg;
}

.quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 10px; }
.quote cite { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--ink-muted); }

.steps {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    counter-increment: step;
}

.step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step__head .ico { --ico-size: 62px; }

.step__head::after {
    content: "0" counter(step);
    margin-left: auto;
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.04em;
    color: var(--ink-faint);
    opacity: .5;
}

.step h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step > p { font-size: .92rem; color: var(--ink-muted); margin-bottom: 14px; }

.step__ai {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgb(23 173 174 / .14);
    border: 1.5px solid var(--teal);
    font-size: .84rem;
    line-height: 1.5;
}

.step__ai svg { flex: none; margin-top: 2px; color: var(--teal); }

.surface-night .step { background: var(--night-high); border-color: var(--night-text); box-shadow: 5px 5px 0 #000; }

/* ----------------------------------------------------------------- case study */

.cs-hero { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 3vw, 44px); }

.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink-muted); }
.crumb:hover { color: var(--ink); }

.cs-hero .chips { margin-bottom: 20px; }
.cs-hero h1 { max-width: 22ch; margin-bottom: 18px; }
.cs-hero__sub { max-width: 60ch; margin-bottom: 30px; }

.cs-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 34px;
}

@media (min-width: 860px) { .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-meta__cell { padding: 14px 16px; border: 2px solid #17120d; border-radius: 14px; background: var(--canvas-lowest); }
.cs-meta__cell:first-child { background: var(--mustard-soft); }
.cs-meta__k { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.cs-meta__v { display: block; font-weight: 700; font-size: .95rem; line-height: 1.35; }

.cs-shot { overflow: hidden; padding: 0; background: var(--canvas-high); }
.cs-shot img { width: 100%; height: auto; }

.cs-results {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.cs-results__cell { padding: 22px; color: #17120d; }
.cs-results__cell:nth-child(4n+1) { background: var(--mustard); }
.cs-results__cell:nth-child(4n+2) { background: var(--teal); }
.cs-results__cell:nth-child(4n+3) { background: var(--canvas-lowest); }
.cs-results__cell:nth-child(4n+4) { background: var(--peach-tint); }

.cs-results__v { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; }
.cs-results__l { font-weight: 700; font-size: .95rem; }

.cs-aco {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.cs-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--canvas-lowest); }
.cs-card__k { align-self: flex-start; }
.cs-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.cs-card p { font-size: .92rem; color: var(--ink-muted); }
.cs-card__turn { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: .86rem; font-weight: 600; }

/* long-form body: legacy markup, restyled */
.cs-body { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

.cs-body__grid { display: grid; gap: 40px; }

@media (min-width: 1000px) {
    .cs-body__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
}

.toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 18px;
    background: var(--canvas-lowest);
}

@media (max-width: 999px) { .toc { position: static; } }

.toc__title { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }

.toc a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink-muted);
    counter-increment: toc;
}

.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--ink-faint); }
.toc a:hover { background: var(--canvas-high); color: var(--ink); }
.toc a.is-active { background: var(--mustard-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px #17120d; }

.prose { min-width: 0; max-width: 820px; }

.prose h2 {
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: 64px 0 18px;
    padding-top: 22px;
    border-top: 2px solid #17120d;
}

.prose > h2:first-child,
.prose > .disclaimer + h2 { margin-top: 0; }

.prose h3 { font-size: 1.2rem; letter-spacing: -.015em; margin: 28px 0 10px; }
.prose p { color: var(--ink-muted); margin-bottom: 16px; font-size: 1.02rem; line-height: 1.75; }
.prose p b, .prose p strong, .prose li b, .prose li strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: grid; gap: 9px; }

.prose li {
    position: relative;
    padding-left: 24px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.prose li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #17120d;
    background: var(--mustard);
}

.prose hr, .prose br { display: none; }

.prose .row {
    display: grid;
    gap: 14px;
    margin: 18px 0 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.prose .row > [class*="col-"] { min-width: 0; }
.prose .row ul { margin: 0; }

.prose a[data-lightbox],
.prose .figure {
    display: block;
    margin: 18px 0 24px;
    border: 2px solid #17120d;
    border-radius: 16px;
    overflow: hidden;
    background: var(--canvas-high);
    box-shadow: 4px 4px 0 #17120d;
    cursor: zoom-in;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.prose .row a[data-lightbox] { margin: 0; }
.prose a[data-lightbox]:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #17120d; }
.prose a[data-lightbox] img { width: 100%; height: auto; }
.prose img { border-radius: 0 !important; }

.prose iframe {
    width: 100%;
    margin: 18px 0 24px;
    border: 2px solid #17120d !important;
    border-radius: 16px;
    box-shadow: 4px 4px 0 #17120d;
    background: var(--canvas-high);
}

.prose .disclaimer {
    margin-bottom: 36px;
    padding: 16px 18px;
    border: 2px dashed #17120d;
    border-radius: 16px;
    background: var(--mustard-soft);
}

.prose .disclaimer p { margin: 0; font-size: .9rem; }

.prose .results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.prose .results > div { padding: 18px; border: 2px solid #17120d; border-radius: 16px; box-shadow: 4px 4px 0 #17120d; background: var(--teal-soft); }
.prose .results > div:nth-child(2) { background: var(--mustard-soft); }
.prose .results > div:nth-child(3) { background: var(--accent-soft); }
.prose .results b { display: block; font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -.05em; line-height: 1; margin-bottom: 6px; color: var(--ink); }
.prose .results span { font-size: .85rem; font-weight: 600; color: var(--ink-muted); }

.funfact {
    margin-top: 56px;
    padding: clamp(22px, 3vw, 36px);
    background: var(--lilac-tint);
}

.funfact h2 { border: 0; padding: 0; margin: 12px 0 16px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.funfact p { color: #4a3f36; }

.next-case { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }

/* ------------------------------------------------------------------ lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 64px 16px;
    background: rgb(23 18 13 / .9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s .25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

.lightbox img {
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 140px);
    width: auto;
    border: 2px solid var(--canvas);
    border-radius: 14px;
    background: var(--canvas);
}

.lightbox__btn {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid #17120d;
    border-radius: 50%;
    background: var(--canvas-lowest);
    box-shadow: 3px 3px 0 #000;
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

.lightbox__count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    translate: -50% 0;
    color: var(--canvas);
    font-weight: 700;
    font-size: .85rem;
}

/* ------------------------------------------------------------------ reveal */

.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}

.rv.is-in { opacity: 1; transform: none; }

.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
}

/* icons inside chips and buttons take the text colour */
.chip .ico,
.btn .ico,
.note .ico { --ico-c: currentColor; }

.nav a.btn,
.nav a.btn:hover { color: var(--btn-fg); background: var(--btn-bg); }

@media (max-width: 560px) {
    .filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 10px;
        scrollbar-width: none;
    }
    .filter::-webkit-scrollbar { display: none; }
    .filter button { flex: none; }

    .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .metric { min-height: 0; padding: 14px 14px 16px; border-radius: 16px; box-shadow: 4px 4px 0 var(--line-strong); }
    .metric__v { font-size: 2rem; }
    .metric .ico { --ico-size: 30px; }
    .metric__l { font-size: .92rem; margin-bottom: 0; }
    .metric__ctx, .metric__hats { display: none; }

    .metrics { gap: 8px; }
    .metrics > div { padding: 10px 8px; }
}

.hero,
.page-hero { overflow-x: clip; }

/* SVG logo */
.wordmark img { display: block; height: 44px; width: auto; }
.site-footer .wordmark img { height: 52px; }

@media (max-width: 520px) {
    .wordmark img { height: 38px; }
}

/* chat-message bubble beside the hero portrait */
.bubble {
    position: absolute;
    z-index: 3;
    top: 9%;
    right: -4px;
    max-width: 230px;
    margin: 0;
    padding: 12px 16px 14px;
    background: #17120d;
    color: #fbf6ec;
    border-radius: 20px 20px 20px 4px;
    box-shadow: 4px 4px 0 var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.28;
    letter-spacing: -.01em;
    animation: bob 3.8s ease-in-out infinite alternate;
}

.bubble__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-family: var(--font-sans);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #c9bcae;
}

.bubble__meta i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
}

@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

@media (max-width: 520px) {
    .bubble { top: 4%; right: 0; max-width: 190px; font-size: .9rem; }
}

/* no card behind the cutout: fade the cropped bottom edge into the page */
.collage__cutout {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.collage { padding-bottom: 8px; }
.bubble { top: 6%; right: -36px; }

@media (max-width: 1023px) {
    .bubble { right: 0; }
}

@media (max-width: 520px) {
    .collage { padding-top: 56px; }
    .bubble { top: 0; right: 0; max-width: 165px; padding: 10px 12px 12px; font-size: .84rem; }
}

/* dotted arch behind the cutout; the photo sits on its bottom edge */
.collage__cutout { -webkit-mask-image: none; mask-image: none; }

.collage__card {
    top: 18%;
    bottom: 8px;
    left: 6%;
    right: 6%;
    rotate: 0deg;
    border-radius: 999px 999px 22px 22px;
    background-color: var(--mustard-tint);
    background-image: radial-gradient(rgb(23 18 13 / .22) 1.6px, transparent 1.9px);
    background-size: 14px 14px;
}

.collage__card--teal { background-color: var(--teal-tint); }

/* logo strip: static row on tablet and desktop, marquee only on phones */
@media (min-width: 768px) {
    .marquee {
        animation: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        padding-inline: var(--gutter);
    }
    .marquee [aria-hidden="true"] { display: none; }
}

/* institutions row under the hero buttons */
.creds-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.creds-row__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-right: 4px;
}

.creds-row img {
    height: 64px;
    width: auto;
    padding: 2px 4px;
    background: #fff;
    border: 2px solid #17120d;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #17120d;
    object-fit: contain;
}

/* ==========================================================================
   Round 3 components
   ========================================================================== */

/* quiet call link beside the primary CTAs */
.call-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-decoration: none;
}
.call-link:hover { color: var(--ink); text-decoration: underline; }
.btn svg[fill="currentColor"] { transition: none; }
.btn:hover svg[fill="currentColor"] { transform: none; }

/* subtler "trained at" row */
.creds-row { gap: 18px; margin-top: 30px; }
.creds-row__label { font-size: .7rem; }
.creds-row img {
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .3s ease, opacity .3s ease;
}
.creds-row img:hover { filter: none; opacity: 1; }

/* bubble: text only */
.bubble { max-width: 250px; }

/* ---------------------------------------------------------------- impact ledger */
.ledger { display: grid; gap: 26px; }

.ledger__group {
    display: grid;
    gap: 18px;
    padding-top: 26px;
    border-top: 2px dashed var(--ember-line);
}
.ledger__group:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 1000px) {
    .ledger__group { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
}

.ledger__hat { display: flex; align-items: center; gap: 14px; }
@media (min-width: 1000px) { .ledger__hat { position: sticky; top: calc(var(--header-h) + 24px); } }

.ledger__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid #17120d;
    border-radius: 18px;
    box-shadow: 3px 3px 0 #000;
}
.ledger__icon .ico { --ico-size: 46px; }
.ledger__as { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ledger__hat h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); letter-spacing: -.02em; line-height: 1.15; }

.ledger__items {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.result {
    padding: 18px 18px 16px;
    color: #17120d;
    --line-strong: #17120d;
    box-shadow: 4px 4px 0 #000;
}
.result b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    margin-bottom: 10px;
}
.result p { font-size: .88rem; line-height: 1.5; color: #4a3f36; }
.result strong { color: #17120d; }
.result--paper { background: var(--canvas-lowest); }
.result--mustard { background: var(--mustard); }
.result--peach { background: var(--peach-tint); }
.result--lilac { background: var(--lilac-tint); }
.result--teal { background: var(--teal); }

/* ---------------------------------------------------------------- verticals */
.verticals { display: grid; gap: 20px; }
@media (min-width: 900px) { .verticals { grid-template-columns: 1.3fr 1fr; } }
.verticals__col { padding: 24px; background: var(--canvas-lowest); }
.verticals__k { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 16px; }
.verticals .chip { font-size: .88rem; padding: 8px 16px; }

/* ---------------------------------------------------------------- hats: titles in the art panel */
.hats--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.hat__art { align-items: flex-end; min-height: 170px; gap: 12px; }
.hat__art .hat__tag { display: block; color: #17120d; opacity: .7; margin-bottom: 4px; }
.hat__art h3 { color: #17120d; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.12; }
.hat__art .ico { --ico-size: 92px; align-self: flex-start; }

/* ---------------------------------------------------------------- AI cards */
.shipped--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shipped__card .text-link { margin-top: auto; padding-top: 8px; color: var(--accent-text); align-self: flex-start; }

/* ---------------------------------------------------------------- compact work cards */
.wgrid {
    display: grid;
    gap: clamp(22px, 2.6vw, 36px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.wgrid--one { grid-template-columns: minmax(0, 520px); }

.wcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--canvas-lowest);
    color: #17120d;
    text-decoration: none;
}

.wcard__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 2px solid #17120d;
    background: var(--canvas-high);
}
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wcard:hover .wcard__media img,
.wcard:hover .wcard__cover .ico { transform: scale(1.05); }

.wcard__cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-image: radial-gradient(rgb(23 18 13 / .16) 1.5px, transparent 1.8px);
    background-size: 14px 14px;
}
.wcard__cover .ico { transition: transform 1.2s var(--ease); }
.wcard__cover--lilac { background-color: var(--lilac-tint); }
.wcard__cover--mint { background-color: var(--teal-tint); }
.wcard__cover--peach { background-color: var(--peach-tint); }

.wcard__ai {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border: 2px solid #17120d;
    border-radius: 999px;
    background: #17120d;
    color: var(--canvas);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 18px; }
.wcard__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.wcard__blurb { font-size: .9rem; color: #4a3f36; line-height: 1.5; }
.wcard__nums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.wcard__nums span { font-size: .8rem; font-weight: 600; color: #4a3f36; }
.wcard__nums b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.03em; color: var(--accent-text); margin-right: 5px; }
.wcard__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.wcard:hover .wcard__go svg { transform: translateX(4px); }
.wcard__go svg { transition: transform .25s var(--ease); }

/* mini cards (process page) */
.mgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

.mcard {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    overflow: hidden;
    background: var(--canvas-lowest);
    color: #17120d;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 4px 4px 0 #17120d;
}
.mcard__media { position: relative; border-right: 2px solid #17120d; background: var(--canvas-high); min-height: 96px; }
.mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard__media .wcard__cover .ico { --ico-size: 56px !important; }
.mcard__media .wcard__ai { top: 6px; left: 6px; padding: 2px 6px; font-size: .58rem; }
.mcard__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; }
.mcard__title { font-family: var(--font-display); font-weight: 800; font-size: .98rem; line-height: 1.2; letter-spacing: -.01em; }
.mcard__num { font-size: .78rem; font-weight: 600; color: #4a3f36; }
.mcard__num b { color: var(--accent-text); font-family: var(--font-display); }

/* ---------------------------------------------------------------- statline, creds */
@media (min-width: 760px) { .statline--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cred > div > span:not(.cred__type) { display: block; }
.cred__type {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .66rem !important;
    font-weight: 800 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #17120d !important;
}
.cred__type--award { background: var(--mustard); }
.cred__type--rec { background: var(--teal-tint); }
.cred__type--cert { background: var(--lilac-tint); }

/* ---------------------------------------------------------------- about timeline */
.tl { max-width: 1120px; margin-inline: auto; gap: 34px; }
.tl::before { left: 50%; translate: -1px 0; border-left: 3px dashed #17120d; opacity: .25; }

.tl__item { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 0; align-items: start; }
.tl__year { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; font-size: 1.05rem; padding: 8px 14px; }
.tl__card { grid-row: 1; grid-column: 1; position: relative; padding: 24px; }
.tl__item:nth-child(even) .tl__card { grid-column: 3; }

.tl__card::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 26px;
    border-top: 3px dashed #17120d;
    opacity: .3;
}
.tl__item:nth-child(odd) .tl__card::after { right: -30px; }
.tl__item:nth-child(even) .tl__card::after { left: -30px; }

.tl__hat { margin-bottom: 12px; font-size: .74rem; }
.tl__card h3 { margin-bottom: 8px; }

@media (max-width: 860px) {
    .tl::before { left: 28px; }
    .tl__item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
    .tl__year { grid-column: 1; font-size: .78rem; padding: 5px 7px; }
    .tl__card,
    .tl__item:nth-child(even) .tl__card { grid-column: 2; }
    .tl__card::after { display: none; }
}

/* captioned photo slider */
.slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 210px);
    gap: 12px;
    margin: 18px -24px -24px;
    padding: 4px 24px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.slider figure { margin: 0; scroll-snap-align: start; }
.slider button {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid #17120d;
    border-radius: 12px;
    overflow: hidden;
    background: var(--canvas-high);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.slider button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #17120d; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider figcaption { margin-top: 8px; font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--ink-muted); }

.lightbox__count { max-width: 80vw; text-align: center; }

/* ---------------------------------------------------------------- process timeline */
.ptl { list-style: none; position: relative; display: grid; gap: 26px; max-width: 900px; margin-inline: auto; }
.ptl::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; border-left: 3px dashed var(--night-text); opacity: .35; }

.pstep { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
.pstep__n {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #17120d;
    background: var(--pc);
}
.pstep--mustard { --pc: var(--mustard); --pt: var(--mustard-tint); }
.pstep--teal { --pc: var(--teal); --pt: var(--teal-tint); }
.pstep--coral { --pc: var(--peach); --pt: var(--peach-tint); }
.pstep--lilac { --pc: var(--lilac-tint); --pt: var(--lilac-soft); }

.pstep__card { padding: 22px; background: var(--canvas-lowest); color: #17120d; --line-strong: #17120d; box-shadow: 5px 5px 0 #000; }
.pstep__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pstep__icon { display: grid; place-items: center; width: 72px; height: 72px; border: 2px solid #17120d; border-radius: 18px; background: var(--pt); }
.pstep__card h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 8px; color: #17120d; }
.pstep__card > p { font-size: .95rem; color: #4a3f36; margin-bottom: 12px; }
.pstep__ai { margin: 0 !important; padding: 10px 12px; border-radius: 12px; background: var(--lilac-soft); border: 1.5px dashed var(--lilac-deep); font-size: .86rem !important; color: #17120d !important; }

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 2px solid #17120d;
    border-radius: 999px;
    background: var(--lilac-deep);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    box-shadow: 2px 2px 0 #17120d;
}

/* ---------------------------------------------------------------- contact */
.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.contact__ways { display: grid; gap: 14px; max-width: 420px; }
.way {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--canvas-lowest);
    color: #17120d;
    text-decoration: none;
}
.way span { display: flex; flex-direction: column; font-size: .88rem; color: #4a3f36; }
.way b { font-family: var(--font-display); font-size: 1.15rem; color: #17120d; }
.way--primary { background: var(--accent); }
.way--primary span, .way--primary b { color: var(--on-accent); }
.way-mini { display: flex; gap: 10px; padding-left: 4px; font-size: .88rem; font-weight: 600; color: var(--ink-faint); }
.way-mini a { color: var(--ink-muted); }

.cform { padding: clamp(22px, 3vw, 36px); background: var(--canvas-lowest); }
.cform__fields { display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 700; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-faint); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #17120d;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    color: #17120d;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); }
.cform .btn { justify-self: start; }
.cform__note { font-size: .8rem; color: var(--ink-faint); }
.cform__sent { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 12px; }
.cform__sent p { color: var(--ink-muted); }

/* ---------------------------------------------------------------- case study: top nav + wide images */
.cs-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: color-mix(in oklab, var(--canvas) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-block: 2px solid #17120d;
}
.cs-nav__inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-block: 10px;
    scrollbar-width: none;
}
.cs-nav__inner::-webkit-scrollbar { display: none; }
.cs-nav a {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink-muted);
    white-space: nowrap;
}
.cs-nav a:hover { background: var(--canvas-high); color: var(--ink); }
.cs-nav a.is-active { background: var(--mustard); color: #17120d; box-shadow: inset 0 0 0 2px #17120d; }

[id] { scroll-margin-top: calc(var(--header-h) + 72px); }

.cs-body { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.cs-body .prose { max-width: 780px; margin-inline: auto; }

/* images and galleries break out of the text column */
.prose > a[data-lightbox],
.prose > .row,
.prose > iframe,
.prose > .figure,
.prose > .mock {
    width: min(1240px, 100vw - 2 * var(--gutter));
    max-width: none;
    margin-left: 50%;
    translate: -50% 0;
}
.prose > a[data-lightbox],
.prose > .row { margin-block: 28px 36px; }
.prose > iframe { height: min(70vh, 720px); }

.cs-shot--cover { display: grid; place-items: center; min-height: clamp(260px, 32vw, 420px); }
.cs-shot--lilac { background-color: var(--lilac-tint); }
.cs-shot--mint { background-color: var(--teal-tint); }
.cs-shot--peach { background-color: var(--peach-tint); }
.cs-shot--cover .ico { --ico-size: clamp(140px, 18vw, 240px) !important; }

/* pipeline diagram */
.figure--flow { padding: 26px; background: var(--canvas-high); cursor: default; margin-block: 28px 36px; }
.figure--flow figcaption { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--ink-muted); text-align: center; }
.flow { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: flow; }
.flow__step {
    position: relative;
    counter-increment: flow;
    padding: 14px 14px 12px;
    border: 2px solid #17120d;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #17120d;
    background: var(--canvas-lowest);
    padding-left: 14px !important;
}
.flow__step::before { content: counter(flow, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: .8rem; opacity: .55; }
.flow__step b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #17120d; }
.flow__step span { font-size: .8rem; color: #4a3f36; }
.flow__step--lilac { background: var(--lilac-tint); }
.flow__step--mustard { background: var(--mustard-tint); }
.flow__step--teal { background: var(--teal-tint); }
.flow__step--peach { background: var(--peach-tint); }
.flow__step--coral { background: var(--accent-soft); }
.prose .flow__step::after { display: none; }

/* mock UI table */
.mock { margin-block: 28px 36px; overflow: hidden; background: #fff; }
.mock__bar, .mock__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: .88rem; }
.mock__bar { background: #17120d; color: var(--canvas); }
.mock__foot { border-top: 2px solid #17120d; background: var(--canvas-high); align-items: center; }
.mock table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mock th, .mock td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.mock th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.mock { overflow-x: auto; }
.tag-ok, .tag-warn, .tag-stop { padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tag-ok { background: var(--teal-tint); }
.tag-warn { background: var(--mustard-tint); }
.tag-stop { background: var(--accent-soft); color: var(--accent-text); }
.creds { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.tl__card { overflow: hidden; }
.tl__card::after { display: none; }
@media (min-width: 861px) {
    .tl { gap: 0; }
    .tl__item + .tl__item { margin-top: -56px; }
    .tl__item:nth-child(odd) .tl__card { margin-right: 18px; }
    .tl__item:nth-child(even) .tl__card { margin-left: 18px; }
}
.tl__year { position: relative; top: auto; }
.slider { margin: 18px 0 0; padding: 4px 4px 8px; }
.prose .flow__step::before {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- round 4 */

/* hero "trained at": bigger logos with a tooltip */
.creds-row img { height: 56px; }
.tip { position: relative; display: inline-flex; border-radius: 8px; }
.tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    translate: -50% 4px;
    width: max-content;
    max-width: 240px;
    padding: 7px 11px;
    border-radius: 10px;
    background: #17120d;
    color: var(--canvas);
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, translate .2s var(--ease);
    z-index: 5;
}
.tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    translate: -50% 4px;
    border: 6px solid transparent;
    border-top-color: #17120d;
    border-bottom: 0;
    opacity: 0;
    transition: opacity .2s ease, translate .2s var(--ease);
}
.tip:hover::after, .tip:focus-visible::after,
.tip:hover::before, .tip:focus-visible::before { opacity: 1; translate: -50% 0; }
.tip:hover img, .tip:focus-visible img { filter: none; opacity: 1; }

/* impact stats: one consistent format */
.result { display: flex; flex-direction: column; }
.result b {
    font-size: clamp(1.8rem, 1.5rem + .9vw, 2.3rem);
    white-space: nowrap;
    min-height: 1em;
}

/* about timeline: left-aligned again */
.tl { max-width: 1000px; gap: 28px; }
.tl::before { left: 43px; translate: 0 0; border-left: 2px dashed #17120d; opacity: .3; }
.tl__item,
.tl__item + .tl__item { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; margin-top: 0; }
.tl__year { grid-column: 1; }
.tl__card,
.tl__item:nth-child(odd) .tl__card,
.tl__item:nth-child(even) .tl__card { grid-column: 2; margin: 0; }
@media (max-width: 860px) {
    .tl::before { left: 31px; }
    .tl__item,
    .tl__item + .tl__item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
}
.slider figcaption a { color: inherit; text-decoration: underline; }

/* process: AI note box carries the badge */
.pstep__ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pstep__ai .ai-badge { box-shadow: none; padding: 3px 9px; font-size: .7rem; }
.ledger .result { background: var(--canvas-lowest); border-top-width: 8px; border-top-color: var(--gc, var(--mustard)); }

/* ---------------------------------------------------------------- scroll performance
   Backdrop blur on sticky bars re-blurs everything that scrolls beneath them
   on every frame, which shows up as header jitter on image-heavy pages.
   Solid fills on their own compositor layer instead.                       */
.site-header,
.cs-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateZ(0);
    will-change: transform;
    contain: layout paint;
}
.site-header { background: var(--canvas); }
.cs-nav { background: var(--canvas); }

/* the nav panel on phones sits outside the header box, so paint containment can't clip it */
@media (max-width: 960px) {
    .site-header { contain: none; }
}

/* case studies: every image at full container width, stacked, never as thumbnails */
.prose > .row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 28px;
}
.prose > .row > [class*="col-"] { width: 100%; }
.prose .row a[data-lightbox] { margin: 0; }
.prose a[data-lightbox] img { width: 100%; height: auto; display: block; }
.prose > * > .row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 28px;
    width: min(1240px, 100vw - 2 * var(--gutter));
    max-width: none;
    margin: 28px 0 36px 50%;
    translate: -50% 0;
}

/* captioned case-study figures: full container width, caption underneath */
.cs-fig { margin: 0; }
.prose > .cs-fig,
.prose > * > .cs-fig {
    width: min(1240px, 100vw - 2 * var(--gutter));
    max-width: none;
    margin: 28px 0 40px 50%;
    translate: -50% 0;
}
.row > [class*="col-"] > .cs-fig,
.row > .cs-fig { width: 100%; margin: 0; translate: none; }
.cs-fig > a[data-lightbox] { margin: 0 !important; }
.cs-fig figcaption {
    max-width: 780px;
    margin: 12px auto 0;
    padding-left: 14px;
    border-left: 3px solid var(--mustard);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink-muted);
}
.cs-fig--mock .mock { margin: 0; }
.prose > .cs-fig--mock { width: min(1240px, 100vw - 2 * var(--gutter)); }

/* side-by-side gallery (QIB personas) */
.prose .row.row--grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px; }
.row--grid3 .cs-fig figcaption { font-size: .82rem; }
@media (max-width: 720px) {
    .prose .row.row--grid3 { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------------- round 5 */
/* hero "trained at": floating sticker overlapping the bottom of the portrait */
.collage:has(.creds-box--float) { margin-bottom: 34px; }
.creds-box--float {
    position: absolute;
    z-index: 3;
    left: -34px;
    bottom: -30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 12px;
    background: var(--canvas-lowest);
    border: 2px solid #17120d;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #17120d;
    rotate: -2deg;
}
.creds-box--float .creds-row__label { margin: 0; font-size: .66rem; }
.creds-box--float .creds-row { margin-top: 0; gap: 16px; flex-wrap: nowrap; }
.creds-box--float .tip { flex-shrink: 0; }
.creds-box--float .creds-row img { height: 50px; width: auto; max-width: none; filter: none; opacity: 1; }
@media (max-width: 1023px) {
    .creds-box--float { left: 0; }
}
@media (max-width: 520px) {
    .creds-box--float { left: 50%; translate: -50% 0; bottom: -40px; padding: 10px 12px; }
    .creds-box--float .creds-row { gap: 6px; }
    .creds-box--float .creds-row img { height: 42px; }
}

/* ---------------------------------------------------------------- round 6 */
/* figure captions: aligned to the image's left edge, numbered */
.prose { counter-reset: fig; }
.cs-fig figcaption {
    max-width: none;
    margin: 14px 0 0;
    text-align: left;
}
.cs-fig figcaption::before {
    counter-increment: fig;
    content: "Fig. " counter(fig) ": ";
    color: var(--ink);
    font-weight: 800;
}
.vibe-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 9px;
    border-radius: 999px;
    background: #fff4c7;
    border: 1.5px solid #17120d;
    color: #17120d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    vertical-align: 1px;
    white-space: nowrap;
}
.cs-shot__cap { margin: 14px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink-muted); }

/* two-column image pairs */
.prose .row.row--grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px; }
@media (max-width: 720px) { .prose .row.row--grid2 { grid-template-columns: 1fr !important; } }

/* year on work cards */
.wcard__year {
    align-self: flex-start;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: 8px;
    width: max-content;
}

/* password-protected process */
.cs-nav a.is-locked { opacity: .55; }
.cs-nav a.is-locked::after {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 6px;
    vertical-align: -1px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lock {
    position: relative;
    margin: 48px 0 56px;
    min-height: 620px;
    display: grid;
    place-items: center;
    scroll-margin-top: 140px;
}
.lock__ghost {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
    filter: blur(7px);
    opacity: .7;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%);
            mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%);
}
.lock__ghost i { display: block; height: 14px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.lock__ghost i:nth-child(5n+2) { width: 92%; }
.lock__ghost i:nth-child(5n+3) { width: 78%; }
.lock__ghost i.lk-h { width: 46%; height: 30px; margin-top: 18px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.lock__ghost i.lk-s { width: 64%; }
.lock__ghost i.lk-img { height: 170px; border-radius: 18px; background: linear-gradient(120deg, #c9c3f3, #f5d68b 55%, #f6b9a5); }
.lock__card {
    position: relative;
    width: min(560px, 100%);
    padding: 36px 34px 28px;
    border-radius: 24px;
    background: var(--canvas-lowest);
    text-align: center;
}
.lock__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--mustard);
    border: 2px solid #17120d;
    box-shadow: 3px 3px 0 #17120d;
    color: #17120d;
}
.lock__card .eyebrow { display: block; margin-bottom: 8px; }
.lock__card h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; }
.lock__card > p { margin: 0 auto 20px; max-width: 46ch; color: var(--ink-muted); font-size: .95rem; }
.lock__form { display: flex; gap: 10px; }
.lock__form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 2px solid #17120d;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: #17120d;
}
.lock__form input:focus { outline: 3px solid var(--mustard); outline-offset: 2px; }
.lock__form .btn { height: 52px; }
.lock__msg { min-height: 1.4em; margin: 12px 0 4px !important; font-size: .85rem !important; font-weight: 600; }
.lock__msg.is-bad { color: #c2353b !important; }
.lock__alt { margin: 4px 0 0 !important; font-size: .88rem !important; color: var(--ink-muted); }
.lock__alt a { font-weight: 700; color: var(--ink); }
.lock__ok { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #e3f6ea; border: 1.5px solid #17120d; font-size: .82rem; font-weight: 700; }
@media (max-width: 520px) {
    .lock__card { padding: 28px 18px 22px; }
    .lock__form { flex-direction: column; }
}
.prose .lock__card h2 { border-top: 0; padding-top: 0; margin: 0 0 12px; letter-spacing: -.02em; }
.lock__card .eyebrow { display: inline-flex; margin-bottom: 10px; }
.lock__card .eyebrow::before { display: none; }
.lock__icon { display: grid; margin: 0 auto 14px; }
.lock__card .eyebrow { display: flex; justify-content: center; }

/* timelines: a knob that rides the line with the scroll, plus a progress trail */
.tl-knob, .tl-trail { position: absolute; pointer-events: none; z-index: 0; }
.tl-trail { width: 3px; border-radius: 3px; background: var(--knob, #C7343F); opacity: .85; translate: -1px 0; }
.tl-knob {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    background: var(--knob, #C7343F);
    border: 2.5px solid #17120d;
    box-shadow: 2px 2px 0 #17120d, 0 0 0 6px color-mix(in srgb, var(--knob, #C7343F) 22%, transparent);
    will-change: top;
}
.tl__year, .pstep__n, .pstep > :first-child { position: relative; z-index: 1; }
.ptl { --knob: var(--mustard); }
@media (prefers-reduced-motion: reduce) { .tl-knob, .tl-trail { display: none; } }

/* résumé-style highlighter */
mark.hl {
    background: linear-gradient(transparent 50%, #ffe58f 50%, #ffe58f 94%, transparent 94%);
    color: inherit;
    font-weight: 700;
    padding: 0 .1em;
}
.hero .chips .chip { font-size: .92rem; padding: 7px 16px; }
@media (max-width: 520px) { .hero .chips .chip { font-size: .84rem; padding: 6px 13px; } }

/* locked case studies: lock badge on the thumbnail */
.wcard__lock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mustard);
    color: #17120d;
    border: 2px solid #17120d;
    box-shadow: 2px 2px 0 #17120d;
}
.wcard__lock svg { width: 17px; height: 17px; }
.mcard__media .wcard__lock { top: 6px; right: 6px; width: 24px; height: 24px; border-width: 1.5px; box-shadow: 1.5px 1.5px 0 #17120d; }
.mcard__media .wcard__lock svg { width: 12px; height: 12px; }
.shipped__card { position: relative; }
.shipped__lock { top: 18px; right: 18px; }

/* WhatsApp marks */
.way__wa { display: grid; place-items: center; width: 34px; height: 34px; color: #1fa855; flex: none; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.wa-link svg { width: 15px; height: 15px; }

/* mini cards: badge top-left, lock bottom-right so they never collide */
.mcard { grid-template-columns: 128px minmax(0, 1fr); }
.mcard__media { min-height: 120px; }
.mcard__media img { object-position: left top; }
.mcard__media .wcard__ai { top: 8px; left: 8px; padding: 2px 7px; font-size: .56rem; letter-spacing: .06em; }
.mcard__media .wcard__lock { top: auto; right: 8px; bottom: 8px; }
.mcard__body { gap: 4px; padding: 14px 16px; }
.mcard__body .wcard__year { margin-bottom: 4px; font-size: .64rem; padding: 1px 8px; }

/* contact: email primary across the row, three secondary ways beneath */
.contact__ways { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; gap: 12px; }
.contact__ways .way--primary { grid-column: 1 / -1; }
.way--sec { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.way--sec span { font-size: .8rem; }
.way--sec b { font-size: 1rem; }
.way__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid #17120d; flex: none; }
.way__ic svg { width: 22px; height: 22px; }
.way__ic--wa { background: #dcf8e6; color: #1a9e4f; }
.way__ic--call { background: var(--mustard); color: #17120d; }
.way__ic--li { background: #e3ecfb; color: #0a66c2; }
@media (max-width: 480px) {
    .contact__ways { grid-template-columns: 1fr; }
    .way--sec { flex-direction: row; align-items: center; }
}
.way .way__ic { display: grid; place-items: center; flex-direction: initial; padding: 0; }
.way .way__ic svg { display: block; width: 22px; height: 22px; margin: 0; }
.way .way__ic--wa { color: #1a9e4f; }
.way .way__ic--call { color: #17120d; }
.way .way__ic--li { color: #0a66c2; }
.way .way__ic--li svg { width: 19px; height: 19px; }

/* split section heads: a lone button sits on the right */
@media (min-width: 900px) {
    .sec-head--split > div:last-child:has(> .btn:only-child) { justify-self: end; }
}

/* timeline knob always passes behind the year badges and cards */
.tl > :not(.tl-knob):not(.tl-trail),
.ptl > :not(.tl-knob):not(.tl-trail) { position: relative; z-index: 1; }
.tl-knob, .tl-trail { z-index: 0 !important; }

/* floating WhatsApp button, on every page */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 250;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border: 2px solid #17120d;
    box-shadow: 3px 3px 0 #17120d;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #17120d; }
.wa-float:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.wa-float__tip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    translate: 6px -50%;
    padding: 6px 12px;
    border-radius: 10px;
    background: #17120d;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, translate .2s ease;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; translate: 0 -50%; }
@media (max-width: 600px) {
    .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .wa-float__tip { display: none; }
}
@media print { .wa-float { display: none; } }


/* about hero: bubble sits on the shoulder, clear of the face */
.page-hero .bubble { top: 36%; right: -44px; max-width: 230px; }
@media (max-width: 1023px) { .page-hero .bubble { right: 0; } }
@media (max-width: 520px) { .page-hero .bubble { top: 34%; right: -4px; max-width: 170px; } }

/* about hero: keep the full-length portrait inside one screen */
@media (min-width: 900px) {
    .page-hero .collage { width: fit-content; max-width: none; padding: 30px 26px 8px; }
    .page-hero .collage__cutout { width: auto; max-width: none; height: min(600px, calc(100vh - 230px)); min-height: 420px; }
}

.cform__error { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fdecec; border: 1.5px solid #c2353b; color: #8f1d22; font-size: .9rem; font-weight: 600; }
.cform__error a { color: inherit; text-decoration: underline; }
.cform button[disabled] { opacity: .7; cursor: progress; }
.cform__loader { width: min(260px, 80%); height: 8px; margin: 22px auto 0; border-radius: 99px; background: rgb(23 18 13 / .1); border: 1.5px solid #17120d; overflow: hidden; }
.cform__loader span { display: block; height: 100%; width: 0; background: var(--accent); }
.cform__loader.is-run span { animation: cform-load 5s linear forwards; }
@keyframes cform-load { to { width: 100%; } }
