/* jb-home.css — home page styles for JB theme-lab shell. Token-bound only. */

.th-skip-link{
    position:absolute;top:-48px;left:16px;z-index:100;
    padding:10px 18px;border-radius:0 0 10px 10px;
    background:var(--blue);color:var(--bg);font-family:var(--font-body);
    font-weight:700;font-size:.85rem;text-decoration:none;
    transition:top .2s var(--ease);
}
.th-skip-link:focus{top:0}

.nav-wordmark{font-family:var(--font-display);font-weight:700;
    font-size:clamp(1.1rem,2vw,1.45rem);
    letter-spacing:-.6px;color:var(--white);text-decoration:none;white-space:nowrap;line-height:1}
.nav-wordmark em{font-style:normal;color:var(--blue)}
.nav-link--active{opacity:1;color:var(--blue-light)}
.footer-brand.nav-wordmark{font-size:1.05rem;letter-spacing:-.4px}
/* Desktop: short chrome around the logo (keep logo height; cut bar padding). */
nav#navbar{
    padding:6px clamp(20px,5vw,56px)!important;
    gap:14px;align-items:center;min-height:0
}

/* Brand logo — file already has transparency; do NOT put it in a black chip
   (that creates a hard rectangle on light theme). Soft drop-shadow helps the
   silver ring read on light surfaces. */
.brand-logo-chip{
    display:inline-flex;align-items:center;justify-content:center;
    padding:0;border:0;background:transparent;text-decoration:none;line-height:0
}
.brand-logo-chip img,
.nav-logo img,
.footer-brand img,
.footer-logo-img,
.home-hero-brand img,
.about-logo img{
    filter:none!important;
    display:block
}
nav#navbar .nav-logo.brand-logo-chip{padding:0;margin:0;line-height:0}
nav#navbar .nav-logo img{
    height:clamp(64px,7vw,88px);width:auto;max-width:min(260px,48vw);object-fit:contain;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,.18))!important
}
[data-theme="dark"] nav#navbar .nav-logo img{
    filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))!important
}

.theme-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;
    min-height:44px;min-width:44px;padding:8px 14px;border-radius:999px;
    border:1px solid var(--gray-line);background:var(--bg-2);color:var(--white);
    font-family:var(--font-data);font-size:.66rem;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;
    cursor:pointer
}
.theme-toggle:hover{border-color:var(--blue-a20);color:var(--blue)}
.theme-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.theme-toggle .theme-toggle-moon{display:none}
.theme-toggle.is-dark .theme-toggle-sun{display:none}
.theme-toggle.is-dark .theme-toggle-moon{display:inline}

/* Mobile drawer: solid panel + backdrop that stops at the drawer edge.
   Theme-lab's ::before is width:100vw with z-index:-1, which paints OVER the
   panel background (CSS paint order) so links look greyed while opaque buttons
   still punch through. */
@media (max-width:860px){
    nav#navbar,
    nav#navbar.scrolled{
        background:var(--bg-card);
        backdrop-filter:none;-webkit-backdrop-filter:none
    }
    .nav-menu{
        background:var(--bg-card)!important;
        backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
        box-shadow:-18px 0 48px rgba(0,0,0,.18)
    }
    .nav-link{opacity:1;color:var(--white)}
    .nav-link:hover,
    .nav-link--active{color:var(--blue)}
    .theme-toggle,
    .nav-cta,
    .nav-links{position:relative;z-index:1}
    .nav-toggle[aria-expanded="true"] ~ .nav-menu::before{
        /* Dim only the page to the LEFT of the drawer — never the panel itself */
        inset:auto;top:0;bottom:0;left:0;
        right:min(84vw,340px);width:auto;
        background:rgba(0,0,0,.45);z-index:-1;pointer-events:none
    }
    [data-theme="light"] .theme-toggle{
        background:var(--bg);
        border-color:color-mix(in srgb, var(--white) 18%, transparent);
        color:var(--white)
    }
    [data-theme="light"] .nav-cta{
        background:var(--blue);border-color:var(--blue);color:var(--bg-card);
        box-shadow:none
    }
    [data-theme="light"] .nav-cta:hover{
        background:var(--blue-light);border-color:var(--blue-light);color:var(--bg-card)
    }
}

.section-sub{max-width:56ch;margin:-1.2rem 0 2.2rem;color:var(--gray);
    font-size:clamp(.95rem,1.2vw,1.08rem);font-weight:300;line-height:1.7}
.inline-link{color:var(--blue);font-weight:600;text-decoration:none}
.inline-link:hover{color:var(--blue-light)}

