/*
 * Komodo Boat Builder — "Teak & Hull" design system.
 *
 * Hand-authored CSS, no build step. Deep hull navy + teak + bone,
 * Playfair Display (display serif) + Inter Tight (body sans).
 *
 * The brand is a shipyard, so the motifs are a shipwright's: hairline
 * rules like deck seams, two-digit chapter numerals, teak-warm accents
 * against cold marine navy, and a lot of empty space. Restraint is the
 * luxury signal — no gradients-on-gradients, no heavy shadows.
 */

/* ---------------------------------------------------------------- tokens */
:root {
    /* hull — deep marine navy, the dark ground */
    --hull: #0c1e27;
    --hull-2: #122c38;
    --hull-3: #1b3f4e;

    /* teak — warm deck timber, the single accent */
    --teak: #b06e3f;
    --teak-h: #c9834f;
    --teak-d: #8a5430;
    /* Solid fill behind white text: --teak itself only reaches 4.08:1. */
    --teak-btn: #a05f2d;
    --teak-soft: rgba(176, 110, 63, .1);

    /* bone — warm off-white, the light ground */
    --bone: #f6f4ef;
    --bone-2: #efebe3;
    --paper: #fcfbf8;

    /* ink */
    --text: #11232d;
    --text-soft: #4b5c66;
    --text-muted: #5f7078;
    --on-hull: #eef1f2;
    --on-hull-soft: #aebbc2;
    --on-hull-muted: #8b9ba4;

    /* hairlines — the deck-seam motif */
    --line: rgba(17, 35, 45, .13);
    --line-soft: rgba(17, 35, 45, .07);
    --line-on-hull: rgba(238, 241, 242, .16);
    --line-on-hull-soft: rgba(238, 241, 242, .08);

    --shadow-card: 0 1px 2px rgba(12, 30, 39, .03), 0 12px 32px -18px rgba(12, 30, 39, .16);
    --shadow-lift: 0 24px 56px -28px rgba(12, 30, 39, .32);

    --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --r-xs: 2px;
    --r-sm: 4px;
    --r: 8px;
    --r-lg: 16px;
    --r-pill: 999px;

    --container: 1240px;
    --measure: 72ch;
    --gutter: 20px;
    --header-h: 72px;

    --sp-band: clamp(3.75rem, 8vw, 7.5rem);
}

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

/* Light-ground theme: tell the browser so native controls and
   scrollbars are styled to match rather than guessed. */
:root { color-scheme: light; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    /* Removes the 300ms double-tap zoom delay on touch devices, and
       keeps the tap flash deliberate rather than the browser default. */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(176, 110, 63, .18);
    background: var(--bone);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.68;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

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

:focus-visible {
    outline: 2px solid var(--teak);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--hull);
    color: var(--on-hull);
    padding: .75rem 1.25rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------- typography */
h1, h2, h3, h4 {
    scroll-margin-top: calc(var(--header-h) + 24px);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.012em;
    margin: 0;
    text-wrap: balance;
}

.kbb-h1 {
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    font-weight: 500;
}
.kbb-h2 {
    font-size: clamp(1.6rem, 3.3vw, 2.5rem);
}
.kbb-h3 {
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
}

.kbb-h1 em, .kbb-h2 em, .kbb-h3 em {
    font-style: italic;
    color: var(--teak);
}
.kbb-band--hull .kbb-h1 em,
.kbb-band--hull .kbb-h2 em,
.kbb-hero .kbb-h1 em { color: var(--teak-h); }

/* The eyebrow: letterspaced micro-caps over a short teak rule. */
.kbb-eyebrow {
    margin: 0 0 1.1rem;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teak-d);
    display: flex;
    align-items: center;
    gap: .7rem;
}
.kbb-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--teak);
    flex: none;
}
.kbb-band--hull .kbb-eyebrow,
.kbb-hero .kbb-eyebrow { color: var(--teak-h); }
.kbb-band--hull .kbb-eyebrow::before,
.kbb-hero .kbb-eyebrow::before { background: var(--teak-h); }
.kbb-eyebrow--center { justify-content: center; }

.kbb-lede {
    font-size: clamp(1.02rem, 1.55vw, 1.18rem);
    line-height: 1.62;
    color: var(--text-soft);
    margin: 1.15rem 0 0;
    max-width: 62ch;
    font-weight: 350;
}
.kbb-band--hull .kbb-lede,
.kbb-hero .kbb-lede { color: var(--on-hull-soft); }

.kbb-intro {
    font-size: 1.02rem;
    color: var(--text-soft);
    margin: 1.1rem auto 0;
    max-width: 68ch;
}
.kbb-band--hull .kbb-intro { color: var(--on-hull-soft); }

/* ----------------------------------------------------------- layout atoms */
.kbb-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

.kbb-band {
    padding-block: var(--sp-band);
    position: relative;
}
.kbb-band--bone { background: var(--bone); color: var(--text); }
.kbb-band--hull { background: var(--hull); color: var(--on-hull); }
.kbb-band--paper { background: var(--paper); }

/* A hairline between two same-tone bands, so the seam still reads. */
.kbb-band--bone + .kbb-band--bone { border-top: 1px solid var(--line-soft); }

.kbb-heading-block { max-width: 60ch; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.kbb-heading-block--center {
    max-width: 64ch;
    margin-inline: auto;
    text-align: center;
}
.kbb-heading-block--center .kbb-lede { margin-inline: auto; }

/* --------------------------------------------------------------- buttons */
.kbb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
    white-space: nowrap;
}
.kbb-btn:hover { transform: translateY(-1px); }
.kbb-btn i { font-size: 1.05em; }

