:root {
  --bg: #f5f5f7; --ink: #1d1d1f; --ink-2: #5f5f64;
  --brand: #0099a8; --brand-deep: #00717d; --accent: #3a7bff; --deep: #0b1f33;
  --glass: rgba(255,255,255,.55); --glass-border: rgba(255,255,255,.7);
  --shadow: 0 10px 40px rgba(0,40,60,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Background orbs give the glass something to refract */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; will-change: transform; }
/* Each orb drifts on its own loop and shifts a little with scroll (--sy, set in script.js). */
.orbs i:nth-child(1) { width: 560px; height: 560px; background: #6fd8e2; top: -160px; left: -140px; animation: drift1 22s ease-in-out infinite alternate; translate: 0 calc(var(--sy, 0) * -.06px); }
.orbs i:nth-child(2) { width: 520px; height: 520px; background: #9db8ff; top: 30%; right: -180px; animation: drift2 26s ease-in-out infinite alternate; translate: 0 calc(var(--sy, 0) * -.12px); }
.orbs i:nth-child(3) { width: 480px; height: 480px; background: #a5ece3; bottom: -160px; left: 22%; animation: drift3 19s ease-in-out infinite alternate; translate: 0 calc(var(--sy, 0) * -.04px); }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 60px) scale(.9); } }
@keyframes drift3 { to { transform: translate(90px, -110px) scale(1.1); } }

/* Scroll progress hairline */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Glass */
.glass { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9); }
.glass-dark { background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,.92); }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: clamp(4rem, 10vw, 7.5rem) 20px; }
.wrap.tight { padding-top: 1rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.center { text-align: center; }
.grad { background: linear-gradient(100deg, var(--brand), var(--accent), var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 640px; }
.center.lead { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 3rem; }

/* Buttons */
.btn { display: inline-block; position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: .8rem 1.6rem; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
@media (hover: hover) { .btn:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,153,168,.3); } }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn-sm { padding: .4rem 1rem; font-size: 14px; }
.link { color: var(--brand); font-weight: 600; }
.link span { display: inline-block; transition: transform .25s; }
.link:hover span { transform: translateX(5px); }

/* Nav */
.nav { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 12px auto 0; padding: 0 20px; height: 60px; border-radius: 999px; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255,255,255,.78); box-shadow: 0 8px 30px rgba(0,40,60,.12), inset 0 1px 0 rgba(255,255,255,.9); }
.brand img { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) { .brand:hover img { transform: rotate(-8deg) scale(1.06); } }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; padding: 2px 3px; background: #fff; border-radius: 10px; }
nav { display: flex; align-items: center; gap: 1.6rem; font-size: 14px; }
nav a:not(.btn) { color: var(--ink-2); transition: color .2s; position: relative; }
nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s ease; }
nav a:not(.btn):hover, nav a.active { color: var(--ink); }
nav a:not(.btn):hover::after, nav a.active::after { transform: scaleX(1); }
#menu { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
#menu span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; }
#menu span:first-child { top: 16px; } #menu span:last-child { top: 23px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: clamp(3rem, 8vw, 6rem); }
.hero > * { min-width: 0; }
.cta { display: flex; align-items: center; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
/* --rx/--ry come from the pointer (script.js); float uses `translate` so it stacks with the tilt. */
.mock { padding: 1.2rem; transform: perspective(1200px) rotateY(calc(-8deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))); transition: transform .5s cubic-bezier(.2,.7,.2,1); position: relative; animation: rise 1s .35s both, float 7s 1.4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; } .hero-text > :nth-child(4) { animation-delay: .24s; }
.mock-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 1rem; }
.kpis b { display: inline-block; transition: color .3s; }
.kpis b.bump { color: var(--brand); }
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .7s cubic-bezier(.4,0,.2,1) forwards; }
.chart .area, .chart .line2 { opacity: 0; animation: fade 1.2s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.bars i { transform-origin: bottom; animation: grow .7s calc(.9s + var(--i) * 70ms) cubic-bezier(.2,.7,.2,1) both, breathe 3.2s calc(2s + var(--i) * 230ms) ease-in-out infinite alternate; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.82); } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.kpis div { background: rgba(255,255,255,.7); border-radius: 14px; padding: .7rem .8rem; }
.kpis small { display: block; font-size: 11px; color: var(--ink-2); }
.kpis b { font-size: 1.25rem; letter-spacing: -.02em; }
.chart { display: block; width: 100%; height: 130px; margin: 1rem 0 .6rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(var(--accent), var(--brand)); opacity: .75; border-radius: 4px 4px 0 0; }
.cap { display: block; font-size: 12px; color: var(--ink-2); margin-top: .6rem; }

