:root {
    --bp-primary: #8b6f47;
    --bp-secondary: #a0826d;
    --bp-accent: #d4af37;
    --bp-bg: #faf8f4;
    --bp-ink: #2a241c;
    --bp-muted: #5c5348;
    --bp-line: #d9d0c4;
    --bp-plate: #efe8dc;
    --bp-deep: #5c4a30;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 28px;
    --space-xl: 48px;
    --font-head: "Oswald", "Arial Narrow", sans-serif;
    --font-body: "Roboto", "Segoe UI", sans-serif;
    --mast-h: 72px;
}

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

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--bp-ink);
    background-color: var(--bp-bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(139, 111, 71, 0.06) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(139, 111, 71, 0.06) 0 1px, transparent 1px 32px);
    line-height: 1.55;
    padding-top: var(--mast-h);
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--bp-primary);
}

h1, h2, h3 {
    font-family: var(--font-head);
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
}

h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h3 { font-size: 1.05rem; }

.bp-l-frame {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.bp-l-frame--narrow {
    width: min(760px, calc(100% - 40px));
}

.bp-l-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.bp-l-folio {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto var(--space-xl);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-lg);
    align-items: start;
}

.bp-l-folio--flip {
    grid-template-columns: 0.9fr 1.1fr;
}

.bp-l-mast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--bp-bg);
    border-bottom: 3px solid var(--bp-primary);
    box-shadow: 0 2px 0 var(--bp-accent);
}

.bp-l-mast__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: var(--mast-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.bp-m-brand img {
    width: 168px;
    height: auto;
    display: block;
}

.bp-m-rail {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px));
    z-index: 320;
    height: var(--mast-h);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 18px;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.bp-m-rail a {
    pointer-events: auto;
    color: var(--bp-ink);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 0;
}

.bp-m-rail a.bp-is-on {
    color: var(--bp-primary);
    box-shadow: inset 0 -2px 0 var(--bp-accent);
}

.bp-m-rail__shut {
    display: none;
}

.bp-m-latch {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--bp-primary);
    cursor: pointer;
    padding: 8px;
}

.bp-m-latch span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--bp-primary);
}

.bp-m-shade {
    position: fixed;
    inset: 0;
    background: rgba(42, 36, 28, 0.45);
    z-index: 200;
}

.bp-l-deck {
    min-height: 60vh;
}

.bp-m-hero {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto var(--space-xl);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 32px;
    align-items: start;
    padding: 36px 0 12px;
}

.bp-m-kicker {
    font-family: var(--font-head);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bp-secondary);
    font-size: 0.78rem;
    margin: 0 0 8px;
}

.bp-m-hero__title {
    margin: 0 0 16px;
}

.bp-m-hero__text {
    max-width: 40rem;
}

.bp-m-hero__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.bp-m-pass {
    background: var(--bp-plate);
    border: 1px solid var(--bp-deep);
    border-radius: 0;
    padding: 12px 12px 20px;
    box-shadow: 6px 6px 0 rgba(92, 74, 48, 0.18);
}

.bp-m-pass__still {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background: #e6dfd2;
    display: block;
}

.bp-m-pass__badges {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-muted);
    margin: 10px 0;
}

.bp-m-pass__head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bp-m-pass__icon {
    width: 72px;
    height: 72px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}

.bp-m-pass__name {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.bp-m-pass__dev {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--bp-muted);
}

.bp-m-pass__facts {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 0.9rem;
}

.bp-m-pass__note,
.bp-m-pass__checked {
    font-size: 0.88rem;
    color: var(--bp-muted);
}

.bp-m-pass__checked {
    font-weight: 700;
    color: var(--bp-primary);
}

.bp-m-push {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    background: var(--bp-primary);
    color: #faf8f4;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--bp-deep);
}

.bp-m-push:hover {
    transform: scale(1.03);
}

.bp-m-push:active {
    transform: translateY(4px) scale(1);
    box-shadow: 0 0 0 var(--bp-deep);
}

.bp-m-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--bp-ink);
    text-decoration: none;
    border: 1px solid var(--bp-primary);
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-m-note,
.bp-m-feat,
.bp-m-faq,
.bp-m-need {
    background: rgba(250, 248, 244, 0.92);
    border: 1px solid var(--bp-line);
    padding: 24px;
}

.bp-m-feat ul,
.bp-m-need ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-m-feat li + li,
.bp-m-need li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-line);
}

.bp-m-feat h3 {
    margin: 0 0 6px;
}

.bp-m-faq details {
    border-bottom: 1px solid var(--bp-line);
    padding: 10px 0;
}

.bp-m-faq summary {
    cursor: pointer;
    font-weight: 500;
    min-height: 40px;
}

.bp-m-cta {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto var(--space-xl);
    padding: 36px;
    background: var(--bp-primary);
    color: #faf8f4;
    border-radius: 0;
}

.bp-m-cta h2,
.bp-m-cta a {
    color: #faf8f4;
}

