/* =========================================================
   ThoughtInks — main.css
   Ported to match the brand system used on the old ThoughtInks
   site: JetBrains Mono for headings/UI, outline-first green
   buttons, navy nav/footer with a green accent line.
   ========================================================= */

/* ── Design tokens ─────────────────────────────────────── */
:root {
    --green: #22c55e;
    --green-dark: #16a34a;
    --red: #ef3d5e;
    --red-dark: #d9264a;
    --green-soft: rgba(34, 197, 94, .09);
    --amber: #f59e0b;

    /* primary ink scale — old-site navy/slate palette */
    --navy: #0f1923;          /* primary text / heading ink */
    --navy-mid: #16232f;      /* deepest dark surfaces */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;      /* hairline gray */
    --gray-300: #cbd5e1;
    --gray-500: #64748b;      /* secondary text */
    --gray-700: #374151;      /* body copy on light */
    --white: #ffffff;

    --font-mono: 'JetBrains Mono', 'SF Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-ui: var(--font-mono);
    --font-display: var(--font-mono);

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 4px rgba(15, 25, 35, .06);
    --shadow-md: 0 8px 24px rgba(15, 25, 35, .10);
    --shadow-lg: 0 16px 40px rgba(15, 25, 35, .14);

    --nav-h: 64px;
}

/* ── Reset ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -.011em;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 .8em; }
button { font-family: inherit; }

h1 {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 .35em;
    line-height: 1.18;
}

h2, h3, h4, h5 {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 .35em;
    line-height: 1.18;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -.15em;
    fill: none;
    stroke: currentColor;
}

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 34px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 34px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }

/* ── Buttons — outline-only at rest, fills on hover ──────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .01em;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--green);
    color: var(--green-dark);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: .9em; height: .9em; }
.btn-solid { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-solid:hover { background: var(--green); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { border-color: var(--navy); color: var(--navy); }
.btn-navy:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .74rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Legacy alias so existing markup (btn-cta) keeps working */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .8rem;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--green);
    color: var(--green-dark);
    background: transparent;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn-cta:hover, .btn-cta:focus-visible { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }
.btn-cta .icon { width: .9em; height: .9em; }

/* A quiet "Learn more ›" text link */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .85rem;
    color: var(--green-dark);
    text-decoration: none;
}
.link-more .icon { width: .8em; height: .8em; transition: transform .15s ease; }
.link-more:hover .icon { transform: translateX(3px); }
.link-more-center { justify-content: center; }

/* Elevated card utility */
.card-elevated {
    box-shadow: var(--shadow-sm);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.card-elevated:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gray-200); }

/* ── Navigation ────────────────────────────────────────── */
.site-header { background: var(--navy); border-bottom: 2px solid var(--green); position: sticky; top: 0; z-index: 200; }
.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--nav-h);
    column-gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; grid-column: 1; }
.brand-icon { height: 32px; width: 32px; }
.brand-text {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -.01em;
    -webkit-text-stroke: .6px var(--green);
}

.nav-menu { display: flex; align-items: center; gap: 8px; grid-column: 2; justify-self: end; }
.nav-link {
    position: relative;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    letter-spacing: .005em;
    background: rgba(255,255,255,.08);
    transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav-link.active { color: var(--navy); background: var(--green); }

.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; grid-column: 3; justify-self: end; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu {
        grid-column: 1 / -1;
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: var(--navy);
        flex-direction: column; align-items: stretch; gap: 0;
        border-bottom: 2px solid var(--green);
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav-menu.open { max-height: 360px; }
    .nav-link { padding: 14px 24px; border-radius: 0; background: transparent; }
    .nav-link.active { background: rgba(34,197,94,.15); color: var(--green); }
}

/* ── Hero (home) — two-column intro with proof bar below ── */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 20px 0 22px;
    min-height: calc(70vh - var(--nav-h));
    display: flex;
    align-items: center;
}
.hero .container { position: relative; width: 100%; max-width: 1340px; }

.hero-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; margin-bottom: 0; }
.hero-copy { text-align: left; }
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}
.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.035em;
    word-spacing: 0.12em;
    line-height: 1.1;
    margin: 0 0 .8rem;
}
.hero-subtitle {
    font-family: var(--font-body);
    color: var(--gray-300);
    font-size: .98rem;
    font-weight: 400;
    line-height: 1.55;
    max-width: 520px;
    margin: 0 0 1.4rem;
    letter-spacing: -.01em;
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 0; }
.hero-buttons .btn, .hero-buttons .btn-cta { font-size: .84rem; padding: 10px 22px; }

