/* ==========================================================================
   Bulo Consultant — Dark theme stylesheet
   Soft charcoal palette: easier on the eyes than pure black while keeping
   a premium, professional dark-mode feel.
   ========================================================================== */

:root {
    /* surfaces — soft dark greys (not pure black) */
    --bg:           #181818;
    --bg-soft:      #1e1e1e;
    --bg-alt:       #222222;
    --surface:      #262626;
    --surface-2:    #2e2e2e;
    --bg-rgb:       24, 24, 24;
    --border:       rgba(255, 255, 255, 0.10);
    --border-strong:rgba(255, 255, 255, 0.20);

    /* text */
    --text:         #f5f5f5;
    --text-muted:   #a3a3a3;
    --text-faint:   #6b6b6b;

    /* accent — brand green */
    --accent:       #217c1e;
    --accent-soft:  #4aad46;
    --accent-strong:#196618;
    --accent-dim:   rgba(33, 124, 30, 0.16);
    --accent-glow:  rgba(33, 124, 30, 0.35);
    --accent-on:    #ffffff;

    /* type */
    /* Century Gothic is the brand typeface — installed on virtually every
       Windows + macOS device. For everyone else (Linux, some mobile) we fall
       back to Jost, an open-source geometric sans designed to be visually
       similar to Century Gothic / Futura. */
    --font-sans: "Century Gothic", "Jost", "Avenir Next", Avenir, "URW Gothic L", "Apple Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Century Gothic", "Jost", "Avenir Next", Avenir, "URW Gothic L", "Apple Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* metrics */
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1360px;
    --founding-year: 2018;
    --gutter: clamp(16px, 4vw, 48px);
    --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    position: relative;
    padding: clamp(72px, 10vw, 140px) 0;
    border-top: 1px solid var(--border);
}
.section--alt {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}


/* ---------- Background decor ---------- */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}
.bg-glow--one {
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(33, 124, 30, 0.22), transparent 70%);
}
.bg-glow--two {
    bottom: -300px; right: -200px;
    background: radial-gradient(circle, rgba(33, 124, 30, 0.14), transparent 70%);
}
.bg-grain {
    position: absolute; inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Type helpers ---------- */
.text-accent { color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    /* Century Gothic / Jost are geometric — they read best at bold weight
       for headlines, with very little negative tracking because the round
       forms already pack tightly. */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 6.4vw, 78px); font-weight: 700; }
h2 { font-size: clamp(26px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 24px); font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); font-family: var(--font-sans); font-weight: 700; }

p { margin: 0 0 16px; color: var(--text-muted); }

.section__head {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.section__head h2 { margin-bottom: 16px; }
.headline--single-line {
    white-space: nowrap;
}
.section__head:has(.headline--single-line),
.cta-band__inner:has(.headline--single-line),
.page-hero__inner:has(.headline--single-line) {
    max-width: none;
}
@media (max-width: 520px) {
    .headline--single-line {
        white-space: normal;
    }
    .section__head .headline--single-line {
        font-size: clamp(22px, 6.5vw, 32px);
    }
    .page-hero .headline--single-line {
        font-size: clamp(24px, 7vw, 36px);
    }
}
.section__intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 12px auto 0;
}
.section__body {
    max-width: 65ch;
    margin: 36px auto 0;
    text-align: center;
}
/* Standalone paragraphs/wrappers used after section content (e.g. inline CTA
   buttons after a teaser block) should always center their inline content. */
.section__cta {
    text-align: center;
    margin-top: 36px;
}

