/* ============ TOKENS ============ */

[hidden] {
    display: none !important;
}

:root {
    --font-head: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --bg: #FFFFFF;
    /* page background — clean white, matches the left "paper" side */
    --surface: #FFFFFF;
    /* cards, nav, form fields */
    --surface-2: #F6F3EE;
    /* secondary panels — faint warm-white, echoes paper texture instead of cool grey */
    --ink: #2B2013;
    /* main text — warm near-black, sits naturally against kraft tones */
    --ink-muted: #7A6E5C;
    /* secondary/muted text — soft brown-grey */
    --brass: #D97B35;
    /* accent — the kraft-paper orange from your reference */
    --brass-soft: rgba(217, 123, 53, 0.10);
    /* tinted backgrounds for hover/highlight */
    --paper: #D9873F;
    /* NEW: solid kraft-orange block, for the torn-paper panel itself (CTA sections, hero backdrop) */
    --paper-deep: #B8651F;
    /* NEW: shadowed edge of the torn paper, for the ragged-edge shading */
    --line: rgba(43, 32, 19, 0.10);
    /* borders, dividers */
    --success: #3F7D5C;
    /* status/confirmation green — kept neutral so it doesn't fight the orange */
}

:root[data-theme="dark"] {
    --bg: #141110;
    --surface: #1C1815;
    --surface-2: #241E19;
    --ink: #F3EDE3;
    --ink-muted: #A99C87;
    --brass: #E89A56;
    --brass-soft: rgba(232, 154, 86, 0.14);
    --paper: #C77A3A;
    --paper-deep: #8F5220;
    --line: rgba(232, 154, 86, 0.16);
    --success: #6FAE8C;
}



* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 28px;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}

.mono {
    font-family: var(--font-mono);
}

.rule {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ============ NAV ============ */
nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.brand b {
    color: var(--brass);
    font-weight: 500;
}

.navlinks {
    display: flex;
    gap: 26px;
    font-size: 14px;
}

.navlinks a {
    text-decoration: none;
    color: var(--ink-muted);
}

.navlinks a:hover {
    color: var(--ink);
}

.nav-cta {
    font-size: 13px;
    font-family: var(--font-mono);
    border: 1px solid var(--line);
    padding: 8px 14px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease, color .15s ease;
}

.nav-cta:hover {
    border-color: var(--brass);
    color: var(--brass);
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    background: var(--ink);
    color: var(--bg);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: -2px;
}

@media (max-width:640px) {
    .navlinks {
        display: none;
    }
}

/* ============ HERO ============ */
header.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(60% 70% at 88% 12%, color-mix(in srgb, var(--paper) 26%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--bg) 85%);
}

/* dot grid, fading out toward the bottom-left */
header.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--brass) 38%, transparent) 1.2px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(70% 80% at 85% 20%, #000, transparent 75%);
    mask-image: radial-gradient(70% 80% at 85% 20%, #000, transparent 75%);
    pointer-events: none;
}

header.hero .wrap {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(290px, 40vw, 380px);
    column-gap: 56px;
    align-items: start;
}

@media (max-width:860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        row-gap: 56px;
    }
}

@media (max-width:640px) {
    header.hero {
        padding: 60px 0 52px;
    }

    .hero-grid {
        row-gap: 48px;
    }
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 22px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent);
}

.hero h1 {
    font-size: clamp(34px, 4.8vw, 48px);
    max-width: 15ch;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p.lede {
    max-width: 42ch;
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 13px 22px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--ink);
    transition: transform .15s ease, background .15s ease, color .15s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.stack-row {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    padding: 6px 10px;
}

/* Hero card: "Which of these sounds like you?" */
.sounds-like {
    position: relative;
    isolation: isolate;
    --sl-bg: #2B2013;
    --sl-ink: #F3EDE3;
    --sl-muted: #BBAD97;
    --sl-line: rgba(243, 237, 227, 0.12);
    --sl-accent: #E89A56;
    background: var(--sl-bg);
    color: var(--sl-ink);
    border: 1px solid var(--sl-line);
    border-radius: 18px;
    padding: 26px 20px 20px;
    margin-bottom: 14px;
    box-shadow: 0 18px 40px rgba(43, 32, 19, 0.28);
}

.sounds-like h2 {
    font-size: 18px;
    letter-spacing: -0.01em;
    padding: 0 8px;
    margin-bottom: 16px;
    color: var(--sl-ink);
}

.sy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sy-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.sy-row:hover,
.sy-row:focus-visible {
    background: rgba(243, 237, 227, 0.07);
    border-color: var(--sl-line);
}

.sy-row:focus-visible {
    outline: 2px solid var(--sl-accent);
    outline-offset: 2px;
}

.sy-ic {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(243, 237, 227, 0.08);
    color: var(--sl-accent);
}

.sy-ic svg,
.sy-go {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* the flagship offer gets the accent */
.sy-lead .sy-ic {
    background: var(--sl-accent);
    color: #2B2013;
}

.sy-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: var(--sl-muted);
    line-height: 1.4;
}

.sy-text b {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sl-ink);
}

