/* =============================
   Pointer Site – Global Styles
   (restores latest look & feel)
   ============================= */

:root {
    --bg: #050405;
    --background_primary: #050405;
    /* alias so hero/base blacks stay identical */
    --bg-2: #0A090A;
    --sand: #E7DAC6;
    --sand-bright: #F1E6D6;
    --sand-dim: rgba(231, 218, 198, .78);
    --line: rgba(225, 221, 207, .14);
    --line-strong: rgba(225, 221, 207, .22);
    --muted: rgba(225, 221, 207, .56);
    --accent: #E1DDCF;
    --shadow: rgba(0, 0, 0, .35);
}

body.is-ecommerce {
    --accent: #00FFC3;
    --shadow_glow: rgba(0, 255, 195, .22);
}

body.is-telematics {
    --accent: #00A8FF;
    --shadow_glow: rgba(0, 168, 255, .22);
}

body.is-creative {
    --accent: #C3A8FF;
    --shadow_glow: rgba(195, 168, 255, .22);
}

body.is-specialty {
    --accent: #FFC780;
    --shadow_glow: rgba(255, 199, 128, .22);
}

body.is-privacy {
    --accent: rgba(225, 221, 207, .35);
    --shadow_glow: rgba(225, 221, 207, .12);
}

/* Muted, minimal motion */

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    /* avoid reveal above header on scroll */
}

body {
    margin: 0;
    font-family: 'Nunito', 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: var(--sand);
    background: var(--background_primary, var(--bg));
    /* Let the hero sit under the transparent header at page-top */
    padding-top: 0;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto
}

/* -----------------------------
   Nav
   ----------------------------- */
/* --- Nav: Final UI --- */
/* Nav: edge-to-edge, no background gaps or extra padding */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    /* Keep header flush to top on notched devices */
    padding-top: calc(14px + env(safe-area-inset-top));
    border-bottom: none;
    box-shadow: none;
    transition: background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
    width: 100vw;
    background-clip: padding-box;
}

/* Safe-area cap: prevents hero from peeking above header (iOS notch, bounce, etc.) */
/* Safe-area cap: prevents hero from peeking above header (iOS notch, bounce, etc.) */
.nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: transparent;
    z-index: 999;
}

/* becomes opaque after 25px scroll (toggle .nav--solid via JS) */
/* Default nav: transparent background unless .nav--solid is present */

.nav:not(.nav--solid) {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* The thin safe-area strip stays transparent at top,
   becomes opaque only when .nav--solid is on */
.nav::before {
    background: transparent;
}

.nav--solid {
    background: rgba(5, 4, 5, 0.88);
    backdrop-filter: saturate(140%) blur(6px);
}

.nav--solid::before {
    background: rgba(0, 0, 0, 0.92);
}

.nav__logo,
.nav .brand img {
    height: 54px;
    width: auto;
}

.brand img {
    display: block;
    height: 36px;
    width: auto;
}

/* --- Nav: Container and Links --- */
.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 14px 24px;
    width: 100%;
}

.nav__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
}

.nav__links a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    line-height: 1;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: var(--sand);
    background: transparent;
    border: none;
    border-radius: 18px;
    opacity: 0.9;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

a,
.nav__links a:hover,
.nav__links a.is-active {
    outline-offset: 2px;
}

/* Mobile nav default hidden on desktop */
/* --- Mobile top nav (logo + short links) --- */
.nav__mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    width: 100%;
}

.nav__mobile .brand img {
    display: block;
    height: 28px;
    width: auto;
}