.kbb-btn--teak { background: var(--teak-btn); color: #fff; }
/* Darkens on press rather than lightening, so white text keeps its
   contrast in the hover state too. */
.kbb-btn--teak:hover { background: var(--teak-d); }

.kbb-btn--hull { background: var(--hull); color: var(--on-hull); }
.kbb-btn--hull:hover { background: var(--hull-2); }

.kbb-btn--outline {
    border-color: var(--line);
    color: var(--text);
    background: transparent;
}
.kbb-btn--outline:hover { border-color: var(--teak); color: var(--teak-d); }

.kbb-btn--on-hull {
    border-color: var(--line-on-hull);
    color: var(--on-hull);
}
.kbb-btn--on-hull:hover {
    border-color: var(--teak-h);
    color: var(--teak-h);
    background: transparent;
}

.kbb-btn--sm { padding: .68rem 1.15rem; font-size: .74rem; }

.kbb-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

/* A quiet text link with a sliding arrow. */
.kbb-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .79rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--teak-d);
}
.kbb-link i { transition: transform .22s ease; }
.kbb-link:hover i { transform: translateX(4px); }
.kbb-band--hull .kbb-link { color: var(--teak-h); }
/* ...but not when the link sits inside a light tile on that dark band. */
.kbb-band--hull .kbb-method .kbb-link,
.kbb-band--hull .kbb-panel .kbb-link,
.kbb-band--hull .kbb-quick__item .kbb-link { color: var(--teak-d); }

/* ------------------------------------------------------------ breadcrumb */
.kbb-crumb { margin-bottom: 1.75rem; }
.kbb-crumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--on-hull-muted);
}
.kbb-crumb a {
    display: inline-block;
    padding-block: .3rem;
    text-decoration: none;
    color: var(--on-hull-soft);
}
.kbb-crumb a:hover { color: var(--teak-h); }
.kbb-crumb [aria-current] { color: var(--on-hull); }
.kbb-band--bone .kbb-crumb ol { color: var(--text-muted); }
.kbb-band--bone .kbb-crumb a { color: var(--text-soft); }
.kbb-band--bone .kbb-crumb [aria-current] { color: var(--text); }

/* ================================================================ HEADER */
.kbb-utility {
    background: var(--hull);
    color: var(--on-hull-soft);
    border-bottom: 1px solid var(--line-on-hull-soft);
    font-size: .76rem;
}
.kbb-utility__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: .25rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.kbb-utility__group { display: flex; align-items: center; gap: 1.4rem; }
.kbb-utility a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding-block: .3rem;
}
.kbb-utility a:hover { color: var(--teak-h); }
.kbb-utility span { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 860px) { .kbb-utility { display: none; } }

.kbb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 244, 239, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .25s ease, background-color .25s ease;
}
.kbb-header.is-stuck { box-shadow: 0 1px 24px -8px rgba(12, 30, 39, .18); }

.kbb-header__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.kbb-header__brand { text-decoration: none; flex: none; margin-right: auto; }
.kbb-header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* logo + wordmark */
.kbb-logo { width: auto; object-fit: contain; }
.kbb-logo--md { max-height: 42px; }
.kbb-logo--lg { max-height: 54px; }
/* Footer/drawer logos sit on hull navy. A dark-ink logo would vanish
   there, so when no dedicated white file is set we invert it. */
.kbb-logo.is-invert { filter: brightness(0) invert(1); }

.kbb-wordmark { display: inline-flex; align-items: center; gap: .6rem; }
.kbb-wordmark__mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teak-btn);
    color: #fff;
    font-size: 1.05rem;
    flex: none;
}
.kbb-wordmark__text {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.01em;
    display: flex;
    flex-direction: column;
}
.kbb-wordmark__text em {
    font-style: italic;
    font-weight: 400;
    font-size: .82em;
    color: var(--teak-d);
}
.kbb-wordmark--light .kbb-wordmark__text { color: var(--on-hull); }
.kbb-wordmark--light .kbb-wordmark__text em { color: var(--teak-h); }
.kbb-wordmark--lg .kbb-wordmark__text { font-size: 1.4rem; }
.kbb-wordmark--lg .kbb-wordmark__mark { width: 40px; height: 40px; }

/* primary nav */
.kbb-nav > ul {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.kbb-nav li { position: relative; }
.kbb-nav a {
    display: block;
    padding: .55rem .72rem;
    font-size: .83rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-soft);
    border-radius: var(--r-sm);
    transition: color .18s ease;
    white-space: nowrap;
}
.kbb-nav a:hover { color: var(--teak-d); }
.kbb-nav .current-menu-item > a,
.kbb-nav .current_page_item > a {
    color: var(--text);
    font-weight: 600;
}
/* On a service page the dropdown is closed, so the parent carries the
   mark instead — otherwise nothing in the bar says where you are. */
.kbb-nav .current-menu-ancestor > a,
.kbb-nav .current-menu-parent > a,
.kbb-nav .current_page_ancestor > a {
    color: var(--text);
    font-weight: 600;
}

/* dropdowns */
.kbb-nav .sub-menu,
.kbb-nav .children {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 252px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    box-shadow: var(--shadow-lift);
    padding: .4rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 20;
}
.kbb-nav li:hover > .sub-menu,
.kbb-nav li:focus-within > .sub-menu,
.kbb-nav li:hover > .children,
.kbb-nav li:focus-within > .children {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.kbb-nav .sub-menu a { padding: .6rem .8rem; white-space: normal; }
.kbb-nav .sub-menu a:hover { background: var(--teak-soft); }

/* A parent needs to look like one, so it carries a chevron that turns
   over when its dropdown is showing. */
.kbb-nav .menu-item-has-children > a { padding-right: 1.45rem; position: relative; }
.kbb-nav .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: .66rem;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .55;
    transition: transform .2s ease, opacity .2s ease;
}
.kbb-nav .menu-item-has-children:hover > a::after,
.kbb-nav .menu-item-has-children:focus-within > a::after {
    transform: rotate(-135deg);
    margin-top: -1px;
    opacity: 1;
}

/* Group heading inside a dropdown — a label, never a link (see
   kbb_nav_group_heading() in hooks/init-menu.php). */
.kbb-nav .sub-menu .kbb-nav__group {
    display: block;
    padding: .7rem .8rem .3rem;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-nav .sub-menu > li:first-child .kbb-nav__group { padding-top: .35rem; }
.kbb-nav .sub-menu .kbb-nav__group + * { margin-top: 0; }

@media (max-width: 1100px) { .kbb-nav { display: none; } }

/* burger + drawer */
/* Below 520px the header CTA collapses to its icon, so the wordmark and
   the burger both keep their space instead of fighting for it. */
@media (max-width: 519px) {
    .kbb-header__actions .kbb-btn--teak {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }
    .kbb-header__actions .kbb-btn--teak .kbb-btn__label { display: none; }
    .kbb-header__actions .kbb-btn--teak i { font-size: 1.15rem; }
    .kbb-header__inner { gap: .6rem; }
}

.kbb-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    place-items: center;
}
@media (max-width: 1100px) { .kbb-burger { display: grid; } }