/* ---------- About teaser (home) ---------- */
.section.about-teaser {
    padding: 0;
    overflow: hidden;
}
.about-teaser__band {
    position: relative;
    width: 100%;
    aspect-ratio: 1899 / 640;
    min-height: clamp(280px, 33.7vw, 640px);
    background-image: var(--teaser-bg, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-teaser__copy {
    position: relative;
    z-index: 1;
    width: min(620px, 54vw);
    text-align: center;
    margin: 0;
    padding: 0 clamp(12px, 2vw, 20px);
}
.about-teaser__copy h2 {
    margin: 0 0 16px;
    color: var(--text);
}
.about-teaser__copy p {
    margin: 0;
    text-align: center;
}
.about-teaser__cta {
    position: absolute;
    bottom: clamp(20px, 4.5vh, 44px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin: 0;
    text-align: center;
}

@media (max-width: 980px) {
    .about-teaser__band {
        aspect-ratio: auto;
        min-height: clamp(420px, 120vw, 560px);
        background-size: cover;
        background-position: center;
        padding: clamp(28px, 6vw, 40px) clamp(20px, 4vw, 28px);
        padding-bottom: clamp(72px, 14vw, 96px);
    }
    .about-teaser__copy {
        width: 100%;
        max-width: none;
    }
    .about-teaser__cta {
        bottom: clamp(16px, 4vw, 28px);
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: var(--accent);
    color: var(--accent-on);
    box-shadow: 0 10px 30px -10px rgba(33, 124, 30, 0.55);
}
.btn--primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 34px -8px rgba(33, 124, 30, 0.7);
}
.btn--ghost {
    border-color: var(--border-strong);
    color: var(--text);
    background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(var(--bg-rgb), 0.72);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
    overflow: visible;
}
.nav.is-scrolled {
    background: rgba(var(--bg-rgb), 0.92);
    border-bottom-color: var(--border);
}
.nav__glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.nav__glow-streak {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    --nav-glow-x: 50%;
    background:
        radial-gradient(
            ellipse 42% 100% at var(--nav-glow-x) 50%,
            rgba(96, 210, 88, 1) 0%,
            rgba(33, 124, 30, 0.72) 38%,
            rgba(33, 124, 30, 0.22) 72%,
            rgba(33, 124, 30, 0.08) 100%
        );
    box-shadow:
        0 0 14px rgba(33, 124, 30, 0.75),
        0 0 28px rgba(33, 124, 30, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: background;
}
.nav.is-glow-active .nav__glow-streak { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .nav__glow { display: none; }
}
.nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    height: var(--nav-h);
}
.nav__brand {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    --brand-h: 22px;
    --est-size: 11px;
}
.nav__brand-mark {
    display: flex;
    align-items: baseline;
    align-items: last baseline;
    flex-shrink: 0;
}
.nav__logo { height: 26px; width: auto; max-width: 60vw; }
.nav__bulo {
    height: var(--brand-h);
    width: auto;
    display: block;
    flex-shrink: 0;
    margin-right: 6px;
}
.nav__wordtype {
    height: var(--brand-h);
    width: auto;
    max-width: 42vw;
    display: block;
    flex-shrink: 0;
}
.nav__est {
    margin-left: 0.35em;
    font-family: var(--font-sans);
    font-size: var(--est-size);
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

.nav__links {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 32px;
}
.nav__links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color .2s;
    position: relative;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    height: 1px; width: 0;
    background: var(--accent);
    transition: width .25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { width: 100%; background: var(--accent); }
.nav__mobile a.is-active { color: var(--accent); }

.nav__cta {
    grid-column: 3;
    justify-self: end;
    padding: 10px 18px;
    font-size: 13px;
}

.nav__toggle {
    grid-column: 3;
    justify-self: end;
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 0;
    position: relative;
}
.nav__toggle span {
    position: absolute;
    left: 10px; right: 10px;
    height: 1.5px;
    background: var(--text);
    transition: transform .25s, opacity .25s, top .25s;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav__mobile {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 24px var(--gutter) 32px;
    background: rgba(var(--bg-rgb), 0.98);
    border-bottom: 1px solid var(--border);
}
.nav__mobile a {
    color: var(--text-muted);
    font-size: 16px;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav__mobile a.btn {
    color: var(--accent-on);
    justify-content: center;
    margin-top: 8px;
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 880px) {
    .nav__links, .nav__cta { display: none; }
    .nav__toggle { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
    overflow: hidden;
    text-align: center;
}
.hero__inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero__title { margin-bottom: 28px; }
.hero__lede {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 auto 40px;
}
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__mark {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: min(620px, 60vw);
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}
.hero__mark img { width: 100%; height: auto; filter: brightness(2); }
@media (max-width: 900px) { .hero__mark { display: none; } }

/* ==========================================================================
   HEARD GRID
   ========================================================================== */
.heard-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
/* Push the 5-col single-row layout down to ~920px so landscape tablets and
   smaller laptops also avoid the orphan "5th card on a new row" problem. */
@media (max-width: 920px) {
    .heard-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 680px) {
    .heard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .heard-grid { grid-template-columns: 1fr; }
}
.heard-card {
    position: relative;
    padding: 30px 22px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .35s ease, border-color .35s, box-shadow .35s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.heard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 100% 0%, rgba(33, 124, 30, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity .35s;
}
.heard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 124, 30, 0.5);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(33, 124, 30, 0.18);
}
.heard-card:hover::before { opacity: 1; }
.heard-card__letter {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}
.heard-card h3 { margin-bottom: 10px; }
.heard-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* ==========================================================================
   VISION
   ========================================================================== */
.vision {
    padding: clamp(120px, 16vw, 200px) 0;
    text-align: center;
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(33, 124, 30, 0.14), transparent 70%),
        var(--bg);
}
.vision__inner { max-width: 920px; margin: 0 auto; }
.vision__quote {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(26px, 5.5vw, 68px);
    line-height: 1.25;
    margin: 16px auto 24px;
    letter-spacing: -0.005em;
}
.quote-mark {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 0.9em;
    line-height: 0;
    vertical-align: -0.1em;
    margin-right: 4px;
}
.quote-mark--close { margin-left: 4px; margin-right: 0; }
.vision__caption {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    margin: 0;
}

/* ==========================================================================
   VALUES + MISSION
   ========================================================================== */
.values-list {
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
@media (max-width: 920px) {
    .values-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 680px) {
    .values-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .values-list { grid-template-columns: 1fr; }
}
.values-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 12px;
    background: transparent;
    border: none;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 400;
    color: var(--text);
}
.values-list .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}
.mission-card {
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICES — master/detail browser (inspired by accessible tab/accordion
   patterns: Van11y, Shutters Accordion, vanilla-tabs-js)
   ========================================================================== */
.services-browser__hint {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Full-section photo backdrop — swaps when the user selects a service (JS sets --service-photo). */
.services-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}
.services-section > .container {
    position: relative;
    z-index: 1;
}
/* Two stacked layers crossfade when the user switches services. */
.services-section__bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.services-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(18%) brightness(0.48);
    opacity: 0;
    transition: opacity 0.75s ease;
    will-change: opacity;
}
.services-section__bg.is-visible {
    opacity: 1;
}
.services-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(55% 55% at 55% 45%, rgba(33, 124, 30, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(24, 24, 24, 0.72) 0%, rgba(24, 24, 24, 0.86) 100%);
}

.services-browser {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}
.services-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.services-nav__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(38, 38, 38, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted);
    text-align: left;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.services-nav__item:hover {
    color: var(--text);
    background: rgba(46, 46, 46, 0.92);
    border-color: var(--border-strong);
}
.services-nav__item.is-active {
    color: var(--text);
    background: rgba(46, 46, 46, 0.94);
    border-color: rgba(33, 124, 30, 0.45);
    box-shadow: inset 3px 0 0 var(--accent);
}
.services-nav__label {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}
.services-panels { min-width: 0; }
.services-panel {
    padding: 0;
    text-align: left;
    animation: servicePanelIn .35s ease;
}
.services-panel[hidden] { display: none; }
@keyframes servicePanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.services-panel h3 { margin-bottom: 22px; text-align: left; }
.services-panel ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}
.services-panel ul li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}
.services-panel ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}


@media (max-width: 900px) {
    .services-browser {
        grid-template-columns: 1fr;
    }
    .services-nav {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .services-nav__item {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 260px;
        padding: 12px 14px;
    }
    .services-nav__item.is-active {
        box-shadow: inset 0 -3px 0 var(--accent);
    }
}

/* Legacy card grid (services page detail cards) */
.services-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.service {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .35s ease, border-color .35s, background .35s;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 2px; width: 0;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width .4s ease;
}
.service:hover {
    transform: translateY(-3px);
    background: var(--surface-2);
    border-color: rgba(33, 124, 30, 0.4);
}
.service:hover::after { width: 100%; }
.service__num {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.service h3 { margin-bottom: 18px; }
.service ul {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    align-self: center;
}
.service ul li {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}
.service ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { border-top: 1px solid var(--border); background: var(--bg-soft); }
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: start;
}
@media (max-width: 900px) {
    .contact__inner { grid-template-columns: 1fr; }
}
.contact__copy {
    text-align: left;
    max-width: 100%;
}
.contact__copy h2 { margin-bottom: 20px; }
.contact__details {
    margin: 40px 0 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}
@media (max-width: 480px) {
    .contact__details { grid-template-columns: 1fr; gap: 22px; }
}
.contact__details li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.contact__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
}
.contact__details a,
.contact__details span:not(.contact__label) {
    font-size: 16px;
    color: var(--text);
    word-break: break-word;
    transition: color .2s;
}
.contact__details a:hover { color: var(--accent); }

/* form */
.contact__form {
    padding: 0;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: left; /* inputs and labels read left-to-right inside the form */
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
}
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 13px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
    transition: border-color .2s, background .2s, box-shadow .2s;
    resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(33, 124, 30, 0.22);
    background: var(--bg-soft);
}
.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.contact__form .btn { grid-column: 1 / -1; }
.form-status {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    min-height: 1.2em;
    color: var(--accent);
    text-align: center;
}
.form-status--success { color: var(--accent); }
.form-status--error { color: #ff8a8a; }
.contact__form .btn.is-loading {
    opacity: 0.72;
    cursor: wait;
}
.contact__form .btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}
@media (max-width: 600px) { .contact__form { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 64px 0 28px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr; gap: 36px; } }
.footer__logo { height: 26px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 38ch; }

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
.footer__cols h4 { margin-bottom: 16px; }
.footer__cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--text-faint);
}
.footer__tag { font-style: italic; }