.sy-go {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--sl-muted);
    transition: transform .15s ease, color .15s ease;
}

.sy-row:hover .sy-go {
    color: var(--sl-accent);
    transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {

    .sy-row,
    .sy-go {
        transition: none;
    }
}

/* breathing room below the hero grid */
.hero-grid+.stack-row {
    margin-top: 48px;
}

@media (max-width:860px) {
    .hero-grid+.stack-row {
        margin-top: 40px;
    }
}

@media (max-width:560px) {
    .sounds-like {
        padding: 18px 12px 14px;
    }

    .hero-grid+.stack-row {
        margin-top: 32px;
    }

    header.hero {
        padding: 52px 0 44px;
    }
}

/* offer cards are link targets from the hero, so clear the sticky nav */
.offer {
    scroll-margin-top: 96px;
}

/* ============ SECTION HEADERS ============ */
section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.sec-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--brass);
}

.sec-head h2 {
    font-size: 28px;
    margin-top: 8px;
    max-width: 26ch;
}

.sec-desc {
    color: var(--ink-muted);
    max-width: 36ch;
    font-size: 15px;
}


/* ============ OFFERS ============ */
.offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

@media (max-width:700px) {
    .offers {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.offer {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 1px 2px rgba(36, 29, 18, 0.04),
        0 4px 12px rgba(36, 29, 18, 0.04);
    transition:
        transform .35s cubic-bezier(.2, .7, .2, 1),
        box-shadow .35s ease,
        border-color .25s ease;
}

/* Brass edge glow that fades in on hover */
.offer::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--brass) 55%, transparent) 0%,
            transparent 45%,
            transparent 55%,
            color-mix(in srgb, var(--brass) 35%, transparent) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1;
}

@media (hover: hover) {
    .offer:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--brass) 40%, var(--line));
        box-shadow:
            0 2px 4px rgba(36, 29, 18, 0.05),
            0 16px 34px rgba(36, 29, 18, 0.10);
    }

    .offer:hover::before {
        opacity: 1;
    }
}

/* ---- Head: tag + ordinal ---- */
.offer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.offer .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    background: var(--brass-soft);
    padding: 5px 11px;
    border-radius: 999px;
    display: inline-block;
    line-height: 1;
}

.offer-num {
    font-size: 12px;
    color: var(--ink-muted);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

.offer h3 {
    font-size: 22px;
    letter-spacing: -0.015em;
    margin: 2px 0 0;
    line-height: 1.15;
}

.offer p.desc {
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* "Best for" — quiet quote-style callout instead of a grey box */
.offer .for {
    font-size: 13.5px;
    color: var(--ink);
    font-style: normal;
    line-height: 1.5;
    padding: 2px 0 2px 14px;
    border-left: 2px solid color-mix(in srgb, var(--brass) 55%, transparent);
}

.offer .for::before {
    content: attr(data-best-for);
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 3px;
}

/* ---- Price ---- */
.offer-foot {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--line);
}

.offer .price {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
}

.offer .price-unit {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-muted);
}

/* "from" label for starting prices (language follows <html lang>) */
.offer[data-offer-name] .price::before {
    content: "from";
    margin-right: 8px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink-muted);
}

html[lang="fr"] .offer[data-offer-name] .price::before {
    content: "à partir de";
}

/* ---- CTA: always visible (works on touch), same shape on every card ---- */
.offer-cta,
.offer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--brass) 50%, var(--line));
    border-radius: 10px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, gap .2s ease, box-shadow .2s ease;
}

.offer-cta:hover,
.offer-link:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: #2B2013;
    gap: 12px;
}

.offer-cta span {
    transition: transform .2s ease;
}

.offer-cta:hover span {
    transform: translateX(2px);
}

.offer-cta:focus-visible,
.offer-link:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* ---- Flagship ---- */
.offer-flagship {
    grid-column: 1 / -1;
    order: -1;
    padding: 28px;
    border-color: color-mix(in srgb, var(--brass) 35%, var(--line));
    background: linear-gradient(180deg, var(--brass-soft) 0%, transparent 55%), var(--surface);
    box-shadow:
        inset 0 3px 0 var(--brass),
        0 1px 2px rgba(36, 29, 18, 0.04),
        0 8px 24px rgba(36, 29, 18, 0.06);
}