.kbb-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.kbb-drawer[aria-hidden="false"] { visibility: visible; }
.kbb-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 30, 39, .55);
    opacity: 0;
    transition: opacity .28s ease;
}
.kbb-drawer[aria-hidden="false"] .kbb-drawer__backdrop { opacity: 1; }
.kbb-drawer__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(400px, 90vw);
    background: #091820;
    color: var(--on-hull);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.25, .8, .25, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.kbb-drawer[aria-hidden="false"] .kbb-drawer__panel { transform: none; }
.kbb-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--line-on-hull-soft);
}
.kbb-drawer__close {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: transparent;
    border: 1px solid var(--line-on-hull);
    border-radius: var(--r-sm);
    color: var(--on-hull);
    font-size: 1.15rem;
    cursor: pointer;
}
.kbb-drawer__nav { padding: 1rem .9rem; flex: 1; }
.kbb-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.kbb-drawer__nav .sub-menu { padding-left: .9rem; }
.kbb-drawer__nav .kbb-nav__group {
    display: block;
    padding: 1rem .6rem .35rem;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--on-hull-muted);
}
.kbb-drawer__nav .menu-item-has-children > a { font-weight: 600; color: var(--on-hull); }
.kbb-drawer__nav a {
    display: block;
    padding: .72rem .6rem;
    font-size: .95rem;
    text-decoration: none;
    color: var(--on-hull-soft);
    border-bottom: 1px solid var(--line-on-hull-soft);
}
.kbb-drawer__nav a:hover { color: var(--teak-h); }
.kbb-drawer__nav .current-menu-item > a,
.kbb-drawer__nav .current_page_item > a { color: var(--teak-h); font-weight: 600; }
.kbb-drawer__nav .current-menu-ancestor > a,
.kbb-drawer__nav .current_page_ancestor > a { color: var(--on-hull); }
.kbb-drawer__foot { padding: 1.2rem 1.4rem 1.6rem; }
.kbb-drawer__foot .kbb-btn { width: 100%; }

/* ================================================================== HERO */
/* Cinematic full-bleed photograph + scrim. Deliberately the opposite of
   the sibling theme's decorative document panel. */
.kbb-hero {
    position: relative;
    background: var(--hull);
    color: var(--on-hull);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.kbb-hero__media { position: absolute; inset: 0; }
.kbb-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Two layers: a vertical gradient that anchors the text to the bottom,
   and a horizontal one that darkens only the column the copy sits in.
   The second is what keeps an eyebrow legible over a bright sky without
   flattening the whole photograph. */
.kbb-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(12, 30, 39, .78) 0%, rgba(12, 30, 39, .55) 38%, rgba(12, 30, 39, .12) 72%, rgba(12, 30, 39, 0) 100%),
        linear-gradient(to top, rgba(12, 30, 39, .92) 0%, rgba(12, 30, 39, .66) 40%, rgba(12, 30, 39, .34) 72%, rgba(12, 30, 39, .46) 100%);
}

/* On phones the copy spans the full width, so the directional layer is
   replaced by an even wash. */
@media (max-width: 767px) {
    .kbb-hero__scrim {
        background:
            linear-gradient(to top, rgba(12, 30, 39, .93) 0%, rgba(12, 30, 39, .74) 45%, rgba(12, 30, 39, .55) 100%);
    }
}
.kbb-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 6.5rem var(--gutter) 2.75rem;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.kbb-hero__body { max-width: 62ch; }
.kbb-hero__title { color: #fff; }
.kbb-hero__lede { max-width: 56ch; }

/* Hairline spec strip along the bottom — the deck-seam motif. */
.kbb-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 2.75rem;
    background: var(--line-on-hull-soft);
    border: 1px solid var(--line-on-hull-soft);
}
.kbb-hero__fact {
    background: rgba(12, 30, 39, .42);
    padding: 1rem 1.15rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.kbb-hero__fact-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--teak-h);
    line-height: 1.1;
}
.kbb-hero__fact-label {
    display: block;
    margin-top: .3rem;
    font-size: .68rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--on-hull-muted);
}

/* Mobile hero must fit one viewport — a ladder, not one value, plus a
   tighter vertical rhythm below 640px so the fact strip is not pushed
   off the first screen. */
@media (max-width: 639px) {
    .kbb-hero__inner {
        padding-top: 4.25rem;
        padding-bottom: 1.5rem;
    }
    .kbb-hero .kbb-h1 { font-size: 1.95rem; }
    .kbb-hero__lede {
        font-size: .96rem;
        line-height: 1.55;
        margin-top: .85rem;
    }
    .kbb-hero .kbb-cta-row {
        margin-top: 1.35rem;
        gap: .5rem;
    }
    /* Side by side rather than stacked: two short buttons cost one row,
       not two, which is the difference between fitting and not. */
    .kbb-hero .kbb-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: .8rem .7rem;
        font-size: .71rem;
        letter-spacing: .06em;
    }
    .kbb-hero__facts {
        margin-top: 1.5rem;
    }
    .kbb-hero__fact { padding: .7rem .8rem; }
    .kbb-hero__fact-value { font-size: 1rem; }
    .kbb-hero__fact-label { font-size: .58rem; letter-spacing: .1em; margin-top: .2rem; }
    .kbb-crumb { margin-bottom: 1.1rem; }
    .kbb-crumb ol { font-size: .66rem; }
}

.kbb-hero { min-height: auto; }
@media (min-width: 480px) { .kbb-hero { min-height: 540px; } }
@media (min-width: 640px) {
    .kbb-hero { min-height: 600px; }
    .kbb-hero__facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    .kbb-hero { min-height: 70vh; }
    .kbb-hero__inner { padding-top: 8rem; padding-bottom: 3.5rem; }
}
@media (min-width: 1024px) { .kbb-hero { min-height: 78vh; } }
@media (min-width: 1280px) { .kbb-hero { min-height: 82vh; } }