.home-hero{position:relative;overflow:hidden;background:var(--bg);
    min-height:min(100vh,1680px);display:flex;align-items:flex-start;
    border-bottom:1px solid var(--gray-line)}
.home-hero-photo{position:absolute;inset:0;z-index:0}
.home-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 40%;
    filter:brightness(.42) saturate(.85)}
.home-hero-photo::after{content:"";position:absolute;inset:0;
    background:linear-gradient(105deg,
        color-mix(in srgb, var(--bg) 90%, transparent) 0%,
        color-mix(in srgb, var(--bg) 58%, transparent) 48%,
        color-mix(in srgb, var(--bg) 28%, transparent) 100%)}
.home-hero .orbs{z-index:0;opacity:.45}
/* Sticky nav is in-flow — only a short breath of space, not a second nav clearance. */
.home-hero-inner{position:relative;z-index:1;padding-top:clamp(12px,2.5vw,28px);padding-bottom:clamp(56px,8vw,100px);width:100%}
.home-hero-brand-block{
    display:flex;flex-direction:column;align-items:center;text-align:center;
    margin:0 auto clamp(1.2rem,3vw,2.2rem);max-width:100%
}
.home-hero-brand{
    display:flex;justify-content:center;margin:0 auto .9rem;max-width:100%
}
.home-hero-brand img{
    display:block;height:clamp(200px,36vw,420px);width:auto;max-width:min(720px,92vw);
    object-fit:contain;filter:drop-shadow(0 8px 28px rgba(0,0,0,.45))!important
}
.home-hero-byline{margin:0;text-align:center}
.home-hero-inner .th-mega{max-width:12ch;margin:0;text-shadow:0 2px 32px color-mix(in srgb, var(--bg) 70%, transparent)}
.home-hero-inner .lede{margin-top:1.6rem;max-width:54ch;color:var(--white);
    font-size:clamp(1rem,1.4vw,1.18rem);font-weight:300;line-height:1.75;opacity:.92}
.home-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:2.2rem}
.home-chips{display:flex;flex-wrap:wrap;gap:8px 10px;margin:2.2rem 0 0;padding:0;list-style:none}
.home-chips li{
    font-family:var(--font-data);font-size:.66rem;letter-spacing:1.4px;text-transform:uppercase;
    color:var(--gray);padding:8px 14px;border:1px solid var(--gray-line);border-radius:999px;
    background:color-mix(in srgb, var(--bg-2) 72%, transparent);
}

.stack-card--link{text-decoration:none;color:inherit;cursor:pointer;
    transition:border-color .3s var(--ease)}
.stack-card--link:hover{border-color:var(--blue-a20)}
.stack-card--link h3{color:var(--white);margin:0}
.stack-card--link .btn-ghost{pointer-events:none}
.stack-card--link:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:24px}

.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:1020px){.steps-grid{grid-template-columns:1fr}}

.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.project-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;
    border-radius:16px;overflow:hidden;background:var(--bg-2);border:1px solid var(--gray-line);
    transition:transform .45s var(--ease-spring),border-color .3s var(--ease)}
@media(hover:hover){.project-card-link:hover{transform:translateY(-3px);border-color:var(--blue-a20)}}
.project-card-link:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.project-card-media{
    position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg-card);margin:0;
    min-height:0;padding:0;border:0;display:block
}
.project-card-media img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
    transition:transform .6s var(--ease-out)
}
@media(hover:hover){.project-card-link:hover .project-card-media img{transform:scale(1.04)}}
.project-card-body{padding:18px 20px 22px}
.project-card-body h3{margin:0 0 .4rem;font-family:var(--font-display);font-size:1rem;color:var(--white)}
.project-card-body p{margin:0;font-size:.85rem;color:var(--gray)}
.project-badge{display:inline-block;margin-top:.6rem;font-family:var(--font-data);font-size:.62rem;
    letter-spacing:1.4px;text-transform:uppercase;color:var(--blue);
    padding:4px 10px;border:1px solid var(--blue-a20);border-radius:999px}
@media(max-width:1020px){.project-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.project-grid{grid-template-columns:1fr}}

