/*
 * Public site — redesign 2.
 * Bold grotesque headlines (Bricolage Grotesque) with key words picked out in sage, Manrope body text,
 * image-led sections, browser-framed case studies. Deliberately avoids common AI-template tells:
 * no italic-serif accents, section numbering, frosted glass, glows or hover-zooming images.
 * Light/dark themes share tokens; dark follows the system unless the visitor picks one.
 */

@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
    --paper: #f6fff8;
    --paper-2: #eaf4f4;
    --section-alt: #e4efe9;
    --card: #ffffff;
    --ink: #1f2d27;
    --ink-2: #17221e;
    --ink-soft: #4f625a;
    --line: #d4e5df;
    --sage-dark: #4a6b5d;
    --sage: #6b9080;
    --sage-2: #a4c3b2;
    --sage-3: #cce3de;
    --accent: #4a6b5d;
    --accent-hover: #3d594d;
    --on-accent: #ffffff;
    --em: #4a6b5d;
    --link: #3d594d;
    --band: #1f2d27;
    --on-band: #eaf4f4;
    --band-soft: #a9c4b8;
    --error: #b3261e;
    --shadow: 0 1px 2px rgba(31, 45, 39, .05), 0 14px 34px -14px rgba(31, 45, 39, .18);
    --shadow-lg: 0 40px 80px -30px rgba(31, 45, 39, .35);
    --glow: rgba(204, 227, 222, .75);
    --logo-f: #1f2d27; --logo-up: #6b9080; --logo-low: #4a6b5d; --logo-b: #6b9080;
    --header-bg: rgba(255, 255, 255, .78);

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-serif: var(--font-display);
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

    --radius: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --section: clamp(5rem, 11vw, 9rem);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #111916; --paper-2: #16201c; --section-alt: #182822; --logo-f: #f6fff8; --logo-up: #a4c3b2; --logo-low: #6b9080; --logo-b: #a4c3b2; --card: #1b2722; --ink: #eaf4f4; --ink-soft: #a9bfb5; --line: #2a3b34;
        --accent: #a4c3b2; --accent-hover: #cce3de; --on-accent: #111916; --em: #a4c3b2; --link: #cce3de;
        --band: #0b110f; --error: #ffb4ab; --glow: rgba(74, 107, 93, .28); --header-bg: rgba(22, 32, 28, .75);
        --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -16px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #111916; --paper-2: #16201c; --section-alt: #182822; --logo-f: #f6fff8; --logo-up: #a4c3b2; --logo-low: #6b9080; --logo-b: #a4c3b2; --card: #1b2722; --ink: #eaf4f4; --ink-soft: #a9bfb5; --line: #2a3b34;
    --accent: #a4c3b2; --accent-hover: #cce3de; --on-accent: #111916; --em: #a4c3b2; --link: #cce3de;
    --band: #0b110f; --error: #ffb4ab; --glow: rgba(74, 107, 93, .28); --header-bg: rgba(22, 32, 28, .75);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -16px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; line-height: 1.02; letter-spacing: -.035em; color: var(--ink); }