/* Homepage hero runs taller and centres its own column. */
.kbb-hero--home .kbb-hero__inner { padding-top: 7rem; }
@media (min-width: 768px) {
    .kbb-hero--home { min-height: 84vh; }
    .kbb-hero--home .kbb-hero__inner { padding-top: 10rem; padding-bottom: 4rem; }
}

/* ========================================================= ANSWER BLOCK */
/* The "In short:" paragraph an answer engine quotes. */
.kbb-answer {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
@media (min-width: 900px) { .kbb-answer { grid-template-columns: 1fr 1fr; } }

.kbb-answer__text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.3vw, 1.72rem);
    line-height: 1.42;
    font-weight: 400;
    color: var(--text);
    margin: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--teak);
}
.kbb-band--hull .kbb-answer__text { color: var(--on-hull); }

.kbb-answer__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kbb-answer__points li {
    display: flex;
    gap: .9rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
    color: var(--text-soft);
}
.kbb-answer__points li:first-child { border-top: 1px solid var(--line-soft); }
.kbb-answer__points i { color: var(--teak); flex: none; margin-top: .25rem; }
.kbb-band--hull .kbb-answer__points li {
    border-color: var(--line-on-hull-soft);
    color: var(--on-hull-soft);
}
.kbb-band--hull .kbb-answer__points i { color: var(--teak-h); }

/* =============================================================== CHAPTERS */
/* The workhorse: long editorial prose as numbered chapters on a hairline
   rail, two columns on wide screens so the measure stays readable. */
/* Centred and capped: the body is held to a readable measure, so left
   alignment inside a 1240px container would leave all the slack on one
   side. Capping the block balances it. */
.kbb-chapters {
    display: grid;
    gap: 0;
    max-width: 68rem;
    margin-inline: auto;
}
.kbb-chapter {
    display: grid;
    gap: .5rem 2.5rem;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-top: 1px solid var(--line-soft);
}
.kbb-chapter:last-child { border-bottom: 1px solid var(--line-soft); }
.kbb-band--hull .kbb-chapter { border-color: var(--line-on-hull-soft); }

@media (min-width: 900px) {
    .kbb-chapter { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); }
}

.kbb-chapter__num {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--teak-d);
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}
.kbb-band--hull .kbb-chapter__num { color: var(--teak-h); }

.kbb-chapter__title { margin-bottom: .85rem; }
.kbb-chapter__body { max-width: var(--measure); overflow-wrap: break-word; }
.kbb-chapter__body p {
    margin: 0 0 1.05rem;
    color: var(--text-soft);
}
.kbb-chapter__body p:last-child { margin-bottom: 0; }
.kbb-band--hull .kbb-chapter__body p { color: var(--on-hull-soft); }

/* A drop cap on the first chapter only — an editorial grace note. */
.kbb-chapter:first-child .kbb-chapter__body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.4em;
    line-height: .82;
    font-weight: 500;
    padding: .06em .12em 0 0;
    color: var(--teak);
}

/* ================================================================= CARDS */
.kbb-cards {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.kbb-band--hull .kbb-cards,
.kbb-band--hull .kbb-cards { background: var(--line-on-hull-soft); border-color: var(--line-on-hull-soft); }

@media (min-width: 640px) { .kbb-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .kbb-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .kbb-cards--4 { grid-template-columns: repeat(4, 1fr); } }

.kbb-card {
    background: var(--bone);
    padding: clamp(1.5rem, 2.6vw, 2.1rem);
    display: flex;
    flex-direction: column;
    gap: .7rem;
    transition: background-color .24s ease;
}
.kbb-card:hover { background: var(--paper); }
.kbb-band--hull .kbb-card { background: var(--hull); }
.kbb-band--hull .kbb-card:hover { background: var(--hull-2); }

.kbb-card__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--teak);
    font-size: 1.1rem;
    margin-bottom: .35rem;
}
.kbb-band--hull .kbb-card__icon { border-color: var(--line-on-hull); color: var(--teak-h); }

.kbb-card__num {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--teak-d);
    letter-spacing: .08em;
}
.kbb-band--hull .kbb-card__num { color: var(--teak-h); }

.kbb-card h3 { font-size: 1.14rem; }
.kbb-card p { margin: 0; font-size: .93rem; color: var(--text-soft); }
.kbb-band--hull .kbb-card p { color: var(--on-hull-soft); }
.kbb-card__link { margin-top: auto; padding-top: .9rem; }

/* ================================================================= SPLIT */
.kbb-split {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (min-width: 900px) {
    .kbb-split { grid-template-columns: 1fr 1fr; }
    .kbb-split--flip .kbb-split__media { order: -1; }
}
.kbb-split__body { max-width: var(--measure); }
.kbb-split__body p { color: var(--text-soft); margin: 0 0 1.05rem; }
.kbb-band--hull .kbb-split__body p { color: var(--on-hull-soft); }
.kbb-split__list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.kbb-split__list li {
    display: flex;
    gap: .8rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .94rem;
    color: var(--text-soft);
}
.kbb-split__list i { color: var(--teak); flex: none; margin-top: .3rem; }
.kbb-band--hull .kbb-split__list li { border-color: var(--line-on-hull-soft); color: var(--on-hull-soft); }

.kbb-split__media {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--hull-2);
    aspect-ratio: 4 / 3;
}
.kbb-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Legal pages render as a single readable prose column. */
.kbb-prose { max-width: var(--measure); }
.kbb-prose h2 { margin: 2.25rem 0 .85rem; }
.kbb-prose p { color: var(--text-soft); margin: 0 0 1.05rem; }