@media (hover: hover) {
    .offer-flagship:hover {
        box-shadow:
            inset 0 3px 0 var(--brass),
            0 2px 4px rgba(36, 29, 18, 0.05),
            0 18px 38px rgba(36, 29, 18, 0.12);
    }
}

.offer-flagship h3 {
    font-size: 30px;
}

.offer-flagship .tag {
    background: var(--brass);
    color: #2B2013;
}

.offer-flagship .price {
    font-size: 30px;
    white-space: nowrap;
}

.offer-flagship .offer-cta {
    background: var(--brass);
    border-color: var(--brass);
    color: #2B2013;
    padding: 14px 18px;
}

.offer-flagship .offer-cta:hover {
    box-shadow: 0 6px 18px color-mix(in srgb, var(--brass) 40%, transparent);
    filter: brightness(1.05);
}

/* Desktop: content on the left, price + CTA in a tinted side panel */
@media (min-width:701px) {
    .offer-flagship {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        grid-template-rows: auto auto 1fr auto;
        column-gap: 44px;
        row-gap: 14px;
        padding: 32px;
    }

    .offer-flagship::after {
        content: "";
        position: absolute;
        top: 3px;
        right: 0;
        bottom: 0;
        width: calc(280px + 32px + 22px);
        background: var(--brass-soft);
        border-left: 1px solid color-mix(in srgb, var(--brass) 25%, var(--line));
        z-index: -1;
    }

    .offer-flagship>* {
        position: relative;
        z-index: 2;
    }

    .offer-flagship .offer-head {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .offer-flagship .offer-num {
        display: none;
    }

    .offer-flagship h3 {
        grid-column: 1;
        grid-row: 2;
    }

    .offer-flagship p.desc {
        grid-column: 1;
        grid-row: 3;
        max-width: 60ch;
    }

    .offer-flagship .for {
        grid-column: 1;
        grid-row: 4;
        align-self: start;
    }

    .offer-flagship .offer-foot {
        grid-column: 2;
        grid-row: 1 / 4;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0;
        margin: 0;
        border-top: 0;
    }

    .offer-flagship .offer-cta {
        grid-column: 2;
        grid-row: 4;
        align-self: end;
    }
}

/* Anchor targets from the hero */
.offer {
    scroll-margin-top: 96px;
}

/* ---- "Also available" row ---- */
.also-line {
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 14px;
}

.also-line>span:first-child {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 4px;
}

.also-line>span[aria-hidden] {
    display: none;
}

.also-line a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color .2s ease, background .2s ease;
}

.also-line a::after {
    content: "→";
    margin-left: 8px;
    color: var(--brass);
    transition: transform .2s ease;
}

.also-line a:hover {
    border-color: var(--brass);
    background: var(--brass-soft);
}

.also-line a:hover::after {
    transform: translateX(3px);
}

.also-line a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.seq-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-muted);
    padding: 16px 18px;
    background: var(--brass-soft);
    border-left: 2px solid var(--brass);
    border-radius: 0 10px 10px 0;
    line-height: 1.55;
}

@media (max-width:700px) {
    .offer {
        padding: 22px 20px 20px;
    }

    .offer-flagship h3 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .offer,
    .offer::before,
    .offer-cta,
    .offer-link,
    .also-line a,
    .also-line a::after {
        transition: none;
    }
}

/* ============ PROCESS ============ */
.process {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width:860px) {
    .process {
        grid-template-columns: 1fr;
    }
}

.step {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

@media (max-width:860px) {
    .step {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width:560px) {
    .step {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding-right: 6px;
}

.step h3 {
    font-size: 17px;
    line-height: 1.25;
}

.step p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

.step-out {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-muted);
}

.step-out b {
    display: block;
    color: var(--ink);
    font-weight: 500;
    margin-top: 2px;
}

/* the communication step is the differentiator, so it gets the accent */
.step-key {
    border-color: var(--brass);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brass) 16%, transparent);
}

/* ---- animated mini UI scenes (pure CSS, sized in em) ---- */
.step-scene {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 10px;
    background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--paper) 16%, var(--surface-2)));
    border: 1px solid var(--line);
}

@media (max-width:860px) {
    .step-scene {
        font-size: 12px;
    }
}

@media (max-width:560px) {
    .step-scene {
        aspect-ratio: 16 / 10;
        font-size: 13px;
    }
}