.bp-m-cta .bp-m-push {
    background: var(--bp-accent);
    color: var(--bp-ink);
    box-shadow: 0 4px 0 var(--bp-deep);
}

.bp-m-slab {
    padding: 36px 0 56px;
}

.bp-m-slip {
    display: block;
    background: var(--bp-plate);
    border: 1px solid var(--bp-deep);
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bp-m-slip:hover {
    transform: scale(1.03);
}

.bp-m-slip__band {
    display: block;
    height: 70px;
    background: linear-gradient(135deg, var(--bp-primary), var(--bp-accent));
}

.bp-m-slip__band--alt {
    background: linear-gradient(135deg, var(--bp-secondary), var(--bp-primary));
}

.bp-m-slip__band--dim {
    background: linear-gradient(135deg, var(--bp-deep), var(--bp-secondary));
}

.bp-m-slip h2,
.bp-m-slip p {
    padding: 0 16px;
}

.bp-m-slip h2 {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.15rem;
}

.bp-m-slip p {
    padding-bottom: 18px;
    color: var(--bp-muted);
}

.bp-m-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.bp-m-steps {
    padding-left: 1.2rem;
}

.bp-m-steps li {
    margin-bottom: 18px;
}

.bp-m-bay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.bp-m-bay figure {
    margin: 0;
    background: var(--bp-plate);
    border: 1px solid var(--bp-line);
    padding: 10px;
}

.bp-m-bay img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #e6dfd2;
    display: block;
}

.bp-m-bay figcaption {
    font-size: 0.82rem;
    color: var(--bp-muted);
    margin-top: 8px;
}

.bp-m-log {
    border: 1px solid var(--bp-line);
    padding: 16px 18px;
    margin: 16px 0;
    background: var(--bp-plate);
}

.bp-m-log header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bp-m-wire label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 500;
}

.bp-m-wire input,
.bp-m-wire textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--bp-primary);
    border-radius: 0;
    padding: 10px;
    font: inherit;
    background: #fff;
}

.bp-m-wire__alert {
    color: #8a2a1a;
}

.bp-m-wire__ok {
    color: #2f5d38;
}

.bp-l-sill {
    background: #2a241c;
    color: #efe8dc;
    padding: 40px 0 28px;
}

.bp-l-sill a {
    color: var(--bp-accent);
}

.bp-l-sill__wide {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
    gap: 28px;
}

.bp-l-sill__mark,
.bp-l-sill__h {
    font-family: var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bp-accent);
}

.bp-l-sill__map {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-l-sill__map li {
    margin: 6px 0;
}

.bp-m-shade[hidden] {
    display: none !important;
}

.bp-m-chip-veil {
    position: fixed;
    inset: 0;
    z-index: 390;
    background: rgba(42, 36, 28, 0.45);
}

.bp-m-chip-veil.bp-is-away {
    display: none;
}

.bp-m-chip {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 400;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 20px;
    background: var(--bp-plate);
    color: var(--bp-ink);
    border: 2px solid var(--bp-primary);
    box-shadow: 8px 8px 0 rgba(92, 74, 48, 0.25);
}

.bp-m-chip[hidden],
.bp-m-chip.bp-is-away {
    display: none !important;
}

.bp-m-chip a {
    color: var(--bp-primary);
    font-weight: 700;
}

[data-bp-enter] {
    opacity: 0;
    transform: translateX(-20px);
}

[data-bp-enter].bp-is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .bp-l-folio,
    .bp-l-folio--flip,
    .bp-m-hero {
        grid-template-columns: 1fr;
    }

    .bp-l-sill__wide {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    :root { --mast-h: 64px; }

    .bp-m-brand img {
        width: 90px;
    }

    .bp-m-latch {
        display: block;
        position: relative;
        z-index: 330;
    }

    .bp-m-rail {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        height: auto;
        width: 80%;
        max-width: 320px;
        background: var(--bp-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 360;
        overflow-y: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        margin: 0;
        padding: 20px 8px 32px;
        gap: 0;
        border-left: 3px solid var(--bp-primary);
        pointer-events: none;
    }

    .bp-m-rail.bp-is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .bp-m-rail a {
        display: block;
        width: 100%;
        padding: 16px 20px;
    }

    .bp-m-rail__shut {
        display: block;
        margin: 8px 12px 16px auto;
        min-height: 40px;
        min-width: 40px;
        background: transparent;
        border: 1px solid var(--bp-primary);
        font-family: var(--font-head);
        text-transform: uppercase;
        cursor: pointer;
    }

    .bp-m-pass__facts {
        grid-template-columns: 1fr;
    }

    .bp-l-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-l-sill__wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bp-l-grid {
        grid-template-columns: 1fr;
    }

    .bp-m-hero__acts {
        flex-direction: column;
    }

    .bp-m-chip {
        flex-direction: column;
        align-items: stretch;
    }
}