/* ================================================================= STEPS */
/* Vertical timeline on a teak rail. */
.kbb-steps { display: grid; gap: 0; position: relative; max-width: 68rem; margin-inline: auto; }
.kbb-step {
    display: grid;
    gap: .4rem 1.75rem;
    padding: 0 0 2.25rem;
    position: relative;
}
@media (min-width: 720px) {
    .kbb-step { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
}
.kbb-step__aside { position: relative; }
.kbb-step__n {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--teak);
    color: var(--teak);
    font-family: var(--font-display);
    font-size: .95rem;
    background: var(--bone);
    position: relative;
    z-index: 2;
}
.kbb-band--hull .kbb-step__n { background: var(--hull); border-color: var(--teak-h); color: var(--teak-h); }
.kbb-step__window {
    display: block;
    margin-top: .55rem;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-band--hull .kbb-step__window { color: var(--on-hull-muted); }

/* the rail */
.kbb-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 0;
    width: 1px;
    background: var(--line);
}
.kbb-step:last-child::before { display: none; }
.kbb-band--hull .kbb-step::before { background: var(--line-on-hull); }
@media (max-width: 719px) {
    .kbb-step { padding-left: 3.75rem; }
    .kbb-step__aside { position: absolute; left: 0; top: 0; }
    .kbb-step::before { left: 20px; }
}

.kbb-step__title { margin-bottom: .5rem; }
.kbb-step__body { color: var(--text-soft); max-width: var(--measure); }
.kbb-band--hull .kbb-step__body { color: var(--on-hull-soft); }

.kbb-note {
    margin-top: 1.5rem;
    font-size: .86rem;
    color: var(--text-muted);
    max-width: 66ch;
}
.kbb-band--hull .kbb-note { color: var(--on-hull-muted); }

/* ================================================================= STATS */
/* Hairline ticker band — four figures separated by deck seams. */
.kbb-stats {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border-block: 1px solid var(--line-soft);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .kbb-stats { grid-template-columns: repeat(4, 1fr); } }
.kbb-band--hull .kbb-stats { background: var(--line-on-hull-soft); border-color: var(--line-on-hull-soft); }

.kbb-stat {
    background: var(--bone);
    padding: clamp(1.5rem, 3vw, 2.4rem) 1.25rem;
    text-align: center;
}
.kbb-band--hull .kbb-stat { background: var(--hull); }
.kbb-stat__value {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text);
}
.kbb-stat__value sup {
    font-size: .42em;
    color: var(--teak);
    vertical-align: super;
    margin-left: .1em;
}
.kbb-band--hull .kbb-stat__value { color: var(--on-hull); }
.kbb-stat__label {
    display: block;
    margin-top: .6rem;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-band--hull .kbb-stat__label { color: var(--on-hull-muted); }

/* ================================================================= TIERS */
/* auto-fit rather than a fixed column count, so three tiers make three
   columns and four make four — no orphan card on a second row. */
.kbb-tiers {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.kbb-tier {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(1.5rem, 2.6vw, 2rem);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    position: relative;
    transition: border-color .22s ease, transform .22s ease;
}
.kbb-tier:hover { border-color: var(--teak); transform: translateY(-2px); }
.kbb-tier.is-featured { border-color: var(--teak); box-shadow: var(--shadow-card); }
.kbb-band--hull .kbb-tier { background: var(--hull-2); border-color: var(--line-on-hull); }

.kbb-tier__badge {
    position: absolute;
    top: -1px;
    right: 1.25rem;
    transform: translateY(-50%);
    background: var(--teak-btn);
    color: #fff;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: var(--r-pill);
}
.kbb-tier__name { font-size: 1.16rem; }
.kbb-tier__code {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-tier__price {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--teak-d);
    line-height: 1.1;
    margin-top: .4rem;
}
.kbb-band--hull .kbb-tier__price { color: var(--teak-h); }
.kbb-tier__unit { font-size: .76rem; color: var(--text-muted); letter-spacing: .06em; }
.kbb-tier__text { font-size: .93rem; color: var(--text-soft); margin: .5rem 0 0; }
.kbb-band--hull .kbb-tier__text { color: var(--on-hull-soft); }
.kbb-band--hull .kbb-tier__unit,
.kbb-band--hull .kbb-tier__code { color: var(--on-hull-muted); }
.kbb-tier__link { margin-top: auto; padding-top: 1rem; }

/* =============================================================== COMPARE */
.kbb-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kbb-compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
    font-size: .94rem;
}
.kbb-compare th, .kbb-compare td {
    text-align: left;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.kbb-compare thead th {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom-color: var(--line);
}
.kbb-compare tbody th { font-weight: 500; color: var(--text); font-family: var(--font-body); font-size: .94rem; }
.kbb-compare td { color: var(--text-soft); }
.kbb-compare .is-us { background: var(--teak-soft); color: var(--text); }
.kbb-band--hull .kbb-compare th,
.kbb-band--hull .kbb-compare td { border-color: var(--line-on-hull-soft); color: var(--on-hull-soft); }
.kbb-band--hull .kbb-compare tbody th { color: var(--on-hull); }

/* =================================================================== FAQ */
.kbb-faq { display: grid; gap: 0; max-width: 62rem; margin-inline: auto; }
.kbb-faq-item { border-bottom: 1px solid var(--line-soft); }
.kbb-faq-item:first-child { border-top: 1px solid var(--line-soft); }
.kbb-band--hull .kbb-faq-item { border-color: var(--line-on-hull-soft); }

.kbb-faq-item__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.07rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color .18s ease;
}
.kbb-faq-item__q::-webkit-details-marker { display: none; }
.kbb-faq-item__q:hover { color: var(--teak-d); }
.kbb-band--hull .kbb-faq-item__q:hover { color: var(--teak-h); }
.kbb-faq-item__q i {
    flex: none;
    color: var(--teak);
    font-size: 1rem;
    margin-top: .2rem;
    transition: transform .25s ease;
}
.kbb-faq-item[open] .kbb-faq-item__q i { transform: rotate(45deg); }
.kbb-faq-item__a {
    overflow-wrap: break-word;
    padding: 0 3rem 1.4rem 0;
    color: var(--text-soft);
    font-size: .96rem;
    max-width: var(--measure);
}
.kbb-band--hull .kbb-faq-item__a { color: var(--on-hull-soft); }

/* Grouped FAQ hub: tab pills + one visible panel. Deliberately a
   different interaction from the sibling theme's sticky side-nav. */
.kbb-faqt__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}
.kbb-band--hull .kbb-faqt__tabs { border-color: var(--line-on-hull-soft); }