.step-scene .num {
    position: absolute;
    top: .8em;
    left: .8em;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 1.1em;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 .7em;
}

/* Every element's base style is its finished state, so reduced-motion
   users (animation: none) see a complete, static scene. */

/* 01: quote gets written and signed */
.sc-doc {
    position: relative;
    width: 56%;
    height: 82%;
    margin-top: 1.2em;
    display: flex;
    flex-direction: column;
    gap: .6em;
    padding: 1em .9em;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .7em;
    box-shadow: 0 .5em 1.4em rgba(36, 29, 18, .12);
}

.sc-bar {
    display: block;
    height: .5em;
    width: var(--w, 100%);
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 14%, transparent);
    animation: sc-fade 7s ease-in-out infinite;
}

.sc-h {
    --w: 46%;
    height: .7em;
    background: var(--brass);
}

.sc-doc .sc-bar:nth-child(2) {
    animation-delay: .2s;
}

.sc-doc .sc-bar:nth-child(3) {
    animation-delay: .4s;
}

.sc-doc .sc-bar:nth-child(4) {
    animation-delay: .6s;
}

.sc-sign {
    margin-top: auto;
    width: 60%;
    fill: none;
    stroke: var(--brass);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    border-bottom: 1px solid var(--line);
    animation: sc-sign 7s ease-in-out infinite;
}

.sc-stamp {
    position: absolute;
    right: .7em;
    bottom: .7em;
    width: 2.4em;
    height: 2.4em;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 1.3em;
    animation: sc-stamp 7s ease-in-out infinite;
}