.nav__mobile-links {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__mobile-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    text-decoration: none;
    color: var(--sand);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    opacity: .92;
    background: transparent;
    border-radius: 18px;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav__mobile-links a:hover,
.nav__mobile-links a:active,
.nav__mobile-links a.is-active {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.nav__mobile-links a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (max-width: 760px) {
    .nav__container {
        display: none;
    }

    .nav__mobile {
        display: flex;
    }
}

/* (Old mobile nav media queries removed in favor of unified block above) */

/* -----------------------------
   Hero
   ----------------------------- */
/* === Hero overlay controls === */
:root {
    /* Lower values = darker overall */
    --hero-img-opacity: 0.30;
    /* base image wash for bold */
    --hero-radial-top: 0.24;
    /* top vignette (bolder) */
    --hero-radial-bot: 0.78;
    /* bottom vignette (bolder) */
}

/* Background image sits behind content */
.hero {
    position: relative;
    isolation: isolate;
    /* keep overlays below content */
    min-height: 74vh;
    display: grid;
    align-items: center;
    margin-top: 0;
}

.hero {
    -webkit-transform: translateZ(0);
}

/* Board image layer (dim it uniformly) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./assets/board-hero.svg") center/cover no-repeat;
    background-position: center;
    background-size: cover;
    opacity: var(--hero-img-opacity);
    z-index: 0;
    /* iOS Safari: avoid negative z-index inside isolated context */
    pointer-events: none;
}

/* Soft vignette: darker toward the top and bottom for legibility */


.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 140% at 70% 0%,
            rgba(0, 0, 0, .24), rgba(0, 0, 0, .78));
    z-index: 1;
    pointer-events: none;
}

/* === Hero wash toggles ===
   Default = bold (variables above).
   Use .hero--balanced on the hero container for a lighter wash.
   Use .hero--former for the lightest/legacy wash. */

.hero.hero--balanced::before {
    opacity: 0.22;
}

.hero.hero--balanced::after {
    background: radial-gradient(120% 140% at 70% 0%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .65));
}

.hero.hero--former::before {
    opacity: 0.18;
}

.hero.hero--former::after {
    background: radial-gradient(120% 140% at 70% 0%, rgba(0, 0, 0, .14), rgba(0, 0, 0, .58));
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 12px;
    text-align: left;
}

.hero__actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.hero h1 {
    margin: 0 0 10px;
    color: var(--sand-bright);
    font-weight: 700;
    font-size: clamp(36px, 6.5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 18ch;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.hero .hero__subtitle,
.hero .sub {
    opacity: .9;
    font-size: clamp(14px, 1.4vw, 18px);
    margin-top: 6px;
}

.hero .btn {
    display: inline-block;
    width: auto;
    padding: 10px 24px;
    margin: 28px 0 0;
    max-width: none;
}

.hero .proof {
    justify-content: center;
    text-align: center;
}

.proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 18px;
    opacity: .9;
    text-align: center;
    flex-wrap: wrap;
}

.proof span {
    opacity: .88;
}

.proof span+span::before {
    content: "•";
    display: inline-block;
    margin: 0 12px;
    opacity: .6;
}

/* Buttons */
.btn {
    appearance: none;
    cursor: pointer;
    color: var(--sand);
    background: rgba(255, 255, 255, .06);
    border: 1px solid transparent;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .08s ease, background .2s ease;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.btn:hover {
    background: rgba(255, 255, 255, .10);
}

.btn:active {
    transform: translateY(1px)
}

/* Primary button uses accent for border + hover glow */
.btn--primary {
    background: rgba(255, 255, 255, .06);
    color: var(--sand-bright);
    border: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn--primary:hover {
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 0 24px var(--shadow_glow);
}

/* Secondary hover glow also uses per-vertical glow */
.btn--secondary:hover {
    box-shadow: 0 0 22px var(--shadow_glow);
}

/* Accent-driven interactive states */
.nav__links a:hover,
.nav__links a.is-active {
    background: rgba(255, 255, 255, .08);
    opacity: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
    text-decoration: none;
}

.btn.btn--chip {
    border: 1px solid transparent;
}

.btn.btn--chip:hover,
.btn.btn--chip:focus-visible {
    box-shadow: 0 0 20px var(--shadow_glow);
}

/* Header chip CTA: understated only in the nav */
.nav .btn--chip,
.nav__mobile .btn--chip {
    box-shadow: none !important;
}

.nav .btn--chip:hover,
.nav__mobile .btn--chip:hover {
    box-shadow: none !important;
    /* kill glow */
    text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
    /* tiny lift only */
}

/* Keep a11y outline for keyboard focus across site */
a,
.nav__links a:hover,
.nav__links a.is-active {
    outline-offset: 2px;
}

/* Keyboard focus ring only */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* -----------------------------
   Sections
   ----------------------------- */
.section {
    padding: 72px 0;
}

.section+.section {
    margin-top: 0;
    border-top: none;
}

.section h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.8vw, 2.5rem);
    letter-spacing: -0.01em;
}

.section p.lead {
    color: var(--muted);
    margin: 0 0 18px;
}

/* How it works / Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

@media (min-width: 760px) {
    .cards {
        display: flex;
        gap: 24px;
    }
}

/* Mobile: cards become a horizontal scroller with snap */
@media (max-width: 759px) {
    .cards {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 4px 8px;
    }

    .cards::-webkit-scrollbar {
        height: 6px;
    }

    .cards::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .12);
        border-radius: 4px;
    }

    .card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