/* Tiles & grids */
.tile { padding: 1.6rem; position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,40,60,.12), inset 0 1px 0 rgba(255,255,255,.9); } }
/* Soft light that follows the pointer (--mx/--my set in script.js); .lit shows it briefly on tap. */
.tile::after, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0,153,168,.2), rgba(58,123,255,.08) 40%, transparent 70%); }
.lit::after { opacity: 1; }
@media (hover: hover) { .tile:hover::after, .card:hover::after { opacity: 1; } }
.tile:active, .card:active { transform: scale(.985); }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trio .tile { position: relative; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.stack { display: grid; gap: 1.2rem; }


/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { padding: 1.6rem; position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
@media (hover: hover) { .card:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(0,40,60,.14), inset 0 1px 0 rgba(255,255,255,.9); } }
.card svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; transition: transform .45s cubic-bezier(.3,1.6,.5,1), stroke .3s; }
@media (hover: hover) { .card:hover svg { transform: translateY(-3px) scale(1.12) rotate(-4deg); stroke: var(--accent); } }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Services grid (home) and "what we deliver" grids (service pages) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card.service { display: flex; flex-direction: column; }
.card.service p { flex: 1; }
.card .more { margin-top: 1.2rem; font-size: 15px; font-weight: 600; color: var(--brand); }
.card .more i { display: inline-block; font-style: normal; transition: transform .25s; }
@media (hover: hover) { .card.service:hover .more i { transform: translateX(5px); } }