h1 em, h2 em, h3 em, .footer-cta em, .not-found-code em {
    font-style: normal;
    color: var(--em);
}
::selection { background: var(--sage-3); color: #1f2d27; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-soft); }

/* ── Buttons & small parts ──────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px;
    font: 700 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right, .btn:hover i.bi-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -12px rgba(74, 107, 93, .8); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.icon-button {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink);
    font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.icon-button:hover { border-color: var(--ink); color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--sage-2); padding-bottom: .15rem; transition: border-color .2s; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); color: var(--ink); }
.link-arrow:hover i { transform: translateX(4px); }

.social-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.social-list a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: all .2s var(--ease); }
.social-list li a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tags li { padding: .35rem .75rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font: 600 .78rem/1.2 var(--font-body); color: var(--ink-soft); }

.eyebrow { display: flex; align-items: center; gap: .75rem; font: 500 .78rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.2rem; }
.eyebrow span { display: inline-flex; align-items: center; gap: .75rem; color: var(--sage); font-weight: 700; }
.eyebrow span::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .6; }
.eyebrow:has(> span)::after { content: ""; width: 2.5rem; height: 1px; background: var(--sage); opacity: .6; }

/* Browser frame used for real project screenshots */
.browser { display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-decoration: none; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-2); }
.browser-bar i:nth-child(1) { background: #e8a598; }
.browser-bar i:nth-child(2) { background: #e8cf8f; }
.browser-url { margin-left: 10px; flex: 1; max-width: 320px; padding: 4px 12px; border-radius: 999px; background: var(--card); color: var(--ink-soft); font: 500 .72rem/1.4 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 1408 / 800; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }

/* ── Header (floating bar) ─────────────────────────────────────── */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.header-bar {
    pointer-events: auto;
    max-width: 1280px; margin: 0 auto; height: 64px;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0 .6rem 0 1rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled .header-bar { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-logo-light { display: none; }
    :root:not([data-theme="light"]) .brand-logo-dark { display: block; }
}
.logo-mark { display: block; width: 100%; height: 100%; overflow: visible; }
.lg-f { fill: var(--logo-f); } .lg-up { stroke: var(--logo-up); } .lg-low { stroke: var(--logo-low); } .lg-b { stroke: var(--logo-b); } .lg-dot { fill: var(--logo-b); }
.footer-logo { display: block; width: 84px; height: 84px; margin-bottom: 1.1rem; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; }
.site-nav ul a { display: block; padding: .5rem .9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background-color .2s; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background: var(--paper-2); }
.header-tools { display: flex; align-items: center; gap: .45rem; }
.nav-cta { padding: .75rem 1.15rem; }
.nav-cta-mobile { display: none; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-light { display: none; }
    :root:not([data-theme="light"]) .theme-icon-dark { display: inline; }
}
.menu-button { display: none; }
.menu-lines { width: 18px; height: 12px; position: relative; display: block; }
.menu-lines span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-lines span:first-child { top: 1px; }
.menu-lines span:last-child { top: 9px; }
.menu-open .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .menu-button { display: inline-grid; }
    .nav-cta { display: none; }
    .site-nav {
        position: fixed; inset: 92px var(--gutter) auto; z-index: 49;
        padding: 1.2rem; border-radius: var(--radius);
        background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .3s, transform .3s var(--ease), visibility .3s;
        pointer-events: auto;
    }
    .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .site-nav ul { flex-direction: column; gap: 0; margin-bottom: 1rem; }
    .site-nav ul a { font: 600 1.6rem/1.2 var(--font-display); padding: .7rem .8rem; border-radius: var(--radius-sm); }
    .nav-cta-mobile { display: flex; width: 100%; }
}

/* ── Motion ─────────────────────────────────────────────────────── */
.load-in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .section-head[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .section-head[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: 9.5rem 0 5.5rem; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 35%, var(--section-alt) 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70rem; height: 50rem; right: -24rem; top: -18rem; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.6rem; color: var(--ink-soft); }
.hero-hello strong { color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--ink); }
.status-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #5fc48f; }
.status-icon { color: var(--sage); font-size: .95rem; line-height: 1; }
.hero-title { font-size: clamp(2.9rem, 6.6vw, 5.9rem); font-weight: 680; letter-spacing: -.05em; line-height: .96; margin-bottom: 1.4rem; }
.hero-title em { letter-spacing: -.02em; }
.hero-typed { display: flex; align-items: center; gap: .55rem; font: 600 clamp(1.05rem, 2vw, 1.3rem)/1.3 var(--font-body); color: var(--sage-dark); min-height: 1.4em; margin-bottom: 1.3rem; }
:root[data-theme="dark"] .hero-typed { color: var(--sage-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-typed { color: var(--sage-2); } }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-bio { max-width: 34rem; font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof strong { font: 700 1.15rem/1 var(--font-display); color: var(--ink); }
.hero-proof i { color: var(--sage); }

.hero-visual { position: relative; padding: 0 0 4rem 3.5rem; }
.hero-photo { margin: 0; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--sage-3), var(--sage-2)); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback { width: 100%; height: 100%; display: grid; place-items: center; font: 700 7rem/1 var(--font-display); color: var(--sage-dark); }
.hero-browser { position: absolute; left: 0; bottom: 0; width: 78%; transform: rotate(-2.5deg); transition: transform .5s var(--ease); }

/* Full-photo hero: the hero photo fills the section behind white text. Remove the class
   "hero-full" in home/hero.php (or wrap these rules in a phone-only media query) to go back. */
.hero-bg { display: none; }
.hero-full { display: flex; align-items: center; min-height: min(100svh, 900px); padding: 9rem 0 5rem; background: #1f2d27; border-bottom: 0; color: #fff; }
.hero-full::before { display: none; }
.hero-full .hero-bg { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(1.25) contrast(1.08) brightness(1.08); animation: hero-bg-in 1.6s var(--ease) both; }
.hero-full .hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 40rem at 85% 15%, rgba(164, 195, 178, .32), transparent 60%), radial-gradient(40rem 30rem at 10% 100%, rgba(107, 144, 128, .35), transparent 70%), linear-gradient(90deg, rgba(20, 34, 28, .86) 0%, rgba(31, 52, 43, .58) 45%, rgba(74, 107, 93, .12) 100%); }
.hero-full .hero-hello { color: rgba(255, 255, 255, .78); }
.hero-full .hero-hello strong, .hero-full .hero-title { color: #fff; }
.hero-full .hero-title em { color: #b8f0d2; }
.hero-full .hero-typed { color: #b8f0d2; }
.hero-full .hero-bio { color: rgba(255, 255, 255, .8); }
.hero-full .status-pill { color: #fff; }
.hero-full .status-icon { color: #b8f0d2; }
.hero-full .btn-primary { background: #b8f0d2; color: #12201a; box-shadow: none; }
.hero-full .btn-primary:hover { background: #d6f7e6; color: #12201a; }
.hero-full .btn-ghost { background: rgba(11, 17, 15, .35); border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero-full .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.hero-full .hero-proof { color: rgba(255, 255, 255, .78); }
.hero-full .hero-proof strong { color: #fff; }
.hero-full .hero-proof i { color: #b8f0d2; }
.hero-full .hero-photo { display: none; }
.hero-full .hero-visual { padding: 0; }
.hero-full .hero-browser { position: relative; width: 100%; transform: rotate(-2deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12); border-color: transparent; }
.hero-full @keyframes hero-bg-in { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-full .hero-bg img { animation: none; } }
@media (max-width: 960px) {
    .hero-full .hero-visual { display: none; }
}
@media (max-width: 760px) {
    .hero-full { align-items: flex-end; min-height: 100svh; padding: 7rem 0 2.4rem; }
    .hero-full .hero-bg img { object-position: center 30%; }
    .hero-full .hero-bg::after { background: radial-gradient(30rem 24rem at 90% 10%, rgba(164, 195, 178, .35), transparent 65%), linear-gradient(180deg, rgba(20, 34, 28, .4) 0%, rgba(31, 52, 43, .15) 28%, rgba(25, 42, 35, .72) 58%, rgba(17, 29, 24, .93) 100%); }
    .hero-full .hero-hello, .hero-full .hero-typed, .hero-full .hero-bio { display: none; }
    .hero-full .hero-kicker { margin-bottom: 1.2rem; }
    .hero-full .hero-title { font-size: clamp(2.6rem, 11.5vw, 3.5rem); margin-bottom: 1.6rem; }
    .hero-full .hero-actions { flex-wrap: nowrap; gap: .6rem; margin-bottom: 1.6rem; }
    .hero-full .hero-actions .btn-lg { flex: 1 1 0; justify-content: center; padding: .95rem .9rem; font-size: .95rem; white-space: nowrap; }
    .hero-full .hero-actions .btn i { display: none; }
    .hero-full .hero-proof { gap: .4rem 1rem; font-size: .85rem; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ── Client marquee ─────────────────────────────────────────────── */
.marquee-band { background: var(--band); color: var(--on-band); padding: 2.2rem 0 2.4rem; overflow: hidden; }
.marquee-label { text-align: center; margin: 0 0 1.2rem; font: 500 .76rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--band-soft); }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; flex-shrink: 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee-track li { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font: 600 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.marquee-star { color: var(--sage-2); font-size: .6em; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── Sections ───────────────────────────────────────────────────── */
.section { position: relative; padding: var(--section) 0; }
.section-flush { padding-top: 1rem; }
.section-tint { background: var(--paper-2); }
/* A homepage section used as the top of its own page (/about, /pricing): clear the fixed header */
.section.is-page-top { padding-top: 10rem; border-top: 0; }
.contact.is-page-top { padding-top: 10rem; min-height: 100vh; display: flex; align-items: center; }

/* Homepage: visible sections alternate light / tinted automatically (hidden sections don't break the pattern),
   and each one starts on a hairline so it's always clear where one ends and the next begins. */
.home-flow > .section { background: var(--paper); border-top: 1px solid var(--line); }
.home-flow > .section:nth-child(even of .section) { background: var(--section-alt); }
.section-dark { background: var(--band); color: var(--on-band); }
.section-dark .section-title, .section-dark h3 { color: var(--on-band); }
.section-dark .section-title em { color: var(--sage-2); }
.section-dark .eyebrow { color: var(--band-soft); }
.section-dark .eyebrow span { color: var(--sage-2); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 50rem; }
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.section-title { font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
.sub-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.empty-note { padding: 3rem 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Case-study rows */
.case-list { display: grid; gap: clamp(4.5rem, 9vw, 8rem); }
.case-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.case-row.is-flipped .case-shot { order: 2; }
.case-placeholder { display: grid; place-items: center; aspect-ratio: 1408 / 800; font: 700 4rem/1 var(--font-display); color: var(--sage); background: linear-gradient(140deg, var(--sage-3), var(--paper-2)); }
.case-index { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.case-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 1rem; }
.case-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--sage-2), var(--sage-2)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.case-row:hover .case-title a { background-size: 100% 3px; }
.case-summary { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.3rem; }
.case-row .tags { margin-bottom: 1.8rem; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

/* Project cards (projects page, "more work") */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.is-wide { grid-column: span 2; }
.project-media { display: block; text-decoration: none; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg, var(--sage-3), var(--paper-2)); border-bottom: 1px solid var(--line); }
.project-media { position: relative; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.project-placeholder { width: 100%; height: 100%; min-height: 12rem; display: grid; place-items: center; font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--font-display); color: var(--sage); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem; font: 500 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .9rem; }
.project-meta .featured { color: var(--sage); }
.project-title { font-size: 1.45rem; margin-bottom: .6rem; }
.project-title a { color: var(--ink); text-decoration: none; }
.project-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-summary { color: var(--ink-soft); font-size: .97rem; }
.project-card .tags { margin: .3rem 0 1.2rem; }
.project-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--link); }
.project-more i { transition: transform .3s var(--ease); }
.project-card:hover .project-more i { transform: translateX(5px); }
.project-card.is-filtered-out { display: none; }

/* Services with photos */
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--sage-3), var(--sage-2)); }
.service-photo { position: absolute; inset: 0; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17, 25, 22, .35)); }
.service-icon { position: absolute; left: 1.5rem; bottom: -1.5rem; z-index: 1; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 1.35rem; box-shadow: var(--shadow); }
.service-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4rem, 8vw, 6rem); color: var(--sage-dark); opacity: .18; }
.service-body { padding: 2.3rem 1.4rem 1.6rem; }
.service-title { font-size: 1.28rem; margin-bottom: .6rem; }
.service-body p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Outcome bullets ("what the client gets") */
.service-points { list-style: none; display: grid; gap: .55rem; margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.service-points li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; font-size: .93rem; line-height: 1.4; }
.service-points i { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--sage-3); color: var(--sage-dark); font-size: .85rem; margin-top: .05rem; }

/* Lead service: one large tile above the grid */
.service-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 3rem; }
.service-lead-media { position: relative; min-height: 320px; background: linear-gradient(140deg, var(--sage-3), var(--sage-2)); }
.service-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-lead-media .service-icon { left: auto; right: -1.6rem; bottom: auto; top: 2rem; }
.service-lead-body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.service-lead-kicker { display: inline-flex; align-items: center; gap: .5rem; font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.service-lead-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.service-lead-text { color: var(--ink-soft); font-size: 1.05rem; margin: 0; max-width: 60ch; }
.service-points-lead { grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; margin-top: 1.5rem; padding-top: 1.5rem; }
.service-points-lead li { font-size: .98rem; }
.service-points-lead i { width: 1.6rem; height: 1.6rem; background: var(--accent); color: var(--on-accent); font-size: .95rem; margin-top: 0; }
.service-lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.service-also { font: 500 .78rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; }

/* "Not sure which one?" tile: last grid item, stretches to fill the empty slots on the final row */
.service-nudge { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.6rem 1.8rem; border-radius: var(--radius); border: 1.5px dashed var(--sage-2); background: color-mix(in srgb, var(--card) 55%, transparent); }
.service-nudge p { flex: 1 1 18rem; margin: 0; color: var(--ink-soft); }
.service-nudge strong { display: block; color: var(--ink); font: 700 1.25rem/1.25 var(--font-display); margin-bottom: .35rem; }
.service-nudge-icon { flex: 0 0 auto; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 16px; background: var(--sage-3); color: var(--sage-dark); font-size: 1.35rem; }
.service-grid > .service-nudge:nth-child(4n + 2) { grid-column: span 3; }
.service-grid > .service-nudge:nth-child(4n + 3) { grid-column: span 2; }
.service-grid > .service-nudge:nth-child(4n) { grid-column: span 1; flex-direction: column; align-items: flex-start; justify-content: center; }
.service-grid > .service-nudge:nth-child(4n) p { flex: 0 0 auto; }

/* Service cards that open their own page: the whole card is the link */
.service-card.has-link { position: relative; }
.service-title a, .service-lead-title a { color: inherit; text-decoration: none; }
.service-card.has-link .service-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service-card .service-body { display: flex; flex-direction: column; flex: 1; }
.service-more { margin-top: auto; padding-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--link); }
.service-more i { transition: transform .3s var(--ease); }
.service-card.has-link:hover .service-more i { transform: translateX(5px); }

/* Service page */
.service-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.service-hero-copy .back-link { display: flex; width: max-content; }
.service-hero-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.4rem; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 1.45rem; box-shadow: var(--shadow); }
.service-hero .page-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 14ch; }
.service-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 2rem; }
.service-hero-price { display: flex; flex-direction: column; gap: .2rem; margin: 0; font: 700 1.35rem/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.service-hero-price small { font: 500 .85rem/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-soft); }
.service-hero-price .service-quote-note { max-width: 22rem; margin-top: .25rem; }
.service-hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.service-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(1rem, 3vw, 2rem); }
.service-results { margin-bottom: 2.6rem; padding: 1.8rem 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.service-results-title { font-size: 1.4rem; margin-bottom: 0; }
.service-results .service-points-lead { margin-top: 1.2rem; }
.service-aside { position: sticky; top: 110px; display: grid; gap: 1rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.service-plan { transition: none; }
.service-plan:hover { transform: none; box-shadow: none; }
.service-plan-label { font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: .8rem; }
.service-plan .plan-name { font-size: 1.35rem; }
.service-plan .plan-price { margin-bottom: .5rem; }
.service-plan-intl { display: flex; gap: .45rem; align-items: baseline; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.service-plan .plan-features { margin-bottom: 1.4rem; }
.service-plan-all { align-self: center; margin-top: 1.1rem; font-size: .92rem; }
.service-aside-note { display: flex; gap: .5rem; align-items: baseline; margin: 0; padding: 0 .4rem; font-size: .88rem; color: var(--ink-soft); }
.project-grid.project-grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.project-grid.project-grid-single { grid-template-columns: 1fr; }
@media (min-width: 861px) {
    .project-grid-single .project-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .project-grid-single .project-media { aspect-ratio: 1280 / 727; border-bottom: 0; border-right: 1px solid var(--line); }
    .project-grid-single .project-media img { object-position: top left; }
    .project-grid-single .project-body { align-self: center; }
}
.service-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.service-links a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.service-links a:hover { border-color: var(--sage-2); transform: translateY(-2px); }
.service-links a > i:first-child { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--sage-3); color: var(--sage-dark); flex: 0 0 auto; }
.service-links a > span { flex: 1; }
.service-links a > i:last-child { color: var(--sage); }
@media (max-width: 900px) {
    .service-hero, .service-layout { grid-template-columns: 1fr; }
    .service-aside { position: static; }
}

/* About — editorial statement + bento grid */
.about-head { margin-bottom: clamp(2.4rem, 4vw, 3.2rem); }
.about-statement {
    position: relative;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);
    padding-left: clamp(2.6rem, 5vw, 4rem);
    font: 500 clamp(1.6rem, 3.3vw, 2.7rem)/1.22 var(--font-display);
    letter-spacing: -.03em;
    text-wrap: pretty;
    color: var(--ink);
}
.about-statement::before { content: "\201C"; position: absolute; left: 0; top: -.15em; font: 400 1.9em/1 var(--font-serif); color: var(--sage); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.bento-tile { position: relative; margin: 0; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-label { display: block; margin-bottom: 1rem; font: 500 .74rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.bento-photo { grid-column: 1 / span 6; grid-row: span 2; min-height: 480px; padding: 0; overflow: hidden; background: linear-gradient(160deg, var(--sage-3), var(--sage-2)); }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 700 7rem/1 var(--font-display); color: var(--sage-dark); }
.bento-caption { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; background: rgba(17, 25, 22, .85); color: #fff; font-weight: 600; font-size: .88rem; }
.bento-caption i { color: var(--sage-2); }
.bento-story { grid-column: 7 / span 6; }
.bento-story p { color: var(--ink-soft); font-size: 1.04rem; }
.bento-story p:last-child { margin-bottom: 0; }
.bento-stat { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: var(--sage-3); border-color: transparent; color: #1f2d27; }
.bento-stat:nth-of-type(odd) { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.bento-stat-value { font: 700 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--font-display); letter-spacing: -.06em; }
.bento-stat-label { font-size: .88rem; font-weight: 600; opacity: .8; }
.bento.has-2-stats .bento-stat { grid-column: span 3; }
.bento.has-1-stats .bento-stat { grid-column: span 6; }
.bento-points { grid-column: 1 / span 7; }
.bento-points ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; }
.bento-points li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; line-height: 1.4; }
.bento-points i { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .95rem; }
.bento-cta { grid-column: 8 / span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: var(--band); border-color: var(--band); color: var(--on-band); }
.bento-cta-title { margin: 0; font: 650 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.bento-cta-title em { font-style: normal; color: var(--sage-2); }
.bento-cta-text { margin: 0; color: var(--band-soft); }
.bento-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.bento-cta .btn-primary { background: var(--sage-2); color: #111916; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

/* Process — sticky intro + connected journey */
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.process-intro { position: sticky; top: 120px; }
.process-intro .section-title { margin-bottom: 1.2rem; }
.process-lead { max-width: 28rem; margin-bottom: 2rem; font-size: 1.12rem; color: var(--ink-soft); }
.journey { position: relative; list-style: none; display: grid; gap: 1.25rem; }
.journey::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dashed var(--sage-2); }
.journey-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; }
.journey-marker { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line); color: var(--sage-dark); font-size: 1.3rem; box-shadow: var(--shadow); transition: background-color .3s, color .3s, transform .4s var(--ease); }
:root[data-theme="dark"] .journey-marker { color: var(--sage-2); }
.journey-step:hover .journey-marker { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.journey-card { padding: 1.5rem 1.7rem; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.journey-step:hover .journey-card { transform: translateX(6px); box-shadow: var(--shadow); }
.journey-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.journey-number { font: 500 .74rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.journey-when { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.journey-title { font-size: 1.4rem; margin-bottom: .5rem; }
.journey-card p { margin: 0; color: var(--ink-soft); }

/* Skills (optional section) */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.skill-group { padding: 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.skill-group-name { font: 500 .78rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.2rem; }
.skill-list { list-style: none; display: grid; gap: .25rem; }
.skill { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: .3rem .75rem; padding: .5rem; }
.skill i { grid-row: span 2; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); color: var(--sage-dark); font-size: 1.25rem; }
.skill-name { font-weight: 700; }
.skill-meter { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.skill-meter span { display: block; height: 100%; width: var(--level); background: var(--sage); }

/* Experience */
.career { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.career.is-single { grid-template-columns: 1fr; }
/* Jobs only (no education column): roles sit side by side as cards across the full width */
.career.is-single .timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; }
.career.is-single .timeline::before { display: none; }
.career.is-single .timeline-item { padding: 2rem 2rem 1.8rem 4.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.career.is-single .timeline-item::before { left: 1.9rem; top: 2.3rem; }
.career.is-single .timeline-item .ticks { margin-bottom: 0; }
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 1.5px; background: linear-gradient(var(--sage-2), var(--line)); }
.timeline-item { position: relative; padding: 0 0 2.6rem 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sage); }
.timeline-item.is-current::before { background: var(--sage); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sage) 22%, transparent); }
.timeline-dates { font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.timeline-role { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: .35rem; }
.timeline-company { font-weight: 700; margin-bottom: .9rem; }
.timeline-company a { text-decoration: none; }
.ticks { list-style: none; display: grid; gap: .45rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1.5px; background: var(--sage); }
.education { position: sticky; top: 110px; padding: 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.education-title { display: flex; align-items: center; gap: .55rem; font-size: 1.35rem; margin-bottom: 1.4rem; }
.education-title i { color: var(--sage); }
.education-item + .education-item { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.education-item p { margin-bottom: .2rem; }
.education-degree { font-weight: 700; }
.education-notes { margin-top: .5rem; font-size: .93rem; color: var(--ink-soft); }

/* Pricing */
.plans { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.7rem 1.7rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.is-featured { background: var(--band); color: var(--on-band); border-color: var(--band); box-shadow: var(--shadow-lg); }
.plan.is-featured .plan-name, .plan.is-featured .plan-price { color: var(--on-band); }
.plan.is-featured .plan-tagline, .plan.is-featured .plan-price .plan-note { color: var(--band-soft); }
.plan.is-featured .plan-features li { border-color: rgba(204, 227, 222, .15); }
.plan.is-featured .plan-features i { color: var(--sage-2); }
.plan.is-featured .btn-primary { background: var(--sage-2); color: #111916; }
.plan-badge { position: absolute; top: -.8rem; left: 1.7rem; padding: .38rem .8rem; border-radius: 999px; background: var(--sage-2); color: #111916; font: 700 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.plan-name { font-size: 1.4rem; margin-bottom: .5rem; }
.plan-tagline { color: var(--ink-soft); font-size: .95rem; min-height: 3em; }
.plan-price { font: 700 clamp(1.8rem, 2.8vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -.04em; margin: .4rem 0 1.4rem; color: var(--ink); }
.plan-price .plan-note { font: 500 .85rem/1 var(--font-body); color: var(--ink-soft); letter-spacing: 0; white-space: nowrap; }
.plan-features { list-style: none; display: grid; margin-bottom: 1.8rem; flex: 1; }
.plan-features li { display: flex; gap: .6rem; padding: .55rem 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.plan-features i { color: var(--sage); font-size: 1.1rem; line-height: 1.4; }
.plans.plans-addons { grid-template-columns: 1fr; margin-top: 2.2rem; }
.plan-addon-label { position: absolute; top: -.75rem; left: 1.8rem; padding: .32rem .7rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--sage); font: 700 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* KES / USD switch: the wrapper's data-currency decides which [data-cur] copies are visible */
[data-currency="local"] [data-cur="intl"], [data-currency="intl"] [data-cur="local"] { display: none !important; }
.currency-switch { display: inline-flex; padding: .3rem; gap: .2rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.currency-switch[hidden] { display: none; }
.currency-switch button { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 .9rem/1 var(--font-body); cursor: pointer; transition: background .25s, color .25s; }
.currency-switch button:hover { color: var(--ink); }
.currency-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.plans-note { display: flex; gap: .5rem; align-items: baseline; margin: 2rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.plan.is-addon {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 2.2fr) auto;
    grid-template-areas: "name price features cta" "tagline price features cta";
    align-items: center; gap: .3rem 2.2rem; padding: 1.6rem 1.8rem;
}
.plan.is-addon .plan-name { grid-area: name; align-self: end; margin: 0; }
.plan.is-addon .plan-tagline { grid-area: tagline; align-self: start; min-height: 0; margin: 0; }
.plan.is-addon .plan-price { grid-area: price; margin: 0; white-space: nowrap; }
.plan.is-addon .plan-features { grid-area: features; grid-template-columns: 1fr 1fr; gap: .1rem 1.2rem; margin: 0; }
.plan.is-addon .plan-features li { border: 0; padding: .2rem 0; font-size: .9rem; }
.plan.is-addon .btn { grid-area: cta; width: auto; }

/* Testimonials */
.carousel-controls { display: flex; gap: .5rem; }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 27rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--sage-2) transparent; }
/* Up to 3 testimonials: a plain grid across the full width (the slider is only for 4+) */
.quotes.is-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); overflow: visible; padding: .5rem 0 0; }
.quote { position: relative; scroll-snap-align: start; margin: 0; padding: 2.2rem 1.9rem 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; top: .2rem; right: 1.4rem; font: 400 6rem/1 var(--font-serif); color: var(--sage-3); }
.quote .stars { color: var(--sage); font-size: .85rem; letter-spacing: .15em; margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.6rem; font: 500 1.2rem/1.5 var(--font-body); position: relative; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.quote figcaption strong { display: block; }
.avatar { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--sage-3); color: var(--sage-dark); font-weight: 800; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro .section-title { margin-bottom: 1.2rem; }
.faq-intro .muted { max-width: 26rem; margin-bottom: 1.6rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; font: 600 clamp(1.1rem, 1.8vw, 1.3rem)/1.3 var(--font-display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq[open] .faq-toggle { background: var(--accent); border-color: var(--accent); }
.faq[open] .faq-toggle::before, .faq[open] .faq-toggle::after { background: var(--on-accent); }
.faq[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq summary:hover .faq-toggle { border-color: var(--ink); }
.faq-answer { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 1.6rem; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.3rem; background: linear-gradient(140deg, var(--sage-3), var(--paper-2)); }
.post-media { position: relative; }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }
.post-meta a { color: var(--sage-dark); text-decoration: none; font-weight: 700; }
.post-title { font-size: 1.5rem; margin-bottom: .7rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-title a { color: var(--sage-dark); }
.post-excerpt { color: var(--ink-soft); font-size: .97rem; }
.post-category { align-self: flex-start; margin-top: auto; font: 600 .76rem/1.2 var(--font-body); padding: .35rem .75rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); }
.post-body { display: flex; flex-direction: column; flex: 1; }

/* Blog list: the newest post shown large, side by side */
.blog-list { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.post-card-featured, .post-card-row { display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.post-card-featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.post-card-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.post-card-featured .post-media, .post-card-row .post-media { margin-bottom: 0; }
.post-card-featured .post-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; margin-bottom: 1rem; }
.post-card-featured .post-excerpt { font-size: 1.08rem; }
.post-card-featured .post-body, .post-card-row .post-body { flex: initial; }
.post-card-featured .post-category, .post-card-row .post-category { margin-top: 1.2rem; }
.post-flag { padding: .25rem .6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); letter-spacing: .08em; }
.post-read { display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; font-weight: 700; color: var(--ink); }
.post-read i { transition: transform .25s var(--ease); }
.post-card:hover .post-read i { transform: translateX(4px); }
.post-grid.post-grid-rows { grid-template-columns: 1fr; }


/* Contact (photo background) */
.contact { position: relative; isolation: isolate; padding: var(--section) 0; background: var(--band); color: var(--on-band); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(17, 25, 22, .95) 0%, rgba(17, 25, 22, .88) 45%, rgba(17, 25, 22, .55) 100%); }
.contact .section-title { color: #fff; }
.contact .section-title em { color: var(--sage-2); }
.contact .eyebrow { color: var(--band-soft); }
.contact .eyebrow span { color: var(--sage-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact-intro { font-size: 1.15rem; color: #d7e6df; max-width: 32rem; margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list i { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--sage-2); }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--sage-2); }
.contact-list div { display: grid; gap: .15rem; }
.contact-note { color: rgba(255, 255, 255, .65); font-size: .78rem; font-weight: 500; }
.contact-email { font: 600 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--font-display) !important; letter-spacing: -.02em; border-bottom: 2px solid var(--sage); word-break: break-all; }
.promise-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #d7e6df; font-weight: 600; font-size: .92rem; }
.promise-list i { color: var(--sage-2); }
.contact-form { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6); }
.contact-form-title { font: 650 1.5rem/1.2 var(--font-display); letter-spacing: -.03em; margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .88rem; }
.optional { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.required { color: var(--error); font-weight: 700; margin-left: .1rem; }
.form-required-note { margin: -.6rem 0 1.2rem; font-size: .8rem; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font: 500 1rem/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 20%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { margin: .4rem 0 0; color: var(--error); font-size: .85rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: clamp(4rem, 9vw, 7rem) 0 2rem; }
.footer-cta { display: block; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 3rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.footer-cta-label { display: block; margin-bottom: .8rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.footer-cta-text { display: flex; align-items: center; gap: 1.5rem; font: 680 clamp(3.4rem, 11vw, 9.5rem)/.9 var(--font-display); letter-spacing: -.06em; }
.footer-cta-text i { font-size: .5em; transition: transform .45s var(--ease); }
.footer-cta:hover .footer-cta-text i { transform: translate(10px, -10px) rotate(0); color: var(--sage); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-name { font: 680 1.6rem/1.1 var(--font-display); letter-spacing: -.03em; margin-bottom: .4rem; }
.footer-label { font: 500 .74rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--sage-dark); }
.footer-note { display: block; color: var(--ink-soft); font-size: .78rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.footer-bottom a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-credits { margin: 1rem 0 0; font-size: .74rem; color: var(--ink-soft); opacity: .8; }
/* Newsletter (footer) */
.newsletter { margin-top: 1.8rem; max-width: 26rem; }
.newsletter .footer-label { display: block; margin-bottom: .6rem; }
.newsletter-text { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .93rem; }
.newsletter-row { display: flex; gap: .5rem; }
.newsletter-row input { flex: 1 1 auto; min-width: 0; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 .95rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s; }
.newsletter-row input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 20%, transparent); }
.newsletter-row .btn { flex: 0 0 auto; padding-inline: 1.2rem; }
.newsletter-note { margin: .6rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.newsletter-note a { color: inherit; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.footer-bottom .link-button { color: var(--ink-soft); }
.footer-bottom .link-button:hover { color: var(--ink); }
.prose .link-button { color: var(--link); text-decoration: underline; text-decoration-color: var(--sage-2); text-decoration-thickness: 2px; font-weight: 600; }

/* Cookie notice */
.cookie-banner { position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; display: grid; gap: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg, var(--shadow)); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cookie-banner .cookie-title { margin-bottom: .35rem; font: 650 1rem/1.2 var(--font-display); color: var(--ink); }
.cookie-banner a { color: var(--link); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.cookie-actions .btn { padding: .65rem 1.2rem; font-size: .9rem; }

/* Privacy & cookie policies, unsubscribe */
.legal .page-title { max-width: none; }
.legal .prose .table-scroll { overflow-x: auto; }
.legal .prose td:first-child { white-space: nowrap; }
.legal-contact { list-style: none; padding-left: 0 !important; }
.unsub-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }


/* ── Inner pages ────────────────────────────────────────────────── */
.page-hero { position: relative; padding: 10rem 0 clamp(2.5rem, 5vw, 4rem); overflow-x: clip; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 60rem; height: 40rem; right: -20rem; top: -16rem; background: radial-gradient(closest-side, var(--glow), transparent); }
.page-title { font-size: clamp(2.8rem, 7.5vw, 6rem); font-weight: 680; letter-spacing: -.05em; line-height: .96; max-width: 16ch; margin-bottom: 1.3rem; }
.page-lead { max-width: 42rem; font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.6rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.filter { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 .9rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: all .2s; }
.filter span { font: 500 .72rem/1 var(--font-mono); color: var(--ink-soft); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter.is-active span { color: inherit; opacity: .75; }

.case-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 2.4rem 0 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin: 0; }
.facts dt { font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem; }
.facts dd { margin: 0; font-weight: 700; }
.case-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.case-cover { margin: 0 0 clamp(3rem, 7vw, 5.5rem); }
/* Project page title: the kind of project as a small label above the client's name */
.case-title-main .case-kind { display: block; margin-bottom: .9rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark); }
.case-title-main .case-name { display: block; }
.case-lead { margin-top: -.2rem; }

/* Project page on phones: image-first hero. A blurred copy of the cover lights a dark panel,
   two screenshots are layered on it, and only the short title sits underneath. */
.case-hero-photo, .case-hero-stack { display: none; }
@media (max-width: 760px) {
    .has-cover .case-hero { padding-top: 0; }
    .has-cover .case-hero-top { position: relative; padding: 6.4rem 0 2.4rem; margin-bottom: 2rem; border-radius: 0 0 28px 28px; overflow: hidden; isolation: isolate; background: #16201c; }
    .has-cover .case-hero-photo { display: block; position: absolute; inset: 0; z-index: -1; }
    .has-cover .case-hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: blur(24px) saturate(1.3); transform: scale(1.3); }
    .has-cover .case-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 15, .5) 0%, rgba(11, 17, 15, .6) 50%, rgba(11, 17, 15, .9) 100%); }
    .has-cover .case-hero-text .back-link { color: rgba(255, 255, 255, .8); margin-bottom: 1.4rem; }
    .has-cover .case-hero-stack { display: block; position: relative; margin: 0 0 2.2rem; padding: 1.5rem .4rem 0 0; }
    .has-cover .case-hero-back { position: absolute; top: 0; right: 0; width: 78%; border-radius: 12px; transform: rotate(4deg); opacity: .85; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8); }
    .has-cover .case-hero-shot { position: relative; width: 94%; border-radius: 14px; overflow: hidden; background: #fff; transform: rotate(-2deg); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .14); }
    .has-cover .case-hero-shot .browser-bar { height: 24px; padding: 0 10px; gap: 5px; }
    .has-cover .case-hero-shot .browser-bar i { width: 7px; height: 7px; }
    .has-cover .case-hero-shot .browser-url { font-size: .62rem; padding: 2px 10px; }
    .has-cover .case-hero-shot img { display: block; width: 100%; aspect-ratio: 1408 / 800; object-fit: cover; object-position: top; }
    .has-cover .case-title-main { margin: 0; color: #fff; font-size: clamp(2.3rem, 10.5vw, 3rem); }
    .has-cover .case-title-main .case-kind { color: #a4c3b2; margin-bottom: .7rem; }
    .has-cover .case-cover { display: none; }
}


.prose { font-size: 1.1rem; line-height: 1.8; color: var(--ink); padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose > h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 2em; }
.prose > h3 { font-size: 1.4rem; margin-top: 1.7em; }
.prose > :first-child { margin-top: 0; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: var(--sage-2); text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--sage); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--sage-2); font: 500 1.3rem/1.5 var(--font-body); color: var(--ink-soft); }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); font: 500 .88em var(--font-mono); }
.prose pre { padding: 1.3rem 1.5rem; border-radius: var(--radius-sm); background: #16201c; color: #eaf4f4; overflow-x: auto; font-size: .9rem; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font: 600 .78rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.gallery-section { padding-bottom: clamp(3rem, 6vw, 5rem); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-shot { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 17, 15, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox .icon-button { position: absolute; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; }
.lightbox-next { right: 1.2rem; top: 50%; }

.article-head .post-meta { margin-bottom: 1.2rem; }
.article-title { max-width: none; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; color: var(--ink-soft); }
.byline .avatar { width: 44px; height: 44px; }
.byline strong { color: var(--ink); }
.article-cover { margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 0 clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }

/* Article: readable text column + sticky sidebar using the space on wide screens */
.article-head-inner > * { max-width: 52rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 19rem); justify-content: space-between; gap: clamp(2.5rem, 5vw, 5rem); }
.article-aside-inner { position: sticky; top: 7rem; display: grid; gap: 1.2rem; padding-bottom: 3rem; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 7rem; }
.toc { padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.toc-title { margin: 0 0 .8rem; font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; max-height: calc(100vh - 26rem); overflow-y: auto; }
.toc a { display: block; padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc .toc-level-3 a { padding-left: 1.6rem; font-size: .85rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); }
.aside-cta { padding: 1.4rem; border-radius: var(--radius-md); background: var(--band); color: var(--on-band); }
.aside-cta-title { margin: 0 0 .5rem; font: 650 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--on-band); }
.aside-cta-text { margin: 0 0 1.1rem; font-size: .9rem; color: var(--band-soft); }
.aside-cta-text strong { color: var(--on-band); }
.aside-cta .btn-primary { background: #a4c3b2; color: #1f2d27; box-shadow: none; }
.aside-cta .btn-primary:hover { background: #cce3de; color: #1f2d27; }
.aside-newsletter { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .3rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.aside-newsletter:hover { color: var(--ink); }
@media (max-width: 1000px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .article-aside-inner { position: static; padding-bottom: clamp(3rem, 6vw, 5rem); }
    .toc { display: none; }
}
@media (max-width: 860px) {
    .post-card-featured, .post-card-row { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
}

.share { display: flex; align-items: center; gap: .5rem; font: 500 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.share span { margin-right: .4rem; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 700; }
.pager a { color: var(--ink); text-decoration: none; }
.pager-pages { display: flex; gap: .3rem; }
.pager-pages a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font: 600 .85rem var(--font-mono); }
.pager-pages a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.not-found { min-height: 80vh; display: flex; align-items: center; }
.not-found-code { font: 700 clamp(6rem, 22vw, 14rem)/.85 var(--font-display); letter-spacing: -.07em; margin-bottom: 1rem; color: transparent; -webkit-text-stroke: 2px var(--sage-2); }
.not-found-code em { -webkit-text-stroke: 0; }
.hero-actions-inline { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .project-grid, .post-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > .service-nudge:nth-child(n) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .service-grid > .service-nudge:nth-child(n) p { flex: 1 1 18rem; }
    .service-grid > .service-nudge:nth-child(2n) { grid-column: span 1; flex-direction: column; align-items: flex-start; justify-content: center; }
    .service-grid > .service-nudge:nth-child(2n) p { flex: 0 0 auto; }
    .bento-photo { grid-column: 1 / span 12; grid-row: auto; min-height: 380px; }
    .bento-story, .bento-points, .bento-cta { grid-column: 1 / span 12; }
    .bento-stat, .bento.has-2-stats .bento-stat { grid-column: span 4; }
    .bento.has-2-stats .bento-stat { grid-column: span 6; }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plan.is-addon { grid-template-columns: 1fr auto; grid-template-areas: "name price" "tagline price" "features features" "cta cta"; gap: .5rem 1.5rem; }
    .plan.is-addon .plan-features { margin: .8rem 0; }
    .plan.is-addon .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .hero { padding-top: 8rem; }
    .hero-grid, .career, .contact-grid, .faq-grid, .case-row, .process-grid { grid-template-columns: 1fr; }
    .case-row.is-flipped .case-shot { order: 0; }
    .service-lead { grid-template-columns: 1fr; }
    .service-lead-media { min-height: 0; aspect-ratio: 16 / 9; }
    .service-lead-media .service-icon { right: auto; left: 1.5rem; top: auto; bottom: -1.5rem; }
    .service-lead-body { padding-top: 2.6rem; }
    .hero-visual { max-width: 560px; }
    .education, .faq-intro, .process-intro { position: static; }
    .contact::before { background: rgba(17, 25, 22, .9); }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .project-grid, .post-grid, .post-grid-2, .service-grid, .plans { grid-template-columns: 1fr; }
    .bento-stat, .bento.has-2-stats .bento-stat { grid-column: 1 / span 12; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 1rem; }
    .bento-points ul, .service-points-lead { grid-template-columns: 1fr; }
    .service-grid > .service-nudge:nth-child(n) { grid-column: auto; flex-direction: column; align-items: flex-start; }
    .journey::before { left: 21px; }
    .journey-step { grid-template-columns: 44px 1fr; gap: .9rem; }
    .journey-marker { width: 44px; height: 44px; font-size: 1.05rem; }
    .project-card.is-wide { grid-column: auto; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .hero-visual { padding: 0 0 3rem 1.5rem; }
    .plan.is-addon { display: flex; align-items: stretch; padding-top: 2rem; }
    .plan.is-addon > .plan-name, .plan.is-addon > .plan-tagline, .plan.is-addon > .plan-price { align-self: auto; }
    .plan.is-addon .plan-features { margin: .4rem 0 1.4rem; }
    .plan.is-addon .plan-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1 1 auto; }
    .faq-answer { padding-right: 0; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 1.5rem; }
    .browser-bar { height: 30px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .marquee { flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee-track:nth-child(2) { display: none; }
}

/* ── SweetAlert (contact form results) ──────────────────────────── */
.swal2-popup { font-family: var(--font-body) !important; border-radius: var(--radius) !important; background: var(--paper) !important; color: var(--ink) !important; }
.swal2-title { font-family: var(--font-display) !important; font-weight: 650 !important; letter-spacing: -.02em; color: var(--ink) !important; }
.swal2-html-container { color: var(--ink-soft) !important; }
.swal2-styled.swal2-confirm { background: var(--accent) !important; color: var(--on-accent) !important; border-radius: 999px !important; font-weight: 700 !important; }
.swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: var(--sage) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: color-mix(in srgb, var(--sage) 35%, transparent) !important; }