.card {
    background: rgba(255, 255, 255, .03);
    border: none;
    border-radius: 16px;
    padding: 18px 20px 16px;
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 200px;
    text-align: left;
    box-shadow: none;
}

@media (min-width: 760px) {
    .card {
        flex: 1 1 0;
        min-height: 200px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-content: start;
        text-align: left;
        padding: 16px;
    }
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card p {
    margin: 0;
    opacity: .9;
}

.card .btn {
    margin-top: auto;
}

.card .actions {
    margin-top: 12px;
}

.card .actions--bottom {
    margin-top: auto;
}

.card .btn.btn--secondary {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Trusted-by strip */
.strip {
    margin-top: 36px;
}

.strip__label {
    margin: 0 0 14px;
    opacity: .7;
}

.strip__logos {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
    position: relative;
}

/* Make logos row horizontally scrollable on narrow screens */
.strip__logos img {
    flex: 0 0 auto;
    /* prevent flex shrink so items overflow horizontally */
}

.strip__logos::-webkit-scrollbar {
    height: 6px;
}

.strip__logos::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

@media (max-width: 980px) {
    .strip__logos {
        justify-content: flex-start;
        /* align to left so scroll starts naturally */
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .strip__logos img {
        scroll-snap-align: center;
    }
}

.strip__logos img {
    height: 36px;
    filter: grayscale(1) brightness(.95) contrast(1.1);
    opacity: .9;
}

.strip__logos img[alt="captur"],
.strip__logos img[alt="DevDocs"] {
    transform: scale(0.9);
}

/* --- Trusted by: progressive emphasis + subtle glow-on-load --- */
.strip__logos {
    --logo-height: 36px;
}

/* --- Left-to-right shimmer sweep on first reveal --- */

.strip__logos img {
    height: var(--logo-height);
    filter: grayscale(1) brightness(.95) contrast(1.1);
    opacity: .72;
    /* was .82 — makes the glow/fade more noticeable */
    will-change: filter, opacity, transform;
    position: relative;
    z-index: 1;
    /* keep logos beneath the sweep (::before has z-index:2) */
}

/* Sequential fade-in as the shimmer passes */
.strip__logos.logos-entered img {
    opacity: 0;
    transform: translateY(3px);
    animation: logoGlow 2800ms ease-out both, logoFadeIn 3s ease-out forwards;
}

.strip__logos.logos-entered img:nth-child(1) {
    animation-delay: 0.2s, 0.2s;
}

.strip__logos.logos-entered img:nth-child(2) {
    animation-delay: 0.4s, 0.4s;
}

.strip__logos.logos-entered img:nth-child(3) {
    animation-delay: 0.6s, 0.6s;
}

.strip__logos.logos-entered img:nth-child(4) {
    animation-delay: 0.8s, 0.8s;
}

.strip__logos.logos-entered img:nth-child(5) {
    animation-delay: 1.0s, 1.0s;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(3px);
    }

    40% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
    }
}

/* Left-to-right progressive emphasis (final resting opacities) */
.strip__logos img:nth-child(1) {
    opacity: .76;
    animation-delay: 0ms;
}

.strip__logos img:nth-child(2) {
    opacity: .82;
    animation-delay: 90ms;
}

.strip__logos img:nth-child(3) {
    opacity: .88;
    animation-delay: 180ms;
}

.strip__logos img:nth-child(4) {
    opacity: .94;
    animation-delay: 270ms;
}

.strip__logos img:nth-child(5) {
    opacity: 1;
    animation-delay: 360ms;
}

/* Gentle highlight "glow" that settles back to the resting state */
@keyframes logoGlow {
    0% {
        filter: grayscale(1) brightness(.86) contrast(1.0) drop-shadow(0 0 0 rgba(225, 221, 207, 0));
        transform: translateY(1px) scale(.985);
    }

    40% {
        filter: grayscale(1) brightness(1.02) contrast(1.15) drop-shadow(0 0 10px rgba(225, 221, 207, .10));
        transform: translateY(0) scale(1.005);
    }

    100% {
        filter: grayscale(1) brightness(.95) contrast(1.1) drop-shadow(0 0 0 rgba(225, 221, 207, 0));
        transform: none;
    }
}

/* Per-logo visual balance (by alt text) */
.strip__logos img[alt="captur"] {
    transform: scale(0.90);
}

.strip__logos img[alt="DevDocs"] {
    transform: scale(0.92);
}

.strip__logos img[alt="Catahoula"] {
    transform: scale(0.95);
}

.strip__logos img[alt="Cowboys &amp; Caftans"] {
    transform: scale(1.02);
}

.strip__logos img[alt="Jambo Java"] {
    transform: scale(0.98);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .strip__logos img {
        animation: none !important;
        transform: none !important;
        filter: grayscale(1) brightness(.95) contrast(1.1) !important;
    }
}

/* Larger screens: slightly taller logos */
@media (min-width: 1200px) {
    .strip__logos {
        --logo-height: 52px;
    }
}

/* Final CTA: text left, button centered */
#contact .actions.actions--single {
    display: grid;
    place-items: center;
    margin-top: 18px;
}

