/* ==========================================================================
   BAYAN · THE ASSAY HOUSE
   Bespoke vCard theme for Bayan Nagdy for General Trade — Egyptian fertilizer
   export desk. Identity is derived from the client's own mark: brushed gold on
   bitumen black, a high-contrast didone wordmark, and the four-diamond lozenge.

   Layers: 1 palette (black + gold, one accent only) · 2 type (Bodoni Moda /
   Archivo / IBM Plex Mono / Reem Kufi / Almarai) · 3 geometry (the lozenge, and
   a 45 degree chamfer instead of a radius) · 4 texture (brushed sheen + a
   granule field that settles) · 5 motion (SETTLE — weight with a small
   overshoot, everywhere).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
    /* ground */
    --bn-ink: #0A0906;
    --bn-ink-2: #141109;
    --bn-ink-3: #1E1910;
    --bn-ink-4: #2A2317;

    /* the single accent */
    --bn-gold-hi: #F7E7A6;
    --bn-gold: #E0BE55;
    --bn-gold-deep: #9A6E12;

    /* text */
    --bn-text: #EDE7D9;
    --bn-text-2: #A9A18D;
    --bn-text-3: #6F6857;

    /* hairlines */
    --bn-line: rgba(224, 190, 85, .13);
    --bn-line-2: rgba(224, 190, 85, .30);
    --bn-line-3: rgba(224, 190, 85, .55);

    /* the ONE signature gradient — brushed gold, used on <=5 hero accents */
    --bn-seal: linear-gradient(115deg,
            #8B6410 0%, #C9A63F 14%, #F7E7A6 30%, #E0BE55 44%,
            #A8791A 60%, #F2DE93 76%, #C9A63F 90%, #8B6410 100%);

    /* granule identity tints, sampled from the real product, never invented */
    --bn-dap: #C3B26B;
    --bn-tsp: #8F8570;
    --bn-ssp: #9A9184;
    --bn-urea: #F1EFE9;
    --bn-can: #D9D3C2;

    /* type */
    --bn-display: 'Bodoni Moda', 'Times New Roman', Georgia, serif;
    --bn-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* Almarai sits in the mono stack on purpose. Fallback resolves per glyph, so
       Latin digits and codes still get Plex Mono; Arabic words in a spec value or
       a board cell would otherwise hit a font with no Arabic coverage and render
       as disjointed letterforms. */
    --bn-mono: 'IBM Plex Mono', 'Almarai', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* motion — SETTLE */
    --bn-ease: cubic-bezier(.16, .84, .28, 1.02);
    --bn-ease-out: cubic-bezier(.22, .61, .36, 1);
    --bn-t: .62s;
    --bn-t-fast: .28s;

    /* geometry */
    --bn-ch: 14px;
    --bn-pad: 20px;
    --bn-max: 1180px;
}

[dir="rtl"] {
    --bn-display: 'Reem Kufi', 'Bodoni Moda', serif;
    --bn-body: 'Almarai', system-ui, -apple-system, sans-serif;
}

/* ---------- containment baseline (BUILD-CONTRACT rule 11) ---------- */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background: var(--bn-ink);
    color: var(--bn-text);
    font-family: var(--bn-body);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* brushed-metal sheen: a 1px vertical rake at 2%, the texture layer */
    background-image:
        repeating-linear-gradient(90deg, rgba(224, 190, 85, .022) 0 1px, transparent 1px 3px),
        radial-gradient(120% 70% at 50% -10%, rgba(224, 190, 85, .07), transparent 62%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--bn-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--bn-gold);
    color: var(--bn-ink);
}