@keyframes sc-fade {
    0% {
        opacity: 0;
        transform: translateX(-.6em);
    }

    8%,
    88% {
        opacity: 1;
        transform: none;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes sc-sign {

    0%,
    25% {
        stroke-dashoffset: 100;
    }

    45%,
    88% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    96%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes sc-stamp {

    0%,
    52% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.25);
        opacity: 1;
    }

    66%,
    88% {
        transform: scale(1);
        opacity: 1;
    }

    96%,
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* 02: a task card moves to Done and an update arrives */
.sc-board {
    position: relative;
    width: 90%;
    margin-top: 1.4em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5em;
    align-items: start;
}

.sc-col {
    display: flex;
    flex-direction: column;
    gap: .4em;
    min-height: 8.6em;
    padding: .5em .4em;
    border-radius: .6em;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.sc-col b {
    display: block;
    height: .45em;
    width: 55%;
    border-radius: 99px;
    background: var(--ink-muted);
}

.sc-col:nth-child(2) b {
    background: var(--brass);
}

.sc-col:nth-child(3) b {
    background: var(--success);
}

.sc-col i {
    display: block;
    height: 1.7em;
    border-radius: .4em;
    background: var(--surface);
    border: 1px solid var(--line);
}

.sc-move {
    position: absolute;
    top: 3.45em;
    left: calc((100% - 1em) / 3 * 2 + 1em + .4em);
    width: calc((100% - 1em) / 3 - .8em);
    height: 1.7em;
    border-radius: .4em;
    background: color-mix(in srgb, var(--success) 18%, var(--surface));
    border: 1px solid var(--success);
    animation: sc-move 7s ease-in-out infinite;
}

.sc-ping {
    position: absolute;
    top: .8em;
    right: .8em;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: .95em;
    color: #fff;
    background: var(--success);
    border-radius: 99px;
    padding: .2em .8em;
    animation: sc-ping 7s ease-in-out infinite;
}

@keyframes sc-move {
    0% {
        opacity: 0;
        left: calc((100% - 1em) / 3 + .5em + .4em);
    }

    8%,
    25% {
        opacity: 1;
        left: calc((100% - 1em) / 3 + .5em + .4em);
        background: var(--brass-soft);
        border-color: var(--brass);
    }

    45%,
    88% {
        opacity: 1;
        left: calc((100% - 1em) / 3 * 2 + 1em + .4em);
        background: color-mix(in srgb, var(--success) 18%, var(--surface));
        border-color: var(--success);
    }

    96%,
    100% {
        opacity: 0;
        left: calc((100% - 1em) / 3 * 2 + 1em + .4em);
    }
}

@keyframes sc-ping {

    0%,
    40% {
        opacity: 0;
        transform: translateY(-.6em);
    }

    48%,
    84% {
        opacity: 1;
        transform: none;
    }

    92%,
    100% {
        opacity: 0;
    }
}

/* 03: walkthrough plays, then the site is live */
.sc-browser {
    width: 86%;
    height: 78%;
    margin-top: 1.2em;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .7em;
    box-shadow: 0 .5em 1.4em rgba(36, 29, 18, .12);
}

.sc-bbar {
    display: flex;
    align-items: center;
    gap: .6em;
    padding: .5em .6em;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.sc-bbar::before {
    content: "";
    flex-shrink: 0;
    width: .5em;
    height: .5em;
    margin-right: 1.6em;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: .8em 0 0 #febc2e, 1.6em 0 0 #28c840;
}

.sc-url {
    flex: 1;
    height: .9em;
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.sc-view {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
}

.sc-play,
.sc-live {
    grid-area: 1 / 1;
}

.sc-play {
    position: relative;
    width: 2.8em;
    height: 2.8em;
    border-radius: 50%;
    background: var(--brass);
    opacity: 0;
    animation: sc-play 7s ease-in-out infinite;
}

.sc-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-left: .8em solid #fff;
    border-top: .5em solid transparent;
    border-bottom: .5em solid transparent;
}

.sc-live {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--success);
    animation: sc-live 7s ease-in-out infinite;
}

.sc-live::before {
    content: "";
    width: .6em;
    height: .6em;
    border-radius: 50%;
    background: var(--success);
}

.sc-prog {
    position: absolute;
    left: .8em;
    right: .8em;
    bottom: .7em;
    height: .35em;
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.sc-prog i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brass);
    transform-origin: left;
    animation: sc-prog 7s ease-in-out infinite;
}

@keyframes sc-play {

    0%,
    8% {
        opacity: 0;
        transform: scale(.7);
    }

    14%,
    58% {
        opacity: 1;
        transform: scale(1);
    }

    66%,
    100% {
        opacity: 0;
        transform: scale(.8);
    }
}

@keyframes sc-prog {

    0%,
    14% {
        transform: scaleX(0);
        opacity: 1;
    }

    60%,
    88% {
        transform: scaleX(1);
        opacity: 1;
    }

    96%,
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

@keyframes sc-live {

    0%,
    62% {
        opacity: 0;
        transform: translateY(.4em);
    }

    70%,
    88% {
        opacity: 1;
        transform: none;
    }

    96%,
    100% {
        opacity: 0;
    }
}

/* 04: a question, then a quick reply */
.sc-chat {
    width: 84%;
    margin-top: 1.4em;
    display: flex;
    flex-direction: column;
    gap: .7em;
}

.sc-msg {
    display: flex;
    flex-direction: column;
    gap: .4em;
    max-width: 78%;
    padding: .7em .8em;
    border-radius: .8em;
}

.sc-msg i {
    display: block;
    height: .45em;
    width: var(--w);
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 20%, transparent);
}

.sc-me {
    align-self: flex-end;
    background: var(--brass-soft);
    border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent);
    animation: sc-me 7s ease-in-out infinite;
}

.sc-reply {
    display: grid;
}

.sc-reply>* {
    grid-area: 1 / 1;
    justify-self: start;
}

.sc-you {
    background: var(--surface);
    border: 1px solid var(--line);
}

.sc-typing {
    flex-direction: row;
    align-items: center;
    gap: .3em;
    opacity: 0;
    animation: sc-typing 7s ease-in-out infinite;
}

.sc-typing span {
    width: .5em;
    height: .5em;
    border-radius: 50%;
    background: var(--ink-muted);
    animation: sc-dot 1s ease-in-out infinite;
}

.sc-typing span:nth-child(2) {
    animation-delay: .15s;
}

.sc-typing span:nth-child(3) {
    animation-delay: .3s;
}

.sc-done b {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--success);
}

.sc-done {
    animation: sc-done 7s ease-in-out infinite;
}