.kbb-faqt__tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.kbb-faqt__tab:hover { border-color: var(--teak); color: var(--teak-d); }
.kbb-faqt__tab[aria-selected="true"] {
    background: var(--hull);
    border-color: var(--hull);
    color: var(--on-hull);
}
.kbb-faqt__tab-count {
    font-size: .68rem;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}
.kbb-band--hull .kbb-faqt__tab { border-color: var(--line-on-hull); color: var(--on-hull-soft); }
.kbb-band--hull .kbb-faqt__tab[aria-selected="true"] {
    background: var(--teak);
    border-color: var(--teak);
    color: #fff;
}

.kbb-faqt__panel[hidden] { display: none; }

/* ============================================================= DIRECTORY */
/* Asymmetric mosaic — the opposite of an equal tile grid. */
.kbb-dir {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
@media (min-width: 680px) { .kbb-dir { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .kbb-dir { grid-template-columns: repeat(3, 1fr); } }
.kbb-band--hull .kbb-dir { background: var(--line-on-hull-soft); border-color: var(--line-on-hull-soft); }

.kbb-dir__item {
    background: var(--bone);
    padding: clamp(1.4rem, 2.4vw, 1.9rem);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: background-color .24s ease;
    position: relative;
}
.kbb-dir__item:hover { background: var(--paper); }
.kbb-band--hull .kbb-dir__item { background: var(--hull); }
.kbb-band--hull .kbb-dir__item:hover { background: var(--hull-2); }

/* The first tile spans two columns, so the grid reads as a mosaic. */
@media (min-width: 1020px) {
    .kbb-dir__item--wide { grid-column: span 2; }
}

.kbb-dir__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--teak);
}
.kbb-dir__top i { font-size: 1.3rem; }
.kbb-dir__arrow { font-size: .95rem !important; transition: transform .22s ease; }
.kbb-dir__item:hover .kbb-dir__arrow { transform: translateX(4px); }
.kbb-band--hull .kbb-dir__top { color: var(--teak-h); }

.kbb-dir__title { font-size: 1.1rem; margin-top: .25rem; }
.kbb-dir__text { font-size: .9rem; color: var(--text-soft); margin: 0; }
.kbb-band--hull .kbb-dir__text { color: var(--on-hull-soft); }

/* =============================================================== SUPPORT */
.kbb-support { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 900px) { .kbb-support { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.kbb-support__items { display: grid; gap: 0; }
.kbb-support__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem 1.1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line-soft);
}
.kbb-support__item:last-child { border-bottom: 1px solid var(--line-soft); }
.kbb-band--hull .kbb-support__item { border-color: var(--line-on-hull-soft); }
.kbb-support__item i {
    grid-row: span 2;
    color: var(--teak);
    font-size: 1.25rem;
    margin-top: .2rem;
}
.kbb-band--hull .kbb-support__item i { color: var(--teak-h); }
.kbb-support__item h3 { font-size: 1.08rem; }
.kbb-support__item p { margin: .3rem 0 0; font-size: .93rem; color: var(--text-soft); }
.kbb-band--hull .kbb-support__item p { color: var(--on-hull-soft); }

/* =============================================================== CONTACT */
.kbb-contact { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 900px) { .kbb-contact { grid-template-columns: 1.1fr 1fr; } }

.kbb-methods { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 560px) { .kbb-methods { grid-template-columns: repeat(2, 1fr); } }
.kbb-method {
    background: var(--bone);
    color: var(--text);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.kbb-method i { color: var(--teak); font-size: 1.3rem; margin-bottom: .3rem; }
.kbb-method h3 { font-size: 1.02rem; }
.kbb-method p { margin: 0; font-size: .9rem; color: var(--text-soft); }
.kbb-method a { margin-top: auto; padding-top: .7rem; }

.kbb-panel {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--text);
    padding: clamp(1.4rem, 2.6vw, 2rem);
}
.kbb-panel h3 { margin-bottom: 1rem; }
.kbb-hours { list-style: none; margin: 0; padding: 0; }
.kbb-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .92rem;
}
.kbb-hours li:last-child { border-bottom: 0; }
.kbb-hours span:last-child { color: var(--text-soft); }
.kbb-address { margin: 1.1rem 0 0; font-size: .93rem; color: var(--text-soft); }

/* =================================================================== CTA */
.kbb-cta {
    background: var(--hull);
    color: var(--on-hull);
    padding-block: var(--sp-band);
    position: relative;
    overflow: hidden;
}
/* A single teak hairline frame — restrained, not a gradient wash. */
.kbb-cta__inner {
    max-width: 62rem;
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--line-on-hull);
}
.kbb-cta__inner::before,
.kbb-cta__inner::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid var(--teak);
}
.kbb-cta__inner::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.kbb-cta__inner::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.kbb-cta .kbb-eyebrow { color: var(--teak-h); }
.kbb-cta .kbb-eyebrow::before { background: var(--teak-h); }
.kbb-cta h2 { color: #fff; }
.kbb-cta__body {
    margin: 1.1rem auto 0;
    max-width: 58ch;
    color: var(--on-hull-soft);
}
.kbb-cta .kbb-cta-row { justify-content: center; }

/* ============================================================== FRONT PAGE */
/* Quick-select: "What are you looking for?" — five hairline tiles. */
.kbb-quick { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 560px) { .kbb-quick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .kbb-quick { grid-template-columns: repeat(5, 1fr); } }
.kbb-quick__item {
    background: var(--bone);
    /* These tiles sit on the dark band, so they must restate their own
       text colour — otherwise the title inherits the band's near-white
       and disappears against the pale tile. */
    color: var(--text);
    padding: 1.6rem 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: background-color .22s ease;
}
.kbb-quick__item:hover { background: var(--paper); }
.kbb-quick__item i { color: var(--teak); font-size: 1.45rem; }
.kbb-quick__item span {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.3;
}
.kbb-quick__item small {
    font-size: .8rem;
    color: var(--text-muted);
    display: block;
}

/* ================================================================ FOOTER */
.kbb-footer {
    background: #091820;
    color: var(--on-hull-soft);
    border-top: 1px solid var(--line-on-hull-soft);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    font-size: .93rem;
}
.kbb-footer__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 720px) { .kbb-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .kbb-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.kbb-footer__brand p { margin: 1.1rem 0 0; max-width: 42ch; color: var(--on-hull-muted); }
.kbb-footer__brand a { display: inline-block; text-decoration: none; }
.kbb-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .45rem .9rem;
    border: 1px solid var(--line-on-hull);
    border-radius: var(--r-pill);
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--on-hull-soft);
}
.kbb-footer__badge i { color: var(--teak-h); }