/* numbers, codes, prices must never flip in RTL */
.bn-num,
.bn-mono {
    font-family: var(--bn-mono);
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

/* ==========================================================================
   AMBIENT — the granule field. Grain settling in a silo.
   ========================================================================== */
.bn-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bn-fx i {
    position: absolute;
    top: -6vh;
    border-radius: 50%;
    background: var(--bn-gold);
    opacity: 0;
    animation: bn-settle linear infinite;
}

@keyframes bn-settle {
    0% { transform: translate3d(0, -8vh, 0) scale(.9); opacity: 0; }
    12% { opacity: .16; }
    88% { opacity: .10; }
    100% { transform: translate3d(0, 108vh, 0) scale(1); opacity: 0; }
}

/* ==========================================================================
   PRIMITIVES
   ========================================================================== */
.bn-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--bn-max);
    margin-inline: auto;
    padding-inline: var(--bn-pad);
}

section {
    padding-block: 62px;
    position: relative;
}

/* --- the lozenge, the ownable shape --- */
.bn-dia {
    width: 6px;
    height: 6px;
    background: var(--bn-gold);
    transform: rotate(45deg);
    flex: none;
    transition: transform var(--bn-t-fast) var(--bn-ease);
}

/* --- hairline ledger broken by the mark's three diamonds --- */
.bn-rule {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-block: 26px;
}

.bn-rule::before,
.bn-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bn-line-2), transparent);
}

.bn-rule .bn-dia:nth-child(2) {
    width: 8px;
    height: 8px;
}

/* --- section head --- */
.bn-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bn-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--bn-gold);
    margin-bottom: 16px;
}

[dir="rtl"] .bn-eyebrow {
    letter-spacing: 0;
    font-family: var(--bn-body);
    font-size: 12px;
}

.bn-h2 {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 7.4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -.015em;
    margin: 0 0 14px;
    color: var(--bn-text);
}

[dir="rtl"] .bn-h2 {
    letter-spacing: 0;
    line-height: 1.32;
}

.bn-lede {
    color: var(--bn-text-2);
    font-size: 1.02rem;
    max-width: 62ch;
    margin: 0;
}

/* --- chamfered surface: gold hairline outside, ink inside, shadow behind --- */
.bn-card {
    position: relative;
    isolation: isolate;
}

.bn-card::before {
    /* elevation tier 1 — soft shadow, unclipped so it can actually bloom */
    content: '';
    position: absolute;
    inset: 6px 2px -8px;
    background: #000;
    filter: blur(16px);
    opacity: .55;
    z-index: -2;
}

.bn-card-in {
    position: relative;
    background: var(--bn-line-2);
    /* the hairline, as a background under the inset fill */
    clip-path: polygon(0 0, calc(100% - var(--bn-ch)) 0, 100% var(--bn-ch), 100% 100%, 0 100%);
    padding: 1px;
    transition: background var(--bn-t-fast) var(--bn-ease);
}

[dir="rtl"] .bn-card-in {
    clip-path: polygon(var(--bn-ch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--bn-ch));
}

.bn-card-body {
    position: relative;
    background:
        linear-gradient(180deg, rgba(247, 231, 166, .05), transparent 34%),
        linear-gradient(180deg, var(--bn-ink-2), var(--bn-ink));
    clip-path: polygon(0 0, calc(100% - var(--bn-ch)) 0, 100% var(--bn-ch), 100% 100%, 0 100%);
    padding: 20px;
    /* elevation tier 2 — the catch-light along the top edge */
}

[dir="rtl"] .bn-card-body {
    clip-path: polygon(var(--bn-ch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--bn-ch));
}

.bn-card:hover .bn-card-in {
    background: var(--bn-line-3);
}

.bn-card:hover .bn-dia {
    transform: rotate(135deg);
}

/* --- buttons --- */
.bn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 24px;
    font-family: var(--bn-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    border: 0;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: transform var(--bn-t-fast) var(--bn-ease), filter var(--bn-t-fast) var(--bn-ease);
}

[dir="rtl"] .bn-btn {
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
}

.bn-btn-gold {
    background: var(--bn-seal);
    background-size: 200% 100%;
    color: #150F02;
}

