:root {
  --indigo: #1A1150;
  --indigo-deep: #120B3B;
  --magenta: #E01E84;
  --magenta-dark: #B8146A;
  --violet: #7C3AED;
  --mist: #F6F3FC;
  --ink: #1E1A3A;
  --muted: #5B5677;
  --line: #E3DDF2;
  --white: #FFFFFF;
  /* SF Pro on Apple devices (the reference site's face; its licence rules out serving the files), Inter elsewhere */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--body); text-decoration: none; color: var(--white);
  background: linear-gradient(100deg, var(--magenta), var(--violet));
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.08); filter: none; }
.btn-small { padding: 10px 18px; font-size: .95rem; }

/* Header */
/* No header bar: the logo and glass buttons float over the page (every page opens with a dark hero that
   starts under them, hence the negative margin). Buttons stay dark glass so they read on light sections too. */
.site-header { position: sticky; top: 0; z-index: 50; height: 72px; margin-bottom: -72px; padding-top: 8px; }
/* One wide glass bar: logo left, plain links centred, "Talk to us" right. Tinted dark so the white links still read
   over light sections. The glass sits on ::before because a backdrop-filter on the bar itself would stop the
   Services panel inside it from blurring the page underneath. */
.site-header .header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 56px; width: calc(100% - 24px); max-width: calc(var(--wrap) - 24px); margin: 0 auto; padding: 0 7px 0 18px;
}
.header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 999px;
  background: rgba(18,12,52,.74); border: 1px solid rgba(255,255,255,.1); /* was .55: white links failed contrast over light sections */
  box-shadow: inset 0 0 40px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(5,2,25,.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header .brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 700 1rem var(--display); color: var(--indigo); }