@keyframes sc-me {

    0%,
    4% {
        opacity: 0;
        transform: translateX(.8em);
    }

    12%,
    88% {
        opacity: 1;
        transform: none;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes sc-typing {

    0%,
    26% {
        opacity: 0;
    }

    30%,
    46% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes sc-done {

    0%,
    50% {
        opacity: 0;
        transform: translateY(.4em);
    }

    56%,
    88% {
        opacity: 1;
        transform: none;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes sc-dot {
    50% {
        transform: translateY(-.25em);
    }
}

@media (prefers-reduced-motion: reduce) {

    .step-scene *,
    .step-scene *::before,
    .step-scene *::after {
        animation: none !important;
    }
}

/* ============ TRUST ============ */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
}

@media (max-width:640px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    display: flex;
    gap: 16px;
}

.trust-item .mark {
    font-family: var(--font-mono);
    color: var(--brass);
    font-size: 14px;
    flex-shrink: 0;
    padding-top: 2px;
}

.trust-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

/* ============ PROOF ============ */
.proof-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
}

@media (max-width:700px) {
    .proof-card {
        grid-template-columns: 1fr;
    }
}

.proof-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.proof-card p {
    color: var(--ink-muted);
    font-size: 14.5px;
}

.proof-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 14px;
}

.proof-list li {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    color: var(--ink-muted);
}

.proof-list li:first-child {
    border-top: none;
}

.proof-list li::before {
    content: "—";
    color: var(--brass);
    flex-shrink: 0;
}

/* ============ PROJECT GALLERY ============ */
.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width:700px) {
    .projects {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* Card shell — rounded, soft elevation, subtle gradient ring on hover */
.project-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform .35s cubic-bezier(.2, .7, .2, 1),
        box-shadow .35s ease,
        border-color .25s ease;
    box-shadow:
        0 1px 2px rgba(36, 29, 18, 0.04),
        0 4px 12px rgba(36, 29, 18, 0.04);
}

.project-card::before {
    /* thin brass gradient strip at the top, revealed on hover */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--brass) 30%,
            var(--brass) 70%,
            transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 3;
    pointer-events: none;
}

.project-card:hover {
    border-color: color-mix(in srgb, var(--brass) 45%, var(--line));
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(36, 29, 18, 0.05),
        0 18px 40px rgba(36, 29, 18, 0.10),
        0 0 0 1px color-mix(in srgb, var(--brass) 18%, transparent);
}

.project-card:hover::before {
    opacity: 1;
}

/* Media / preview area */
.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
    /* internal rounding so the media clips nicely inside the rounded card */
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
    transform: scale(1.05);
}

/* Photo count badge — soft pill, top-right */
.media-count {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #fff;
    background: rgba(36, 29, 18, 0.72);
    padding: 6px 11px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.02em;
}

.media-count svg {
    width: 12px;
    height: 12px;
    opacity: 0.9;
}

/* Hover hint pill — centered over the media, appears on card hover */
.media-hover-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(36, 29, 18, 0.42);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: 2;
}

.media-hover-hint svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}

.project-card:hover .media-hover-hint {
    opacity: 1;
}

.project-card:hover .media-hover-hint svg {
    transform: translateX(3px);
}

/* Placeholder — soft diagonal stripes, rounded inside card */
.project-media.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink-muted);
    background:
        repeating-linear-gradient(45deg,
            var(--surface-2),
            var(--surface-2) 10px,
            transparent 10px,
            transparent 20px);
}

.project-media.placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.55;
}

.project-media.placeholder span {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Video play overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 29, 18, 0.25);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.project-media.has-video .play-overlay {
    opacity: 1;
}

.project-card:hover .play-overlay {
    background: rgba(36, 29, 18, 0.4);
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    color: var(--ink);
}

/* Body */
.project-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.project-body .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brass);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--brass-soft);
    display: inline-block;
}

.project-body .year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.project-body h3 {
    font-size: 21px;
    letter-spacing: -0.015em;
    margin-top: 2px;
    line-height: 1.15;
}

.project-role {
    font-size: 12.5px;
    color: var(--ink-muted);
    font-style: italic;
    margin-top: -4px;
}

.project-summary {
    font-size: 14.5px;
    color: var(--ink);
    margin: 6px 0 0;
    line-height: 1.55;
    font-weight: 500;
}

.project-outcomes {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-outcomes li {
    font-size: 13.5px;
    color: var(--ink-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}

.project-outcomes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 1px;
    background: var(--brass);
    border-radius: 1px;
}

/* Tech chips — rounded pills */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    background: var(--surface-2);
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 999px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.project-card:hover .project-stack span {
    border-color: color-mix(in srgb, var(--brass) 30%, var(--line));
}

/* Action row — pill-shaped button */
.project-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-view-btn {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--brass);
    background: var(--brass-soft);
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .2s ease, gap .2s ease, border-color .2s ease;
}

.project-view-btn:hover {
    background: color-mix(in srgb, var(--brass) 20%, transparent);
    border-color: color-mix(in srgb, var(--brass) 40%, transparent);
    gap: 10px;
}

.project-view-btn svg {
    width: 13px;
    height: 13px;
}

/* Third card — full-width showcase layout */
@media (min-width:701px) {
    .projects .project-card:nth-child(3) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        align-items: stretch;
    }

    .projects .project-card:nth-child(3) .project-media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 340px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 17px;
    }

    .projects .project-card:nth-child(3) .project-body {
        padding: 34px 34px 30px;
        justify-content: center;
        height: 100%;
    }
}

.project-title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 8px 2px 0;
    margin-left: -2px;
    transition: color .2s ease;
}