.flyer-stack{display:flex;flex-direction:column;gap:clamp(40px,6vw,72px)}
.flyer-panel{display:flex;flex-direction:column;gap:1.25rem}
.flyer-meta{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem 1.5rem}
.flyer-meta-text{flex:1 1 16rem;min-width:0}
.flyer-panel h3{
    margin:0 0 .45rem;font-family:var(--font-display);font-size:clamp(1.45rem,2.6vw,2.05rem);
    letter-spacing:-.3px;line-height:1.15;color:var(--white)
}
.flyer-meta-text p{margin:0;max-width:46ch;font-size:clamp(.95rem,1.2vw,1.08rem);line-height:1.55;color:var(--gray)}
.flyer-meta .btn{flex:0 0 auto}
.flyer-embed--static,.mask-panel.flyer-embed{
    position:relative;width:100%;max-width:920px;margin-inline:auto;min-height:0;padding:0;gap:0;
    overflow:hidden;border-radius:16px;border:1px solid var(--gray-line);background:var(--bg-2)
}
.flyer-embed--static{margin:0}
.flyer-embed img{display:block;width:100%;height:auto;border-radius:16px}
.flyer-fallback{margin:0;padding:1.25rem;font-size:.88rem;color:var(--gray);text-align:center}
.flyer-fallback a{color:var(--blue);font-weight:600}
@media(max-width:700px){
    .flyer-meta{align-items:stretch}
    .flyer-meta .btn{width:100%}
}

.investor-teaser-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,3vw,24px)}
.investor-teaser{
    display:flex;flex-direction:column;gap:.85rem;padding:clamp(22px,3vw,32px);
    border-radius:16px;background:var(--bg-2);border:1px solid var(--gray-line)
}
.investor-teaser h3{margin:0;font-family:var(--font-display);font-size:clamp(1.25rem,2.2vw,1.65rem);color:var(--white)}
.investor-teaser p{margin:0;flex:1;font-size:.92rem;line-height:1.55;color:var(--gray)}
.investor-teaser .btn{align-self:flex-start}
@media(max-width:700px){.investor-teaser-grid{grid-template-columns:1fr}}

.pricing-strip{
    display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:.4rem
}
.pricing-tier{
    display:flex;flex-direction:column;gap:6px;padding:clamp(18px,3vw,26px);
    border-radius:16px;background:var(--bg-2);border:1px solid var(--gray-line)
}
.pricing-tier--featured{border-color:var(--blue-a20)}
.pricing-tier--deal{
    border-color:var(--blue);
    background:linear-gradient(180deg, color-mix(in srgb, var(--blue) 12%, var(--bg-2)), var(--bg-2))
}
.pricing-label{
    font-family:var(--font-data);font-size:.66rem;letter-spacing:1.4px;text-transform:uppercase;color:var(--gray)
}
.pricing-amount{
    font-family:var(--font-display);font-size:clamp(1.8rem,4vw,2.6rem);letter-spacing:-.6px;line-height:1;color:var(--white)
}
.pricing-amount--muted{color:var(--gray);text-decoration:line-through;text-decoration-thickness:2px}
.pricing-note{font-size:.82rem;color:var(--gray)}
@media(max-width:700px){.pricing-strip{grid-template-columns:1fr}}

.team-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.team-preview-card{padding:20px;border-radius:16px;background:var(--bg-2);border:1px solid var(--gray-line)}
.team-preview-card img{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:12px}
.team-preview-card h3{margin:0 0 4px;font-family:var(--font-display);font-size:.95rem;color:var(--white)}
.team-preview-card p{margin:0;font-size:.82rem;color:var(--gray)}
@media(max-width:860px){.team-preview-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.team-preview-grid{grid-template-columns:1fr}}

.vendor-marquee{overflow:hidden}
.vendor-marquee .mq-item{font-family:var(--font-display);font-size:1rem;color:var(--gray);opacity:.85}
/* Full-bleed rail — heading stays in .wrap; logos scroll past the viewport edges */
.vendor-marquee-bleed{
    width:100%;max-width:none;margin-top:1.6rem;
    overflow:hidden
}
/* Chips must stay light — --white-pure flips to #000 in light theme */
.mq-item--logo{display:inline-flex;align-items:center;justify-content:center;
    padding:14px 28px;border-radius:14px;
    background:#fff;border:1px solid var(--gray-line);opacity:1;
    min-height:72px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.mq-item--logo img{display:block;height:52px;width:auto;max-width:180px;object-fit:contain}

.specialty-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.specialty-card{display:flex;flex-direction:column;min-width:0;border-radius:16px;overflow:hidden;
    background:var(--bg-2);border:1px solid var(--gray-line)}
.specialty-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg-card);margin:0;
    min-height:0;padding:0;border:0;display:block}