.kbb-footer h2 {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-hull);
    margin-bottom: 1.1rem;
}
.kbb-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; min-width: 0; overflow-wrap: break-word; }
.kbb-footer__links a {
    display: block;
    padding-block: .34rem;
    text-decoration: none;
    color: var(--on-hull-muted);
    transition: color .18s ease;
}
.kbb-footer__links a:hover { color: var(--teak-h); }

.kbb-footer__contact { display: grid; gap: 1rem; }
.kbb-footer__contact-item { display: flex; gap: .8rem; align-items: flex-start; }
.kbb-footer__contact-item i { color: var(--teak-h); font-size: 1.05rem; margin-top: .2rem; flex: none; }
.kbb-footer__contact-item strong {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--on-hull);
    margin-bottom: .15rem;
}
.kbb-footer__contact-item a {
    display: inline-block;
    padding-block: .22rem;
    text-decoration: none;
    color: var(--on-hull-muted);
}
.kbb-footer__contact-item a:hover { color: var(--teak-h); }

.kbb-footer__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1.4rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line-on-hull-soft);
    font-size: .8rem;
}
.kbb-footer__group > span {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-hull);
}
.kbb-footer__group a {
    display: inline-block;
    padding-block: .22rem;
    text-decoration: none;
    color: var(--on-hull-muted);
}
.kbb-footer__group a:hover { color: var(--teak-h); }

.kbb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.5rem;
    padding: 1.4rem 0 calc(1.8rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-on-hull-soft);
    /* Clear the floating WhatsApp button, which is fixed bottom-right
       and would otherwise sit on top of the legal links. */
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
    font-size: .82rem;
    color: var(--on-hull-muted);
}
.kbb-footer__bottom p { margin: 0; max-width: 78ch; }
.kbb-footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.kbb-footer__legal a { display: inline-block; padding-block: .22rem; text-decoration: none; }
.kbb-footer__legal a:hover { color: var(--teak-h); }

/* ============================================================ FLOATING UI */
.kbb-fab {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.15rem;
    background: #0d7a37;
    color: #fff;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    box-shadow: 0 10px 30px -10px rgba(13, 122, 55, .55);
    transition: transform .22s ease;
}
.kbb-fab:hover { transform: translateY(-2px); }
.kbb-fab i { font-size: 1.3rem; }
@media (max-width: 560px) {
    .kbb-fab { padding: .9rem; }
    .kbb-fab__label { display: none; }
}

.kbb-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 58px);
    z-index: 149;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--hull);
    color: var(--on-hull);
    border: 1px solid var(--line-on-hull);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s;
}
.kbb-top.is-on { opacity: 1; visibility: visible; }

/* ================================================================ REVEAL */
.kbb-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease-out, transform .55s cubic-bezier(.25, .8, .25, 1);
    will-change: opacity, transform;
}
.kbb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .kbb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ======================================================== BLOG / ARCHIVE */
.kbb-posts { display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .kbb-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .kbb-posts { grid-template-columns: repeat(3, 1fr); } }

.kbb-post {
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transition: border-color .22s ease, transform .22s ease;
}
.kbb-post:hover { border-color: var(--teak); transform: translateY(-2px); }
.kbb-post__media { aspect-ratio: 16 / 10; background: var(--bone-2); overflow: hidden; }
.kbb-post__media img { width: 100%; height: 100%; object-fit: cover; }
.kbb-post__body { padding: 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.kbb-post__meta {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-post h2, .kbb-post h3 { font-size: 1.15rem; }
.kbb-post a { text-decoration: none; }
.kbb-post p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.kbb-post__link { margin-top: auto; padding-top: .8rem; }

.kbb-single { max-width: var(--measure); }
.kbb-single p { color: var(--text-soft); margin: 0 0 1.15rem; }
.kbb-single h2 { margin: 2.25rem 0 .85rem; }
.kbb-single h3 { margin: 1.75rem 0 .7rem; }
.kbb-single ul, .kbb-single ol { color: var(--text-soft); padding-left: 1.3rem; }
.kbb-single li { margin-bottom: .5rem; }
.kbb-single img { border-radius: var(--r); margin-block: 1.5rem; }
.kbb-single blockquote {
    margin: 1.75rem 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--teak);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
}

/* paginate_links( 'type' => 'list' ) puts class="page-numbers" on the <ul>
   as well as on every link inside it, so the list itself must carry the
   layout and the button styling has to name the elements it applies to. */
.kbb-pagination { margin-top: 2.5rem; }
.kbb-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.kbb-pagination li { margin: 0; }
.kbb-pagination a.page-numbers,
.kbb-pagination span.page-numbers {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    text-decoration: none;
    font-size: .88rem;
}
.kbb-pagination a.page-numbers:hover { border-color: var(--teak); color: var(--teak-d); }
.kbb-pagination .current {
    background: var(--hull);
    border-color: var(--hull);
    color: var(--on-hull);
}
/* the "…" gap marker is a label, not a button */
.kbb-pagination span.dots { border-color: transparent; min-width: 1.5rem; padding: 0; }

/* search form */
.kbb-searchform { display: flex; gap: .5rem; max-width: 30rem; }
.kbb-searchform input[type="search"] {
    flex: 1;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    font: inherit;
    font-size: .92rem;
    color: var(--text);
}
.kbb-searchform input[type="search"]:focus-visible {
    outline: 2px solid var(--teak);
    outline-offset: 2px;
    border-color: var(--teak);
}

/* empty state */
.kbb-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--r);
    color: var(--text-soft);
}