.bn-btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.bn-btn-ghost {
    background: transparent;
    color: var(--bn-gold);
    box-shadow: inset 0 0 0 1px var(--bn-line-2);
}

.bn-btn-ghost:hover {
    box-shadow: inset 0 0 0 1px var(--bn-line-3);
    transform: translateY(-2px);
}

.bn-btn-block {
    width: 100%;
}

/* --- reveal: SETTLE ---
   Scoped to .bn-js, which an inline script sets at the top of <body>. If the
   script never runs (blocked, CSP, an exception in an earlier tag) the content
   simply stays visible instead of leaving a page of invisible sections. Never
   hide content behind a class that only JS can remove. */
.bn-js .bn-rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--bn-t) var(--bn-ease), transform var(--bn-t) var(--bn-ease);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.bn-js .bn-rise.in {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.bn-top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 9, 6, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bn-line);
}

.bn-top-in {
    max-width: var(--bn-max);
    margin-inline: auto;
    padding: 11px var(--bn-pad);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bn-top-mark {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.bn-top-mark img {
    height: 30px;
    width: auto;
    flex: none;
}

.bn-top-name {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[dir="rtl"] .bn-top-name {
    letter-spacing: 0;
}

.bn-top-act {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.bn-icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--bn-line);
    color: var(--bn-text-2);
    cursor: pointer;
    transition: color var(--bn-t-fast) var(--bn-ease), border-color var(--bn-t-fast) var(--bn-ease);
}

.bn-icon-btn:hover {
    color: var(--bn-gold);
    border-color: var(--bn-line-2);
}

/* ==========================================================================
   HERO — the Gold Seal. Screenshot moment 1.
   ========================================================================== */
.bn-hero {
    position: relative;
    padding-block: 46px 54px;
    text-align: center;
    overflow: hidden;
}

.bn-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .30;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 18%, transparent 72%);
    mask-image: radial-gradient(120% 80% at 50% 30%, #000 18%, transparent 72%);
}

.bn-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bn-hero-in {
    position: relative;
    z-index: 1;
}

.bn-seal-mark {
    width: min(190px, 52vw);
    margin: 0 auto 22px;
    filter: drop-shadow(0 10px 26px rgba(224, 190, 85, .22));
}

/* The language pill carries an icon and a label side by side; .bn-icon-btn is a
   centred grid, which would stack them. */
.bn-lang-btn {
    display: flex;
    align-items: center;
    width: auto;
    padding-inline: 12px;
    gap: 7px;
    font-family: var(--bn-mono);
    font-size: 12px;
    letter-spacing: .1em;
}

/* the live-text wordmark — indexable, crisp, and spelled correctly */
.bn-wordmark {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: clamp(2.05rem, 10.4vw, 4.4rem);
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-inline-start: .16em;
    /* signature gradient accent 1 of 5 */
    background: var(--bn-seal);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bn-sheen 8s var(--bn-ease-out) infinite;
}

[dir="rtl"] .bn-wordmark {
    letter-spacing: .01em;
    padding-inline-start: 0;
    text-transform: none;
    line-height: 1.24;
    /* Arabic joins, so the tight gradient stops read as holes punched in the
       stroke. Stretch the ramp until it behaves like a single sheen. */
    background-size: 460% 100%;
}

@keyframes bn-sheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bn-tagline {
    font-family: var(--bn-body);
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--bn-text-2);
    margin: 0 0 28px;
}

[dir="rtl"] .bn-tagline {
    letter-spacing: 0;
    text-transform: none;
    font-size: 15px;
    font-family: var(--bn-body);
}

.bn-statement {
    font-family: var(--bn-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.3rem, 5.6vw, 2.05rem);
    line-height: 1.28;
    color: var(--bn-text);
    max-width: 20ch;
    margin: 0 auto 26px;
}

[dir="rtl"] .bn-statement {
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    max-width: 24ch;
}