/* ==========================================================================
   REVEAL animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--fade {
    opacity: 0;
    transition: opacity .8s ease;
    transition-delay: var(--delay, 0ms);
}
.reveal--fade.is-visible {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal--fade { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   PAGE HERO (for sub-pages: About, Services, Contact)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: clamp(120px, 14vw, 180px) 0 clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}
.page-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: clamp(30px, 6vw, 72px);
    margin-bottom: 20px;
}
.page-hero p {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 auto;
}
.page-hero__mark {
    position: absolute;
    right: -160px;
    top: 50%;
    transform: translateY(-50%);
    width: min(520px, 50vw);
    opacity: 0.14;
    z-index: 1;
    pointer-events: none;
}
.page-hero__mark img {
    width: 100%;
    filter: drop-shadow(0 0 14px rgba(33, 124, 30, 0.28));
}
/* On a photo-backed page-hero (e.g. Contact), the watermark needs more punch
   to read through the dark photo overlay. */
.page-hero.has-photo .page-hero__mark { opacity: 0.50; }
.page-hero.has-photo .page-hero__mark img {
    filter: drop-shadow(0 0 18px rgba(33, 124, 30, 0.35));
}
@media (max-width: 900px) { .page-hero__mark { display: none; } }

/* ==========================================================================
   CTA BAND (used on Home + sub-pages)
   ========================================================================== */