/* Service pages */
.page-hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 900px; }
.page-hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero > :nth-child(2) { animation-delay: .06s; } .page-hero > :nth-child(3) { animation-delay: .12s; } .page-hero > :nth-child(4) { animation-delay: .18s; } .page-hero > :nth-child(5) { animation-delay: .24s; }
.crumbs { display: flex; gap: .5rem; font-size: 14px; color: var(--ink-2); margin-bottom: 1.6rem; }
.crumbs a { color: var(--brand); }
.crumbs a:hover { text-decoration: underline; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.signs li { position: relative; padding-left: 2rem; font-size: 1.05rem; font-weight: 500; }
.signs li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 0 4px rgba(255,181,71,.2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .chip:hover { background: #fff; color: var(--brand-deep); border-color: rgba(0,153,168,.35); } }
.faq { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: 18px; padding: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,153,168,.1); color: var(--brand); font-size: 1.2rem; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--ink-2); }
.related { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: 2rem 0 0; color: var(--ink-2); }

/* Dark bands */
.dark { background: var(--deep); color: #fff; }
.dark .kicker { color: #6fd8e2; }
.dark .lead { color: #aab9c8; }
/* Risk map: a faint grid with a slow glow behind six risk -> response cards. */
.risks { position: relative; overflow: hidden; isolation: isolate; }
.risks::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.risks::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; top: -180px; left: 50%; margin-left: -310px; background: radial-gradient(circle, rgba(0,153,168,.35), transparent 65%); filter: blur(20px); animation: glowdrift 14s ease-in-out infinite alternate; }
@keyframes glowdrift { to { transform: translate(180px, 260px) scale(1.2); } }
.risks .grad { background-image: linear-gradient(100deg, #6fd8e2, #9db8ff, #6fd8e2); }
.rfilter { display: flex; justify-content: center; gap: .3rem; width: max-content; max-width: 100%; margin: -1rem auto 2.4rem; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.rfilter button { font: inherit; font-size: 14px; font-weight: 600; color: #aab9c8; background: none; border: 0; border-radius: 999px; padding: .55rem 1.2rem; min-height: 40px; cursor: pointer; transition: background .25s, color .25s; }
.rfilter button[aria-pressed="true"] { background: #fff; color: var(--deep); }
@media (hover: hover) { .rfilter button[aria-pressed="false"]:hover { color: #fff; background: rgba(255,255,255,.08); } }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.risk-grid[data-filter="data"] .rcard[data-kind="ai"], .risk-grid[data-filter="ai"] .rcard[data-kind="data"] { display: none; }
.rcard { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
@media (hover: hover) { .rcard:hover { transform: translateY(-6px); border-color: rgba(111,216,226,.5); box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(111,216,226,.15), 0 0 40px rgba(0,153,168,.18); } }
.rtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.rtag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffc46b; background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.28); padding: .25rem .65rem; border-radius: 999px; }
.rcard[data-kind="ai"] .rtag { color: #b9cbff; background: rgba(157,184,255,.12); border-color: rgba(157,184,255,.3); }
.ricon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,181,71,.14); }
.ricon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,181,71,.6); animation: alarm 2.4s ease-out infinite; }
@keyframes alarm { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.ricon svg { width: 18px; height: 18px; fill: none; stroke: #ffb547; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rcard h3 { font-size: 1.3rem; letter-spacing: -.015em; margin-bottom: .35rem; }
.rwhy { margin: 0; color: #aab9c8; font-size: .95rem; }
/* Connector from the problem to the fix, with a light pulse travelling down it. */
.rflow { position: relative; width: 2px; height: 50px; margin: auto 0 0 18px; padding-top: 14px; background: linear-gradient(#ffb547, #6fd8e2); background-clip: content-box; border-radius: 2px; }
.rflow::after { content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px #6fd8e2; animation: flow 1.8s ease-in infinite; }
@keyframes flow { 0% { top: 14px; opacity: 0; } 25% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
.rfix { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(111,216,226,.08); border: 1px solid rgba(111,216,226,.22); transition: background .35s, border-color .35s; }
@media (hover: hover) { .rcard:hover .rfix { background: rgba(111,216,226,.15); border-color: rgba(111,216,226,.45); } }
.rfix svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #6fd8e2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rfix small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6fd8e2; margin-bottom: .1rem; }
.rfix strong { display: block; font-size: 1.05rem; }
.rfix span { display: block; color: #aab9c8; font-size: 13.5px; }
.note { margin: 1.6rem 0 0; font-size: 12px; color: #8497aa; text-align: center; }


/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }

/* Contact */
.base { margin: 1.6rem 0 0; color: var(--ink-2); font-weight: 500; }
.contact-list { display: grid; gap: 1rem; container-type: inline-size; }
.contact-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; }
.contact-item svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: rgba(0,153,168,.1); fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.3,1.6,.5,1), background .3s, stroke .3s; }
@media (hover: hover) { .contact-item:hover svg { transform: rotate(-10deg) scale(1.08); background: var(--brand); stroke: #fff; } }
.contact-item span { min-width: 0; }
.contact-item small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.contact-item b { display: block; font-size: clamp(1.25rem, 3.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; transition: color .3s; }
@media (hover: hover) { a.contact-item:hover b { color: var(--brand-deep); } }
/* Call: two numbers as attached, full-width rows so each is an easy tap target. */
.contact-item.call { display: grid; gap: 1rem; }
.contact-item.call:active { transform: none; }
.call-head { display: flex; align-items: center; gap: 1.2rem; }
.call-options { display: grid; border: 1px solid rgba(0,153,168,.18); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.6); }
.call-options a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .8rem 1.2rem; font-size: clamp(1.15rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.call-options a + a { border-top: 1px solid rgba(0,153,168,.15); }
.call-options i { font-style: normal; font-size: 1.1rem; color: var(--brand); transition: transform .25s; }
.call-options a:active { background: rgba(0,153,168,.14); }
@media (hover: hover) { .call-options a:hover { background: rgba(0,153,168,.08); color: var(--brand-deep); } .call-options a:hover i { transform: translateX(4px); } }
.contact-item b.email { font-size: clamp(.85rem, 4.4vw, 2rem); font-size: clamp(.85rem, calc((100cqi - 124px) / 12.8), 2rem); overflow-wrap: normal; white-space: nowrap; }

/* Closing + footer */
.closing { text-align: center; }
.closing .wrap { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.closing p { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.closing .grad { background: linear-gradient(100deg, #6fd8e2, #9db8ff); -webkit-background-clip: text; background-clip: text; }
footer { background: var(--deep); color: #aab9c8; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center; }
footer .brand { color: #fff; }
footer p { margin: 0; }
footer nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .5rem 1.4rem; }
footer nav a:not(.btn) { color: #aab9c8; }
footer nav a:not(.btn):hover { color: #fff; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* Grid items cascade in one after another (--i set in script.js); `translate` keeps hover transforms free. */
.js .reveal.in .stg { animation: rise .7s calc(var(--i) * 80ms) cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 1023px) {
  .hero, .split { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .trio, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { margin: 8px 12px 0; top: 8px; border-radius: 22px; position: sticky; }
  #menu { display: block; }
  nav#nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1.2rem 1.2rem; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 22px; box-shadow: var(--shadow); font-size: 16px; }
  nav#nav.open { display: flex; }
  nav#nav a:not(.btn) { padding: .6rem 0; }
  nav#nav .btn { text-align: center; margin-top: .4rem; }
  .industries, .steps { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .rfilter { width: 100%; }
  .rfilter button { flex: 1; padding: .55rem .6rem; }
  .contact-item { padding: 1.1rem 1.2rem; gap: 1rem; }
  .contact-item svg { width: 42px; height: 42px; padding: 9px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .chart .line { stroke-dashoffset: 0; }
  .chart .area, .chart .line2 { opacity: 1; }
}
/* Very small phones (e.g. iPhone SE, 320px): tighten the hero dashboard so its three KPI boxes fit. */
@media (max-width: 380px) {
  .mock { padding: .9rem; }
  .kpis { gap: .4rem; }
  .kpis div { padding: .55rem .6rem; }
  .kpis small { font-size: 10px; }
  .kpis b { font-size: 1rem; }
}