.specialty-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.specialty-media--logo{aspect-ratio:4/3;background:#fff}
.specialty-media--logo img{object-fit:contain;padding:clamp(18px,4vw,36px);background:#fff}
.specialty-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:.55rem}
.specialty-body .project-badge{margin-top:0;align-self:flex-start}
.specialty-body h3{margin:0;font-family:var(--font-display);font-size:1.05rem;color:var(--white)}
.specialty-body p{margin:0;font-size:.88rem;color:var(--gray);line-height:1.6}
@media(max-width:720px){.specialty-grid{grid-template-columns:1fr}}

.footer-note{margin:10px 0 0;font-family:var(--font-data);font-size:.64rem;
    letter-spacing:1.4px;text-transform:uppercase;color:var(--gray)}
.footer-brand.brand-logo-chip{padding:0;margin:0 0 16px;max-width:100%}
/* Beat theme-lab style-guide rule: .footer-brand img{height:24px} */
footer .footer-brand img.footer-logo-img,
footer a.footer-brand .footer-logo-img,
.footer-logo-img{
    display:block!important;
    height:clamp(110px,14vw,180px)!important;
    width:auto!important;
    max-width:min(420px,100%)!important;
    object-fit:contain!important;
    margin:0!important;
    opacity:1!important;
    filter:drop-shadow(0 1px 3px rgba(0,0,0,.18))!important
}
[data-theme="dark"] footer .footer-brand img.footer-logo-img,
[data-theme="dark"] .footer-logo-img,
[data-theme="dark"] .home-hero-brand img,
[data-theme="dark"] .about-logo img{
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.55))!important
}

/* Mobile — services stack cards shouldn’t be half-viewport empty;
   nav logo fills more of the bar (was capped at 56px on small phones). */
@media(max-width:860px){
    .th-stack .stack-card{
        min-height:0;padding:28px 22px;justify-content:flex-start;gap:.85rem
    }
    .th-stack .stack-card .th-title{font-size:clamp(1.6rem,8vw,2.4rem)}
    nav#navbar{padding:6px 16px!important}
    nav#navbar .nav-logo img{
        height:clamp(72px,18vw,88px);max-width:min(280px,72vw)
    }
    .home-hero-inner{padding-top:10px}
}

/* Mobile footer — center brand + columns + bar; logo fills width.
   Brand + Services full-width; Company | Get Started share a row. */
@media(max-width:860px){
    footer .footer-cols{
        grid-template-columns:1fr 1fr!important;
        text-align:center;justify-items:center;gap:36px 20px
    }
    footer .footer-brand-col{
        grid-column:1 / -1;width:100%;display:flex;flex-direction:column;
        align-items:center;text-align:center
    }
    footer .footer-col[aria-label="Services"]{
        grid-column:1 / -1
    }
    footer .footer-brand.brand-logo-chip{
        display:flex;justify-content:center;width:100%;margin:0 0 18px
    }
    footer .footer-brand img.footer-logo-img,
    footer a.footer-brand .footer-logo-img,
    .footer-logo-img{
        height:auto!important;
        width:min(92vw,420px)!important;
        max-width:100%!important;
        margin:0 auto!important
    }
    footer .footer-tagline{
        max-width:36ch;margin-left:auto;margin-right:auto;text-align:center
    }
    footer .footer-note{text-align:center}
    footer .footer-col{
        width:100%;display:flex;flex-direction:column;align-items:center;text-align:center
    }
    footer .footer-col ul{
        align-items:center
    }
    footer .footer-col a{text-align:center}
    footer .footer-bar{
        flex-direction:column;align-items:center;justify-content:center;
        text-align:center;gap:14px
    }
    footer .footer-meta{
        flex-direction:column;align-items:center;text-align:center;gap:6px
    }
    footer .footer-legal{
        justify-content:center;flex-wrap:wrap
    }
}

@media(max-width:560px){
    .home-hero-actions{flex-direction:column;align-items:stretch}
    .home-hero-actions .btn{width:100%}
    .home-hero{min-height:min(100vh,1200px)}
    .home-hero-inner{padding-top:8px;padding-bottom:48px}
    .home-hero-brand{margin-bottom:.5rem}
    .home-hero-brand-block{margin-bottom:1rem}
    .home-hero-brand img{height:clamp(150px,40vw,240px)}
    .home-hero-inner .th-mega{max-width:11ch;font-size:clamp(2.8rem,14vw,4.2rem)}
    nav#navbar{padding:4px 12px!important}
    nav#navbar .nav-logo img{height:80px;max-width:min(260px,74vw)}
    footer .footer-brand img.footer-logo-img,
    footer a.footer-brand .footer-logo-img,
    .footer-logo-img{
        width:min(94vw,400px)!important
    }
    .theme-toggle{width:100%;margin-top:8px}
}