/* the programme row: DAP · TSP · SSP · UREA · CAN */
.bn-programme {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 30px;
}

.bn-prog-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bn-mono);
    font-size: clamp(13px, 4vw, 16px);
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--bn-text-2);
    transition: color var(--bn-t-fast) var(--bn-ease);
}

.bn-prog-item:hover {
    color: var(--bn-gold);
}

.bn-prog-chip {
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    flex: none;
    background: var(--c, var(--bn-gold));
}

.bn-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
}

.bn-hero-cta .bn-btn {
    flex: 1 1 210px;
    max-width: 300px;
}

/* ==========================================================================
   ORIGIN — the answer-first block plus the key-facts ledger
   ========================================================================== */
.bn-answer {
    font-size: 1.06rem;
    color: var(--bn-text);
    border-inline-start: 2px solid var(--bn-gold);
    padding-inline-start: 16px;
    margin: 0 0 26px;
    max-width: 68ch;
}

.bn-prose {
    color: var(--bn-text-2);
    max-width: 68ch;
}

.bn-prose p { margin: 0 0 14px; }

.bn-ledger {
    display: grid;
    gap: 1px;
    background: var(--bn-line);
    margin-top: 28px;
}

.bn-ledger-row {
    background: var(--bn-ink);
    padding: 15px 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.bn-ledger-k {
    font-family: var(--bn-mono);
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bn-text-3);
    flex: none;
    min-width: 132px;
}

[dir="rtl"] .bn-ledger-k {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12.5px;
}

.bn-ledger-v {
    color: var(--bn-text);
    font-size: .96rem;
    min-width: 0;
}

/* metric trio (custom texts) */
.bn-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.bn-metric {
    padding: 18px 14px;
    text-align: center;
    background: var(--bn-ink-2);
    box-shadow: inset 0 1px 0 rgba(247, 231, 166, .10);
}

