/* ==========================================================================
   BAB · 13-refinements.css
   R1.3 refinement layer (Signal on black)
   NOTE: file number = load order. Later files intentionally override earlier ones.
   ========================================================================== */

/*@layer b31*/
/* ==========================================================================
   BAB R1.3 — "Signal on black" refinement layer
   Additive only: sits after every earlier block and overrides by specificity.
   Tokens come from the three product colours already used on the cards.
   ========================================================================== */
:root{
  --bab-volt:#D4F205;      /* accent 1 */
  --bab-ember:#FF7A1A;     /* accent 2 */
  --bab-aqua:#18D7E8;      /* accent 3 */
  --bab-ink:#080909;
  --bab-bone:#F1F2EE;
  --bab-smoke:#B9C1C5;
  --bab-measure:1320px;    /* one shared content measure */
  --bab-ease:cubic-bezier(.2,.7,.2,1);
}

/* --- 1. One measure: hero, product grid, stage, CTA and footer share an edge --- */
#welcome .bab-discovery-wrap,
#welcome .bab-worlds > .wrap,
#welcome section.vzsec.c > .wrap,
body .bab-footer .footer-content{max-width:var(--bab-measure)!important}

/* --- 3. Headline hierarchy ---------------------------------------------------- */
#welcome #who-we-are .bab-discovery-intro h2{text-wrap:balance}
#welcome #who-we-are .bab-discovery-intro h2 em{
  white-space:nowrap;
  background-image:linear-gradient(100deg,var(--bab-volt) 0%,var(--bab-ember) 52%,var(--bab-aqua) 100%);
}
@supports (background-image:linear-gradient(in oklch,red,blue)){
  #welcome #who-we-are .bab-discovery-intro h2 em{
    background-image:linear-gradient(in oklch 100deg,var(--bab-volt) 0%,var(--bab-ember) 52%,var(--bab-aqua) 100%);
  }
}
#welcome .bab-worlds h2{
  font-size:clamp(36px,4.4vw,60px)!important;line-height:1.04!important;
  letter-spacing:-.025em!important;margin:12px 0 0!important;text-wrap:balance;
}
#welcome .bab-worlds .eyebrow{letter-spacing:.28em}

/* --- 4. What we do: no orphaned glyph when the tags wrap -------------------- */
.what-we-do-tags>i:first-child,.what-we-do-tags>i:last-child{display:none}
.what-we-do-tags{row-gap:10px}

/* --- 5. Product cards: soft-edged bands that rise on hover ------------------- */
@media(min-width:851px){
  #welcome #who-we-are .bab-product-grid{gap:24px}
  #welcome #who-we-are .bab-product-card{
    min-height:352px;padding:34px 30px 30px;border-radius:24px;
    transition:transform .5s var(--bab-ease),border-color .3s ease,box-shadow .5s ease;
  }
  #welcome #who-we-are .bab-card-copy{max-width:100%;gap:14px}
  #welcome #who-we-are .bab-card-name{
    font-family:'Syne','Outfit',sans-serif;font-size:clamp(34px,3vw,44px);
    font-weight:800;letter-spacing:.01em;line-height:1;
  }
  #welcome #who-we-are .bab-card-desc{font-size:16px;line-height:1.55;color:#D3DADD;max-width:27ch}
  #welcome #who-we-are .bab-band-art{
    right:-18px;bottom:-12px;width:68%;height:168px;overflow:visible;
    transition:transform .7s var(--bab-ease);transform-origin:70% 80%;
  }
  #welcome #who-we-are .bab-product-card:hover .bab-band-art,
  #welcome #who-we-are .bab-product-card:focus-visible .bab-band-art,
  #welcome #who-we-are .bab-product-card.is-active .bab-band-art{transform:translate(-8px,-10px) rotate(-3deg) scale(1.06)}
}
/* the photo's own backdrop dissolves into the card instead of ending at a hard edge */
#welcome #who-we-are .bab-band-photo{
  -webkit-mask-image:radial-gradient(ellipse 56% 62% at 56% 56%,#000 36%,rgba(0,0,0,.55) 62%,transparent 90%);
          mask-image:radial-gradient(ellipse 56% 62% at 56% 56%,#000 36%,rgba(0,0,0,.55) 62%,transparent 90%);
}

/* --- 6. Find your scene: same measure, no clipped poster on phones ------------ */
@media(max-width:700px){
  #welcome .bab-worlds .bab-reel-bg .screen{aspect-ratio:6/5!important}
}
#welcome .bab-worlds .reelTabs{margin-top:26px!important}

/* --- 7. Closing call to action ------------------------------------------------ */
#welcome section.vzsec.c{padding:clamp(64px,9vw,112px) 0!important}
#welcome section.vzsec.c .bab-cta-title{
  font-family:'DM Sans','Outfit',system-ui,sans-serif;font-weight:800;color:var(--bab-bone);
  font-size:clamp(34px,4.8vw,64px);line-height:1.04;letter-spacing:-.035em;
  text-align:center;text-wrap:balance;margin:0 auto 32px;max-width:20ch;
}
#welcome section.vzsec.c .row{gap:14px}