.project-title-link h3 {
    margin: 0;
    transition: color .2s ease;
}

.project-title-link .project-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--brass);
    transition: transform .2s ease, color .2s ease;
}

/* Hover state — the whole row reacts */
.project-title-link:hover h3 {
    color: var(--brass);
}

.project-title-link:hover .project-link-icon {
    transform: translate(2px, -2px);
}

/* Accessible focus ring */
.project-title-link:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* ============ FAQ ============ */
.faq-item {
    border-top: 1px solid var(--line);
}

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

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-q .plus {
    font-family: var(--font-mono);
    color: var(--brass);
    font-size: 16px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.faq-item[data-open="true"] .plus {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.faq-a p {
    margin: 0 0 18px;
    max-width: 60ch;
}

.faq-item[data-open="true"] .faq-a {
    max-height: 240px;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width:700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info p {
    color: var(--ink-muted);
    font-size: 15px;
    max-width: 38ch;
}

.contact-direct {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.contact-direct a {
    color: var(--brass);
    text-decoration: none;
}

.contact-direct a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-muted);
}

input,
textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brass);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

#formNote {
    font-size: 12.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

/* ============ FOOTER ============ */
footer {
    padding: 40px 0;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

footer .mono {
    font-size: 13px;
    color: var(--ink-muted);
}

::selection {
    background: var(--brass-soft);
    color: var(--ink);
}


/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 16, 10, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    font-family: var(--font-mono);
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, color .2s ease;
}

.lightbox-close:hover {
    border-color: var(--brass);
    color: var(--brass);
}

/* Inner shell — fixed grid rows so nothing jumps */
.lb-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    max-height: 90vh;
}

/* Header */
.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lb-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lb-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brass);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lb-title {
    font-family: var(--font-head);
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
}

.lb-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.lb-counter {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
    padding-bottom: 4px;
}

/* Stage — fixed height container, image fits inside */
.lb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(60vh, 560px);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

.lb-media-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-media-holder img,
.lb-media-holder video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}

/* Nav arrows — absolutely positioned, don't affect layout */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(36, 29, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.lb-nav svg {
    width: 20px;
    height: 20px;
}

.lb-nav:hover {
    background: rgba(227, 169, 77, 0.25);
    border-color: var(--brass);
}

.lb-prev {
    left: 12px;
}

.lb-next {
    right: 12px;
}

.lb-nav:hover.lb-prev {
    transform: translateY(-50%) translateX(-2px);
}

.lb-nav:hover.lb-next {
    transform: translateY(-50%) translateX(2px);
}

/* Footer — caption + thumbs */
.lb-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lb-caption-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--brass);
    border-radius: 0 6px 6px 0;
}

.lb-caption {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: #fff;
    margin: 0;
    text-align: left;
    flex: 1;
    min-height: 0;
}

.lb-counter-inline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    padding-top: 3px;
    letter-spacing: 0.02em;
}

/* Hide the whole caption row when there's nothing to say */
.lb-caption-row[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .lb-caption-row {
        padding: 12px 12px;
        gap: 12px;
    }

    .lb-caption {
        font-size: 13.5px;
    }
}

/* Thumbnails strip */
.lb-thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-thumb {
    width: 64px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 3px;
    transition: border-color .2s ease, transform .2s ease;
    opacity: 0.55;
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-thumb:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.5);
}

.lb-thumb.active {
    opacity: 1;
    border-color: var(--brass);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width:640px) {
    .lightbox {
        padding: 12px;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
    }

    .lb-stage {
        height: min(50vh, 380px);
    }

    .lb-title {
        font-size: 18px;
    }

    .lb-nav {
        width: 38px;
        height: 38px;
    }

    .lb-thumb {
        width: 52px;
        height: 36px;
    }
}

/* ============ LIGHTBOX TABS ============ */
/* The `hidden` attribute must win over `display: flex` on .lb-tabs */
.lb-tabs[hidden],
.lb-nav[hidden] {
    display: none !important;
}

.lb-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0;
    margin-bottom: -1px;
    /* sit the active underline on the border */
}

.lb-tab {
    position: relative;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    padding: 10px 14px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s ease;
}

.lb-tab:hover {
    color: #fff;
}

.lb-tab[aria-selected="true"] {
    color: #fff;
}

.lb-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    background: var(--brass);
    border-radius: 2px 2px 0 0;
}

.lb-tab .lb-tab-count {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 2px 7px;
    line-height: 1;
}

.lb-tab[aria-selected="true"] .lb-tab-count {
    color: var(--brass);
    background: var(--brass-soft);
}