/* Full-width horizontal separator between top content and proof bar */
.hero-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .16);
    margin: 1.2rem 0 1rem;
    width: 100%;
}

/* Bento-grid skills visual */
.hero-bento {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 14px;
    min-height: 320px;
}
.bento-tile {
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .6rem;
    color: #fff;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-tile--lg { grid-row: 1 / 3; }
.bento-tile--green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 65%, #14532d 100%); }
.bento-tile--blue { background: linear-gradient(135deg, #5b7cfa 0%, #7b3fe4 100%); }
.bento-tile--coral { background: linear-gradient(135deg, #ff9a5c 0%, #ef3d5e 100%); }
.bento-icon {
    width: 46px; height: 46px; border-radius: 13px;
    background: rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.bento-tile--lg .bento-icon { width: 54px; height: 54px; }
.bento-icon img { width: 58%; height: 58%; object-fit: contain; filter: brightness(0) invert(1); }
.bento-tile h4 { font-size: .96rem; margin: 0; letter-spacing: -.015em; color: #fff; }
.bento-tile--lg h4 { font-size: 1.2rem; }
.bento-tile p { font-size: .82rem; color: rgba(255,255,255,.82); margin: 0; line-height: 1.55; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: .6rem 2.5rem;
    padding: 0;
    margin: 0;
    border-top: none;
}
.hero-proof-item { display: flex; align-items: center; gap: .6rem; }
.hero-proof-item .icon { width: 28px; height: 28px; color: var(--green); flex-shrink: 0; }
.hero-proof-text { font-family: var(--font-body); font-size: .82rem; line-height: 1.4; text-align: left; }
.hero-proof-text .label { display: block; color: var(--gray-300); font-weight: 400; font-size: .74rem; }
.hero-proof-text strong { display: block; color: var(--white); font-weight: 600; font-size: .84rem; }

@media (max-width: 860px) {
    .hero { padding: 14px 0 18px; min-height: 0; display: block; }
    .hero-top { grid-template-columns: 1fr; gap: .8rem; margin-bottom: 0; }
    .hero-copy { text-align: center; }
    .hero-title { font-size: clamp(1.4rem, 5.5vw, 1.75rem); line-height: 1.15; word-spacing: 0; margin-bottom: .35rem; }
    .hero-subtitle { font-size: .82rem; line-height: 1.45; max-width: 340px; margin: 0 auto .7rem; }
    .hero-buttons { justify-content: center; gap: 8px; }
    .hero-buttons .btn, .hero-buttons .btn-cta { font-size: .74rem; padding: 9px 16px; }
    .hero-image img { max-height: 150px; }
    .hero-separator { margin: .8rem 0 .7rem; }
    .hero-proof { gap: .5rem 1rem; }
    .hero-proof-item { gap: .4rem; }
    .hero-proof-item .icon { width: 20px; height: 20px; }
    .hero-proof-text { font-size: .7rem; line-height: 1.3; }
    .hero-proof-text .label { font-size: .65rem; }
    .hero-proof-text strong { font-size: .76rem; }
    .hero-bento { min-height: 280px; }
}
@media (max-width: 480px) {
    .hero-bento { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
    .bento-tile--lg { grid-row: auto; }
}

/* legacy alias kept in case older markup/pages still reference it */
.t-bg { background: var(--white); padding: 26px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ── Stat bar ──────────────────────────────────────────── */
.stat-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; margin: 18px 0 4px; }
@media (max-width: 640px) { .stat-bar { grid-template-columns: 1fr; gap: 28px; } }
.stat-value { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em;}
.stat-value-sm { font-size: 1.4rem; }
.stat-label { color: var(--gray-500); font-size: .85rem; margin-top: 4px; letter-spacing: -.005em; }

/* ── Why-strip (homepage differentiators) ─────────────────── */
.why-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 1.25rem; }
@media (max-width: 860px) { .why-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-strip { grid-template-columns: 1fr; } }
.why-strip-item {
    background: #fff; border-radius: var(--radius);
    padding: 1.4rem; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.why-strip-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-strip-item .icon { width: 24px; height: 24px; color: var(--green-dark); margin-bottom: .7rem; }
.why-strip-item h4 { font-size: .98rem; margin-bottom: .3rem; }
.why-strip-item p { font-size: .85rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* ── Section heading — quiet Apple-style label, no rule lines ── */
.section-heading {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase; color: var(--navy);
    margin-bottom: 2px;
}
.section-heading::before, .section-heading::after { content: none; }
.section-heading .icon { color: var(--green-dark); width: 15px; height: 15px; }
.section-title { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: var(--navy); text-align: center; }

/* ── Consulting / how-we-help item ────────────────────────── */
.help-item { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; }
@media (max-width: 640px) { .help-item { grid-template-columns: 1fr; } }
.help-item img { border-radius: var(--radius); }
.help-item h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.help-item p { color: var(--gray-500); font-size: .92rem; }

/* ── Expertise / service cards — Apple TV-style tiles ─────── */
.eh-item {
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem;
    text-align: left;
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.eh-item h4 { font-size: 1.2rem; margin: 1rem 0 .45rem; letter-spacing: -.02em; }
.eh-item > .icon { width: 24px; height: 24px; color: var(--green-dark); margin-bottom: .6rem; }
.eh-item p { color: var(--gray-500); font-size: .85rem; margin: 0; }
.service-subtitle { color: var(--gray-500); font-size: .88rem; line-height: 1.65; margin-bottom: 1.1rem; }
.service-icon {
    width: 64px; height: 64px;
    border-radius: 16px; overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
    margin: 0 auto;
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-list { text-align: left; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 9px; }
.service-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--gray-700); }
.service-list .icon { color: #16a34a; flex-shrink: 0; margin-top: 3px; width: 15px; height: 15px; }

/* ── Logo marquee ──────────────────────────────────────── */
.marquee { overflow: hidden; position: relative; padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee-scroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 100px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .55; transition: filter .2s ease, opacity .2s ease; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Client grid (clients.html) ───────────────────────────── */
.client-section { padding: 0; }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
.client-item {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; padding: 26px; height: 172px;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.client-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.client-item img { max-height: 120px; width: auto; object-fit: contain; }

.pill { display: inline-block; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--green-dark); background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: 20px; padding: 6px 16px; }

/* ── Icon stat blocks (industries) ────────────────────────── */
.icon-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
@media (max-width: 640px) { .icon-stats { grid-template-columns: repeat(2, 1fr); } }
.icon-stat { padding: 1.6rem 1rem; }
.icon-stat .icon { width: 28px; height: 28px; color: var(--green-dark); margin-bottom: 10px; }
.icon-stat-label { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--navy); letter-spacing: -.01em; }

/* ── Steps (engagement philosophy) ────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { text-align: center; padding: 1.3rem 1rem; }
.step .icon { width: 26px; height: 26px; color: var(--green-dark); margin-bottom: 10px; }
.step-title { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 4px; letter-spacing: -.01em; }
.step-desc { font-size: .84rem; color: var(--gray-500); }

/* ── CTA box ───────────────────────────────────────────── */
.cta-box { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-box h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.cta-box p { color: var(--gray-500); font-size: .95rem; margin-bottom: 1.6rem; }

/* ── Footer — light, Apple-style multi-column ─────────────── */
.site-footer { background: var(--navy); color: #94a3b8; padding: 32px 0 16px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.5fr; gap: 1.75rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-family: var(--font-mono); color: var(--green); font-size: 1rem; font-weight: 700; margin-bottom: .8rem; }
.footer-heading { font-family: var(--font-mono); color: var(--green); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-list li { font-size: .85rem; padding: 4px 0; color: #b6c2cd; }
.footer-col p { font-size: .85rem; color: #94a3b8; line-height: 1.7; }
.footer-contact p { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; margin-bottom: .5rem; color: #94a3b8; }
.footer-contact .icon { flex-shrink: 0; margin-top: 3px; color: var(--green); width: 14px; height: 14px; }
.footer-rule { border-top: 1px solid rgba(255,255,255,.1); margin: 22px 0 12px; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom { font-size: .8rem; color: #64748b; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15); color: #94a3b8;
    text-decoration: none; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer-social a:hover { color: var(--green); border-color: var(--green); background: rgba(34,197,94,.08); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-links a {
    color: #b6c2cd; text-decoration: none; font-size: .85rem;
    transition: color .15s ease;
}
.footer-links a:hover { color: var(--green); }

/* ── Case-study listing (casestudies.html) ────────────────── */
.cs-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase; color: var(--navy);
    margin-bottom: .6rem;
}
.cs-eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--navy); display: inline-block; border-radius: 2px; }
.cs-eyebrow--blue::before { background: linear-gradient(90deg, #5b7cfa, #7b3fe4); }
.cs-eyebrow--blue { color: #4338ca; }
.cs-eyebrow--green::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.cs-eyebrow--green { color: #16a34a; }
.cs-eyebrow--coral::before { background: linear-gradient(90deg, #ff9a5c, #ef3d5e); }
.cs-eyebrow--coral { color: #d9264a; }

/* Top accent bar on a case-study detail hero, matching its listing-card color */
.accent-bar { height: 5px; width: 100%; }
.accent-bar--blue { background: linear-gradient(90deg, #5b7cfa, #7b3fe4); }
.accent-bar--green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.accent-bar--coral { background: linear-gradient(90deg, #ff9a5c, #ef3d5e); }
.cs-rule { border: none; border-top: 1px solid var(--gray-200); margin: 0; }
.cs-section { padding: 30px 0; }
.cs-section--gray { background: var(--gray-50); }
.cs-section-title { font-size: 1.7rem; margin-bottom: 1rem; }
.cs-lead { font-size: .96rem; color: var(--gray-700); line-height: 1.75; margin-bottom: .85rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.filter-btn {
    font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--gray-700);
    background: #fff; border: 1px solid var(--gray-200); border-radius: 980px;
    padding: 8px 16px; cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: #16a34a; border-color: #16a34a; color: #fff; }

.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; } }

/* Case-study cards — Apple TV-style tiles: image-forward, rounded, hover-lift */
.cs-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.cs-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.cs-card-body { padding: 1.4rem 1.4rem 0; flex: 1; }
.cs-card-region { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); margin-bottom: .5rem; }
.cs-card-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .4rem; letter-spacing: -.02em; }
.cs-card-subtitle {
    display: block;
    font-family: var(--font-ui);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--navy);
    line-height: 1.55;
    padding-left: 10px;
    border-left: 2px solid var(--navy);
    margin: .3rem 0 1rem;
}
.cs-card-desc { font-size: .86rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1rem; }
.cs-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.cs-tag { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 20px; padding: 4px 12px; color: var(--gray-700); }
.cs-card-outcomes { margin-bottom: 1.5rem; }
.cs-card-outcomes li { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; line-height: 1.6; color: var(--gray-700); padding: 4px 0; }
.cs-card-outcomes .icon { color: var(--green); flex-shrink: 0; margin-top: 3px; width: 15px; height: 15px; }
.cs-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: .9rem 1.4rem; border-top: 1px solid var(--gray-100); background: var(--white); margin-top: auto; }
.cs-card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.cs-card-link .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.cs-card-link:hover .icon { transform: translateX(3px); }
.cs-card-industry { font-size: .74rem; color: var(--gray-500); }

/* Case-study accent colors — the same three gradients used in the homepage
   bento tiles, applied here as a thin identifying stripe per case study so
   cards read as a set (like Apple's category colors) instead of one flat
   grey/white block. Text/icon shades are darkened versions for contrast. */

.cs-card .cs-card-outcomes .icon, .cs-card .cs-card-link { color: #16a34a; }
.cs-card .cs-card-subtitle { color: #16a34a; border-left-color: #16a34a; }

/* ── Case study detail page ───────────────────────────────── */
.cs-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-500); font-family: var(--font-mono); font-size: .84rem; font-weight: 600; text-decoration: none; margin-bottom: 1.25rem; }
.cs-back .icon { width: 14px; height: 14px; }
.cs-back:hover { color: var(--navy); }

.cs-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.cs-detail-title { font-size: 2.2rem; line-height: 1.12; margin-bottom: .6rem; letter-spacing: -.03em; }
.cs-detail-lead { font-size: 1.05rem; color: var(--gray-500); font-weight: 400; max-width: 640px; line-height: 1.7; font-family: var(--font-body); }

.cs-meta-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--gray-200); }
.cs-meta-label { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin: 0 0 .3rem; }
.cs-meta-value { font-size: .89rem; font-weight: 600; color: var(--navy); margin: 0; }

.cs-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .cs-two-col { grid-template-columns: 1fr; } }

.cs-callout { background: var(--gray-50); border-left: 3px solid #16a34a; border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.6rem; font-size: .92rem; color: var(--navy); line-height: 1.75; }
.cs-callout p { margin: 0; }
.cs-callout strong { color: var(--navy); }

.cs-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .cs-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cs-cap-grid { grid-template-columns: 1fr; } }
.cs-cap-card { background: #fff; border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.cs-cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs-cap-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: 12px; color: #16a34a; margin-bottom: 1rem; }
.cs-cap-icon .icon { width: 20px; height: 20px; }
.cs-cap-title { font-family: var(--font-mono); font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; letter-spacing: -.01em; }
.cs-cap-body { font-size: .85rem; color: var(--gray-500); line-height: 1.65; }

.cs-impact-list { display: flex; flex-direction: column; gap: .9rem; max-width: 720px; }
.cs-impact-item { display: flex; gap: 10px; align-items: flex-start; }
.cs-impact-item .icon { color: #16a34a; flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }
.cs-impact-text { font-size: .93rem; color: var(--gray-700); line-height: 1.7; margin: 0; }
.cs-impact-text strong { color: var(--navy); }

.cs-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .cs-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cs-timeline { grid-template-columns: 1fr; } }
.cs-tl-cell { background: #fff; border-left: 3px solid #16a34a; border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.cs-tl-week { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); margin-bottom: .35rem; }
.cs-tl-title { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .3rem; }
.cs-tl-desc { font-size: .81rem; color: var(--gray-500); line-height: 1.6; }

/* Generic side/challenge cards used in case-study detail pages */
.cs-side-card, .cs-challenge-card {
    margin-top: 1.2rem; background: #fff;
    border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.cs-side-label {
    font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--gray-500); margin: 0 0 1rem;
}
.cs-side-card ul, .cs-challenge-card ul { display: flex; flex-direction: column; gap: .6rem; }
.cs-side-card li, .cs-challenge-card li { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--gray-700); }
.cs-side-card .icon, .cs-challenge-card .icon { color: #16a34a; flex-shrink: 0; margin-top: 1px; width: 15px; height: 15px; }
.cs-side-card .icon.icon-amber, .cs-challenge-card .icon.icon-amber { color: var(--amber); }

/* ── Contact page ──────────────────────────────────────── */
.ct-wrap { max-width: 1080px; margin: 0 auto; }
.ct-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-form-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.5rem; box-shadow: var(--shadow-sm); }
.ct-form-title { font-size: 1.3rem; margin-bottom: .35rem; }
.ct-form-sub { font-size: .88rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1.5rem; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .ct-row { grid-template-columns: 1fr; } }
.ct-field { margin-bottom: 1.1rem; }
.ct-field label { display: block; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.ct-field input, .ct-field select, .ct-field textarea {
    width: 100%; font-family: var(--font-body); font-size: .9rem; color: var(--navy);
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    padding: .75rem .9rem; box-sizing: border-box; transition: border-color .15s ease, background .15s ease;
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.ct-honeypot { position: absolute; left: -9999px; }
.ct-submit { display: inline-flex; align-items: center; gap: 8px; }
.ct-note { font-size: .76rem; color: var(--gray-300); margin-top: .9rem; }
.ct-status { display: none; align-items: flex-start; gap: .6rem; font-size: .875rem; line-height: 1.6; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
.ct-status.show { display: flex; }
.ct-status--success { background: #f0fdf4; color: #166534; }
.ct-status--error { background: #fef2f2; color: #991b1b; }
.ct-status .icon { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }
.ct-info-card { background: var(--navy); color: #d2d2d7; border-radius: var(--radius); padding: 1.7rem; margin-bottom: 1.2rem; }
.ct-info-title { font-size: 1.08rem; color: #fff; margin-bottom: 1.25rem; }
.ct-info-item { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.ct-info-item:last-child { margin-bottom: 0; }
.ct-info-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.ct-info-icon .icon { width: 16px; height: 16px; }
.ct-info-item .content { font-size: .88rem; line-height: 1.65; }
.ct-info-item .content strong { color: #fff; display: block; margin-bottom: 2px; font-size: .76rem; letter-spacing: .02em; text-transform: uppercase; font-family: var(--font-mono); }
.ct-map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ct-map-card iframe { width: 100%; height: 260px; border: none; display: block; }

/* ── Why-us list (about page) ─────────────────────────────── */
.why-list { display: flex; flex-direction: column; gap: 1.25rem; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .icon { color: var(--green); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.why-item h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.why-item p { font-size: .88rem; color: var(--gray-500); margin: 0; }
.why-card { background: #fff; border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }

/* ── Utilities ─────────────────────────────────────────── */
.max-560 { max-width: 560px; margin: 0 auto; }
.max-640 { max-width: 640px; }
.max-720 { max-width: 720px; }
.lead-text { font-size: .95rem; line-height: 1.75; max-width: 640px; margin-left: auto; margin-right: auto; }
.lead-text-muted { color: var(--gray-500); }
.lead-text-body { color: var(--gray-700); text-align: left; }

/* Spacing utilities — used instead of one-off inline style="margin/padding" */
.mt-1 { margin-top: .75rem; }.mt-2 { margin-top: 1.35rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.75rem; }
.mb-3 { margin-bottom: 2rem; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 1.5rem; }
.pb-0 { padding-bottom: 0; }
.no-margin { margin: 0; }
.mt-0 { margin-top: 0; }

/* Section intro — centered eyebrow copy above a heading */
.section-intro { text-align: center; padding-top: 24px; }

/* Page hero — shared H1/lead used on every non-home page (About, Clients,
   Contact, Case Studies index). Keeps every page opening the same size. */
.page-hero-title { font-size: 2.2rem; line-height: 1.15; margin: 0 0 .75rem; }
.page-hero-sub { font-size: 1rem; color: var(--gray-500); line-height: 1.8; max-width: 640px; margin: 0; }
.page-hero-sub-centered { margin: 0 auto; }
.page-hero-eyebrow { font-family: var(--font-mono); font-size: .82rem; color: var(--gray-500); margin-bottom: 1.1rem; }

/* Lead paragraph width/spacing modifier, replaces repeated inline overrides */
.cs-lead-wide { max-width: 640px; margin-bottom: 2rem; }

/* Small section-level CTA, used at the bottom of listing & detail pages */
.cs-cta-inner { max-width: 520px; margin: 0 auto; }

/* Empty-state message (case studies filter with no matches) */
.cs-empty { display: none; text-align: center; padding: 3rem 0; color: var(--gray-300); }
.cs-empty .icon { width: 2.5rem; height: 2.5rem; margin: 0 auto .75rem; display: block; }
.cs-empty p { font-size: .9rem; margin: 0; }

/* Icon color modifier — the one deliberate exception to the black/white/gray
   palette: amber for caution/risk callouts, same convention as macOS/Xcode. */
.icon-amber { color: var(--amber); }

/* Small mono signature/attribution line (e.g. "— Vishnu, Founder") */
.signature-line { font-family: var(--font-mono); color: var(--gray-500); font-size: .82rem; margin-top: 1rem; }

/* ── Case study detail — shared components (all 5 case studies) ──────── */
.csd-wrap { max-width: 760px; margin: 0 auto; }

.csd-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.5rem 0 0; }
.csd-meta li { font-size: .875rem; color: var(--gray-500); }
.csd-meta li strong { color: var(--navy); font-weight: 600; }

.csd-section { padding: 40px 0; }
.csd-section h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.csd-section h3 { font-size: 1.125rem; margin: 1.5rem 0 .5rem; }
.csd-section p { font-size: .9rem; line-height: 1.8; color: var(--gray-700); margin: 0 0 1rem; }
.csd-section ul { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.csd-section li { font-size: .9rem; line-height: 1.8; color: var(--gray-700); margin-bottom: .35rem; }
.csd-section li::marker { color: #16a34a; }
.csd-strong-line { font-weight: 600; color: var(--navy); margin-bottom: .5rem; }

.csd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 2rem; }
.csd-flow-step { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: .75rem 1rem; font-family: var(--font-mono); font-size: .875rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.csd-flow-arrow { color: var(--gray-300); font-size: 1.125rem; }

.csd-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .875rem; }
.csd-table th, .csd-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.csd-table th { color: var(--navy); font-weight: 600; background: var(--gray-50); font-family: var(--font-mono); }

/* Big-number outcome cards (content integration / PO sync / open costing) */
.cs-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cs-stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 1.25rem; }
.cs-stat-card .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--navy); display: block; margin-bottom: .25rem; }
.cs-stat-card .label { font-size: .875rem; color: var(--gray-500); line-height: 1.5; }

/* Green text utility */
.text-green { color: #16a34a; }