/* --------------------------------------------------------------- utility */
.kbb-center { text-align: center; }
.kbb-hide-mobile { display: none; }
@media (min-width: 860px) { .kbb-hide-mobile { display: inline-flex; } }

/* ======================================================= IMAGE SECTIONS */
/* Photography is handled the way the rest of the theme handles
   everything else: square corners, hairline frames, no drop shadows, and
   a slow scale on hover rather than a bounce. */

/* ------------------------------------------------------------ showcase */
.kbb-showcase { display: grid; gap: clamp(3rem, 7vw, 6rem); }

.kbb-spread {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
@media (min-width: 900px) {
    .kbb-spread { grid-template-columns: 1fr 1fr; }
    /* Alternating sides: the flipped spread puts the photo second in the
       source but first visually, so reading order stays sensible. */
    .kbb-spread--flip .kbb-spread__media { order: 2; }
}

.kbb-spread__media { margin: 0; position: relative; }
.kbb-spread__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--r);
    transition: transform .7s cubic-bezier(.22, .8, .28, 1);
}
.kbb-spread__media { overflow: hidden; border-radius: var(--r); }
.kbb-spread:hover .kbb-spread__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
    .kbb-spread__media img { transition: none; }
    .kbb-spread:hover .kbb-spread__media img { transform: none; }
}

.kbb-spread__media figcaption {
    margin-top: .7rem;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.kbb-band--hull .kbb-spread__media figcaption { color: var(--on-hull-muted); }

.kbb-spread__kicker {
    margin: 0 0 .7rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teak-d);
}
.kbb-band--hull .kbb-spread__kicker { color: var(--teak-h); }

.kbb-spread__title { margin-bottom: 1rem; }
.kbb-spread__text { margin: 0 0 1rem; color: var(--text-soft); max-width: 54ch; }
.kbb-band--hull .kbb-spread__text { color: var(--on-hull-soft); }

/* ------------------------------------------------------------- mosaic */
.kbb-mosaic {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .kbb-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
    .kbb-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 212px;
        /* dense back-fills any gap a spanning tile would otherwise leave
           when the photo count is not a neat multiple of three. */
        grid-auto-flow: dense;
    }
    /* The first tile runs two-by-two, which is what turns a grid into a
       composition. With six photos that leaves a clean 3x3. */
    .kbb-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
}

.kbb-mosaic__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--hull-2);
    min-height: 210px;
}

/* Below the mosaic breakpoint the tiles stack, so they are given a fixed
   ratio — otherwise a portrait photo runs three times the height of a
   landscape one and the strip reads as a jumble. */
@media (max-width: 1019px) {
    .kbb-mosaic__item { aspect-ratio: 4 / 3; min-height: 0; }
    .kbb-mosaic__item:first-child { aspect-ratio: 3 / 2; }
}
.kbb-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, .8, .28, 1);
}
.kbb-mosaic__item:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
    .kbb-mosaic__item img { transition: none; }
    .kbb-mosaic__item:hover img { transform: none; }
}

.kbb-mosaic__item figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2.5rem .95rem .85rem;
    background: linear-gradient(to top, rgba(12, 30, 39, .88), rgba(12, 30, 39, 0));
    color: #fff;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.kbb-mosaic__item:hover figcaption,
.kbb-mosaic__item:focus-within figcaption { opacity: 1; transform: none; }

/* No hover on touch, so captions stay visible there. */
@media (hover: none) {
    .kbb-mosaic__item figcaption { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- media cards */
.kbb-mcards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }

.kbb-mcard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper);
    transition: border-color .25s ease, transform .25s ease;
}
.kbb-mcard:hover { border-color: var(--teak); transform: translateY(-3px); }
.kbb-band--hull .kbb-mcard { background: var(--hull-2); border-color: var(--line-on-hull); }

.kbb-mcard__media { display: block; overflow: hidden; background: var(--bone-2); }
.kbb-mcard__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, .8, .28, 1);
}
.kbb-mcard:hover .kbb-mcard__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
    .kbb-mcard__media img { transition: none; }
    .kbb-mcard:hover .kbb-mcard__media img { transform: none; }
}

.kbb-mcard__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.3rem;
    flex: 1;
}
.kbb-mcard__title { display: block; font-size: 1.1rem; }
.kbb-mcard__text { display: block; font-size: .91rem; color: var(--text-soft); }
.kbb-band--hull .kbb-mcard__text { color: var(--on-hull-soft); }
.kbb-mcard__link { margin-top: auto; padding-top: .8rem; }

/* ------------------------------------------------------------- banner */
.kbb-banner {
    position: relative;
    overflow: hidden;
    background: var(--hull);
    color: var(--on-hull);
    display: grid;
    align-items: center;
    min-height: 380px;
    padding-block: clamp(3.5rem, 8vw, 7rem);
}
.kbb-banner__media { position: absolute; inset: 0; }
.kbb-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.kbb-banner__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(12, 30, 39, .62) 0%, rgba(12, 30, 39, .82) 100%);
}
.kbb-banner__inner { position: relative; z-index: 2; text-align: center; }
.kbb-banner .kbb-eyebrow { color: var(--teak-h); }
.kbb-banner .kbb-eyebrow::before { background: var(--teak-h); }

.kbb-banner__quote { margin: 0 auto; max-width: 56ch; }
.kbb-banner__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2.1rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.38;
    color: #fff;
    text-wrap: balance;
}
.kbb-banner__source {
    display: block;
    margin-top: 1.1rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--teak-h);
}

.kbb-banner__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: clamp(2rem, 4vw, 3rem);
    background: var(--line-on-hull-soft);
    border: 1px solid var(--line-on-hull-soft);
}
@media (min-width: 760px) { .kbb-banner__stats { grid-template-columns: repeat(4, 1fr); } }

.kbb-banner__stat {
    background: rgba(12, 30, 39, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.1rem .9rem;
}
.kbb-banner__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-variant-numeric: tabular-nums;
    color: var(--teak-h);
    line-height: 1.1;
}
.kbb-banner__stat-label {
    display: block;
    margin-top: .3rem;
    font-size: .66rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--on-hull-muted);
}
