/* the services page: one long scroll. Text for each service passes on the left; a picture on the right changes with it. */
.services-page { min-height: 100vh; }
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(90% 70% at 85% 0%, #0f3a5e 0%, transparent 60%), var(--navy); }
.backdrop i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .3; animation: drift 18s ease-in-out infinite alternate; }
.backdrop i:first-child { background: #14b8a6; top: -18vmax; right: -12vmax; }
.backdrop i:last-child { background: #2563eb; bottom: -22vmax; left: -14vmax; animation-delay: -9s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
.services-page .bar { background: rgba(8, 22, 44, .72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
main { position: relative; z-index: 2; }

.top { display: grid; gap: 22px; align-content: center; min-height: 100vh; max-width: 1240px; margin: 0 auto; padding: 100px clamp(20px, 4vw, 48px) 40px; }
.top h1 { font-size: clamp(40px, 7vw, 92px); }
.top .lead { max-width: 60ch; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.minis a { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 16px; background: var(--glass); font-weight: 600; line-height: 1.3; text-decoration: none; transition: transform .2s, background .2s; }
.minis a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.minis b { font: 800 22px var(--display); color: var(--accent); }
.more { margin: 0; font-size: 14px; color: var(--soft); }

/* each service is its own full page: the screen stays pinned while the scroll deals four cards from a deck */
.svc { position: relative; height: 280vh; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; padding: 78px 78px 20px clamp(20px, 4.5vw, 72px); background: radial-gradient(70% 80% at 74% 50%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%), #0a1c38; border-top: 1px solid var(--line); }
.ghost { position: absolute; left: -1vw; bottom: -6vh; font: 800 46vh/1 var(--display); letter-spacing: -.05em; color: #fff; opacity: .035; pointer-events: none; }
.say { position: relative; display: grid; gap: clamp(8px, 1.7vh, 16px); }
.say .kicker { color: var(--accent); }
.say h2 { font-size: clamp(24px, 4.7vh, 46px); }
.tagline { margin: 0; font: 600 clamp(15px, 2.3vh, 20px)/1.35 var(--text); color: #fff; }
.say .plain { margin: 0; font-size: clamp(14px, 2vh, 16.5px); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.say .plain b { color: var(--accent); }
.say .btn { width: fit-content; }

.deck { position: relative; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vh, 16px); height: calc(100vh - 110px); max-height: 760px; perspective: 1800px; }
.deal { position: relative; min-height: 0; transform-style: preserve-3d; will-change: transform; }
.side { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.side.cover { transform: rotateY(180deg); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px), #0b2342; }
.side.cover img { width: 32%; max-width: 110px; border-radius: 22%; }
.side.face { display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 11px); padding: clamp(12px, 2.1vh, 20px) clamp(14px, 1.5vw, 22px); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: #0d2645; }
.picture .side.face { padding: clamp(8px, 1.4vh, 14px); background: linear-gradient(160deg, #0f2d50, #081a33); align-items: center; justify-content: center; }
.picture svg { width: 100%; height: 100%; overflow: visible; }
.side h3 { margin: 0; font: 700 clamp(10.5px, 1.5vh, 12.5px)/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.side ul, .side ol { display: grid; gap: clamp(5px, 1vh, 9px); margin: 0; padding: 0; list-style: none; }
.get li { position: relative; padding-left: 24px; font-size: clamp(12.5px, 1.8vh, 15px); line-height: 1.35; color: #e4edf6; }
.get li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent); font-size: 10px; font-weight: 800; }
.how { gap: clamp(7px, 1.3vh, 12px) !important; }
.how li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.how b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #04122a; font: 800 14px var(--display); }
.how span { display: grid; font-size: clamp(12.5px, 1.75vh, 14.5px); line-height: 1.3; color: var(--soft); }
.how strong { font-size: clamp(14px, 2vh, 16px); color: #fff; }
.example { margin: 0; font-size: clamp(12.5px, 1.8vh, 15px); line-height: 1.4; color: #fff; }
.good { display: flex; flex-wrap: wrap; gap: 5px; }
.good em { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-style: normal; font-size: clamp(11px, 1.5vh, 12.5px); line-height: 1.25; color: #cfe0f1; }
.dealhint { position: absolute; left: 0; right: 0; bottom: 4%; margin: 0; text-align: center; font-size: 14px; color: var(--soft); pointer-events: none; }

/* drawing of the pictures */
.pane { fill: #12294a; stroke: #2dd4bf; stroke-opacity: .55; stroke-width: 1.5; }
.pane2 { fill: #0f2744; stroke: #38bdf8; stroke-opacity: .6; stroke-width: 1.5; }
.bar2 { fill: #0f7a6e; }
.card2 { fill: #1b3a63; }
.ln { fill: #7ef0e0; opacity: .85; }
.btn2 { fill: #14b8a6; }
.bar3 { fill: #14b8a6; }
.spark { fill: #fbbf24; animation: twinkle 2.4s ease-in-out infinite; transform-origin: 336px 80px; }
.db { fill: #1b3a63; stroke: #5eead4; stroke-width: 2; }
.dbbody { fill: #12294a; stroke: #5eead4; stroke-width: 2; }
.dbline { stroke: #5eead4; stroke-width: 2; }
.shield { fill: #14b8a6; }
.wire { fill: none; stroke: #5eead4; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }

.funnel { fill: #14b8a6; opacity: .85; }
.rail2 { stroke: #38bdf8; stroke-width: 4; stroke-linecap: round; opacity: .6; }
.pulse circle { fill: #14b8a6; stroke: #0b1f3b; stroke-width: 4; animation: beat 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pulse circle:nth-child(2) { animation-delay: .3s; } .pulse circle:nth-child(3) { animation-delay: .6s; } .pulse circle:nth-child(4) { animation-delay: .9s; }
.lab { fill: #9fb6cf; font: 500 16px Inter, sans-serif; text-anchor: middle; }
.lab2 { fill: #fff; font: 700 15px Inter, sans-serif; text-anchor: middle; }
.ln2 rect { fill: #1b3a63; } .ln2 rect.on { fill: #14b8a6; }
.ticks circle { fill: #14b8a6; } .ticks path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gear { fill: none; stroke: #fbbf24; stroke-width: 14; stroke-dasharray: 14 10; }
.gear2 { fill: none; stroke: #14b8a6; stroke-width: 12; stroke-dasharray: 12 9; }
.hole { fill: #0b1f3b; }
.spin1 { animation: turn 14s linear infinite; transform-box: view-box; } .spin2 { animation: turn 10s linear infinite reverse; transform-box: view-box; }
.belt { animation: slide 5s linear infinite; }
.float { animation: floaty 5s ease-in-out infinite; } .drift { animation: floaty 7s ease-in-out infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } } @keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } } @keyframes beat { 50% { transform: scale(1.25); } }
@keyframes turn { to { transform: rotate(360deg); } } @keyframes slide { from { transform: translateX(0); } to { transform: translateX(100px); } } @keyframes floaty { 50% { transform: translateY(-8px); } }

/* the rail */
.rail { position: fixed; z-index: 20; right: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; margin: 0; padding: 8px 6px; list-style: none; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); backdrop-filter: blur(10px); }
.rail a { position: relative; display: block; padding: 5px 0; text-decoration: none; font-size: 13px; color: var(--soft); }
.rail a span { position: absolute; right: calc(100% + 12px); top: 50%; padding: 5px 10px; border-radius: 8px; background: #081a33; color: #fff; white-space: nowrap; opacity: 0; transform: translateY(-50%); pointer-events: none; transition: opacity .2s; }
.rail a:hover span { opacity: 1; }
.rail a i { display: grid; place-items: center; width: 32px; height: 22px; border-radius: 11px; font: 700 11px var(--text); font-style: normal; background: rgba(255, 255, 255, .1); transition: background .25s, color .25s; }
.rail a.on i { background: var(--teal); color: #04122a; }

.end { position: relative; display: grid; gap: 18px; justify-items: center; align-content: center; text-align: center; min-height: 80vh; max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.end h2 { font-size: clamp(28px, 4vw, 52px); }
.end .actions { justify-content: center; }

/* a phone, a short window, or "less motion": a normal page, each card turning as it comes into view */
.flat .svc { height: auto; }
.flat .pin { position: relative; height: auto; overflow: visible; grid-template-columns: 1fr; padding: 72px 18px 40px; }
.flat .deck { display: grid; grid-template: none; height: auto; max-height: none; gap: 12px; }
.flat .side { position: relative; }
.flat .deal { opacity: 0; transform: perspective(900px) rotateY(-65deg) !important; transform-origin: left center; transition: opacity .5s ease, transform .65s cubic-bezier(.22, .9, .3, 1); }
.flat .deal.in { opacity: 1; transform: none !important; }
.flat .side.cover, .flat .dealhint, .flat .rail { display: none; }
.flat .picture .side.face { height: 220px; }
.flat .ghost { display: none; }
@media (prefers-reduced-motion: reduce) { .flat .deal { opacity: 1; transform: none !important; transition: none; }  .backdrop i, .float, .drift, .spin1, .spin2, .belt, .wire, .spark, .pulse circle { animation: none; } }

/* the sections shuffle in as one piece: the transform comes from scrolling (services.js); sideways overflow is clipped so the page never scrolls sideways */
.svc { overflow-x: clip; }
.pin { transform-origin: 50% 50%; will-change: transform, opacity; }
.flat .pin { opacity: 0; transform: translateX(40px) rotate(3deg) scale(.96); transition: opacity .6s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.flat .svc:nth-of-type(even) .pin { transform: translateX(-40px) rotate(-3deg) scale(.96); }
.flat .pin.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .flat .pin { opacity: 1; transform: none; transition: none; } }