.cta-band {
    padding: clamp(64px, 10vw, 120px) 0;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(70% 80% at 50% 0%, rgba(33, 124, 30, 0.16), transparent 70%),
        var(--bg-soft);
    text-align: center;
}
.cta-band__inner { max-width: 760px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { font-size: 18px; color: var(--text-muted); margin-bottom: 28px; }
.cta-band__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   SERVICE CARDS (Home page teaser — Thintane-inspired layout)
   ========================================================================== */
.services-teaser-section {
    --card-bg: #ffffff;
    --card-text: #171717;
    --card-muted: #5c5c5c;
    --card-border: rgba(0, 0, 0, 0.08);
}
.services-teaser-section .section__head {
    margin-bottom: clamp(40px, 5vw, 56px);
}
.services-teaser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 28px);
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}
.service-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    color: inherit;
}
.service-card__media {
    overflow: hidden;
}
.service-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.service-card__media picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.service-card__media picture img {
    height: 100%;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: clamp(18px, 2.2vw, 24px);
    text-align: left;
}
.service-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.service-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f3f3;
    position: relative;
}
.service-card__icon::after {
    content: "";
    position: absolute;
    inset: 11px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    box-shadow: inset 0 -6px 0 var(--accent);
}
.service-card h3 {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.25;
    color: var(--card-text);
}
.service-card__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--card-muted);
}
.service-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-card__features li {
    position: relative;
    padding-left: 28px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--card-text);
}
.service-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23217c1e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.8'/></svg>")
        center / 11px no-repeat;
}
.service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - clamp(36px, 4.4vw, 48px));
    margin: 0 auto clamp(18px, 2.2vw, 24px);
    padding: 13px 18px;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}