/* Footer */
.footer {
    background: transparent;
    padding: 24px 0;
    color: var(--muted);
    border: none;
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1120px, 92%);
    margin: 0 auto;
    color: var(--muted);
}

/* --- Footer tagline: ensure no legacy pseudo-elements inject extra phrases --- */
.footer__grid::after,
.footer__grid::before,
.footer__tagline::before,
.footer__tagline::after {
    content: none !important;
}

.footer small {
    opacity: .85;
    text-align: left;
}

.footer__grid .footer__tagline {
    text-align: right;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 92%);
    margin: 8vh auto 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 40px var(--shadow);
}


/* Make modal respect the fixed header height via --nav-h (set in JS) */
@media (max-width: 880px) {
    .modal {
        align-items: flex-start;
    }

    .modal__overlay {
        top: var(--nav-h, 0);
        height: calc(100% - var(--nav-h, 0));
    }

    .modal__content {
        margin-top: calc(var(--nav-h, 0) + 12px);
        max-height: calc(100vh - var(--nav-h, 0) - 24px);
    }
}

.modal__thankyou {
    text-align: center;
    padding: 40px 20px;
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: var(--sand);
    font-size: 28px;
    cursor: pointer;
}

.modal__sub {
    color: var(--muted);
    margin: -6px 0 14px;
}

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

.form__row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 220px;
}

.form input,
.form select,
.form textarea {
    background: rgba(255, 255, 255, .03);
    color: var(--sand);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

.form textarea.mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.form__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Inline snackbar (fallback) */
#snackbar {
    display: none;
}

#snackbar.is-shown {
    display: block;
}