.bn-metric-n {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1;
    /* signature gradient accent */
    background: var(--bn-seal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 7px;
    unicode-bidi: isolate;
}

.bn-metric-l {
    font-family: var(--bn-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bn-text-3);
}

[dir="rtl"] .bn-metric-l {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

/* ==========================================================================
   PROGRAMME — the Assay Ledger cards. Screenshot moment 2.
   ========================================================================== */
.bn-assays {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.bn-assay-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.bn-assay-vitrine {
    width: 92px;
    height: 92px;
    flex: none;
    position: relative;
    overflow: hidden;
    background: #000;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

[dir="rtl"] .bn-assay-vitrine {
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.bn-assay-vitrine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bn-t) var(--bn-ease);
}

.bn-card:hover .bn-assay-vitrine img {
    transform: scale(1.06);
}

.bn-assay-id {
    min-width: 0;
    flex: 1;
}

.bn-assay-abbr {
    font-family: var(--bn-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--bn-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.bn-assay-name {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.16;
    margin: 0 0 6px;
    color: var(--bn-text);
}

[dir="rtl"] .bn-assay-name {
    line-height: 1.4;
}

.bn-assay-sub {
    font-size: .88rem;
    color: var(--bn-text-3);
    margin: 0;
}

/* the big nutrient numeral — a document, not a web card */
.bn-assay-headline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-block: 14px;
    border-block: 1px solid var(--bn-line);
    margin-bottom: 14px;
}

.bn-assay-big {
    font-family: var(--bn-display);
    font-weight: 800;
    font-size: 3.4rem;
    /* Bodoni's figures and its wide % overhang the box at a tight line-height,
       and background-clip:text crops whatever leaves it. Give them room. */
    line-height: 1.06;
    padding-block: 2px;
    padding-inline-end: .06em;
    letter-spacing: -.02em;
    background: var(--bn-seal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    unicode-bidi: isolate;
}

.bn-assay-unit {
    font-family: var(--bn-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bn-text-3);
    unicode-bidi: isolate;
}

/* monospace spec rows on hairline rules with diamond bullets */
.bn-spec {
    display: grid;
    gap: 0;
    margin: 0;
}

.bn-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 9px;
    border-bottom: 1px dashed var(--bn-line);
    font-size: .9rem;
}

.bn-spec-row:last-child {
    border-bottom: 0;
}

.bn-spec-k {
    color: var(--bn-text-2);
    flex: 1;
    min-width: 0;
}

.bn-spec-v {
    font-family: var(--bn-mono);
    font-size: .84rem;
    font-weight: 500;
    color: var(--bn-text);
    text-align: end;
    unicode-bidi: isolate;
    flex: none;
}

.bn-assay-foot {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.bn-assay-foot .bn-btn {
    flex: 1 1 150px;
    min-height: 44px;
    padding-inline: 16px;
}

.bn-caveat {
    font-size: .78rem;
    color: var(--bn-text-3);
    margin-top: 18px;
    line-height: 1.5;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.bn-caveat .bn-dia {
    margin-top: 7px;
    opacity: .7;
}

/* ==========================================================================
   LOADING BOARD — the drift rail. Screenshot moment 3.
   ========================================================================== */
.bn-board {
    background: var(--bn-ink-2);
    border-block: 1px solid var(--bn-line);
    padding-block: 34px;
    margin-top: 30px;
    overflow: hidden;
}

.bn-board-rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    padding-inline: var(--bn-pad);
}

.bn-board-rail::-webkit-scrollbar {
    display: none;
}

.bn-board-cell {
    flex: none;
    min-width: 210px;
    padding: 4px 22px;
    border-inline-end: 1px solid var(--bn-line);
    scroll-snap-align: start;
}

.bn-board-cell:last-child {
    border-inline-end: 0;
}

.bn-board-k {
    font-family: var(--bn-mono);
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--bn-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

[dir="rtl"] .bn-board-k {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.bn-board-v {
    font-family: var(--bn-display);
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bn-text);
    margin-bottom: 4px;
}

.bn-board-note {
    font-size: .82rem;
    color: var(--bn-text-3);
    line-height: 1.45;
}

.bn-board-arrows {
    display: none;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

/* ==========================================================================
   STEPS — how a shipment runs
   ========================================================================== */
.bn-steps {
    display: grid;
    gap: 14px;
    margin-top: 30px;
    counter-reset: bnstep;
}

.bn-step {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bn-ink-2);
    box-shadow: inset 0 1px 0 rgba(247, 231, 166, .08);
}

.bn-step-n {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bn-gold-deep);
    flex: none;
    width: 34px;
    unicode-bidi: isolate;
}

.bn-step-t {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 5px;
    color: var(--bn-text);
}

.bn-step-d {
    font-size: .9rem;
    color: var(--bn-text-2);
    margin: 0;
}

/* ==========================================================================
   GALLERY — slow auto-drift carousel (founder lesson 4)
   ========================================================================== */
.bn-rail-wrap {
    position: relative;
    margin-top: 26px;
}

.bn-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.bn-rail::-webkit-scrollbar {
    display: none;
}

.bn-shot {
    flex: none;
    width: 250px;
    scroll-snap-align: center;
}

.bn-shot img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

[dir="rtl"] .bn-shot img {
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.bn-shot-cap {
    font-size: .82rem;
    color: var(--bn-text-3);
    margin-top: 9px;
    padding-inline: 2px;
}

.bn-rail-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(10, 9, 6, .86);
    border: 1px solid var(--bn-line-2);
    color: var(--bn-gold);
    cursor: pointer;
    z-index: 3;
    place-items: center;
}

.bn-rail-prev { inset-inline-start: -6px; }
.bn-rail-next { inset-inline-end: -6px; }

/* ==========================================================================
   TESTIMONIALS — horizontal, renders at zero reviews (founder lesson 5)
   ========================================================================== */
.bn-quote {
    flex: none;
    width: min(310px, 82vw);
    scroll-snap-align: center;
}

.bn-quote-body {
    font-family: var(--bn-display);
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.5;
    color: var(--bn-text);
    margin: 0 0 14px;
}

[dir="rtl"] .bn-quote-body {
    font-style: normal;
    line-height: 1.7;
}

.bn-quote-who {
    font-family: var(--bn-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bn-gold);
}

[dir="rtl"] .bn-quote-who {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
}

.bn-empty {
    padding: 26px 20px;
    text-align: center;
    color: var(--bn-text-3);
    border: 1px dashed var(--bn-line-2);
    font-size: .92rem;
}

/* ==========================================================================
   FAQ — the GEO answer blocks
   ========================================================================== */
.bn-faq {
    margin-top: 28px;
    border-top: 1px solid var(--bn-line);
}

.bn-faq-item {
    border-bottom: 1px solid var(--bn-line);
}

.bn-faq-q {
    width: 100%;
    background: none;
    border: 0;
    text-align: start;
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bn-text);
}

.bn-faq-q .bn-dia {
    margin-inline-start: auto;
    flex: none;
}

.bn-faq-item.open .bn-faq-q .bn-dia {
    transform: rotate(135deg);
    background: var(--bn-gold-hi);
}

.bn-faq-a {
    display: none;
    padding: 0 0 20px;
    color: var(--bn-text-2);
    max-width: 70ch;
}

.bn-faq-item.open .bn-faq-a {
    display: block;
    animation: bn-fade var(--bn-t) var(--bn-ease);
}

@keyframes bn-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ==========================================================================
   DESK — the RFQ form and contact machinery
   ========================================================================== */
.bn-field {
    margin-bottom: 14px;
}

.bn-label {
    display: block;
    font-family: var(--bn-mono);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bn-text-3);
    margin-bottom: 7px;
}

[dir="rtl"] .bn-label {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12.5px;
}

.bn-input,
.bn-select,
.bn-textarea {
    width: 100%;
    background: var(--bn-ink-2);
    border: 1px solid var(--bn-line);
    color: var(--bn-text);
    font-family: var(--bn-body);
    font-size: 15px;
    padding: 13px 14px;
    transition: border-color var(--bn-t-fast) var(--bn-ease);
}

.bn-select {
    /* clear the chevron (BUILD-CONTRACT rule 12) */
    padding-inline-end: 38px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--bn-gold) 50%),
        linear-gradient(135deg, var(--bn-gold) 50%, transparent 50%);
    background-size: 6px 6px, 6px 6px;
    background-position: right 17px center, right 11px center;
    background-repeat: no-repeat;
}

[dir="rtl"] .bn-select {
    background-position: left 17px center, left 11px center;
}

.bn-textarea {
    min-height: 116px;
    resize: vertical;
}

.bn-input:focus,
.bn-select:focus,
.bn-textarea:focus {
    outline: none;
    border-color: var(--bn-line-3);
}

.bn-input::placeholder,
.bn-textarea::placeholder {
    color: var(--bn-text-3);
}

.bn-grid-2 {
    display: grid;
    gap: 14px;
}

/* status feedback — centered, auto-width, wrapping, dismissable (checklist B) */
.bn-note {
    margin: 0 0 14px;
    padding: 12px 16px;
    font-size: .9rem;
    text-align: center;
    max-width: min(92%, 440px);
    margin-inline: auto;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bn-note-ok {
    background: rgba(224, 190, 85, .12);
    color: var(--bn-gold-hi);
    border: 1px solid var(--bn-line-2);
}

.bn-note-err {
    background: rgba(190, 70, 60, .14);
    color: #F0B3AC;
    border: 1px solid rgba(190, 70, 60, .38);
}

/* contact channels */
.bn-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.bn-channel {
    flex: 1 1 148px;
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bn-ink-2);
    box-shadow: inset 0 1px 0 rgba(247, 231, 166, .08);
    transition: transform var(--bn-t-fast) var(--bn-ease);
    min-width: 0;
}

.bn-channel:hover {
    transform: translateY(-2px);
}

.bn-channel i {
    color: var(--bn-gold);
    font-size: 17px;
    flex: none;
    width: 22px;
    text-align: center;
}

.bn-channel-k {
    font-family: var(--bn-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bn-text-3);
    display: block;
}

[dir="rtl"] .bn-channel-k {
    font-family: var(--bn-body);
    letter-spacing: 0;
    text-transform: none;
    font-size: 11.5px;
}

.bn-channel-v {
    font-size: .92rem;
    color: var(--bn-text);
    overflow-wrap: anywhere;
}

/* socials — centered flex, never a grid (founder lesson 3) */
.bn-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.bn-social {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bn-line);
    color: var(--bn-text-2);
    font-size: 17px;
    transition: color var(--bn-t-fast) var(--bn-ease), border-color var(--bn-t-fast) var(--bn-ease), transform var(--bn-t-fast) var(--bn-ease);
}