.service-card__cta:hover,
.service-card:hover .service-card__cta { background: var(--accent); }
.service-card__cta span { transition: transform 0.25s ease; }
.service-card:hover .service-card__cta span { transform: translateX(3px); }

@media (min-width: 1200px) {
    .services-teaser { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .services-teaser { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HEARD STRIP (Home page only — compact, single-row preview)
   ========================================================================== */
.heard-strip {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: transparent;
    border: none;
}
.heard-strip__item {
    padding: 28px 18px;
    text-align: center;
    background: transparent;
}
.heard-strip__letter {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    color: var(--accent);
    line-height: 1;
    font-weight: 300;
}
.heard-strip__label {
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}
@media (max-width: 720px) {
    .heard-strip { grid-template-columns: repeat(5, 1fr); }
    .heard-strip__item { padding: 18px 6px; }
    .heard-strip__label { font-size: 10px; letter-spacing: 0.1em; }
}

/* Section utility: tighten spacing when a page-hero sits right above */
.page-hero + .section { border-top: none; padding-top: clamp(56px, 8vw, 96px); }

/* ==========================================================================
   FEATURE IMAGE — full-width photo block embedded in a section
   ========================================================================== */
.feature-image {
    margin: 0 auto;
    width: 100%;
    max-width: 1240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9),
                0 0 0 1px var(--border);
}
.feature-image picture {
    display: block;
    width: 100%;
}
.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(10%) brightness(0.92) contrast(1.05);
    transition: transform 1.4s ease, filter .6s ease;
}
.feature-image:hover img {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(1) contrast(1.05);
}
/* Subtle red wash on hover so the brand peeks through the photography */
.feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}
.feature-image--portrait img { aspect-ratio: 4 / 5; }
.feature-image--tall img     { aspect-ratio: 3 / 4; max-height: 720px; }

/* Break out of the container to span the full viewport width. */
.feature-image--full {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
}
.feature-image--full::after { display: none; }
.feature-image--full img {
    aspect-ratio: 21 / 9;
    max-height: min(520px, 56vh);
}

/* When a feature image sits before a section__head, give them air */
.feature-image + .section__head,
.section__head + .feature-image,
.section__body + .feature-image,
.feature-image + .section__body { margin-top: clamp(40px, 6vw, 72px); }

