/* Soft realism variant: real Virginia Beach light, porcelain surfaces, soft layered depth */
body.soft{
  --radius:24px;--radius-sm:14px;
  --porcelain:#EEF3F6;--mist:#E3EBF0;
  --shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 4px rgba(28,53,87,.05),0 12px 24px -8px rgba(28,53,87,.12),0 32px 60px -28px rgba(28,53,87,.28);
  --shadow-lift:0 1px 0 rgba(255,255,255,.9) inset,0 4px 8px rgba(28,53,87,.06),0 20px 36px -12px rgba(28,53,87,.18),0 48px 80px -36px rgba(28,53,87,.38);
  background:linear-gradient(180deg,#F4F7F9 0%,var(--porcelain) 40%,#E9F0F4 100%);
}
body.soft .btn{border-radius:999px;padding:0 26px}
body.soft .btn-primary{box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 10px 24px -10px rgba(36,107,102,.75)}

/* beach hero */
.beach-hero{padding:24px 0 0}
.beach-frame{position:relative;border-radius:28px;overflow:hidden;min-height:min(640px,80vh);display:grid;grid-template-columns:1.05fr .95fr;box-shadow:var(--shadow-lift);isolation:isolate}
.beach-frame picture,.beach-frame picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;z-index:-2}
.beach-frame::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,rgba(20,40,63,.88) 0%,rgba(28,53,87,.72) 38%,rgba(28,53,87,.18) 70%,rgba(28,53,87,.05) 100%),linear-gradient(0deg,rgba(20,40,63,.35),transparent 40%)}
.beach-copy{padding:clamp(36px,6vw,76px);display:flex;flex-direction:column;justify-content:center;gap:22px;color:var(--on-navy)}
.beach-copy h1{color:#fff;max-width:13ch;text-shadow:0 2px 24px rgba(10,25,45,.35)}
.beach-copy p{font-size:clamp(17px,1.5vw,19px);color:#DCE7F0;max-width:42ch}
.beach-copy .place{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#fff;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 14px;width:max-content}
.beach-copy .place svg{width:16px;height:16px}
.tooth-stage{position:relative;min-height:380px}
.tooth-stage canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.tooth-stage::after{content:"";position:absolute;left:50%;bottom:12%;width:42%;height:9%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(10,25,45,.45),rgba(10,25,45,0));filter:blur(6px);z-index:0}
.credit{position:absolute;right:14px;bottom:10px;font-size:12px;color:#fff;background:rgba(20,40,63,.72);padding:3px 10px;border-radius:999px;z-index:2}
.credit a{color:inherit}

/* soft surfaces */
body.soft .band{border-radius:var(--radius);margin-top:28px}
body.soft .list-card,body.soft .dl-row,body.soft .route,body.soft .tile{border-radius:var(--radius)}
body.soft .icon{border-radius:14px;background:linear-gradient(180deg,#F2FAF9,#DCEFEE);box-shadow:0 1px 0 #fff inset,0 4px 10px -4px rgba(36,107,102,.35)}
body.soft .section.mist{background:linear-gradient(180deg,#E6EEF3,#EEF3F6)}
body.soft .footer{border-radius:28px 28px 0 0}

@media (max-width:960px){
  .beach-frame{grid-template-columns:1fr}
  .beach-frame::before{background:linear-gradient(180deg,rgba(20,40,63,.86) 0%,rgba(28,53,87,.6) 55%,rgba(28,53,87,.25) 100%)}
  .tooth-stage{min-height:0;height:min(80vw,360px)}
}
@media (prefers-reduced-motion:reduce){.beach-copy .place{backdrop-filter:none}}

/* ---------- contact bar (from the Blue Crane version) ---------- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.topbar{background:linear-gradient(90deg,var(--navy-deep),var(--navy) 55%,#24506B);color:var(--on-navy);font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:stretch;min-height:42px}
.topbar ul{list-style:none;margin:0;padding:0;display:flex}
.topbar li{display:flex;border-left:1px solid rgba(191,208,223,.16)}
.topbar li:first-child{border-left:0}
.tb-contact li:first-child{border-left:1px solid rgba(191,208,223,.16)}
.topbar a{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;padding:0 14px;min-height:42px;min-width:44px;justify-content:center;color:var(--on-navy);text-decoration:none;transition:background-color .2s,color .2s}
.topbar a:hover{background:rgba(255,255,255,.08);color:#fff}
.topbar svg{width:18px;height:18px}
.tb-social li:first-child a{padding-left:0;min-width:32px;justify-content:flex-start}
.tb-contact li:last-child a{padding-right:0}
.topbar a[data-pending]{opacity:.5;cursor:default}
.topbar a[data-pending]:hover{background:none}

/* ---------- homepage slideshow ---------- */
.hero-show{position:relative;border-radius:28px;overflow:hidden;min-height:min(640px,80vh);box-shadow:var(--shadow-lift);isolation:isolate;background:var(--navy-deep)}
.slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;visibility:hidden;transition:opacity .9s var(--ease),visibility .9s}
.slide.is-on{opacity:1;visibility:visible;position:relative;min-height:inherit}
.slide picture,.slide picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;z-index:-2}
.slide:not(.slide-brand)::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,rgba(20,40,63,.88) 0%,rgba(28,53,87,.72) 38%,rgba(28,53,87,.18) 70%,rgba(28,53,87,.05) 100%),linear-gradient(0deg,rgba(20,40,63,.35),transparent 40%)}
.slide-brand{background:radial-gradient(90% 120% at 85% 20%,#3B8C93 0%,rgba(59,140,147,0) 60%),linear-gradient(120deg,var(--navy-deep) 0%,var(--navy) 50%,#2D6476 100%)}
.slide-brand-2{background:radial-gradient(90% 120% at 15% 90%,#3B8C93 0%,rgba(59,140,147,0) 55%),linear-gradient(240deg,var(--navy-deep) 0%,var(--navy) 55%,#2A5A78 100%)}
.slide-mark{position:absolute;right:-60px;top:50%;width:min(52vw,560px);transform:translateY(-50%) rotate(-8deg);opacity:.10;z-index:-1;pointer-events:none}
.slide-copy{padding:clamp(36px,6vw,76px);padding-bottom:clamp(76px,8vw,96px);display:flex;flex-direction:column;gap:22px;color:var(--on-navy);max-width:720px}
.slide-copy h1,.slide-title{color:#fff;max-width:14ch;text-shadow:0 2px 24px rgba(10,25,45,.35);font-size:clamp(2.4rem,5vw,4rem);font-weight:750;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.slide-title{max-width:16ch}
.slide-copy p:not(.slide-title){font-size:clamp(17px,1.5vw,19px);color:#DCE7F0;max-width:44ch}
.slide-copy .place{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#fff;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 14px;width:max-content}
.slide-copy .place svg{width:16px;height:16px}
.show-ui{position:absolute;left:clamp(36px,6vw,76px);bottom:clamp(24px,3vw,34px);z-index:5;display:flex;align-items:center;gap:14px}
.bullets{display:flex;gap:4px}
.bullets button{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.bullets button::before{content:"";width:10px;height:10px;border-radius:50%;border:2px solid #fff;transition:background-color .2s,width .3s var(--ease)}
.bullets button[aria-current="true"]::before{background:#fff;width:24px;border-radius:6px}
.show-pause{width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(20,40,63,.35);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.show-pause svg{width:14px;height:14px}
.show-pause .i-play{display:none}
.show-pause[aria-pressed="true"] .i-play{display:block;fill:currentColor}
.show-pause[aria-pressed="true"] .i-pause{display:none}
.timer{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.18);z-index:5}
.timer i{display:block;height:100%;width:0;background:var(--teal)}
.timer.run i{animation:show-t 7s linear forwards}
@keyframes show-t{to{width:100%}}

/* ---------- services: one card style for every product (Blue Crane layout) ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.svc-card{display:grid;grid-template-columns:108px 1fr;gap:22px;align-items:start;background:var(--white);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);scroll-margin-top:110px;transition:transform .5s var(--ease),box-shadow .5s var(--ease),background-color .3s}
.svc-thumb{width:108px;height:108px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(160deg,#F2FAF9,#DCEFEE);color:var(--teal-ink);border:3px solid #fff;box-shadow:0 6px 16px -8px rgba(28,53,87,.35);object-fit:cover}
.svc-thumb svg{width:50px;height:50px;stroke-width:1.3}
.svc-card h2{font-size:1.3rem;font-weight:700;letter-spacing:-.01em}
.svc-card p{color:var(--ink-2);font-size:16px;margin-top:8px}
.svc-card ul{list-style:none;margin:14px 0 0;padding:14px 0 0;border-top:1px solid var(--mist);display:grid;gap:8px}
.svc-card li{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:var(--ink)}
.svc-card li svg{width:18px;height:18px;color:var(--teal-ink);flex:none;margin-top:3px}
.svc-card:target{box-shadow:0 0 0 3px var(--teal),var(--shadow-lift)}
@media (max-width:900px){.svc-grid{grid-template-columns:1fr}}
@media (max-width:480px){.svc-card{grid-template-columns:1fr;gap:16px}.svc-thumb{width:72px;height:72px}.svc-thumb svg{width:36px;height:36px}}

/* ---------- full-width gradient sections ---------- */
.gradient-page,.gradient-band{position:relative;color:var(--on-navy);background:
  radial-gradient(60% 80% at 100% 0%,rgba(74,169,164,.55) 0%,rgba(74,169,164,0) 60%),
  radial-gradient(50% 70% at 0% 100%,rgba(74,169,164,.30) 0%,rgba(74,169,164,0) 60%),
  linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 45%,#285878 100%)}
.gradient-page{padding:clamp(40px,6vw,72px) 0 clamp(72px,9vw,112px)}
.gradient-page .crumbs{margin-bottom:28px}
.gradient-page h1,.gradient-band h2{color:#fff}
.gradient-page .lead{font-size:19px;color:#DCE7F0;margin-top:18px;max-width:44ch}
.contact-lines{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:0;border-top:1px solid rgba(191,208,223,.22)}
.contact-lines li{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid rgba(191,208,223,.22)}
.contact-lines svg{width:22px;height:22px;color:var(--teal);flex:none;margin-top:2px}
.contact-lines small{display:block;font-size:13px;color:var(--on-navy-2);letter-spacing:.02em}
.contact-lines a{color:#fff;font-weight:600;text-decoration:none}
.contact-lines a:hover{text-decoration:underline}
.contact-lines em{color:var(--on-navy-2);font-weight:500}
.contact-actions{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}
.form-on-gradient{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);box-shadow:none;backdrop-filter:blur(6px)}
.form-on-gradient h2{color:#fff;font-size:1.5rem}
.form-on-gradient .field label{color:#fff}
.form-on-gradient .field input,.form-on-gradient .field select,.form-on-gradient .field textarea{background:rgba(255,255,255,.95);border-color:transparent}
.form-on-gradient .field input:focus,.form-on-gradient .field select:focus,.form-on-gradient .field textarea:focus{background:#fff;border-color:var(--teal);box-shadow:0 0 0 4px rgba(74,169,164,.4)}
.form-on-gradient .err{color:#FFC9C4}
.form-on-gradient [aria-invalid="true"]{border-color:#FF8F86!important}
.gradient-band{padding:clamp(56px,8vw,96px) 0}
.gb-grid{display:grid;grid-template-columns:1.2fr auto;gap:32px;align-items:center}
.gradient-band p{color:#DCE7F0;margin-top:14px;max-width:52ch;font-size:18px}
.gb-actions{display:flex;flex-wrap:wrap;gap:12px}
body.soft main:has(> .gradient-band:last-child) + .footer,body.soft main:has(> .gradient-page:last-child) + .footer{border-radius:0}
@media (max-width:820px){.gb-grid{grid-template-columns:1fr}}

/* resources sub heading */
.sub-head{margin:clamp(36px,5vw,52px) 0 18px;font-size:1.15rem}
.sub-head .muted{font-weight:500;font-size:.95rem;margin-left:6px}

/* footer contact + photo credit */
.f-contact{margin-top:16px!important}
.f-contact a{line-height:1.45}
.footer .base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.footer .base p{margin:0}
.footer .credits{font-size:13px;color:var(--on-navy-2)}
.footer .credits a{padding:0;text-decoration:underline;color:var(--on-navy-2)}

/* back to top (from the Blue Crane version) */
.to-top{position:fixed;right:24px;bottom:24px;z-index:60;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;box-shadow:var(--shadow-lift);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .3s,visibility .3s,transform .3s var(--ease),background-color .2s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--teal-ink);color:#fff}
.to-top svg{width:20px;height:20px}

@media (max-width:960px){
  .hero-show{min-height:0}
  .slide.is-on{min-height:560px}
  .slide:not(.slide-brand)::before{background:linear-gradient(180deg,rgba(20,40,63,.86) 0%,rgba(28,53,87,.66) 60%,rgba(28,53,87,.45) 100%)}
}
@media (max-width:640px){
  .topbar .tb-rx{display:none}
  .topbar a{padding:0 10px}
  .slide.is-on{min-height:520px}
  .slide-copy .hero-actions .btn{flex:1 1 100%}
  .to-top{right:16px;bottom:16px}
}
@media (max-width:400px){.tb-contact a[href="contact.html"] span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){.slide{transition:none}.timer{display:none}}

/* homepage top: same full-width gradient as the Contact page */
.home-gradient{position:relative;padding:clamp(24px,3vw,40px) 0 clamp(56px,7vw,88px);color:var(--on-navy);background:
  radial-gradient(60% 80% at 100% 0%,rgba(74,169,164,.55) 0%,rgba(74,169,164,0) 60%),
  radial-gradient(50% 70% at 0% 100%,rgba(74,169,164,.30) 0%,rgba(74,169,164,0) 60%),
  linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 45%,#285878 100%)}
.home-gradient .hero-show{box-shadow:0 30px 60px -30px rgba(5,15,30,.7);border:1px solid rgba(255,255,255,.12)}
body.soft .home-gradient .band{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);box-shadow:none;backdrop-filter:blur(6px)}
.home-gradient .band > *{border-color:rgba(191,208,223,.2)}
.home-gradient .feature h2{color:#fff}
.home-gradient .feature p{color:#DCE7F0}
.home-gradient .feature .more{color:#fff}
.home-gradient .feature .more svg{color:var(--teal)}
body.soft .home-gradient .icon{background:rgba(74,169,164,.18);box-shadow:none;color:var(--teal)}
.home-gradient .tilt:hover{box-shadow:none}

/* full-bleed hero: the photo runs edge to edge and melts into the page gradient */
.full-bleed{padding-top:0}
.full-bleed .hero-show{border-radius:0;border:0;box-shadow:none;background:transparent;min-height:min(720px,86vh)}
.full-bleed .slide-copy{padding-left:max(var(--gutter),calc((100vw - var(--wrap))/2 + var(--gutter)));padding-right:var(--gutter);padding-top:clamp(56px,8vw,110px);padding-bottom:clamp(110px,12vw,150px)}
.full-bleed .show-ui{left:max(var(--gutter),calc((100vw - var(--wrap))/2 + var(--gutter)));bottom:clamp(56px,7vw,80px)}
.full-bleed .slide:not(.slide-brand)::before{background:
  linear-gradient(95deg,rgba(20,40,63,.9) 0%,rgba(28,53,87,.7) 34%,rgba(28,53,87,.2) 64%,rgba(40,88,120,.28) 100%),
  radial-gradient(60% 80% at 100% 0%,rgba(74,169,164,.35) 0%,rgba(74,169,164,0) 60%),
  linear-gradient(0deg,rgba(30,61,95,.6) 0%,rgba(30,61,95,0) 40%)}
.full-bleed .slide:not(.slide-brand){-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
.full-bleed .slide-brand,.full-bleed .slide-brand-2{background:transparent}
.full-bleed .slide-mark{display:none}
.full-bleed .timer{display:none}
.full-bleed > .wrap{position:relative;z-index:2;margin-top:clamp(-64px,-5vw,-40px)}
.full-bleed .band{margin-top:0}
@media (max-width:960px){
  .full-bleed .slide.is-on{min-height:600px}
  .full-bleed .slide:not(.slide-brand)::before{background:linear-gradient(180deg,rgba(20,40,63,.82) 0%,rgba(28,53,87,.62) 55%,rgba(28,53,87,.5) 100%)}
}
@media (max-width:640px){.full-bleed .slide.is-on{min-height:580px}}
/* wide screens: the left padding grows with the screen, so let the copy box fill the slide and cap the text itself */
.full-bleed .slide-copy{max-width:none;width:100%}
.full-bleed .slide-copy > *{max-width:640px}
.full-bleed .slide-copy .place{max-width:max-content}
.route,section[id]{scroll-margin-top:96px}

/* ---------- slide 2: tooth-art collage + scanner diagram ---------- */
.sc-graphic{width:100%;height:auto;overflow:visible;display:block}
.sc-line{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round}
.sc-pulse{fill:none;stroke:var(--teal);stroke-width:4;stroke-linecap:round;stroke-dasharray:28 400;stroke-dashoffset:28;opacity:0}
.sc-node{fill:var(--navy-deep);stroke:#fff;stroke-width:4}
.sc-dot{fill:var(--teal)}
.sc-label{font:650 20px "Inter",system-ui,sans-serif;fill:#fff;text-anchor:middle;letter-spacing:-.01em}
.sc-hub-ring{fill:rgba(74,169,164,.35);stroke:none}
.sc-hub{fill:#fff;stroke:#fff;stroke-width:4}
/* the lines draw in each time the slide comes round, then pulses run along them */
.js .sc-figure .sc-lines path{stroke-dasharray:400;stroke-dashoffset:400;transition:stroke-dashoffset 1.4s var(--ease)}
.js .slide.is-on .sc-figure .sc-lines path{stroke-dashoffset:0}
.js .slide.is-on .sc-figure .sc-pulse{animation:sc-flow 3.2s 1.4s linear infinite}
.sc-flow path:nth-child(2){animation-delay:2.2s!important}
.sc-flow path:nth-child(3){animation-delay:1.8s!important}
.sc-flow path:nth-child(4){animation-delay:2.6s!important}
@keyframes sc-flow{0%{stroke-dashoffset:28;opacity:0}10%{opacity:1}80%{opacity:1}100%{stroke-dashoffset:-260;opacity:0}}
@media (prefers-reduced-motion:reduce){.js .sc-figure .sc-lines path{stroke-dashoffset:0;transition:none}.sc-pulse{display:none}}

/* collage: tiles sit under a veil of the hero gradient and melt into it at the bottom, so slide 2 flows
   out of the same navy/teal as the other slides instead of cutting to a new panel */
.slide-scan{isolation:isolate}
.sc-collage{position:absolute;inset:-60px;display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));grid-auto-rows:92px;gap:4px;transform:rotate(-6deg) scale(1.12);pointer-events:none}
.sc-tile{display:grid;place-items:center;transform:rotate(var(--r,0deg))}
.sc-tile svg{width:68px;height:72px;filter:drop-shadow(0 6px 10px rgba(5,15,30,.45))}
.sc-tile:nth-child(5n) svg{width:84px;height:90px}
.sc-tile:nth-child(7n) svg{width:52px;height:56px}
.sc-tile-logo img{width:58px;height:58px;background:rgba(255,255,255,.9);border-radius:14px;padding:6px;box-shadow:0 6px 12px rgba(5,15,30,.45)}
.sc-bg::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(95deg,rgba(20,40,63,.94) 0%,rgba(24,46,72,.86) 36%,rgba(28,53,87,.62) 62%,rgba(40,88,120,.5) 100%),
  radial-gradient(60% 80% at 100% 0%,rgba(74,169,164,.32) 0%,rgba(74,169,164,0) 60%)}
/* fade the collage and its veil out at the bottom (not the slide itself, so the copy and diagram stay crisp on phones) */
.sc-bg{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(180deg,#000 50%,transparent 92%);mask-image:linear-gradient(180deg,#000 50%,transparent 92%)}
/* a soft navy pool behind the diagram so labels and nodes never sit on a tooth */
.slide-scan .slide-art{z-index:-1}
.slide-scan .slide-art::before{content:"";position:absolute;inset:-18% -14%;z-index:-1;background:radial-gradient(closest-side,rgba(20,40,63,.92) 0%,rgba(20,40,63,.8) 60%,rgba(20,40,63,0) 100%)}

/* ---------- slide 3: materials lineup ---------- */
.slide-art{position:absolute;z-index:-1;pointer-events:none;right:max(var(--gutter),calc((100vw - var(--wrap))/2 + var(--gutter)));top:50%;width:clamp(420px,calc(min(100vw,var(--wrap)) - 2*var(--gutter) - 560px),580px);transform:translateY(-46%)}
/* slide 3 keeps its copy to a 500px column so the lineup always has room beside it */
@media (min-width:1101px){
  .full-bleed .slide-brand-2 .slide-copy > *,.full-bleed .slide-scan .slide-copy > *{max-width:500px}
  .slide-brand-2 .slide-title,.slide-scan .slide-title{font-size:clamp(2.4rem,3.6vw,3.4rem)}
}
.mat-lineup{width:100%;height:auto;overflow:visible;display:block}
.mat-shelf{stroke:rgba(255,255,255,.28);stroke-width:1.5}
.mat{filter:drop-shadow(0 10px 14px rgba(8,20,36,.45))}
.mat > *{animation:mat-float 6s var(--ease) var(--d) infinite alternate}
@keyframes mat-float{from{transform:translateY(0)}to{transform:translateY(-6px)}}
.mat-labels text{fill:#fff;font:700 19px/1 Inter,system-ui,sans-serif;letter-spacing:-.01em}
.mat-labels .sub{fill:#BFE3E2;font-weight:500;font-size:14px;letter-spacing:0}
.slide.is-on .mat{animation:mat-in .9s var(--ease) both;animation-delay:calc(var(--d) * .35)}
@keyframes mat-in{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
/* the text sits left, the lineup right; below 1100px the lineup moves under the text */
@media (max-width:1100px){
  .slide-brand-2,.slide-scan{flex-direction:column;align-items:stretch}
  .slide-brand-2 .slide-art,.slide-scan .slide-art{position:relative;order:2;right:auto;top:auto;transform:none;width:min(calc(100% - 2*var(--gutter)),560px);margin:-90px var(--gutter) 120px;align-self:flex-start;z-index:0}
  .full-bleed .slide-brand-2 .slide-copy,.full-bleed .slide-scan .slide-copy{padding-bottom:110px}
}
/* phones and tablets: stack every slide in one grid cell so the hero is always as tall as its tallest slide.
   The page below no longer jumps when the slides change, and shorter slides sit centred instead of leaving a gap */
@media (max-width:1100px){
  .full-bleed .hero-show{min-height:0}
  .full-bleed .slide,.full-bleed .slide.is-on{min-height:0}
  .slide-brand-2,.slide-scan{justify-content:center}
  .sc-bg{-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
  .sc-bg::after{background:
    linear-gradient(180deg,rgba(20,40,63,.84) 0%,rgba(24,46,72,.8) 55%,rgba(28,53,87,.72) 100%),
    radial-gradient(70% 50% at 100% 0%,rgba(74,169,164,.3) 0%,rgba(74,169,164,0) 70%)}
}
@media (max-width:640px){
  .slide-brand-2 .slide-art,.slide-scan .slide-art{margin:-80px var(--gutter) 108px}
  .mat-labels .sub{display:none}
  .mat-labels text{font-size:20px}
}
@media (prefers-reduced-motion:reduce){.mat > *,.slide.is-on .mat{animation:none}}

/* every slide shares one grid cell, so the slideshow keeps the height of its tallest slide
   and the page below never jumps when the slides rotate (mattered most on phones) */
.hero-show{display:grid}
.slide{grid-area:1/1;position:relative;inset:auto;min-height:inherit}
@media (max-width:640px){
  /* smaller diagram and lineup on phones keep the slideshow from getting too tall */
  .slide-brand-2 .slide-art,.slide-scan .slide-art{width:min(calc(100% - 2*var(--gutter)),340px)}
}