.bn-social:hover {
    color: var(--bn-gold);
    border-color: var(--bn-line-2);
    transform: translateY(-3px);
}

/* hours */
.bn-hours {
    margin-top: 22px;
    border-top: 1px solid var(--bn-line);
}

.bn-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--bn-line);
    font-size: .92rem;
}

.bn-hours-row.today .bn-hours-d {
    color: var(--bn-gold);
}

.bn-hours-d {
    color: var(--bn-text-2);
}

.bn-hours-t {
    font-family: var(--bn-mono);
    font-size: .84rem;
    color: var(--bn-text);
    unicode-bidi: isolate;
}

.bn-closed {
    color: var(--bn-text-3);
}

/* map */
.bn-map {
    margin-top: 22px;
    border: 1px solid var(--bn-line);
    line-height: 0;
}

.bn-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    filter: grayscale(1) invert(.92) contrast(.86) sepia(.28) hue-rotate(2deg);
}

/* payments */
.bn-pays {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.bn-pay {
    flex: 1 1 150px;
    max-width: 250px;
    padding: 14px;
    background: var(--bn-ink-2);
    text-align: center;
    font-size: .9rem;
    box-shadow: inset 0 1px 0 rgba(247, 231, 166, .08);
    min-width: 0;
    overflow-wrap: anywhere;
}

.bn-pay img {
    max-height: 54px;
    width: auto;
    margin: 0 auto 9px;
}

/* video */
.bn-video {
    margin-top: 22px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--bn-line);
}