.lb-tab:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: -2px;
    border-radius: 4px;
}

/* Grid rows: header / tabs / stage / footer */
.lb-shell {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    max-height: 90vh;
}

/* Hide prev/next when there's only one item in the active tab */
.lb-nav[hidden] {
    display: none;
}

/* Video element inside the stage */
.lb-media-holder video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 3px;
    background: #000;
}

.lb-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.lb-thumb-video svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

/* ============ OFFER MODAL ============ */
.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.offer-modal.open {
    opacity: 1;
    visibility: visible;
}

.offer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 10, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.offer-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 30px 28px;
    box-shadow: 0 24px 60px rgba(36, 29, 18, 0.25);
    transform: translateY(12px) scale(0.98);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.offer-modal.open .offer-modal-panel {
    transform: translateY(0) scale(1);
}

.offer-modal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%, var(--brass) 20%,
            var(--brass) 80%, transparent 100%);
    border-radius: 0 0 2px 2px;
}

.offer-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, color .2s ease;
}

.offer-modal-close:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.offer-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.offer-modal-tag {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    background: var(--brass-soft);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}

.offer-modal-price {
    font-size: 13px;
    color: var(--ink-muted);
    letter-spacing: -0.01em;
}

.offer-modal-panel h3 {
    font-size: 24px;
    letter-spacing: -0.015em;
    margin: 0 0 6px;
    line-height: 1.15;
}

.offer-modal-lede {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 22px;
    line-height: 1.55;
}

.offer-modal-panel form {
    gap: 12px;
}

.offer-modal-panel input,
.offer-modal-panel textarea {
    background: var(--surface-2);
    border-radius: 8px;
}

.offer-modal-panel textarea {
    min-height: 90px;
}

@media (max-width:520px) {
    .offer-modal {
        padding: 12px;
    }

    .offer-modal-panel {
        padding: 26px 20px 22px;
        border-radius: 14px;
    }

    .offer-modal-panel h3 {
        font-size: 20px;
    }
}

body.modal-open {
    overflow: hidden;
}

/* ============ FORM ERROR / LOADING STATES ============ */
.form-error {
    font-size: 12.5px;
    font-family: var(--font-mono);
    color: #B3432B;
    margin: 2px 0 0;
    line-height: 1.5;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ SUCCESS MODAL ============ */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.success-modal.open {
    opacity: 1;
    visibility: visible;
}

.success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 10, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.success-modal-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 30px 30px;
    box-shadow: 0 24px 60px rgba(36, 29, 18, 0.25);
    transform: translateY(12px) scale(0.98);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.success-modal.open .success-modal-panel {
    transform: translateY(0) scale(1);
}

.success-modal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%, var(--success) 20%,
            var(--success) 80%, transparent 100%);
    border-radius: 0 0 2px 2px;
}

.success-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, color .2s ease;
}

.success-modal-close:hover {
    border-color: var(--success);
    color: var(--success);
}

.success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 24px;
    height: 24px;
}

.success-modal-panel h3 {
    font-size: 22px;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    line-height: 1.15;
}

.success-modal-panel p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 24px;
    line-height: 1.55;
}

.success-modal-panel .btn {
    width: 100%;
}

@media (max-width:520px) {
    .success-modal {
        padding: 12px;
    }

    .success-modal-panel {
        padding: 30px 22px 24px;
        border-radius: 14px;
    }
}

.hero-aside {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--ink-muted);
}

.hero-aside a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.offer.is-secondary {
    display: none;
}

.seq-note {
    display: none;
}

#about {
    padding: 72px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: 48px;
    align-items: start;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.about-copy h2 {
    margin: 0 0 20px;
    max-width: 22ch;
}

.about-copy p {
    max-width: 62ch;
    line-height: 1.65;
    margin: 0 0 14px;
}

.about-copy .stack-row {
    margin-top: 20px;
}

@media (max-width:760px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-photo {
        max-width: 240px;
    }
}

@media (max-width:640px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    nav .wrap {
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px;
    }

    .navlinks {
        display: none;
    }

    .brand {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        letter-spacing: 0.01em;
    }

    .nav-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .lang-switch {
        border-radius: 5px;
        flex-shrink: 0;
    }

    .lang-btn {
        font-size: 11px;
        padding: 5px 8px;
        letter-spacing: 0.03em;
    }

    .nav-cta {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Extra-tight phones */
@media (max-width:380px) {
    .brand {
        font-size: 11px;
    }

    .nav-cta {
        font-size: 11px;
        padding: 6px 8px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
    }

    .nav-right {
        gap: 6px;
    }
}