/* ==========================================================================
   PHOTO-BACKED SECTIONS — use a JPG as a tinted backdrop for a section.
   Apply .has-photo together with one of the photo modifier classes below.
   (Direct CSS url()s are used so paths resolve correctly relative to this
   stylesheet rather than the consuming HTML page.)
   ========================================================================== */
.has-photo {
    position: relative;
    isolation: isolate;
}
.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--photo-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(20%) brightness(0.55);
    z-index: -2;
}
.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(33, 124, 30, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
    z-index: -1;
}
.has-photo--transformation::before,
.has-photo--discussion::before {
    background-image: var(--photo-bg, none);
}
.has-photo--handshake::before {
    background-image: image-set(
        url("../assets/handshake.webp") type("image/webp"),
        url("../assets/handshake.jpg") type("image/jpeg")
    );
}
.has-photo--boardroom::before {
    background-image: image-set(
        url("../assets/team-boardroom.webp") type("image/webp"),
        url("../assets/team-boardroom.jpg") type("image/jpeg")
    );
}
.has-photo--hero::before {
    background-image: image-set(
        url("../assets/hero-bg.webp") type("image/webp"),
        url("../assets/hero-bg.jpg") type("image/jpeg")
    );
    /* Hero photo is full-colour, not B&W like the others — push the grayscale
       and brightness further so the brand red overlay reads cohesively. */
    filter: grayscale(35%) brightness(0.50) contrast(1.05);
}
/* Stronger top-to-bottom darken on the hero so the headline + CTAs pop. */
.hero.has-photo::after {
    background:
        radial-gradient(80% 70% at 30% 40%, rgba(33, 124, 30, 0.22), transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
}
/* Brand-red B watermark sits on top of the hero photo. The screen blend
   that made the white mark glow is intentionally NOT used here — we want
   the red to read as its true brand colour, not as a brightened highlight. */
.hero.has-photo .hero__mark {
    opacity: 0.55;
    mix-blend-mode: normal;
}
.hero.has-photo .hero__mark img {
    /* Drop the brightness(2) used to make the white mark glow; let the red
       speak for itself with a subtle soft glow for depth. */
    filter: drop-shadow(0 0 18px rgba(33, 124, 30, 0.35));
}

/* Vision section already had its own gradient backdrop — when it has a photo
   we need to neutralise the original radial so the photo shows through. */
.vision.has-photo { background: var(--bg); }

@media (max-width: 760px) {
    .feature-image img { aspect-ratio: 4 / 3; }
    .feature-image--full img {
        aspect-ratio: 16 / 10;
        max-height: none;
    }
}

/* ==========================================================================
   RESPONSIVE — comprehensive breakpoint refinements
   Strategy: rules are written desktop-first above; the queries below adapt
   spacing, stacking and touch ergonomics down to ~320px wide screens.
   ========================================================================== */

/* Smooth anchor scroll — keep target below the sticky nav */
:where([id]) { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ----- Tablet ( <= 1024px ) ------------------------------------------ */
@media (max-width: 1024px) {
    :root { --nav-h: 70px; }

    .hero { padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 10vw, 110px); }
    .hero__mark { right: -140px; width: min(440px, 55vw); }
    .page-hero__mark { right: -120px; width: min(380px, 45vw); }

    .footer__inner { gap: 48px; }
}

/* ----- Phablet / large phone ( <= 760px ) ---------------------------- */
@media (max-width: 760px) {
    :root { --nav-h: 64px; }

    .section { padding: clamp(56px, 10vw, 96px) 0; }
    .hero { padding: 88px 0 64px; }
    .page-hero { padding: 96px 0 56px; }

    /* Pull the hero/page-hero mark off-screen on mobile (already hidden < 900px) */
    .hero__mark, .page-hero__mark { display: none; }

    /* Stack the grids that were 1fr / 1.4fr two-cols */
    .grid-2, .grid-2--values { grid-template-columns: 1fr; gap: 32px; }

    .hero__cta { gap: 10px; }

    /* Vision quote tighter */
    .vision { padding: clamp(80px, 14vw, 140px) 0; }

    /* Footer columns: keep grouped but flow gracefully */
    .footer__cols { gap: 28px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Contact form fields: a touch tighter */
    .contact__form { padding: 24px; gap: 14px; }
    .contact__details { gap: 12px; }
    .contact__details li { padding: 14px 0; }

    /* Heard cards: comfortable spacing in 2-col layout */
    .heard-card { padding: 26px 22px 24px; }
    .heard-card__letter { font-size: 56px; margin-bottom: 18px; }

    /* HEARD strip (home): keep 5 cells but shrink type */
    .heard-strip__item { padding: 22px 8px; }
    .heard-strip__letter { font-size: 38px; }
    .heard-strip__label { font-size: 10px; letter-spacing: 0.1em; margin-top: 8px; }

    /* Service cards: slightly tighter inner padding */
    .service { padding: 26px 22px; }

    /* Values list goes single column */
    .values-list { grid-template-columns: 1fr; gap: 0; }
    .values-list li { font-size: clamp(22px, 5vw, 26px); }
}

/* ----- Phone ( <= 520px ) -------------------------------------------- */
@media (max-width: 520px) {
    .nav__logo { height: 22px; }
    .nav__brand { --brand-h: 19px; --est-size: 10px; }
    .nav__bulo { margin-right: 5px; }
    .nav__est { margin-left: 0.3em; }

    /* Buttons go full-width and stacked on small phones for easier tapping */
    .hero__cta .btn,
    .cta-band__actions .btn { width: 100%; }
    .cta-band__actions { flex-direction: column; align-items: stretch; }

    /* Inline buttons inside teaser paragraphs become full-width (but never
       form submits — those have .btn--block which already handles it) */
    .section .btn:not(.btn--block) { width: 100%; }

    /* HEARD strip: clamp letter very small + allow label wrap */
    .heard-strip__item { padding: 18px 4px; }
    .heard-strip__letter { font-size: 28px; }
    .heard-strip__label {
        font-size: 9px;
        letter-spacing: 0.04em;
        word-break: break-word;
        hyphens: auto;
    }

    /* Vision quote marks smaller */
    .quote-mark { font-size: 0.7em; }

    /* CTA band tighter padding */
    .cta-band { padding: clamp(48px, 12vw, 96px) 0; }
    .cta-band p { font-size: 16px; }

    /* Footer: drop to 1 column at very narrow widths */
    .footer__cols { grid-template-columns: 1fr; gap: 22px; }
    .footer__brand p { max-width: 100%; }
    .footer__logo { height: 22px; }
    .footer__inner { gap: 32px; margin-bottom: 32px; }
    .footer { padding: 48px 0 24px; }

    /* Reduce hero CTA top spacing on tiny screens */
    .hero__cta { margin-bottom: 40px; }

    /* Mobile menu spacing */
    .nav__mobile { padding: 20px var(--gutter) 28px; gap: 14px; }
    .nav__mobile a { font-size: 16px; padding: 6px 0; }
}

/* ----- Tiny phones ( <= 360px ) -------------------------------------- */
@media (max-width: 360px) {
    /* HEARD strip: at this width the label is unreadable — keep 5 cells
       but hide the long label text and rely on the letter alone. */
    .heard-strip__item { padding: 16px 2px; }
    .heard-strip__letter { font-size: 26px; }
    .heard-strip__label { display: none; }
}

/* ----- Landscape phones: shorten vertical hero ----------------------- */
@media (max-height: 560px) and (orientation: landscape) {
    .hero { padding: 80px 0 56px; }
    .page-hero { padding: 80px 0 40px; }
}

/* ----- Touch / hover-less devices: disable hover lifts --------------- */
@media (hover: none) {
    .btn:hover,
    .heard-card:hover,
    .service:hover,
    .service-card:hover,
    .heard-strip__item:hover { transform: none; }
}