/* Utility */
.center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 760px) {
    .nav {
        padding-top: calc(10px + env(safe-area-inset-top));
    }

    .nav .brand img {
        height: 42px;
    }

    .nav .brand img {
        height: 36px;
    }

    .hero {
        min-height: 62vh;
    }

    .section {
        padding: 56px 0;
    }

    .footer__grid {
        flex-direction: column;
        align-items: center;
    }

    .footer__grid .footer__tagline {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav__links {
        gap: 10px;
    }
}

/* ============================
   Modal – compatibility layer
   (matches index.html markup)
   ============================ */

.modal.is-hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    /* above nav/hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

/* Dialog container for .modal__content (index.html) */
.modal__content {
    position: relative;
    width: min(720px, 92%);
    max-height: 84vh;
    overflow: auto;
    margin: 0 auto;
    background: var(--bg-2, #121212);
    border: 1px solid var(--line, rgba(225, 221, 207, .14));
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 40px var(--shadow, rgba(0, 0, 0, .35));
    color: var(--sand, #E7DAC6);
}

/* Close button (×) */
.modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: var(--sand, #E7DAC6);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Title and intro */
.modal__title {
    margin: 4px 0 6px;
}

.modal__intro {
    margin: 0 0 14px;
    color: var(--muted, rgba(225, 221, 207, .56));
}

/* Form layout */
.modal__form .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 720px) {
    .modal__form .grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal__form .grid label:nth-child(5),
    .modal__form .grid label:nth-child(6) {
        grid-column: span 2;
    }
}

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

.modal__form input,
.modal__form select,
.modal__form textarea {
    background: rgba(255, 255, 255, .03);
    color: var(--sand, #E7DAC6);
    border: 1px solid var(--line, rgba(225, 221, 207, .14));
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
}

.modal__form textarea.mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Action row */
.modal__actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Thank-you state */
.modal__thankyou {
    text-align: center;
    padding: 36px 18px;
}

.modal__thankyou.is-hidden {
    display: none;
}

/* --- Modal centering overrides (ensure flex-centering takes precedence) --- */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    top: auto;
    transform: none;
    margin: 0 auto;
}

.logo-strip img {
    height: 28px;
    width: auto;
    object-fit: contain;
}


/* Card hover micro-lift */
.card:hover {
    background: rgba(255, 255, 255, .05);
    transform: translateY(-1px);
    transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}

.card .btn.btn--chip:hover {
    box-shadow: 0 0 20px var(--shadow_glow, rgba(0, 255, 195, .10));
}

/* Section reveal (fade + 20px drift) */
/* Initial state only once JS has armed reveal */
html.js.reveal-ready .section.reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity .5s var(--ease-out, cubic-bezier(.22, .1, .36, 1)),
        transform .6s var(--ease-out, cubic-bezier(.22, .1, .36, 1));
}

/* Visible state toggled by JS */
.section.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fail-open before JS attaches */
html:not(.js) .section.reveal {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .section.reveal,
    .section.reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Vertical hero motion modifiers */
.hero.hero--pulse::after {
    animation: heroPulse 6s ease-in-out infinite;
}

.hero.hero--sweep::after {
    animation: heroSweep 8s linear infinite;
    opacity: .12;
    /* normalize brightness to match hero--pulse (E‑commerce) */
}

.hero.hero--wave::after {
    animation: heroWave 7s var(--ease-out) infinite alternate;
}

.hero.hero--flicker::after {
    animation: heroFlicker 5.5s steps(60, end) infinite;
}

/* Home (no vertical class) hero brightness normalization */
body.is-home .hero::after {
    opacity: .12;
}

body:not([class*="is-"]) .hero::after {
    opacity: .12;
}

/* covers Home when <body> has no page class */

@keyframes heroPulse {

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

    50% {
        opacity: .18;
        transform: scale(1.005);
    }
}

@keyframes heroSweep {
    from {
        background-position: -20% 0;
    }

    to {
        background-position: 120% 0;
    }
}

@keyframes heroWave {
    from {
        transform: translateY(-4%);
        opacity: .12;
    }

    to {
        transform: translateY(4%);
        opacity: .18;
    }
}

@keyframes heroFlicker {
    0% {
        opacity: .10;
    }

    12% {
        opacity: .16;
    }

    13% {
        opacity: .12;
    }

    50% {
        opacity: .18;
    }

    52% {
        opacity: .11;
    }

    100% {
        opacity: .16;
    }
}

/* Privacy page = no motion beyond base */
body.is-privacy .hero-scanlines::before,
body.is-privacy .hero-particles::before {
    animation: none !important;
    opacity: 0 !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .hero.hero--pulse::after,
    .hero.hero--sweep::after,
    .hero.hero--wave::after,
    .hero.hero--flicker::after {
        animation: none !important;
    }
}

/* === Global polish (v7) ===
   - 4/8pt spacing system
   - Focus rings
   - Animations (hero scanlines, how-it-works line)
   - prefers-reduced-motion guards
*/
:root {
    --focus-ring: 0 0 0 2px var(--bg), 0 0 0 6px var(--accent);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    transition: box-shadow 220ms var(--ease-out);
}

/* Uniform button hover/active timing */
.btn,
button,
.cta {
    transition: background-color 220ms var(--ease-out),
        color 220ms var(--ease-out),
        transform 220ms var(--ease-out);
}

.btn:hover,
button:hover,
.cta:hover {
    transform: translateY(-1px);
}

.btn:active,
button:active,
.cta:active {
    transform: translateY(0);
}

/* Hero animated signal field */
.hero {
    position: relative;
    overflow: hidden;
}


/* Hero glimmer layering on dark background */
.hero-scanlines,
.hero-particles {
    z-index: 0;
    opacity: .18;
    /* increase to .22 if too subtle */
    mix-blend-mode: soft-light;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero-scanlines::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg,
            rgba(255, 255, 255, 0.05) 0px,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 2px,
            transparent 4px);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(-20%);
    }

    100% {
        transform: translateY(20%);
    }
}

.hero-particles::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%,
            rgba(255, 255, 255, 0.08) 0 2px,
            transparent 3px),
        radial-gradient(circle at 70% 60%,
            rgba(255, 255, 255, 0.06) 0 2px,
            transparent 3px),
        radial-gradient(circle at 30% 80%,
            rgba(255, 255, 255, 0.05) 0 2px,
            transparent 3px);
    animation: drift 14s var(--ease-out) infinite alternate;
}