.brand-text small { font-size: .78rem; letter-spacing: .18em; color: var(--muted); }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 30px; padding-right: 45px; } /* padding offsets the logo so the links sit at the bar's true centre */
.site-nav > a:not(.btn), .dropdown-toggle {
  font: 500 .95rem var(--body); color: rgba(255,255,255,.9); text-decoration: none; cursor: pointer;
  background: none; border: 0; padding: 8px 0; transition: color .2s ease;
}
.site-nav > a:not(.btn):hover, .dropdown-toggle:hover, .dropdown.open .dropdown-toggle { color: #fff; }
.menu-toggle { font: 600 .95rem var(--body); color: #fff; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); cursor: pointer; }
/* "Talk to us": glass pill with a white arrow circle that turns on hover */
.site-nav .btn-small {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 5px 5px 5px 18px; font: 500 .95rem var(--body); color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 20px rgba(255,255,255,.04);
  transition: background-color .2s ease, border-color .2s ease;
}
.site-nav .btn-small::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23120B3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6.5 5H11v4.5'/%3E%3C/svg%3E") center / 15px no-repeat; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.site-nav .btn-small:hover { filter: none; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.22); }
.site-nav .btn-small:hover::after { transform: rotate(45deg); }
.dropdown { position: relative; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: 8px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.dropdown.open .dropdown-toggle::after { transform: translateY(1px) rotate(225deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 290px; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(26,17,80,.14);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  position: relative; display: block; padding: 9px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease, padding-left .25s cubic-bezier(.2,.7,.2,1);
}
.dropdown-menu a::before { /* accent bar that grows on hover */
  content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 0; border-radius: 2px; transform: translateY(-50%);
  background: linear-gradient(var(--magenta), var(--violet)); transition: height .25s cubic-bezier(.2,.7,.2,1);
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: #EEE8FB; color: var(--indigo); padding-left: 22px; }
.dropdown-menu a:hover::before, .dropdown-menu a:focus-visible::before, .dropdown-menu a[aria-current="page"]::before { height: 58%; }
.dropdown-menu a[aria-current="page"] { padding-left: 22px; }

/* Desktop: animate the panel open and stagger the items in (mobile keeps the simple show/hide inside the menu) */
@media (min-width: 821px) {
  .dropdown-menu {
    display: block; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(-10px) scale(.97); transform-origin: top left;
    transition: opacity .2s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
  }
  .dropdown.open .dropdown-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; }
  .dropdown.open .dropdown-menu li { animation: menu-item-in .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
}
@keyframes menu-item-in { from { opacity: 0; transform: translateX(-12px); } }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; overflow: clip; /* clip, unlike hidden, lets the home hero's stage stay sticky */ color: var(--white); background: radial-gradient(120% 90% at 75% 55%, #2A1A78 0%, var(--indigo) 45%, var(--indigo-deep) 100%); }
/* 3D globe drawn by globe.js */
/* centred in the space below the floating header; sphere is width / 1.32, so it keeps a 24px gap above and below */
.globe { position: absolute; top: calc(50% + 36px); left: 50%; width: min(1100px, 125vmin, calc((100vh - 120px) * 1.32)); width: min(1100px, 125vmin, calc((100svh - 120px) * 1.32)); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
/* Home hero: the text shows from the start while globe.js spins the globe and draws its arcs through the pinned stage.
   On phones the globe sits behind the text, so it stays blurred and dimmed there. */
.hero-scroll { padding-bottom: 120px; } /* the stage stops above this, so the bottom swoosh never crosses the text */
.hero-stage { position: relative; display: grid; align-items: center; min-height: 100vh; min-height: 100svh; }
.hero-scroll .hero-inner { width: 100%; padding-top: 104px; padding-bottom: 48px; }
.hero.hero-scroll h1 { font-size: clamp(2rem, min(5.4vw, 8vh), 4.25rem); font-size: clamp(2rem, min(5.4vw, 8svh), 4.25rem); } /* shrink on short screens so the buttons still fit */
/* Then --h (0 → 1) lifts the text away and brings the globe to the centre, and --f (0 → 1, the screen after the pin)
   flies it past the camera toward the bottom left and fades it out (see the hero → services dissolve below). */
.hero-scroll { --h: 0; --f: 0; }
.hero-scroll .globe {
  --gw: min(1100px, 125vmin, calc((100svh - 120px) * 1.32)); --gx: 0px; --fly: calc(var(--f) * var(--f) * (3 - 2 * var(--f))); width: var(--gw);
  --gone: clamp(0, calc(1 - var(--f) * 4), 1); /* gone within a quarter screen once the hero scrolls away, so its dots never sit over the services cards */
  filter: blur(calc((1 - var(--h)) * 7px)); opacity: calc((1 - (1 - var(--h)) * .5) * var(--gone));
  transform: translate(calc(-50% + var(--gx) * (1 - var(--h)) - var(--fly) * 42vw), calc(-50% + var(--fly) * 58vh))
    scale(calc(1 - (1 - var(--h)) * .08 + var(--h) * .15 + var(--fly) * 3.2)); transform: translate(calc(-50% + var(--gx) * (1 - var(--h)) - var(--fly) * 42vw), calc(-50% + var(--fly) * 58svh))
    scale(calc(1 - (1 - var(--h)) * .08 + var(--h) * .15 + var(--fly) * 3.2));
}
/* Desktop: globe on the right, crisp beside the text, which keeps to the left */
@media (min-width: 821px) {
  .hero-scroll .globe { --gw: min(1100px, 125vmin, calc((100svh - 120px) * 1.32), 58vw); --gx: 22vw; filter: none; opacity: var(--gone);
    transform: translate(calc(-50% + var(--gx) * (1 - var(--h)) - var(--fly) * 42vw), calc(-50% + var(--fly) * 58vh))
      scale(calc(1 + var(--h) * .15 + var(--fly) * 3.2)); transform: translate(calc(-50% + var(--gx) * (1 - var(--h)) - var(--fly) * 42vw), calc(-50% + var(--fly) * 58svh))
      scale(calc(1 + var(--h) * .15 + var(--fly) * 3.2)); }
  .hero.hero-scroll h1 { max-width: min(15ch, 44vw); }
  .hero-scroll .lede { max-width: min(52ch, 40vw); }
}
.hero-scroll .hero-inner > * { --x: var(--h); opacity: calc(1 - var(--x) * 1.6); transform: translateY(calc(var(--x) * (-90px - var(--i, 0) * 20px))); }
.hero-scroll .hero-inner > :nth-child(2) { --i: 1; }
.hero-scroll .hero-inner > :nth-child(3) { --i: 2; }
.hero-scroll .hero-inner:focus-within > * { --x: 0; } /* never tab onto invisible buttons */
html.js .hero-scroll { height: 190vh; height: 190svh; } /* was 340svh: shorter pin = less scrolling for the globe intro */
html.js .hero-scroll .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
@media (prefers-reduced-motion: reduce) { html.js .hero-scroll { height: auto; } html.js .hero-scroll .hero-stage { position: relative; height: auto; } }
.hero::after { /* the card's magenta swoosh */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -150px; height: 220px; border-radius: 50%;
  border-top: 3px solid var(--magenta); box-shadow: 0 -10px 40px -8px rgba(224,30,132,.55); pointer-events: none;
}
.hero-inner { position: relative; padding: 192px 24px 170px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 5.4vw, 4.25rem); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.lede { max-width: 52ch; margin-top: 24px; font-size: 1.2rem; color: #D8D1F5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Shared section heads */
.services, .process, .why, .contact { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .why h2, .contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; color: var(--indigo); letter-spacing: -.015em; }
.section-head p { margin-top: 14px; font-size: 1.15rem; color: var(--muted); }

/* Services */
.services { position: relative; overflow: hidden; overflow: clip; color: var(--white);
  background: radial-gradient(55% 45% at 50% 100%, rgba(124,77,255,.3), transparent 70%), radial-gradient(35% 40% at 88% 8%, rgba(224,30,132,.14), transparent 70%), #0E0830; }
/* Services: a dark starry band of glass cards. main.js pins it and slides the cards sideways as you scroll;
   without that (no JS, reduced motion) the row simply scrolls or swipes sideways. */
.services::before { /* two tiles of stars at different sizes so the repeat isn't obvious */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1px 1px at 24px 36px, #fff, transparent), radial-gradient(1px 1px at 150px 96px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 268px 210px, #fff, transparent), radial-gradient(1px 1px at 330px 44px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 86px 262px, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 110px 160px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 420px 330px, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 480px 120px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 260px 380px, rgba(255,255,255,.7), transparent);
  background-size: 360px 300px, 360px 300px, 360px 300px, 360px 300px, 360px 300px, 530px 410px, 530px 410px, 530px 410px, 530px 410px;
}
.svc-defs { position: absolute; }
.svc-pin { position: relative; }
.services .section-head h2 { color: var(--white); }
.services .section-head p { color: #B9AFE6; }
.svc-track {
  list-style: none; margin: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 8px max(24px, calc((100% - var(--wrap)) / 2 + 24px)) 28px;
}
.svc-card {
  position: relative; flex: 0 0 clamp(280px, 32vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 26px 26px 24px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(62,44,150,.94), rgba(34,22,92,.94) 55%, rgba(48,28,120,.94)); /* solid tint: frosted glass lagged while the cards turn */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px rgba(5,2,25,.45);
  transition: border-color .3s ease, box-shadow .3s ease, translate .35s cubic-bezier(.2,.7,.2,1);
}
.svc-card:hover { translate: 0 -6px; }
.svc-card:hover, .svc-card:focus-within { border-color: rgba(255,139,198,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 70px rgba(124,77,255,.35); }
.svc-card:has(a:focus-visible) { outline: 2px solid #FF8BC6; outline-offset: 4px; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.svc-tag { font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: #E9E4FF; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(124,77,255,.2); }
.svc-num { font: 600 .9rem var(--display); color: rgba(233,228,255,.65); } /* was .4: too faint to read */
.svc-card h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; color: var(--white); }
.svc-card h3 a { color: inherit; text-decoration: none; outline: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.svc-card p { margin: 10px 0 24px; color: #B9AFE6; font-size: .98rem; }
.svc-visual { /* inset glass panel with a glow and faint concentric frames, like a product screen */
  margin-top: auto; height: clamp(110px, 22svh, 220px); display: grid; place-items: center; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); background: radial-gradient(60% 65% at 50% 55%, rgba(124,77,255,.38), transparent 72%), rgba(255,255,255,.03);
  box-shadow: 0 0 0 6px rgba(255,255,255,.025), 0 0 0 12px rgba(255,255,255,.014);
}
.svc-card .ill { position: static; display: block; width: auto; height: 86%; transform: none; filter: drop-shadow(0 0 12px rgba(224,30,132,.35)); }
.svc-progress { height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.svc-progress::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--violet)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.services:not(.pinned) .svc-progress { display: none; }
.services.pinned { padding: 0; }
.services.pinned .svc-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: 96px 0 20px; }
/* centre vertically only when there is room (auto margins never push the heading up under the floating header) */
.services.pinned .svc-pin > .wrap { width: 100%; }
.services.pinned .svc-pin > :first-child { margin-top: auto; }
.services.pinned .svc-pin > :last-child { margin-bottom: auto; }
.services.pinned .section-head { max-width: none; margin-bottom: 24px; }

/* Process */
.process { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.2rem var(--display); color: var(--white);
  background: linear-gradient(135deg, var(--magenta), var(--violet));
}
/* Connector = 12px strip with two layers: a travelling data packet (parked off-strip at -24px) and a 2px line that runs right up to the next number */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: 56px; right: -32px; height: 12px;
  background:
    radial-gradient(circle, #fff 0 2px, var(--magenta) 3px 4px, rgba(224,30,132,.3) 5px, transparent 6px) -24px 50% / 12px 12px no-repeat,
    linear-gradient(90deg, #E5A3D0, #B89BF4) 0 50% / var(--grow, 100%) 2px no-repeat;
}
.steps h3 { font-size: 1.3rem; font-weight: 600; color: var(--indigo); margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Why */
.why-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.why h2 { max-width: 12ch; }
.reasons { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.reasons dt { font: 600 1.15rem var(--display); color: var(--indigo); margin-bottom: 8px; }
.reasons dd { margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--indigo); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-info > p { margin-top: 14px; font-size: 1.15rem; color: #D8D1F5; max-width: 40ch; }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.contact-lines span { color: #A99DE0; font-size: .95rem; }
.contact-lines a { text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.contact-lines a:hover { color: #FF8BC6; text-decoration: underline; }

.contact-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 36px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.field [aria-invalid="true"] { border-color: #C81E4A; }
.form-error { color: #B3123E; font-weight: 500; }
.contact-form .btn { justify-self: start; }
.form-success { color: #0F7A4A; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; }

/* About page */
.site-nav > a[aria-current="page"] { color: #fff; text-decoration: underline 2px rgba(255,139,198,.85); text-underline-offset: 7px; }
.page-hero .hero-inner { padding: 176px 24px 150px; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.about-story { padding: 104px 0; }

/* Service pages */

.dropdown-menu a[aria-current="page"] { background: #EEE8FB; color: var(--magenta-dark); }
/* Desktop Services panel: dark frosted glass, whatever is behind it shows through blurred (the mobile menu keeps its plain list) */
@media (min-width: 821px) {
  .dropdown-menu {
    background: linear-gradient(160deg, rgba(42,26,120,.62), rgba(18,11,58,.74));
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(10,6,40,.35), inset 0 1px 0 rgba(255,255,255,.14);
    /* taller than short screens: scroll inside the panel, without scrolling the page once it hits the end */
    max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent;
  }
}
.dropdown-menu a { color: #E9E4FF; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.dropdown-menu a[aria-current="page"] { background: rgba(255,255,255,.14); color: #FF9BD0; }

/* Service hero illustrations */
.ill {
  position: absolute; top: calc(50% + 12px); right: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  width: min(400px, 32vw); height: auto; transform: translateY(-50%);
  filter: drop-shadow(0 0 14px rgba(224,30,132,.35));
}
.ill * { transform-box: fill-box; transform-origin: center; }
.ill .s { fill: none; stroke: url(#ig); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ill .t { stroke-width: 3.5; }
.ill .f { stroke: rgba(170,150,255,.35); stroke-width: 2.5; }
.ill .soft { fill: rgba(140,110,255,.1); }
.ill .fill { fill: url(#ig); }
.ill .gear { stroke-width: 10; stroke-linecap: butt; }
.ill .halo { fill: none; stroke: rgba(170,150,255,.18); stroke-width: 1.5; stroke-dasharray: 2 10; }
.ill .spark { fill: #FF8BC6; }
.page-hero:has(.ill) .lede, .page-hero:has(.ill) h1 { max-width: min(20ch, 52%); }
.page-hero:has(.ill) .lede { max-width: min(46ch, 52%); }

.ill .float { animation: ill-float 5s ease-in-out infinite; }
.ill .pulse { animation: ill-pulse 1.6s ease-in-out infinite; }
.ill .spin { animation: ill-spin 14s linear infinite; }
.ill .spin-rev { animation: ill-spin 9s linear infinite reverse; }
.ill .spin-slow { animation: ill-spin 60s linear infinite; }
.ill .flow { stroke-dasharray: 3 13; animation: ill-flow 1s linear infinite; }
.ill .ripple { animation: ill-ripple 3s ease-out infinite; }
.ill .draw, .ill .type, .ill .tick { stroke-dasharray: 100; animation: ill-draw 4s cubic-bezier(.5,0,.3,1) infinite; }
.ill .fall { animation: ill-fall 2s ease-in infinite; }
.ill .drop { animation: ill-drop 2s ease-in infinite .8s; }
.ill .bar { transform-origin: 50% 100%; animation: ill-bar 3s ease-in-out infinite; }
.ill .slide { animation: ill-slide 2.4s ease-in-out infinite; }
.ill .pop { animation: ill-pop 3s ease-in-out infinite; }
@keyframes ill-float { 50% { transform: translateY(-10px); } }
@keyframes ill-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes ill-spin { to { transform: rotate(360deg); } }
@keyframes ill-flow { to { stroke-dashoffset: -32; } }
@keyframes ill-ripple { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes ill-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ill-fall { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(130px) scale(.6); opacity: 0; } }
@keyframes ill-drop { 0%, 30% { transform: translateY(-20px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes ill-bar { 0%, 100% { transform: scaleY(.82); } 50% { transform: scaleY(1); } }
@keyframes ill-slide { 0% { transform: translateX(40px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateX(-30px); opacity: 0; } }
@keyframes ill-pop { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.06); } }
@media (max-width: 900px) { .ill { display: none; } .page-hero:has(.ill) h1, .page-hero:has(.ill) .lede { max-width: none; } }

/* Privacy page */
.policy { padding: 88px 0 104px; }
.policy-text { max-width: 68ch; }
.policy-date { color: var(--muted); font-size: .95rem; }
.policy-text h2 { font-size: 1.4rem; font-weight: 600; color: var(--indigo); margin: 44px 0 12px; }
.policy-text p, .policy-text ul { margin: 0 0 14px; }
.policy-text ul { padding-left: 1.2em; }
.policy-text li { margin-bottom: 8px; }
.policy-text a { color: var(--magenta-dark); }
.form-note { font-size: .9rem; color: var(--muted); }
.form-note a { color: var(--magenta-dark); }

/* WhatsApp button */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366; box-shadow: 0 8px 24px rgba(18,11,59,.3);
}
.whatsapp:hover { background: #1EBE5B; }

/* Footer */
/* Footer: a call-to-action over a living ribbon of light in the logo's colours (drawn by main.js on .ft-ribbon,
   with a fine grain on top), then a frosted glass panel the ribbon flows on behind, blurred. */
.site-footer { position: relative; overflow: hidden; background: #07041C; color: #B9AFE6; font-size: .95rem; }
.site-footer::before { /* film grain over the ribbon */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ft-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ft-cta, .ft-glass { position: relative; z-index: 2; }
.site-footer .ft-cta { padding-block: 120px 132px; } /* .site-footer prefix: outranks the phone .wrap padding reset */
.ft-eyebrow { font-size: .9rem; color: #B9AFE6; }
.ft-title { margin-top: 10px; font: 400 clamp(2.4rem, 5vw, 4rem)/1.05 var(--display); letter-spacing: -.035em; color: var(--white); max-width: 14ch; text-wrap: balance; }
.ft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
.ft-btn { display: inline-flex; padding: 11px 18px; border-radius: 10px; font-weight: 500; color: var(--white); text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: background-color .2s ease, border-color .2s ease; }
.ft-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.ft-mail { color: #D8D1F5; text-decoration: none; overflow-wrap: anywhere; }
.ft-mail:hover { color: var(--white); text-decoration: underline; }
.ft-glass { background: rgba(9,5,30,.86); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .ft-main { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 44px; }
.ft-brand { display: grid; gap: 16px; align-content: start; }
.ft-brand p { max-width: 40ch; }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text small { color: #9D92D4; }
.ft-col { display: grid; gap: 10px; align-content: start; }
.ft-head { color: #8F84C9; font-size: .85rem; margin-bottom: 4px; }
.ft-col a { color: #E9E4FF; text-decoration: none; width: fit-content; }
.ft-col a:hover, .ft-bottom a:hover { color: var(--white); text-decoration: underline; }
.site-footer .ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding-block: 22px 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.ft-bottom a { color: #D8D1F5; text-decoration: none; }
.ft-bottom a[aria-current="page"] { color: var(--white); }
@media (max-width: 860px) { .site-footer .ft-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-brand { grid-column: 1 / -1; } .site-footer .ft-cta { padding-block: 96px 104px; } }

/* Responsive */
@media (max-width: 960px) {
  .why-inner, .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner { gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding: 0 0 0 72px; min-height: 48px; }
  .steps li:not(:last-child)::after {
    top: 56px; left: 18px; right: auto; width: 12px; height: calc(100% - 32px);
    background-image: radial-gradient(circle, #fff 0 2px, var(--magenta) 3px 4px, rgba(224,30,132,.3) 5px, transparent 6px), linear-gradient(#E5A3D0, #B89BF4);
    background-position: 50% -24px, 50% 0; background-size: 12px 12px, 2px var(--grow, 100%);
  }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    justify-content: flex-start; padding: 8px 18px 20px; max-height: calc(100vh - 84px); overflow-y: auto;
    background: linear-gradient(160deg, rgba(42,26,120,.62), rgba(18,11,58,.74));
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(10,6,40,.35);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn), .dropdown-toggle { padding: 14px 0; width: 100%; text-align: left; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav > a[aria-current="page"] { color: #FF9BD0; text-decoration: none; }
  .site-nav .btn-small { position: static; transform: none; margin-top: 16px; justify-content: space-between; }
  .dropdown-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px 8px; background: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-inner { padding: 144px 16px 130px; }
  .reasons { grid-template-columns: 1fr; gap: 24px; }
  .svc-card { flex-basis: 82vw; }
  .services, .process, .why, .contact, .about-story { padding: 72px 0; }
  .page-hero .hero-inner { padding: 144px 16px 120px; }
  .contact-form { padding: 24px 20px; }
  .policy { padding: 64px 0 88px; }
  .whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .site-footer .ft-bottom { padding-bottom: 88px; } /* keep footer links clear of the WhatsApp button */
  .brand-text small { display: none; }
}
/* Home page intro (about 2s, CSS only so it can never get stuck): a gradient ring traces the logo's circle, the circle
   fills, the white "A" draws itself, then (.fly, set by main.js with the measured --dx/--dy/--s) the logo flies into
   the menu bar's logo spot while the dark screen fades, and the real logo takes over where it lands. Without main.js
   the logo zooms toward the viewer and dissolves instead. The faded overlay stays in the page, as the header intro keys off it. */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none;
  animation: loader-out .55s cubic-bezier(.6,0,.4,1) 1.55s forwards;
}
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, #2A1A78 0%, var(--indigo) 45%, var(--indigo-deep) 100%); }
.loader-logo { position: relative; width: 112px; height: 112px; overflow: visible; animation: loader-zoom .75s cubic-bezier(.7,0,.3,1) 1.45s forwards; }
.loader.fly { animation: loader-out .15s linear 2.2s forwards; }
.loader.fly::before { animation: loader-fade .6s cubic-bezier(.6,0,.4,1) 1.55s forwards; }
.loader.fly .loader-logo { animation: loader-fly .75s cubic-bezier(.65,0,.25,1) 1.45s forwards; }
@keyframes loader-fly {
  0% { transform: none; filter: drop-shadow(0 0 0 rgba(240,38,111,0)); }
  16% { transform: scale(.9); filter: drop-shadow(0 0 26px rgba(240,38,111,.7)); }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)); filter: drop-shadow(0 0 0 rgba(240,38,111,0)); }
}
.loader-logo * { transform-box: fill-box; transform-origin: center; }
.loader-ring { fill: none; stroke: url(#lg); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); animation: loader-trace .7s cubic-bezier(.6,0,.3,1) .1s forwards, loader-fade .3s ease .85s forwards; }
.loader-fill { fill: url(#lg); transform: scale(0); animation: loader-fill .5s cubic-bezier(.3,1.5,.5,1) .6s forwards; }
.loader-a { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: loader-trace .5s cubic-bezier(.6,0,.3,1) .9s forwards; }
@keyframes loader-trace { to { stroke-dashoffset: 0; } }
@keyframes loader-fade { to { opacity: 0; } }
@keyframes loader-fill { to { transform: scale(1); } }
@keyframes loader-zoom {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(240,38,111,0)); }
  18% { transform: scale(.92); filter: drop-shadow(0 0 28px rgba(240,38,111,.7)); }
  100% { transform: scale(14); opacity: 0; filter: drop-shadow(0 0 28px rgba(240,38,111,0)); }
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
/* the page arrives as the logo flies past: hero eases in from slightly small. The menu bar arrives like a Dynamic
   Island: a small glowing pill pops in at the top centre just as the logo lands in it (main.js sets --lx, the shift
   from the logo's corner spot to the centre), then stretches sideways into the full bar, the logo riding its left
   edge (same timing and curve, so they stay locked), and the links fade in one by one as the glow settles.
   All fills are "backwards", so nothing lingers afterwards (the dropdown and hover states work as normal). */
.loader ~ main .hero-stage { animation: page-in .9s cubic-bezier(.2,.7,.2,1) 1.6s both; }
.loader ~ .site-header .brand img { animation: logo-show 0s 2.2s both; } /* the real logo appears the moment the flying one lands */
.loader ~ .site-header .header-inner::before {
  animation: island-pop .4s cubic-bezier(.3,1.5,.5,1) 2.05s backwards, island-grow .85s cubic-bezier(.7,0,.25,1.08) 2.45s backwards,
    island-glow 2s ease-in 2.05s backwards;
}
.loader ~ .site-header .brand { animation: logo-ride .85s cubic-bezier(.7,0,.25,1.08) 2.45s backwards; }
.loader ~ .site-header .site-nav > *, .loader ~ .site-header .menu-toggle { animation: nav-in .5s cubic-bezier(.2,.7,.2,1) calc(2.95s + var(--n, 0) * 70ms) backwards; }
.loader ~ .site-header .site-nav > :nth-child(2) { --n: 1; }
.loader ~ .site-header .site-nav > :nth-child(3) { --n: 2; }
.loader ~ .site-header .site-nav > :nth-child(4) { --n: 3; }
.loader ~ .site-header .site-nav > :nth-child(5) { --n: 4; }
.loader ~ .site-header .site-nav > :nth-child(6) { --n: 5; }
@keyframes page-in { from { transform: scale(.94); opacity: 0; } }
@keyframes logo-show { from { opacity: 0; } }
@keyframes island-pop { from { opacity: 0; scale: .4; } }
/* 35px either side of centre = a 70px pill with the logo exactly in its middle (logo centre is 35px in from the bar's left) */
@keyframes island-grow { from { left: calc(50% - 35px); right: calc(50% - 35px); } }
@keyframes logo-ride { from { translate: var(--lx, 0px) 0; } }
@keyframes nav-in { from { opacity: 0; translate: 0 -6px; filter: blur(6px); } }
@keyframes island-glow {
  0%, 60% {
    border-color: rgba(255,139,198,.8);
    box-shadow: inset 0 0 40px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px 2px rgba(224,30,132,.65), 0 0 70px 12px rgba(124,58,237,.4);
  }
  100% {
    border-color: rgba(255,255,255,.1);
    box-shadow: inset 0 0 40px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(5,2,25,.22), 0 0 0 0 rgba(124,58,237,0);
  }
}

/* Service cards rise in one after another as the band scrolls into view (and again each time you come back),
   blurred to sharp, their contents a beat behind. Uses the separate `translate` property and ends on --o so it
   combines with the sideways tilt and fade main.js writes into `transform`/`opacity` on every scroll.
   main.js toggles .in on the pinned panel when the cards come into view (pinned mode only, so never with reduced motion). */
.services.pinned .svc-pin:not(.in) .svc-card { opacity: 0 !important; translate: 0 90px; transition: none; }
html.js .svc-pin.in .svc-card { animation: card-rise .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms) backwards; }
html.js .svc-pin.in .svc-card > * { animation: card-content .7s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms + 180ms) backwards; }
html.js .svc-pin.in .svc-card > .svc-visual { animation-name: card-visual; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes card-rise { from { opacity: 0; translate: 0 90px; filter: blur(10px); } to { opacity: var(--o, 1); } }
@keyframes card-content { from { opacity: 0; translate: 0 18px; } }
@keyframes card-visual { from { opacity: 0; scale: .9; } }

/* Motion: hero entrance, scroll reveal */
.hero-inner > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
/* Hero replays: main.js drops .in once the hero is fully off screen; removing the animation resets it (screen only, so print stays visible) */
@media screen { html.js .page-hero:not(.in) .hero-inner > * { animation: none; } html.js .page-hero:not(.in) .hero-inner > * { opacity: 0; } }
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }
/* Reset off screen instantly (only the reveal animates), so a quick scroll back replays from the start */
html.js .reveal:not(.in), html.js .steps.reveal:not(.in) li::before, html.js .steps.reveal:not(.in) li > *, html.js .steps.reveal:not(.in) li::after { transition: none; }
/* "How we work" as a network: node 1 spins in, its text rises, then a data packet leads the line across
   and node 2 lights up the moment it lands (1.2s per step). Afterwards packets keep flowing 1 → 2 → 3 on a 3.6s loop. */
.steps li { --s: 0; }
.steps li:nth-child(2) { --s: 1; }
.steps li:nth-child(3) { --s: 2; }
html.js .steps.reveal { opacity: 1; transform: none; transition: none; }
html.js .steps.reveal li::before { transform: scale(0) rotate(-180deg); opacity: 0; transition: transform .6s cubic-bezier(.3,1.5,.5,1), opacity .3s ease; transition-delay: calc(var(--s) * 1.2s); }
html.js .steps.reveal li > * { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .5s ease, transform .5s ease, filter .5s ease; transition-delay: calc(var(--s) * 1.2s + .2s); }
html.js .steps.reveal li > p { transition-delay: calc(var(--s) * 1.2s + .35s); }
html.js .steps.reveal li::after { --grow: 0%; transition: background-size .8s ease-in-out calc(var(--s) * 1.2s + .4s); }
html.js .steps.in li::before { transform: none; opacity: 1; animation: node-ping 3.6s ease-out calc(var(--s) * 1.2s) infinite; }
html.js .steps.in li > * { opacity: 1; transform: none; filter: none; }
html.js .steps.in li::after { --grow: 100%; animation: packet 3.6s ease-in-out calc(var(--s) * 1.2s + .4s) infinite; }
@media (max-width: 960px) { html.js .steps.in li::after { animation-name: packet-down; } }
/* packet travels in the first .8s (22.2% of 3.6s), in step with the line drawing, then parks off-strip */
@keyframes packet { 0% { background-position: 0 50%, 0 50%; } 22.2% { background-position: 100% 50%, 0 50%; } 22.3%, 100% { background-position: -24px 50%, 0 50%; } }
@keyframes packet-down { 0% { background-position: 50% 0, 50% 0; } 22.2% { background-position: 50% 100%, 50% 0; } 22.3%, 100% { background-position: 50% -24px, 50% 0; } }
@keyframes node-ping {
  0% { box-shadow: 0 0 0 0 rgba(224,30,132,.55), 0 0 0 0 rgba(155,107,255,.35); }
  30%, 100% { box-shadow: 0 0 0 16px rgba(224,30,132,0), 0 0 0 30px rgba(155,107,255,0); }
}

@media print { html.js .reveal { opacity: 1; transform: none; } }
@media print { html.js .steps.reveal li::before, html.js .steps.reveal li > *, html.js .steps.reveal li::after { --grow: 100%; opacity: 1; transform: none; filter: none; animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .loader ~ main .hero-stage, .loader ~ .site-header .brand img, .loader ~ .site-header .brand, .loader ~ .site-header .header-inner::before,
  .loader ~ .site-header .site-nav > *, .loader ~ .site-header .menu-toggle { animation: none; }
  html { scroll-behavior: auto; }
  .hero-inner > * { animation: none; }
  .dropdown-menu, .dropdown-menu a, .dropdown-menu a::before, .dropdown-toggle::after { transition: none !important; }
  .dropdown.open .dropdown-menu li { animation: none !important; }
  .ill * { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .steps.reveal li::before, html.js .steps.reveal li > *, html.js .steps.reveal li::after { --grow: 100%; opacity: 1; transform: none; filter: none; transition: none; animation: none; }
}

/* Home "Why Alpteq" as a pinned stage: the backdrop and big title hold still while the reason cards scroll up over
   them as frosted glass, then Contact slides over the whole thing. The backdrop is a sticky ::before because a
   sticky pseudo-element needs no extra markup and, unlike background-attachment: fixed, works on iOS. */
.why.why-stage { position: relative; padding: 0; color: var(--white); background: var(--indigo-deep); }
.why-stage::before {
  content: ""; position: sticky; top: 0; display: block; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 22%, rgba(224,30,132,.55), transparent 70%),
    radial-gradient(45% 55% at 18% 80%, rgba(124,58,237,.6), transparent 70%),
    radial-gradient(120% 90% at 60% 50%, #2A1A78 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
}
.why-stage .why-inner { position: relative; grid-template-columns: 1fr 1fr; gap: 64px; }
.why-stage h2 {
  position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 72px; max-width: 10ch; /* centred in the space below the floating header */
  font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; color: var(--white);
}
.why-stage .reasons { grid-template-columns: 1fr; gap: 24px; padding: 55vh 0 25vh; padding: 55svh 0 25svh; }
.why-stage .reasons > div {
  padding: 32px; border-radius: 20px; min-height: 260px; display: flex; flex-direction: column;
  background: rgba(42,28,112,.78); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 50px rgba(5,2,25,.3);
}
.why-stage .reasons dt { color: var(--white); font-size: 1.5rem; font-weight: 500; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.2); }
.why-stage .reasons dd { color: #D8D1F5; }
/* cards enter one by one as they scroll in, so no stagger delay; a longer rise reads as sliding over the stage */
html.js .why-stage .reveal { transition-delay: 0ms; }
html.js .why-stage .reasons > .reveal:not(.in) { transform: translateY(90px); }
.contact { position: relative; } /* paints over the pinned stage as it arrives */
@media (max-width: 960px) {
  .why-stage .why-inner { grid-template-columns: 1fr; gap: 24px; }
  .why-stage h2 { height: auto; position: static; padding: 120px 0 0; max-width: none; }
  .why-stage .reasons { padding: 16px 0 96px; }
  .why-stage .reasons > div { min-height: 0; }
}

/* Home "How we work" revealed from underneath: main.js adds .lid when the section fits on screen, so it pins to the
   bottom of the viewport behind services, and services lifts off it like a lid (rounded edge + cast shadow).
   --r (0 → 1) is how much is uncovered: the content rises out of the shadow and comes into focus as it shows. */
.services { z-index: 1; }
.process.lid { position: sticky; bottom: 0; z-index: 0; }
/* Sunrise: a dome of light rises out of services' lower edge into "How we work" (the mirror of the Why horizon).
   It is drawn ON TOP of services (not cut out of it: the pinned band is its own layer and can slip past a mask):
   ::after is an ellipse in the light section's colour whose top is --L above services' bottom and whose sides meet
   the bottom at the screen edges (radii 60% × 2.236·L); services' overflow clip trims it to the cap above the edge,
   which joins the uncovered section seamlessly. Its rim glows orange-pink onto the dark side and fades with --glow.
   main.js sets --L (flattening to 0 as services lifts away) and --glow. */
.services:has(+ .process.lid)::after {
  content: ""; position: absolute; z-index: 3; left: -10%; right: -10%; top: calc(100% - var(--L, 0px)); height: calc(var(--L, 0px) * 4.472);
  border-radius: 50%; background: var(--mist); pointer-events: none;
  border-top: 2px solid rgb(255 230 204 / calc(var(--glow, 0) * 100%));
  box-shadow: 0 0 10px 2px rgb(255 138 30 / calc(var(--glow, 0) * 95%)), 0 0 36px 8px rgb(240 38 111 / calc(var(--glow, 0) * 60%)),
    0 0 90px 28px rgb(182 32 200 / calc(var(--glow, 0) * 32%));
}
.process.lid > .wrap {
  transform-origin: 50% 0;
  transform: translateY(calc((1 - var(--r, 1)) * 70px)) scale(calc(.92 + var(--r, 1) * .08));
  opacity: calc(.2 + var(--r, 1) * .8);
  filter: blur(calc((1 - var(--r, 1)) * 6px));
}

/* Home services revealed from underneath the hero, the same way: main.js adds .under, which pulls services up one
   screen behind the hero so its pinned band is already in place as the hero lifts off. --r (0 → 1) is how much is
   uncovered. No blur or opacity on the pin here: either would stop the glass cards blurring the stars behind them. */
/* The hero lifts off services like a lid: once its pin ends the stage scrolls away while globe.js's --f fades the globe
   and the backdrop (moved onto the stage so it can fade). overflow-y stays visible; x stays clipped against sideways scroll. */
.hero:has(+ .services.under) { z-index: 2; overflow-y: visible; background: none; }
.hero:has(+ .services.under)::after { display: none; }
.hero:has(+ .services.under) .hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: clamp(0, calc((1 - var(--f)) / .55), 1); /* holds until the globe is mostly past */
  background: radial-gradient(120% 90% at 75% 55%, #2A1A78 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
}
.services.under { margin-top: -100vh; margin-top: -100svh; }
.services.under .svc-pin { transform-origin: 50% 0; transform: translateY(calc((1 - var(--r, 1)) * 70px)) scale(calc(.92 + var(--r, 1) * .08)); }
.services.under .svc-pin::after { /* horizon glow just under the arc, fading as the band settles */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 0, rgba(224,30,132,.32), rgba(124,58,237,.12) 55%, transparent 80%);
  opacity: calc(1 - var(--r, 1));
}

/* Home services as a wheel (main.js builds .svc-stage only in pinned mode): names on a curved drum to the left, the
   cards stacked in one 3D spot to the right. main.js sets each name's turn and each card's swing from the scroll. */
.svc-stage { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
.svc-wheel { position: relative; z-index: 2; height: clamp(280px, 52vh, 480px); height: clamp(280px, 52svh, 480px); transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1); }
.svc-wheel::before { /* the arrow pointing at the active service */
  content: "→"; position: absolute; left: 0; top: 50%; translate: 0 -54%;
  font: 600 clamp(1.4rem, 2.6vw, 2.3rem) var(--display); color: #FF8BC6;
}
.svc-wheel button { /* turned about a centre far to the left, so the names fan out like a drum */
  position: absolute; left: clamp(36px, 4vw, 56px); top: 50%; translate: 0 -50%; transform-origin: -520px 50%;
  padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 600 clamp(1.4rem, 2.6vw, 2.3rem) var(--display); letter-spacing: -.02em; color: #C3B9F0; /* was #8F84C9: too dim */
  transition: color .3s ease;
}
.svc-wheel button.on { color: var(--white); text-shadow: 0 0 24px rgba(224,30,132,.45); }
.svc-wheel button:hover { color: #E9E4FF; }
.services.pinned .svc-track { display: grid; padding: 0; margin: 0; overflow: visible; scroll-snap-type: none; perspective: 1400px; }
.services.pinned .svc-card { grid-area: 1 / 1; width: min(100%, 460px); justify-self: center; transform-origin: 50% 50%; will-change: transform, opacity; }
/* the card illustrations loop forever; run them only on a card in view, not under the hero or faded out */
.svc-pin:not(.in) .ill *, .svc-card.gone .ill * { animation-play-state: paused; }
.services.pinned .svc-pin:not(.in) .svc-wheel { opacity: 0; translate: -40px 0; transition: none; }
@media (max-width: 820px) {
  .svc-stage { grid-template-columns: 1fr; gap: 8px; }
  .svc-wheel { height: 150px; overflow: hidden; /* phones: keep the turning names inside their band, off the heading and card */
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
  .svc-wheel::before, .svc-wheel button { font-size: 1.3rem; }
  .svc-wheel button { left: 32px; transform-origin: -300px 50%; }
  .services.pinned .svc-pin { padding-top: 84px; }
  .services.pinned .svc-pin .section-head { margin-bottom: 8px; }
  .services.pinned .svc-card .svc-visual { height: clamp(90px, 15vh, 160px); height: clamp(90px, 15svh, 160px); }
}

/* Home "Why Alpteq" rises over a horizon: main.js sets --L (dome height, shrinking to 0 as the section comes in),
   --hx (where the light sits on the rim) and --glow. The backdrop's top is cut to a dome (mask = an ellipse whose
   top touches 0 and whose sides meet --L, radii 60% × 2.236·L, plus everything below --L), the corners beside it
   show the light section's colour, and ::after draws the dome's rim as a glowing line, lit only around --hx.
   Without main.js (or with reduced motion) --L stays 0: a plain flat edge. */
.why.why-stage { overflow-x: clip; background: linear-gradient(var(--mist) 0 var(--L, 0px), #07041C var(--L, 0px)); } /* near-black: only shows round the backdrop as it shrinks back behind About, where it reads as depth */
.why-stage::before {
  -webkit-mask: linear-gradient(transparent var(--L, 0px), #000 var(--L, 0px)),
    radial-gradient(60% calc(var(--L, 0px) * 2.236) at 50% calc(var(--L, 0px) * 2.236), #000 calc(100% - var(--aa, 1px)), transparent 100%);
  mask: linear-gradient(transparent var(--L, 0px), #000 var(--L, 0px)),
    radial-gradient(60% calc(var(--L, 0px) * 2.236) at 50% calc(var(--L, 0px) * 2.236), #000 calc(100% - var(--aa, 1px)), transparent 100%);
}
.why-stage::after {
  content: ""; position: absolute; z-index: 1; left: -10%; right: -10%; top: 0; height: calc(var(--L, 0px) * 4.472);
  border-radius: 50%; border-top: 2px solid #FFE0EF; pointer-events: none; opacity: var(--glow, 0);
  /* rim light spilling down into the dome as inset glows along the curve (a mask never paints outside its own box,
     so the light can't spill upward onto the light section) */
  box-shadow: inset 0 8px 14px -6px rgba(255,110,170,1), inset 0 22px 36px -12px rgba(240,38,111,.75), inset 0 44px 70px -20px rgba(255,138,30,.45);
  filter: drop-shadow(0 0 2px rgba(255,90,160,.9));
  -webkit-mask: radial-gradient(30% 100% at var(--hx, 50%) 0, #000 35%, transparent 100%);
  mask: radial-gradient(30% 100% at var(--hx, 50%) 0, #000 35%, transparent 100%);
}

.about-story { position: relative; background: var(--white); } /* paints over the Why stage's pinned backdrop as it arrives, like .contact */

/* About rises as a white sheet over the Why stage (main.js sets --k: 1 while arriving, 0 once settled, and --cover
   on the stage): rounded top corners and a soft shadow that flatten away, while the stage's pinned backdrop shrinks
   back and dims behind it. Without main.js both stay at rest (square corners, backdrop untouched). */
.about-story {
  border-radius: calc(var(--k, 0) * 48px) calc(var(--k, 0) * 48px) 0 0;
  box-shadow: 0 -28px 80px rgb(5 2 25 / calc(var(--k, 0) * 50%));
}
.why-stage::before { transform-origin: 50% 35%; transform: scale(calc(1 - var(--cover, 0) * .06)); opacity: calc(1 - var(--cover, 0) * .5); } /* dims with opacity: a filter here repainted the whole screen every frame */

/* Home "About" as a bento (after the Swapie reference): on wide, tall-enough screens main.js adds .ab-pinned and
   drives --t (0 → 1) through a pinned stage. First "About" and "Alpteq" stand apart in huge type while the centre
   card rises between them; then the words slide away, the card settles into its slot and the other tiles fly in
   from their own sides (--dx/--dy) one after another (--o) and assemble the grid around it. Otherwise the tiles
   simply stack and fade in like the rest of the page. */
.about-bento { padding: 104px 0; }
.ab-split { display: none; }
.ab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 14px;
  grid-template-areas: "who hero hero s1" "who hero hero s2" "v1 v2 v3 v4"; }
.ab-who { grid-area: who; } .ab-hero { grid-area: hero; }
.ab-grid > .ab-stat:nth-of-type(3) { grid-area: s1; } .ab-grid > .ab-stat:nth-of-type(4) { grid-area: s2; }
.ab-tile { min-width: 0; border-radius: 22px; padding: 22px; background: var(--mist); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ab-tile h3 { font: 600 1.05rem var(--display); color: var(--indigo); letter-spacing: -.01em; }
.ab-tile p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.ab-who p + p { margin-top: auto; }
.ab-value { padding: 18px 20px; }
.ab-value p { font-size: .88rem; }
.ab-tile .ab-num { font: 700 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; background: linear-gradient(135deg, #FF8A1E, #F0266F 55%, #B620C8); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ab-stat { justify-content: space-between; }
.ab-hero { position: relative; overflow: hidden; color: var(--white); border: 0; padding: 30px; justify-content: flex-end; gap: 14px;
  background: radial-gradient(70% 80% at 85% 0%, rgba(224,30,132,.55), transparent 65%), radial-gradient(70% 80% at 0% 100%, rgba(124,58,237,.6), transparent 65%), var(--indigo-deep);
  box-shadow: 0 30px 70px -20px rgba(18,11,59,.55); }
.ab-hero img { position: absolute; top: 26px; left: 30px; width: 44px; height: 44px; }
.ab-hero h2 { font: 600 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #FF9BD0; }
.ab-lead { font: 600 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--display) !important; letter-spacing: -.02em; color: var(--white) !important; text-wrap: balance; max-width: 22ch; }
.ab-led { color: #D8D1F5 !important; font-size: .9rem !important; }
.ab-led span { color: #A99DE0; }
@media (max-width: 960px) {
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "who who" "s1 s2" "v1 v2" "v3 v4"; }
  .ab-hero { min-height: 300px; }
}
@media (max-width: 560px) { .ab-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "who" "s1" "s2" "v1" "v2" "v3" "v4"; } }

/* pinned sequence */
.about-bento.ab-pinned { height: 200vh; height: 200svh; padding: 0; }
.ab-pinned .ab-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 88px 0 24px; overflow: hidden; }
.ab-pinned .ab-grid { width: 100%; height: 100%; grid-template-rows: 1fr 1fr auto; }
.ab-pinned .ab-split {
  display: flex; justify-content: space-between; align-items: center; position: absolute; inset: 0; padding: 0 max(24px, 4vw); pointer-events: none;
  font: 300 clamp(3.5rem, 9.5vw, 9rem)/1 var(--display); letter-spacing: -.045em; color: var(--indigo);
  --w: clamp(0, (var(--t, 1) - .26) / .2, 1); opacity: calc(1 - var(--w));
}
.ab-pinned .ab-split span:first-child { translate: calc(var(--w) * -18vw) 0; }
.ab-pinned .ab-split span:last-child { translate: calc(var(--w) * 18vw) 0; }
.ab-pinned .ab-hero {
  z-index: 2; transform-origin: 50% 50%;
  --rise: clamp(0, var(--t, 1) / .26, 1); --h: clamp(0, (var(--t, 1) - .26) / .26, 1);
  translate: 0 calc((1 - var(--rise)) * 70vh + (1 - var(--h)) * 6vh); translate: 0 calc((1 - var(--rise)) * 70svh + (1 - var(--h)) * 6svh);
  scale: calc(.78 + var(--h) * .22);
}
.ab-pinned .ab-tile:not(.ab-hero) {
  --e: clamp(0, (var(--t, 1) - .36 - var(--o, 0) * .035) / .2, 1);
  opacity: var(--e); scale: calc(.86 + var(--e) * .14); filter: blur(calc((1 - var(--e)) * 8px));
  translate: calc((1 - var(--e)) * var(--dx, 0) * 120px) calc((1 - var(--e)) * var(--dy, 0) * 120px);
}

/* Contact form as frosted glass: soft magenta/violet glows in the contact band give the glass something to blur,
   and the fields become darker glass wells with white text. color-scheme: dark makes the service dropdown's
   option list and the textarea's resize grip follow. */
.contact {
  background: radial-gradient(40% 55% at 85% 30%, rgba(224,30,132,.38), transparent 70%),
              radial-gradient(45% 55% at 60% 95%, rgba(124,58,237,.45), transparent 70%),
              radial-gradient(35% 45% at 5% 10%, rgba(124,58,237,.25), transparent 70%), var(--indigo);
}
.contact-form {
  color-scheme: dark; color: var(--white); border-radius: 24px;
  background: linear-gradient(160deg, rgba(70,50,160,.55), rgba(40,26,110,.6) 55%, rgba(70,40,150,.6));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 40px rgba(255,255,255,.04), 0 30px 70px rgba(5,2,25,.45);
}
.contact-form .field label { color: #E9E4FF; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea {
  color: var(--white); background: rgba(10,6,40,.35); border: 1px solid rgba(255,255,255,.16);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-form .field input:hover, .contact-form .field select:hover, .contact-form .field textarea:hover { border-color: rgba(255,255,255,.28); }
.contact-form .field input:focus, .contact-form .field select:focus, .contact-form .field textarea:focus {
  border-color: #FF8BC6; background: rgba(10,6,40,.5); box-shadow: 0 0 0 3px rgba(255,139,198,.22);
}
.contact-form .field select option { background: #1A1150; color: var(--white); }
.contact-form .field [aria-invalid="true"] { border-color: #FF6B8E; }
.contact-form .form-error { color: #FF9BB0; }
.contact-form .form-success { color: #7EE2B0; }
.contact-form .form-note { color: #B9AFE6; }
.contact-form .form-note a { color: #FF9BD0; }

/* Contact entrance (main.js adds .c-anim on wide screens and drives --ca / --cb): the details rise in the centre in
   front, then glide left as the form slides out from behind them to the right, growing into place. */
.contact.c-anim .contact-info { position: relative; z-index: 2; opacity: var(--ca, 1);
  translate: calc((1 - var(--cb, 1)) * var(--ci, 0px)) calc((1 - var(--ca, 1)) * 110px); }
.contact.c-anim .contact-form { position: relative; z-index: 1; opacity: calc(var(--cb, 1) * var(--cb, 1)); transform-origin: 30% 40%; /* squared: stays faint while still behind the details */
  translate: calc((1 - var(--cb, 1)) * var(--cf, 0px)) 0; scale: calc(.86 + var(--cb, 1) * .14); }

/* WhatsApp follow-up button shown under the form's success / error message */
.form-whatsapp { display: flex; width: fit-content; margin-top: 12px; background: #167A44; color: #fff; } /* darker WhatsApp green: white text on #25D366 was unreadable */
.form-whatsapp:hover { background: #0F6A3A; }
.ft-col .ft-email { overflow-wrap: anywhere; } /* long address must not overflow the narrow footer column */

/* Partner companies (below About): simple centred logo row.
   Animation: heading and logos fade up in turn as they scroll into view (main.js .reveal), then each logo floats gently;
   on hover a logo lifts with a soft glow and a light sweep. All motion is off with reduced motion. */
.partners { background: var(--white); padding: 16px 0 96px; text-align: center; }
.partners h2 { font: 700 clamp(1.4rem, 2.6vw, 1.9rem) var(--display); letter-spacing: -.02em; color: var(--indigo); }
.partner-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.partner { display: block; border-radius: 18px; text-decoration: none; }
.partner-logo { position: relative; overflow: hidden; display: block; box-sizing: border-box; width: 240px; height: 130px; padding: 14px 22px;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 28px -20px rgba(26,17,80,.45);
  animation: partner-float 5s ease-in-out infinite; transition: scale .3s ease, box-shadow .3s ease; }
.partner-list li:nth-child(2) .partner-logo { animation-delay: -2.5s; } /* the two logos bob out of step */
.partner-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; } /* fill the box but never overflow it */
.partner-logo-light { background: #FFFFFF; }
.partner-logo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(120,90,230,.16) 50%, transparent 65%); translate: -120% 0; } /* tinted so the sweep shows on white */
.partner:hover .partner-logo, .partner:focus-visible .partner-logo { scale: 1.05; box-shadow: 0 22px 40px -18px rgba(224,30,132,.45); }
.partner:hover .partner-logo::after, .partner:focus-visible .partner-logo::after { translate: 120% 0; transition: translate .8s ease; }
.partner:focus-visible { outline: 3px solid var(--magenta); outline-offset: 6px; }
@keyframes partner-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 560px) { .partner-logo { width: 200px; height: 110px; } .partners { padding-bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .partner-logo { animation: none; transition: none; } .partner:hover .partner-logo { scale: 1; } .partner-logo::after { display: none; } }

/* Clients: "Trusted by" strip after How we work. Screen readers get the plain list; sighted visitors get a looping
   marquee (two identical halves, moved by -50% so the loop is seamless) that pauses on hover. Static list with reduced motion. */
.clients { position: relative; z-index: 1; background: var(--mist); padding: 8px 0 88px; text-align: center; overflow: hidden; } /* own layer: paints above the sticky "How we work" lid */
.clients-loop { will-change: transform; -webkit-transform: translateZ(0); } /* Safari: keep the moving strip on its own layer so the edge mask repaints it */
.clients-title { font: 700 clamp(1.4rem, 2.4vw, 2rem) var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-dark); }
.clients-marquee { position: relative; margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 72px; }
.clients-track:not(.clients-loop) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* screen-reader copy */
.clients-loop { width: max-content; animation: clients-scroll 62s linear infinite; /* longer list, same speed */ }
.clients-marquee:hover .clients-loop { animation-play-state: paused; }
.client { flex: none; font: 700 clamp(1.9rem, 3.4vw, 3rem) var(--display); letter-spacing: -.02em; color: #6E6890; white-space: nowrap; /* was #A69FC4: too pale on the light background */
  transition: color .25s ease; }
.client:hover { color: var(--indigo); }
@keyframes clients-scroll { from { transform: translateX(calc(-50% - 36px)); } to { transform: translateX(0); } } /* left to right */
@media (max-width: 560px) { .clients { padding-bottom: 64px; } .clients-track { gap: 48px; } @keyframes clients-scroll { from { transform: translateX(calc(-50% - 24px)); } to { transform: translateX(0); } } }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee { -webkit-mask-image: none; mask-image: none; }
  .clients-loop { display: none; }
  .clients-track:not(.clients-loop) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; justify-content: center; flex-wrap: wrap; gap: 20px 48px; padding: 0 16px; }
}

/* Certified expertise (after partner companies): team certifications as tiles, issuer above name.
   Tiles fade up in turn via main.js .reveal; hover lifts a tile and lights its accent bar. */
.certs { background: var(--white); padding: 8px 0 104px; text-align: center; }
.certs-eyebrow { font: 600 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-dark); }
.certs h2 { margin-top: 8px; font: 700 clamp(1.4rem, 2.6vw, 1.9rem) var(--display); letter-spacing: -.02em; color: var(--indigo); }
.certs-lead { margin: 10px auto 0; max-width: 52ch; color: var(--muted); }
/* Moves left to right (the client strip above moves the other way). Same seamless-loop trick: two identical halves. */
.certs { overflow: hidden; }
.certs-marquee { margin-top: 32px; padding: 6px 0 10px; /* room for the hover lift and shadow */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; }
.cert-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* screen-reader copy */
.cert-loop { width: max-content; animation: certs-scroll 36s linear infinite; }
.certs-marquee:hover .cert-loop { animation-play-state: paused; }
.cert { flex: none; position: relative; overflow: hidden; padding: 16px 28px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
  font: 700 clamp(1.05rem, 1.6vw, 1.25rem) var(--display); letter-spacing: -.01em; color: var(--indigo); white-space: nowrap;
  transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease; }
.cert::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #FF8A1E, #F0266F 55%, #B620C8); scale: 0 1; transition: scale .3s ease; }
.cert:hover { translate: 0 -3px; border-color: #CFC4EE; box-shadow: 0 16px 32px -22px rgba(26,17,80,.5); color: var(--magenta-dark); }
.cert:hover::after { scale: 1 1; }
@keyframes certs-scroll { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }
@media (max-width: 560px) { .cert { padding: 12px 20px; } .certs { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) {
  .certs-marquee { -webkit-mask-image: none; mask-image: none; }
  .cert-loop { display: none; }
  .cert-sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
  .cert, .cert::after { transition: none; } .cert:hover { translate: none; }
}

