/* Restored from the original ABDflow flip-bento: 1800px perspective,
   two eased half-turns and an explicit edge-on face swap for WebKit. */
.abdh-hero .hero-flip-scene { position: relative; display: grid; min-width: 0; perspective: 1800px; border-radius: 24px; }
.abdh-hero .hero-flip-rotor { position: relative; display: grid; min-width: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transform-origin: center; }
.abdh-hero .hero-flip-front { grid-area: 1 / 1; min-width: 0; }
.abdh-hero .hero-flip-back[hidden] { display: none; }
.abdh-hero .hero-flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: flat; }
.abdh-hero .hero-flip-front { transform: translateZ(1px); }
.abdh-hero .hero-flip-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: clamp(18px,2.4vw,36px); border: 1px solid #456483; border-radius: 24px; transform: rotateY(180deg) translateZ(1px); background: radial-gradient(120% 120% at 0 0,#0070f019,transparent 55%),linear-gradient(160deg,#ffffff09,transparent 40%),#101b2e; box-shadow: inset 0 1px 0 #ffffff12,0 24px 70px #000a3270; overflow: auto; overscroll-behavior: contain; }
.abdh-hero [data-face=front] .hero-flip-back,.abdh-hero [data-face=back] .hero-flip-front { visibility: hidden; opacity: 0; pointer-events: none; }
.abdh-hero .hero-flip-control { appearance: none; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #53779680; border-radius: 50%; color: #9bdcff; background: #152a40; cursor: pointer; transition: background .2s,border-color .2s; }
.abdh-hero .hero-flip-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.abdh-hero .hero-copy>[data-flip-open] { position: absolute; top: 12px; right: 12px; }
.abdh-hero .demo-heading>[data-flip-open] { width: 38px; height: 38px; min-height: 38px; flex-basis: 38px; }
.abdh-hero .hero-flip-control:hover { border-color: #8fcdf4; background: #24415c; }
.abdh-hero .hero-flip-control:focus-visible,.abdh-hero .hero-flip-tile:focus-visible { outline: 2px solid #55cfff; outline-offset: 4px; }
.abdh-hero .hero-flip-scene:focus { outline: none; }
.abdh-hero .hero-flip-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto; }
.abdh-hero .hero-flip-head .business-eyebrow { font-size: 10px; line-height: 1.6; }
.abdh-hero .hero-flip-head p { margin: 6px 0 0; font-size: 12px; color: #adc5dc; }
.abdh-hero .hero-flip-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: 1fr 1fr; gap: 12px; }
.abdh-hero .hero-flip-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 120px; overflow: hidden; border-radius: 16px; padding: clamp(12px,1.4vw,20px); border: 1px solid #0030d029; background: linear-gradient(165deg,#f6faff,#e8f1fe); color: #06122e; text-decoration: none; box-shadow: inset 0 1px 0 #ffffffe6,inset 0 -10px 20px #0046c80f,0 6px 18px #020a2859; transition: background .45s,color .45s,transform .45s cubic-bezier(.18,.75,.2,1),box-shadow .45s; }
.abdh-hero .hero-flip-tile .for { position: relative; z-index: 1; color: #375e8c; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 7px; }
.abdh-hero .hero-flip-tile h3 { position: relative; z-index: 1; margin: 0; font-size: clamp(18px,1.7vw,26px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.abdh-hero .hero-flip-tile h3 em { font-family: var(--nx-serif,Georgia,serif); font-style: italic; font-weight: 400; }
.abdh-hero .hero-flip-tile .bg-icon { position: absolute; top: -4%; right: -6%; width: 58%; height: 66%; opacity: .45; pointer-events: none; transition: transform .55s cubic-bezier(.18,.75,.2,1),opacity .55s; }
.abdh-hero .hero-flip-tile .bg-icon svg { width: 100%; height: 100%; }
.abdh-hero .hero-flip-tile .open-hint { position: absolute; top: 12px; right: 14px; color: #385e8c; font-size: 10px; letter-spacing: .04em; }
.abdh-hero .hero-flip-footer { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 14px; color: #9ab7cf; font-size: 11px; }
.abdh-hero .hero-flip-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #a8dfff; }
.abdh-hero .hero-flip-grid.services { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.abdh-hero .services .hero-flip-tile { justify-content: flex-end; padding: 25px; }
.abdh-hero .services .bg-icon { width: 80%; height: 48%; top: 2%; }
.abdh-hero .services .hero-flip-tile>p { position: relative; z-index: 1; margin: 18px 0; font-size: 13px; line-height: 1.65; color: #486380; }
.abdh-hero .hero-flip-specs { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 8px; }
.abdh-hero .hero-flip-specs span { padding: 9px 10px; border: 1px solid #0030d020; background: #ffffff59; border-radius: 5px; font-size: 11px; color: #294c72; }
@media (hover:hover) and (pointer:fine) {
 .abdh-hero .hero-flip-tile:hover { background: linear-gradient(150deg,#06205e,#0230a8 55%,#0030d0); color: #fff; border-color: #00c0f099; transform: translateY(-5px) scale(1.015); box-shadow: inset 0 1px 0 #ffffff2e,0 22px 50px #0030d066; }
 .abdh-hero .hero-flip-tile:hover :is(.for,.open-hint) { color: #93e4ff; }
 .abdh-hero .hero-flip-tile:hover .bg-icon { opacity: 1; transform: scale(1.14) rotate(-4deg); }
 .abdh-hero .hero-flip-tile:hover>p,.abdh-hero .hero-flip-tile:hover .hero-flip-specs span { color: #e1efff; }
 .abdh-hero .hero-flip-tile:hover .hero-flip-specs span { background: #ffffff0d; border-color: #ffffff29; }
}
@media (max-width:680px) {
 .abdh-hero .hero-flip-scene,.abdh-hero .hero-flip-back { border-radius: 18px; }
 .abdh-hero .hero-flip-back { padding: 20px 16px; gap: 16px; }
 .abdh-hero .hero-flip-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,minmax(100px,1fr)); gap: 10px; }
 .abdh-hero .hero-flip-tile { min-height: 100px; border-radius: 12px; }
 .abdh-hero .hero-flip-tile h3 { font-size: clamp(18px,5.6vw,25px); }
 .abdh-hero .demo-heading>[data-flip-open] { position: absolute; top: 0; right: 6px; width: 44px; height: 44px; min-height: 44px; background: transparent; border: 0; }
 .abdh-hero .demo-heading>[data-flip-open]::before { content: ''; position: absolute; inset: 7px; border: 1px solid #53779680; background: #152a40; border-radius: 50%; }
 .abdh-hero .demo-heading>[data-flip-open] svg { position: relative; width: 14px; height: 14px; }
 .abdh-hero .hero-flip-grid.services { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
 .abdh-hero .services .hero-flip-tile { padding: 20px; }
 .abdh-hero .services .bg-icon { width: 44%; height: 72%; right: -1%; }
 .abdh-hero .services .hero-flip-tile>p { margin: 10px 0; font-size: 12px; max-width: 27ch; }
 .abdh-hero .hero-flip-specs { grid-template-columns: 1fr 1fr; gap: 6px; }
 .abdh-hero .hero-flip-specs span { font-size: 10px; padding: 8px; }
}
@media (prefers-reduced-motion:reduce) {
 .abdh-hero .hero-flip-rotor,.abdh-hero .hero-flip-face { transform: none !important; }
 .abdh-hero .hero-flip-tile,.abdh-hero .hero-flip-control,.abdh-hero .hero-flip-tile .bg-icon { transition: none !important; }
}

/* Grid 1 only: square, legible industry cards without resizing the front face. */
.abdh-hero #heroIndustriesBack { padding: 22px; gap: 16px; overflow: hidden; container-type: inline-size; }
#heroIndustriesBack .hero-flip-head .business-eyebrow { color: #eaf5ff; font-size: 12px; letter-spacing: .09em; }
#heroIndustriesBack .hero-flip-head p { line-height: 1.5; }
#heroIndustriesBack .hero-flip-grid { grid-template-columns: repeat(auto-fit,minmax(112px,1fr)); grid-template-rows: none; grid-auto-rows: max-content; align-content: start; gap: 10px; padding: 5px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #6c9ecb #16273d; scroll-padding-block: 5px; }
#heroIndustriesBack .hero-flip-tile { box-sizing: border-box; aspect-ratio: 1; min-height: 0; width: 100%; padding: 12px; border-radius: 14px; justify-content: space-between; gap: 8px; background: linear-gradient(145deg,#fff,#edf5ff); color: #102b50; box-shadow: inset 0 1px 0 #fff,0 3px 9px #020a2829; }
#heroIndustriesBack .hero-flip-tile .for { display: none; }
#heroIndustriesBack .hero-flip-tile { container-type: inline-size; }
#heroIndustriesBack .hero-flip-tile h3 { color: inherit; font-family: var(--nx-sans,'Instrument Sans',sans-serif); font-size: clamp(12px,11cqi,16px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: normal; }
#heroIndustriesBack .hero-flip-tile h3 em { font: inherit; }
#heroIndustriesBack .hero-flip-tile .bg-icon { position: static; flex: 0 0 auto; width: 34px; height: 34px; color: #0862d4; opacity: 1; }
#heroIndustriesBack .hero-flip-tile .open-hint { top: 11px; right: 10px; font-size: 10px; color: #385e8c; }
#heroIndustriesBack .hero-flip-footer { gap: 8px; border-top: 1px solid #a6cfff26; padding-top: 4px; font-size: 10px; }
#heroIndustriesBack .hero-flip-footer a { white-space: nowrap; font-size: 11px; }
@media (hover:hover) and (pointer:fine) {
 #heroIndustriesBack .hero-flip-tile:hover { background: linear-gradient(145deg,#073c99,#0030d0); color: #fff; transform: translateY(-3px); box-shadow: 0 7px 16px #0030d04d; }
 #heroIndustriesBack .hero-flip-tile:hover .bg-icon { color: #b5eaff; transform: translateY(-1px); }
 #heroIndustriesBack .hero-flip-tile:hover .open-hint { color: #c4edff; }
}
@media (max-width:680px) {
 .abdh-hero #heroIndustriesBack { padding: 16px 12px; gap: 12px; }
 #heroIndustriesBack .hero-flip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #heroIndustriesBack .hero-flip-head .business-eyebrow { font-size: 10px; }
 #heroIndustriesBack .hero-flip-head p { font-size: 11px; }
}