@keyframes drift {
    from {
        transform: translateY(-6%);
    }

    to {
        transform: translateY(6%);
    }
}

/* How-it-works connector */
.howline {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 255, 255, 0.2) 100%);
    margin: var(--space-4) 0;
    overflow: hidden;
}

.howline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: sweep 2.8s var(--ease-out) infinite;
}

@keyframes sweep {
    0% {
        left: -20%;
    }

    100% {
        left: 100%;
    }
}

/* Contact modal floating labels */
.field {
    position: relative;
    margin-bottom: var(--space-4);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 12px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--sand);
}

.field label {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 14px;
    color: var(--muted);
    transition: transform 220ms var(--ease-out),
        font-size 220ms var(--ease-out),
        top 220ms var(--ease-out),
        opacity 220ms var(--ease-out);
    background: transparent;
    padding: 0 4px;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field select:focus+label {
    top: -8px;
    font-size: 12px;
    opacity: 0.9;
}

.helper {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.error-text {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
    display: none;
}

.privacy-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: var(--space-2);
}

.success {
    text-align: center;
    padding: var(--space-5) var(--space-4);
}

.logo-strip img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

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

    .hero-scanlines::before,
    .hero-particles::before,
    .howline::after {
        animation: none !important;
    }
}

/* === Minimalist scroll areas: hide scrollbar, keep scroll === */
.cards,
.strip__logos {
    -ms-overflow-style: none;
    /* IE/Edge legacy */
    scrollbar-width: none;
    /* Firefox */
}

.cards::-webkit-scrollbar,
.strip__logos::-webkit-scrollbar {
    display: none;
    /* WebKit (Chrome/Safari) */
}

/* === Header compatibility: ensure Specialty Retail matches global nav === */
/* If a page renders .nav__links directly under .nav (no .nav__container),
   push links to the right and keep pill styling. */
header.nav>.nav__links,
.nav>.nav__links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    /* right-justify */
}

/* Ensure brand block and horizontal logo size are consistent even if markup varies */
header.nav .brand,
.nav .brand {
    display: inline-flex;
    align-items: center;
}

header.nav .brand__img,
.nav .brand__img,
header.nav .brand img,
.nav .brand img {
    display: block;
    height: 36px;
    width: auto;
}

/* === Home Closer: final statement spacing refinement === */
.section--closer {
    padding-top: 48px;
    padding-bottom: 72px;
}

.section--closer .container {
    /* Match standard section width & left gutter */
    width: min(1120px, 92%);
    margin: 0 auto;
    text-align: left;
}

.section--closer .closer__lead {
    margin: 0 0 16px;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.section--closer .closer__title {
    margin-top: 24px;
    font-weight: 700;
    /* match .section h2 size */
    line-height: 1.4;
    color: var(--sand-bright);
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 640px) {
    .section--closer {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .section--closer .closer__lead {
        margin-bottom: 16px;
    }

    .section--closer .closer__title {
        margin-top: 20px;
    }
}

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

.footer__tagline a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Respect reduced motion (Privacy page only for site animation baseline) */
@media (prefers-reduced-motion: reduce) {

    body.is-privacy .reveal,
    body.is-privacy .reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}