/* --- 8. Footer: left-aligned on the shared edge ------------------------------- */
@media(min-width:601px){
  body .bab-footer .footer-grid{
    grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:32px 72px!important;
  }
  body .bab-footer .footer-grid>div:first-child{justify-content:flex-start!important;min-height:0!important}
  body .bab-footer .footer-grid>div:first-child .logo-f{width:auto!important;height:78px!important;margin:0!important}
  body .bab-footer .footer-grid>div:nth-child(2){align-items:flex-end!important;text-align:right!important;min-height:0!important}
  body .bab-footer .footer-grid>div:nth-child(2) .footer-link{justify-content:flex-end!important}
}
@media(max-width:600px){
  body .bab-footer .footer-grid>div:first-child .logo-f{width:auto!important;height:64px!important}
}
.footer-link{transition:color .2s ease}
.footer-link:hover{color:var(--bab-bone)}

/* --- 9. Keyboard focus: visible everywhere, tuned per surface ----------------- */
:where(a,button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{
  outline:2px solid var(--bab-bone);outline-offset:3px;
}
#welcome section.vzsec.b :focus-visible{outline-color:#111}
#welcome #who-we-are .bab-product-card:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
#welcome #who-we-are .bab-product-selector button:focus-visible{outline-color:var(--brand,#D4F205);outline-offset:-2px}
#modal .box :focus-visible{outline-color:#9DB8A4}

/* --- 10. Contact modal: repair invalid colour values in the polish block ------ */
/* The earlier block contained non-colour tokens (e.g. "SUB#E8E9E2", "#789681_BG"),
   so those declarations were dropped by the browser. Valid values restored: */
#modal .box .sub{color:#BAC4BC}
#modal .contact-kicker{color:#9DB8A4}
#modal .box .row .btn{background:#789681;color:#0B100D;border-color:#789681;font-weight:800}
#modal .box .row .btn:hover{background:#8BAA95;border-color:#8BAA95}
#modal .stat.is-feedback{color:#E8E9E2}
#modal .box .x{display:grid;place-items:center;line-height:1}

/* --- 11. Closing section: drifting world-colour glows ------------------------- */
#welcome section.vzsec.c{position:relative;overflow:hidden;isolation:isolate}
#welcome section.vzsec.c>.wrap{position:relative;z-index:2}
.bab-cta-aurora{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bab-cta-aurora i{position:absolute;display:block;width:min(52vw,720px);aspect-ratio:1;border-radius:50%;opacity:.3;will-change:transform}
.bab-cta-aurora i:nth-child(1){left:-8%;top:-45%;background:radial-gradient(circle,var(--bab-volt) 0%,transparent 66%);animation:babAuroraA 16s ease-in-out infinite alternate}
.bab-cta-aurora i:nth-child(2){left:28%;bottom:-70%;background:radial-gradient(circle,var(--bab-ember) 0%,transparent 66%);animation:babAuroraB 20s ease-in-out infinite alternate}
.bab-cta-aurora i:nth-child(3){right:-10%;top:-40%;background:radial-gradient(circle,var(--bab-aqua) 0%,transparent 66%);animation:babAuroraC 23s ease-in-out infinite alternate}
@keyframes babAuroraA{to{transform:translate(22vw,12%) scale(1.18)}}
@keyframes babAuroraB{to{transform:translate(-18vw,-16%) scale(.9)}}
@keyframes babAuroraC{to{transform:translate(-24vw,16%) scale(1.14)}}
.bab-cta-hl{
  white-space:nowrap;color:transparent;-webkit-background-clip:text;background-clip:text;
  background-image:linear-gradient(100deg,var(--bab-volt),var(--bab-ember),var(--bab-aqua),var(--bab-volt));
  background-size:220% 100%;animation:babHeadlineShift 7s ease-in-out infinite alternate;
}
@keyframes babHeadlineShift{from{background-position:0% 50%}to{background-position:100% 50%}}
#welcome section.vzsec.c .btn{transition:transform .2s ease,box-shadow .35s ease,color .25s ease,border-color .25s ease}
#welcome section.vzsec.c .btn:not(.ghost):hover{
  background-image:linear-gradient(100deg,var(--bab-volt),var(--bab-ember),var(--bab-aqua));
  color:#0B0B0B;border-color:transparent;box-shadow:0 12px 40px rgba(255,122,26,.28);
}
#welcome section.vzsec.c .btn.ghost:hover{border-color:var(--bab-aqua);box-shadow:0 0 0 1px var(--bab-aqua),0 12px 40px rgba(24,215,232,.22)}