.bn-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.bn-footer {
    padding: 44px var(--bn-pad) 128px;
    text-align: center;
    border-top: 1px solid var(--bn-line);
    background: linear-gradient(180deg, transparent, rgba(224, 190, 85, .035));
}

.bn-footer-mark {
    width: 116px;
    margin: 0 auto 16px;
    opacity: .9;
}

.bn-footer-name {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

[dir="rtl"] .bn-footer-name {
    letter-spacing: 0;
    text-transform: none;
}

.bn-footer-tag {
    font-size: .84rem;
    color: var(--bn-text-3);
    margin-bottom: 20px;
}

.bn-brand {
    margin-top: 22px;
    font-size: .8rem;
    color: var(--bn-text-3);
}

.bn-brand a {
    color: var(--bn-gold-deep);
}

/* ==========================================================================
   DOCK — sticky action bar
   ========================================================================== */
.bn-dock {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px var(--bn-pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 9, 6, .93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--bn-line-2);
}

.bn-dock-in {
    max-width: 560px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

.bn-dock .bn-btn-gold {
    flex: 1;
    min-height: 46px;
}

.bn-dock-ic {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--bn-line-2);
    color: var(--bn-gold);
    background: transparent;
    cursor: pointer;
    transition: background var(--bn-t-fast) var(--bn-ease);
}

.bn-dock-ic:hover {
    background: rgba(224, 190, 85, .1);
}

/* ==========================================================================
   MODALS — box is position:relative so the X sits inside (founder lesson 7)
   ========================================================================== */
.bn-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 3, 2, .82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.bn-overlay.show {
    display: flex;
}

.bn-modal {
    position: relative;
    width: min(430px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bn-ink-2);
    border: 1px solid var(--bn-line-2);
    padding: 26px 20px 22px;
    text-align: center;
    animation: bn-pop var(--bn-t) var(--bn-ease);
}

@keyframes bn-pop {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.bn-modal-x {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: var(--bn-text-2);
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.bn-modal-x:hover {
    color: var(--bn-gold);
}

.bn-modal-t {
    font-family: var(--bn-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 6px;
    padding-inline: 34px;
}

.bn-modal-s {
    font-size: .88rem;
    color: var(--bn-text-3);
    margin: 0 0 20px;
}

.bn-qr {
    background: #fff;
    padding: 12px;
    display: inline-block;
    line-height: 0;
    margin-bottom: 16px;
}

.bn-qr canvas {
    display: block;
    width: 190px;
    height: 190px;
}

.bn-copy {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bn-ink);
    border: 1px solid var(--bn-line);
    padding: 11px 13px;
    margin-bottom: 12px;
}

.bn-copy span {
    flex: 1;
    font-family: var(--bn-mono);
    font-size: 12px;
    color: var(--bn-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
    unicode-bidi: isolate;
}

/* ==========================================================================
   PASSWORD GATE
   ========================================================================== */
.bn-gate {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.bn-gate-box {
    width: min(390px, 100%);
    text-align: center;
    background: var(--bn-ink-2);
    border: 1px solid var(--bn-line-2);
    padding: 34px 22px;
}

.bn-gate-ic {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: var(--bn-gold);
    font-size: 21px;
    border: 1px solid var(--bn-line-2);
    transform: rotate(45deg);
}

.bn-gate-ic i {
    transform: rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE — >=760px
   ========================================================================== */
@media (min-width: 760px) {
    :root {
        --bn-pad: 34px;
        --bn-ch: 18px;
    }

    section {
        padding-block: 88px;
    }

    .bn-hero {
        padding-block: 72px 84px;
    }

    .bn-assays {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bn-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

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

    .bn-rail-nav {
        display: grid;
    }

    .bn-board-arrows {
        display: flex;
    }

    .bn-shot {
        width: 300px;
    }

    .bn-shot img {
        height: 208px;
    }

    .bn-card-body {
        padding: 24px;
    }

    .bn-assay-vitrine {
        width: 108px;
        height: 108px;
    }

    .bn-footer {
        padding-bottom: 132px;
    }
}

/* ---------- >=1080px ---------- */
@media (min-width: 1080px) {
    .bn-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 52px;
        align-items: start;
    }

    .bn-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .bn-metrics {
        grid-template-columns: repeat(4, 1fr);
    }

    .bn-dock {
        padding-block: 12px;
    }
}

/* ==========================================================================
   REDUCED MOTION — kills every ambient and reveal animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .bn-fx {
        display: none;
    }

    .bn-js .bn-rise {
        opacity: 1;
        transform: none;
    }

    .bn-wordmark,
    .bn-metric-n,
    .bn-assay-big {
        background-position: 0 50% !important;
    }
}

/* ==========================================================================
   PRINT — a buyer printing the spec sheet should get a readable document
   ========================================================================== */
@media print {
    .bn-fx, .bn-dock, .bn-top, .bn-overlay, .bn-rail-nav { display: none !important; }

    body {
        background: #fff;
        color: #000;
    }

    .bn-card-body, .bn-ledger-row, .bn-step, .bn-metric {
        background: #fff;
        box-shadow: none;
        border: 1px solid #999;
    }

    .bn-wordmark, .bn-metric-n, .bn-assay-big {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }
}
