/* Demand-Empire UAE: Qube Mark's style language (heavy grotesque, serif reading text,
   lifted cards, 3D depth) in the Demand-Empire logo colours. */
:root {
  --ink: #0A1466;
  --blue: #0059F0;
  --blue-dark: #0046C2;
  --royal: #002DB7;
  --cyan: #03CBFE;
  --sky: #4DB8FF;
  --mist: #EEF4FB;
  --deep: #070F4E;
  --text: #2B3566;
  --muted: #5E6890;
  --line: rgba(10, 20, 102, .10);

  --f-ui: "Bricolage Grotesque", system-ui, sans-serif;
  --f-read: "Newsreader", Georgia, serif;

  --sh-card: 0 24px 50px -24px rgba(10, 20, 102, .32);
  --sh-lift: 0 40px 80px -36px rgba(10, 20, 102, .5);

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p, dl, dd { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* type */
.h2 { font: 800 clamp(34px, 4.4vw, 56px)/1.02 var(--f-ui); letter-spacing: -.035em; }
.read { font-family: var(--f-read); font-size: 20px; line-height: 1.6; color: rgba(10, 20, 102, .78); }
.kicker { font-weight: 600; font-size: 16px; color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.text-link svg { transition: translate .2s; }
.text-link:hover { color: var(--blue); }
.text-link:hover svg { translate: 4px 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px;
  font: 700 16px/1 var(--f-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, translate .2s;
}
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px -14px rgba(0, 89, 240, .7); }
.btn-primary:hover { background: var(--blue-dark); translate: 0 -1px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: rgba(10, 20, 102, .18); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--mist); translate: 0 -1px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(10, 20, 102, .10); }
.header-in { display: flex; align-items: center; gap: 48px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img:first-child { height: 38px; width: auto; }
.brand-word { height: 14px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { position: relative; padding: 8px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { margin-left: auto; }
.nav-cta-mobile, .nav-toggle { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(48% 60% at 78% 45%, rgba(3, 203, 254, .16), transparent 70%),
  radial-gradient(40% 50% at 92% 10%, rgba(0, 89, 240, .12), transparent 70%),
  linear-gradient(180deg, #F6F9FE, #fff 80%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.hero h1 { margin-top: 18px; font: 800 clamp(44px, 5.6vw, 80px)/.98 var(--f-ui); letter-spacing: -.045em; }
.hero .lead { margin-top: 28px; max-width: 34em; font-family: var(--f-read); font-size: 21px; line-height: 1.6; color: rgba(10, 20, 102, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.popular { margin-top: 28px; max-width: 36em; font-size: 15px; line-height: 1.7; color: var(--muted); }
.popular a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(10, 20, 102, .3); }
.popular a:hover { color: var(--blue); }

.hero-stage { position: relative; height: clamp(420px, 44vw, 600px); }
#orbit, #globe { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#orbit.is-dragging, #globe.is-dragging { cursor: grabbing; }
.stage-hint { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; font-size: 13px; color: var(--muted); pointer-events: none; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: var(--sh-card);
  pointer-events: none; animation: float 6s ease-in-out infinite;
}
.chip strong { display: block; font-size: 15px; line-height: 1.2; color: var(--ink); }
.chip small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.chip-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 20px; }
.chip-a { top: 12%; left: -2%; }
.chip-b { top: 62%; right: -2%; animation-delay: -2s; }
.chip-c { bottom: 12%; left: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }

/* sections */
.section { padding: var(--section) 0; overflow-x: clip; } /* 3D layers may poke past the edge */
.mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 48px; margin-bottom: 56px; }
.section-head .text-link { margin-top: 18px; }
.intro { margin-top: 22px; max-width: 32em; }

/* 3D tilt: site.js sets --rx/--ry from the pointer; [data-depth] children float above */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}
.tilt.is-tilting { transition-duration: .1s; }
.tilt [data-depth] { transform: translateZ(34px); }

/* stages: a sequence, so numbered */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.steps { margin: 40px 0 0; padding: 0; list-style: none; }
.step { display: flex; gap: 20px; padding: 20px 22px; border-radius: 20px; cursor: default; transition: background-color .3s, box-shadow .3s; }
.step + .step { margin-top: 6px; }
.step-n { font: 800 15px/28px var(--f-ui); color: var(--muted); transition: color .3s; }
.step h3 { font: 800 24px/28px var(--f-ui); letter-spacing: -.02em; }
.step p { max-height: 0; overflow: hidden; opacity: 0; font-family: var(--f-read); font-size: 18px; line-height: 1.55; color: rgba(10, 20, 102, .75); transition: max-height .45s ease, opacity .3s, margin .3s; }
.step.is-active { background: #fff; box-shadow: var(--sh-card); }
.step.is-active .step-n { color: var(--blue); }
.step.is-active p { max-height: 140px; margin-top: 8px; opacity: 1; }

/* --p (0..1, set by site.js as the stack scrolls through the screen) turns the stack and opens the plates apart */
.stack { --spread: clamp(.15, calc((var(--p, .55) - .1) * 1.9), 1); position: relative; height: 520px; perspective: 1600px; }
.stack-in {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(66deg - var(--p, .55) * 16deg)) rotateZ(calc(-56deg + var(--p, .55) * 30deg)) translateZ(-60px);
  transition: transform .25s ease-out;
}
.plate {
  --size: calc(340px - var(--i) * 56px);
  position: absolute; left: 50%; top: 50%; width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  display: flex; align-items: flex-end; padding: 22px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(214, 228, 252, .85));
  border: 1px solid rgba(0, 89, 240, .16); border-radius: 30px;
  box-shadow: 0 30px 50px -30px rgba(10, 20, 102, .45), inset 0 1px 0 #fff;
  transform: translateZ(calc(var(--i) * (18px + var(--spread) * 62px)));
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), background .4s, box-shadow .4s;
}
.plate span { white-space: nowrap; font: 800 26px/1 var(--f-ui); letter-spacing: -.03em; color: var(--ink); transition: color .4s; }
.plate.is-active { transform: translateZ(calc(var(--i) * (18px + var(--spread) * 62px) + 46px)); background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 50px 70px -30px rgba(0, 89, 240, .6); }
.plate.is-active span { color: #fff; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  display: flex; flex-direction: column; min-height: 280px; padding: 28px 26px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  color: inherit; text-decoration: none;
}
.svc-card:hover { box-shadow: var(--sh-lift); }
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 26px; box-shadow: 0 14px 24px -12px rgba(0, 89, 240, .7); }
.svc-card h3 { margin-top: 26px; font: 800 21px/1.2 var(--f-ui); letter-spacing: -.02em; }
.svc-card p { margin-top: 10px; font-family: var(--f-read); font-size: 17px; line-height: 1.5; color: rgba(10, 20, 102, .72); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 15px; color: var(--blue); }
.more svg { transition: translate .2s; }
.svc-card:hover .more svg { translate: 4px 0; }
.svc-card--cta { justify-content: flex-end; background: radial-gradient(120% 90% at 100% 0%, rgba(3, 203, 254, .35), transparent 60%), linear-gradient(160deg, var(--royal), var(--ink)); border: 0; color: #fff; }
.svc-card--cta h3 { margin-top: 0; font-size: 26px; color: #fff; }
.svc-card--cta p { color: rgba(255, 255, 255, .8); }
.svc-card--cta .btn { align-self: flex-start; margin-top: 22px; }

/* regions (dark) */
.dark { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 75% 50%, rgba(0, 89, 240, .35), transparent 70%), var(--deep); color: #fff; }
.dark .h2 { color: #fff; }
.dark .read { color: rgba(255, 255, 255, .78); }
.reg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.regions { margin: 40px 0 0; padding: 0; list-style: none; }
.regions li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.regions li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.r-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(3, 203, 254, .18); flex: none; }
.regions strong { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.3; }
.regions em { padding: 4px 10px; border-radius: 999px; background: rgba(3, 203, 254, .16); font: 600 12px/1.2 var(--f-ui); font-style: normal; color: var(--cyan); }
.regions span { display: block; color: rgba(255, 255, 255, .65); font-size: 15px; }
.globe-wrap { position: relative; aspect-ratio: 1; max-height: 620px; }
.dark .stage-hint { color: rgba(255, 255, 255, .55); }

/* why us + numbers */
.why-h { max-width: 15em; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.reason { padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-card); }
.reason h3 { margin-top: 26px; font: 800 26px/1.15 var(--f-ui); letter-spacing: -.025em; }
.reason p { margin-top: 12px; font-family: var(--f-read); font-size: 18px; line-height: 1.55; color: rgba(10, 20, 102, .75); }
.numbers { margin-top: 32px; padding: 34px 34px 30px; background: var(--mist); border-radius: 24px; }
.numbers-h { font-weight: 600; color: var(--muted); }
.numbers dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.numbers dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-right: 20px; }
.numbers dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers dd { font: 800 clamp(40px, 4.6vw, 60px)/1 var(--f-ui); letter-spacing: -.04em; color: var(--ink); }
.numbers dt { color: var(--muted); font-size: 15px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post a { display: block; color: inherit; text-decoration: none; }
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; padding: 24px;
  border-radius: 20px; overflow: hidden; color: #fff; box-shadow: var(--sh-card);
  background: radial-gradient(90% 90% at 100% 100%, var(--b), transparent 60%), linear-gradient(140deg, var(--a), var(--ink));
}
.cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px); pointer-events: none; }
.cover svg { width: 64px; height: 64px; stroke-width: 1.4; opacity: .95; }
.cover span { font-weight: 700; font-size: 15px; }
.post a:hover .cover { box-shadow: var(--sh-lift); }
.post-meta { margin-top: 22px; font-size: 14px; color: var(--muted); }
.post h3 { margin-top: 6px; font: 800 24px/1.2 var(--f-ui); letter-spacing: -.02em; transition: color .2s; }
.post a:hover h3 { color: var(--blue); }
.excerpt { margin-top: 10px; font-family: var(--f-read); font-size: 17px; line-height: 1.55; color: rgba(10, 20, 102, .72); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 64px; }
.faq-side { position: sticky; top: 120px; }
.faq-side .read { margin-top: 20px; }
.faq-side .btn { margin-top: 28px; }
.faq-side .text-link { display: flex; margin-top: 20px; width: max-content; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s, border-color .3s; }
.faq-list details[open] { border-color: transparent; box-shadow: var(--sh-card); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; list-style: none; cursor: pointer; font: 700 19px/1.35 var(--f-ui); color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--mist) no-repeat center / 14px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230A1466' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 1v12M1 7h12'/%3E%3C/svg%3E");
  transition: transform .25s, background-color .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: #DCE8FB; }
.faq-list details p { padding: 0 72px 24px 24px; font-family: var(--f-read); font-size: 18px; line-height: 1.6; color: rgba(10, 20, 102, .78); }

/* closing call to action */
.cta-wrap { padding: 0 0 var(--section); }
.cta-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px;
  padding: 72px 64px; border-radius: 32px; overflow: hidden; color: #fff;
  background: radial-gradient(70% 90% at 90% 20%, rgba(3, 203, 254, .45), transparent 60%), linear-gradient(135deg, var(--blue), var(--royal) 55%, var(--ink));
}
.cta-panel h2 { font: 800 clamp(36px, 4.8vw, 62px)/1 var(--f-ui); letter-spacing: -.04em; color: #fff; }
.cta-panel .read { margin-top: 20px; max-width: 30em; color: rgba(255, 255, 255, .85); }
.cta-panel .btn { margin-top: 32px; }
.cta-art { position: relative; height: 280px; perspective: 1200px; }
/* A thick logo card: turns with scroll (--p) and bobs gently; the back layer gives it depth */
.mark-card {
  position: absolute; inset: 30px 10%; display: grid; place-items: center; transform-style: preserve-3d;
  background: rgba(255, 255, 255, .96); border-radius: 28px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55);
  transform: rotateY(calc(-44deg + var(--p, .5) * 44deg)) rotateX(calc(16deg - var(--p, .5) * 12deg));
  transition: transform .3s ease-out; animation: bob 6s ease-in-out infinite;
}
.mark-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, #B9CBF5, #4F6FD0); transform: translateZ(-18px); }
.mark-card img { width: 62%; transform: translateZ(26px); }
.mark-floor { position: absolute; left: 14%; right: 6%; bottom: -6px; height: 34px; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); filter: blur(6px); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* footer */
.site-footer { overflow: hidden; padding-top: 84px; background: var(--deep); color: rgba(255, 255, 255, .72); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 800 22px/1 var(--f-ui); letter-spacing: -.02em; }
.foot-logo img { height: 34px; width: auto; }
.foot-logo b { color: var(--cyan); font-weight: 800; }
.foot-brand p { max-width: 26em; margin-top: 20px; font-family: var(--f-read); font-size: 17px; line-height: 1.6; }
.site-footer h2 { margin-bottom: 16px; font: 700 15px/1.3 var(--f-ui); color: #fff; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer address { display: grid; gap: 10px; font-style: normal; }
.site-footer a:not(.foot-logo) { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:not(.foot-logo):hover { color: #fff; }
.giant { margin-top: 64px; font: 800 clamp(48px, 13.4vw, 196px)/.8 var(--f-ui); letter-spacing: -.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(77, 184, 255, .22), transparent 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-base { padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* cookie banner */
.cookie {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 420px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lift);
}
.cookie[hidden] { display: none; }
.cookie p { font-family: var(--f-read); font-size: 16px; line-height: 1.5; color: var(--text); }
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------------------------------------------------------------- inner pages */
.section--tight { padding-top: 56px; }
.page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero.has-aside .page-hero-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.page-hero h1 { margin-top: 14px; max-width: 16em; font: 800 clamp(40px, 5.2vw, 72px)/1 var(--f-ui); letter-spacing: -.045em; }
.page-hero .lead { margin-top: 24px; max-width: 36em; font-family: var(--f-read); font-size: 21px; line-height: 1.6; color: rgba(10, 20, 102, .8); }
.hero-art { position: relative; height: 300px; perspective: 1200px; }
.hero-art .mark-card { inset: 30px 6%; border: 1px solid var(--line); box-shadow: var(--sh-lift); }

/* about */
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.story-text p + p { margin-top: 1.1em; }
.reasons--four { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.reasons--four .reason h3 { font-size: 22px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.svc-chips a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.svc-chips a:hover { border-color: transparent; box-shadow: var(--sh-card); }
.svc-chips .ico { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; box-shadow: none; }

/* services */
.svc-nav { position: sticky; top: 80px; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 8px; margin: 0; padding: 12px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.svc-nav a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.svc-nav a:hover { background: var(--blue); color: #fff; }
.svc-details { padding-top: 24px; padding-bottom: 40px; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail--flip .svc-detail-main { order: 2; }
.svc-n { margin-top: 26px; font-weight: 700; font-size: 14px; color: var(--muted); }
.svc-detail h2 { margin-top: 6px; font: 800 clamp(30px, 3.4vw, 44px)/1.05 var(--f-ui); letter-spacing: -.035em; }
.svc-detail .read { margin-top: 18px; max-width: 34em; }
.best-for { margin-top: 18px; max-width: 34em; padding: 14px 18px; border-left: 3px solid var(--cyan); background: var(--mist); border-radius: 0 12px 12px 0; color: var(--text); }
.badge3d { width: 88px; height: 88px; perspective: 600px; }
.badge3d span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 24px; font-size: 40px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 10px 16px 0 -2px rgba(0, 45, 183, .25), 0 26px 40px -18px rgba(0, 89, 240, .7);
  transform: rotateX(14deg) rotateY(calc(-60deg + var(--p, .5) * 76deg)); transition: transform .3s ease-out; animation: bob 6s ease-in-out infinite;
}
.svc-detail-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-card); }
.svc-detail-card h3 { font: 800 20px/1.2 var(--f-ui); }
.ticks { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ticks svg { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: #DDF6FF; color: var(--blue); stroke-width: 2.6; }
.svc-detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.svc-detail-links .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } /* "Discuss Data Cleansing & Verification" must wrap on phones */

/* contact + forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-cards li { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.contact-cards .ico { width: 46px; height: 46px; border-radius: 14px; font-size: 22px; flex: none; }
.contact-cards strong { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.contact-cards a, .contact-cards span { font-weight: 700; color: var(--ink); text-decoration: none; }
.side-h { margin-top: 40px; font: 800 22px/1.2 var(--f-ui); letter-spacing: -.02em; }
.read-side .side-h { margin-top: 0; }
.read-side .ticks { margin-top: 20px; }
.read-side .small { margin-top: 24px; font-size: 17px; }
.next-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.next-steps li { position: relative; padding-left: 52px; counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); font-weight: 800; color: var(--blue); }
.next-steps strong { display: block; color: var(--ink); }
.next-steps span { display: block; font-family: var(--f-read); font-size: 17px; line-height: 1.5; color: rgba(10, 20, 102, .75); }

.form-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-lift); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: 15px; color: var(--ink); }
.field b { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid rgba(10, 20, 102, .14); border-radius: 14px;
  background: #fff; font: 400 16px/1.4 var(--f-ui); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 89, 240, .14); }
.field input::placeholder, .field textarea::placeholder { color: #8A92B2; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }
.field-grid .check { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card > .btn { margin-top: 24px; }
.form-card button[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5em; margin-top: 14px; font-weight: 600; color: var(--muted); }
.form-status.is-error, .form-error { color: var(--error, #D92D20); }
.form-done { display: grid; justify-items: start; gap: 16px; }
.form-done .ico { width: 64px; height: 64px; border-radius: 20px; font-size: 30px; }
.form-done h2 { font: 800 30px/1.1 var(--f-ui); letter-spacing: -.03em; }
.form-done:focus { outline: none; }

/* faq page */
.faq-page { display: grid; gap: 56px; max-width: 900px; }
.faq-group-h { margin-bottom: 18px; font: 800 28px/1.1 var(--f-ui); letter-spacing: -.03em; }

/* blog list */
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.cat-nav a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.cat-nav a:hover { border-color: var(--blue); color: var(--blue); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.posts--grid { margin-top: 28px; row-gap: 48px; }
.post-body { display: block; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.post--wide a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.post--wide .cover { aspect-ratio: 16 / 9; }
.post--wide h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.post--wide .excerpt { font-size: 19px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; }
.pager-n { color: var(--muted); font-weight: 600; }
.cat-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 56px; padding: 28px 32px; background: var(--mist); border-radius: 24px; }
.cat-cta .read { color: var(--ink); font-size: 22px; }

/* article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(var(--read, 0)); pointer-events: none; }
.article-head { position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.article-head-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-head h1 { margin-top: 16px; font: 800 clamp(34px, 4.4vw, 58px)/1.04 var(--f-ui); letter-spacing: -.04em; }
.article-head .lead { margin-top: 20px; max-width: 34em; font-family: var(--f-read); font-size: 21px; line-height: 1.55; color: rgba(10, 20, 102, .8); }
.article-head .post-meta { margin-top: 22px; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 110px; }
.toc-h { font-weight: 800; color: var(--ink); }
.toc ol { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc a:hover { border-left-color: var(--blue); color: var(--ink); }
.prose { max-width: 720px; font-family: var(--f-read); font-size: 20px; line-height: 1.75; color: rgba(10, 20, 102, .86); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--f-ui); color: var(--ink); line-height: 1.2; scroll-margin-top: 110px; }
.prose h2 { margin-top: 1.9em; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.prose h3 { margin-top: 1.5em; font-size: 22px; font-weight: 700; }
.prose a:not(.btn) { color: var(--blue); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--cyan); background: var(--mist); border-radius: 0 16px 16px 0; font-style: italic; }
.post-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 56px !important; padding: 26px 28px; border-radius: 24px; background: linear-gradient(135deg, var(--royal), var(--ink)); color: #fff; font-family: var(--f-ui); }
.post-cta h2 { margin: 0; font-size: 22px; color: #fff; }
.post-cta p { margin-top: 4px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.post-cta .ico { width: 52px; height: 52px; }

/* admin */
.admin { background: var(--mist); }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); }
.admin-top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.admin-top .brand { gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.admin-top .brand img { height: 30px; width: auto; }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-head h1 { font: 800 32px/1.1 var(--f-ui); letter-spacing: -.03em; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.admin-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-tabs b { margin-left: 4px; opacity: .6; }
.admin-tabs .admin-filter { margin-left: auto; background: transparent; border-style: dashed; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-card); font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: #F7FAFE; font-weight: 700; color: var(--muted); }
.admin-table tr.is-new td { font-weight: 600; }
.admin-table a { color: var(--blue); }
.admin-summary { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.admin-empty { padding: 48px; background: #fff; border-radius: 16px; text-align: center; color: var(--muted); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--new { background: #DDF6FF; color: var(--royal); }
.pill--done { background: #E8EBF3; color: var(--muted); }
.admin-meta { margin-bottom: 20px; color: var(--muted); }
.admin-fields { display: grid; gap: 0; margin: 0; background: #fff; border-radius: 16px; box-shadow: var(--sh-card); }
.admin-fields > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.admin-fields dt { color: var(--muted); font-weight: 600; }
.admin-fields dd { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.muted { color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.admin-delete { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.admin-delete .check { margin: 0; font-size: 14px; }
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.admin-login .form-card { display: grid; gap: 16px; width: min(420px, 100%); }
.admin-login h1 { font: 800 28px/1.1 var(--f-ui); }
.admin-login .btn { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 1100px) {
  .header-in { gap: 28px; }
  .site-nav { gap: 22px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --section: 88px; }
  .header-in { height: 68px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(10, 20, 102, .25);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--blue); }
  .nav-cta-mobile { display: inline-flex; margin-top: 20px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid, .how-grid, .reg-grid, .faq-grid, .section-head, .cta-panel { grid-template-columns: 1fr; }
  .hero-stage { height: 440px; margin-top: 8px; }
  .how-grid { gap: 24px; }
  .stack { height: 400px; order: -1; }
  .stack-in { scale: .78; }
  .section-head { gap: 20px; margin-bottom: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reg-grid { gap: 24px; }
  .globe-wrap { max-width: 560px; width: 100%; margin: 0 auto; }
  .reasons { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; max-width: 560px; }
  .faq-side { position: static; }
  .cta-panel { padding: 56px 32px 24px; }
  .cta-art { height: 220px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .read, .hero .lead { font-size: 18px; }
  .hero h1 { letter-spacing: -.04em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stage { height: 380px; }
  .chip { padding: 9px 12px 9px 9px; gap: 10px; border-radius: 14px; }
  .chip-ico { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
  .chip strong { font-size: 13px; }
  .chip small { font-size: 12px; }
  .chip-a { top: 4%; left: 0; }
  .chip-b { top: auto; bottom: 26%; right: 0; }
  .chip-c { bottom: 8%; left: 0; }
  .step { padding: 16px; }
  .stack { height: 330px; }
  .stack-in { scale: .62; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .numbers { padding: 26px 22px; }
  .numbers dl > div { padding-right: 8px; }
  .numbers dl > div + div { padding-left: 12px; }
  .numbers dd { font-size: 30px; }
  .numbers dt { font-size: 13px; line-height: 1.35; }
  .faq-list summary { padding: 18px; font-size: 17px; }
  .faq-list details p { padding: 0 18px 20px; font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 20px; }
}

/* inner pages: responsive */
@media (max-width: 1100px) {
  .reasons--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .page-hero { padding: 48px 0 44px; }
  .page-hero.has-aside .page-hero-in, .story-grid, .svc-detail, .contact-grid, .article-head-in, .post--wide a { grid-template-columns: minmax(0, 1fr); }
  .story-grid, .contact-grid { gap: 32px; }
  .hero-art { height: 220px; max-width: 420px; }
  .svc-nav { top: 68px; }
  .svc-detail { gap: 28px; padding: 56px 0; scroll-margin-top: 130px; }
  .svc-detail--flip .svc-detail-main { order: 0; }
  .article-head-in { gap: 32px; }
  .article-head .cover { max-width: 520px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { position: static; padding: 18px 20px; background: var(--mist); border-radius: 18px; }
  .toc a { border-left: 0; padding-left: 0; }
  .post--wide a { gap: 24px; }
}
@media (max-width: 600px) {
  .page-hero .lead, .article-head .lead { font-size: 18px; }
  .reasons--four { grid-template-columns: 1fr; }
  .svc-detail-card, .form-card { padding: 24px 20px; border-radius: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 25px; }
  .post-cta { grid-template-columns: 1fr; }
  .cat-nav ul { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .cat-nav a { white-space: nowrap; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .admin-table td { border: 0; padding: 4px 14px; }
  .admin-fields > div { grid-template-columns: 1fr; gap: 4px; }
  .admin-delete { margin-left: 0; }
}

/* ---------------------------------------------------------------- motion
   All of this needs html.motion, which the <head> script adds only when the
   visitor allows motion. site.js marks scroll targets with data-reveal and adds
   .is-in as they come into view. If site.js never runs, js-ready never appears
   and the failsafe below shows everything after a moment. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* load: headline words rise and turn into place, then the copy around them */
.split { perspective: 900px; }
.motion .split .w { display: inline-block; opacity: 0; transform-origin: 50% 100%; animation: word-in 1s var(--ease) calc(120ms + var(--w) * 55ms) forwards; }
@keyframes word-in { from { opacity: 0; transform: translateY(.6em) rotateX(-60deg); } to { opacity: 1; transform: none; } }

.motion :is(.hero .kicker, .page-hero .kicker, .crumbs, .hero .lead, .page-hero .lead, .article-head .lead, .hero-actions, .article-head .post-meta, .popular, .hero-art, .article-head .cover) { animation: rise .9s var(--ease) both; }
.motion :is(.hero .lead, .page-hero .lead, .article-head .lead) { animation-delay: .45s; }
.motion :is(.hero-actions, .article-head .post-meta) { animation-delay: .6s; }
.motion :is(.popular, .hero-art, .article-head .cover) { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }

.motion .hero-stage canvas { animation: fade-in 1.4s ease .15s both; }
.motion .chip-a { animation: chip-in .9s var(--ease) 1.1s both, float 6s ease-in-out 2s infinite; }
.motion .chip-b { animation: chip-in .9s var(--ease) 1.3s both, float 6s ease-in-out -2s infinite; }
.motion .chip-c { animation: chip-in .9s var(--ease) 1.5s both, float 6s ease-in-out -4s infinite; }
@keyframes chip-in { from { opacity: 0; scale: .6; translate: 0 24px; } }
@keyframes fade-in { from { opacity: 0; } }

/* scroll: things rise in; cards also tip forward out of the page */
.svc-grid, .reasons, .posts, .faq-list, .regions, .contact-cards, .numbers dl, .svc-chips, .svc-details { perspective: 1400px; }
.motion [data-reveal] {
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), rotate .9s var(--ease) var(--d, 0s),
    scale .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s),
    transform .45s var(--ease), box-shadow .45s ease, background-color .2s, border-color .2s;
}
.motion .tilt.is-tilting[data-reveal] { transition-duration: .1s; }
.motion [data-reveal]:not(.is-in) { opacity: 0; translate: 0 40px; }
.motion [data-reveal="card"]:not(.is-in) { translate: 0 70px; rotate: x 28deg; }
.motion [data-reveal="title"]:not(.is-in) { translate: 0 28px; filter: blur(10px); }
.motion [data-reveal="zoom"]:not(.is-in) { translate: 0 30px; scale: .88; }
.motion:not(.js-ready) [data-reveal] { animation: reveal-failsafe 0s 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; translate: none; rotate: none; scale: none; filter: none; } }

/* scroll-linked depth on cover art (--p from site.js) */
.motion .cover.tilt { transform: perspective(900px) rotateX(calc(var(--rx, 0deg) + (var(--p, .5) - .5) * -16deg)) rotateY(var(--ry, 0deg)); }

/* ---------------------------------------------------------------- photos */
.cover--photo { justify-content: flex-end; background: var(--ink); }
.cover--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.cover--photo::after { background: linear-gradient(180deg, rgba(7, 15, 78, 0) 38%, rgba(7, 15, 78, .75)); }
.post a:hover .cover--photo img { transform: scale(1.05); }
.cover-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); font-weight: 700; font-size: 13px; line-height: 1.2; }
.cover .cover-tag svg { width: 16px; height: 16px; stroke-width: 2; opacity: 1; }

.svc-photo { display: block; margin: -28px -26px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 23px 23px 0 0; background: var(--mist); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.svc-card:hover .svc-photo img { transform: scale(1.05); }
.svc-card .ico { position: relative; margin-top: -27px; border: 3px solid #fff; }
.svc-card h3 { margin-top: 18px; }

.svc-figure { position: relative; margin: 0 0 56px; }
.svc-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--sh-card); }
.svc-figure .badge3d { position: absolute; left: 28px; bottom: -40px; }

.side-photo { margin: 36px 0 0; }
.side-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--sh-card); }
.side-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.wide-photo { margin: 48px 0 0; }
.wide-photo img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 28px; box-shadow: var(--sh-card); }
.hero-photo { margin: 0; perspective: 1200px; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--sh-lift); transform: rotateY(calc(-16deg + var(--p, .5) * 12deg)) rotateX(4deg); transition: transform .3s ease-out; }
@media (max-width: 960px) {
  .hero-photo { max-width: 520px; }
  .wide-photo img { aspect-ratio: 16 / 10; }
}
